You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 279bb7d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): os serve names an unloaded devPlugins entry by the list it was written in
When os serve --dev refuses to boot because an entry that may provide the
crypto provider did not load, a devPlugins entry is now named devPlugins[i]
rather than by its position after the stack's plugins. The refusal reads an
entry's providesServices through the same predicate as cryptoProviderPlugins,
and its docstring states the rule the code applies: an entry that declares
other services, or declares none, is ruled out.
Clause-②: no
Metadata-protocol: none
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5mgePB9NQ4PNhvYVxk
fix(cli): `os serve` names an unloaded `devPlugins` entry by the list it was written in
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
When `os serve --dev` refuses to boot because an entry that may provide the crypto provider (`crypto-provider`) did not load, a `devPlugins` entry is now named `devPlugins[i]` instead of by its position after the stack's `plugins`. Which entries are refused is unchanged: the refusal reads an entry's `providesServices` through the same predicate as the rest of the crypto-provider checks.
Copy file name to clipboardExpand all lines: packages/cli/test/serve-crypto-provider-plugin-load-failure.integration.test.ts
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2
-
// test-budget: 40 — spawns `os serve` (src, via runServe) once per single-cause fixture: four boots, two refused and two that reach the ready banner; budget to be re-measured
2
+
// test-budget: 40 — spawns `os serve` (src, via runServe) once per single-cause fixture: five boots, three refused and two that reach the ready banner; budget to be re-measured
3
3
4
4
/**
5
5
* `os serve` refuses to boot when a `plugins` entry fails to load and it cannot
@@ -14,6 +14,8 @@
14
14
* nothing says what it provides, so the boot is refused;
15
15
* - an entry that materializes, declares the crypto provider in
16
16
* `providesServices`, and is refused by the kernel: refused;
17
+
* - under `--dev`, a `devPlugins` entry that does not materialize: refused,
18
+
* named by the list it was written in (`devPlugins[0]`);
17
19
* - CONTROL: an entry that materializes, declares nothing of the kind, and is
18
20
* refused by the kernel: the boot goes on, as before, and says so;
19
21
* - CONTROL: a config whose every entry loads boots.
0 commit comments