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 d17dc69
Browse filesBrowse the repository at this point in the historyBrowse files
📝 docs(spec): state the command and compiler contracts
The spec listed the new entrypoint files without saying what they promise.
Both contracts are observable and neither was written down.
§4.2 now states compiler ownership: execute() neither detects the runtime nor
installs a compiler; a document without eval blocks needs none; one with them
requires the caller to install API.Compiler middleware, and gets an explicit
failure rather than a guess when it has not; a caller's compiler is used
rather than shadowed. The section no longer presents the data: URI as the only
mechanism, since two implementations ship and neither is bound to the runtime
its name once suggested.
§9.6 now states the command contract: the complete invocation with arguments
appended in the position that host needs, no inferred default, an absolute
entry path from import.meta.url, and resolution deferred until <TestAgent>
provisions a provider.
Corrects the claim that cli.ts "detects nothing about the host". It makes no
decision about re-invocation, compiler choice, or runtime detection — but it
still reaches process.stdout and node:fs/promises directly, which is #156.
Tier CB covers the compiler boundary: no eval blocks and no compiler, an eval
block with no compiler, and a caller-installed compiler surviving execute().
|`src/component-api.ts`|`Component` Api + `ComponentApi` interface and the direct operations (`importComponent`, `applyModifiers`, `raise`, `env`, `evalScope`, `codeBlock`, `persistent`, `content`) — §5.5 |
| CB1 | No eval blocks, no compiler | A document with no eval blocks executes with no `API.Compiler` middleware installed |
3953
+
| CB2 | Eval block, no compiler | An eval block with no middleware installed fails with `compiler not installed — install platform-specific middleware via API.Compiler.around()`|
3954
+
| CB3 | Caller's compiler wins | A compiler installed before `execute()` receives the block source; `execute()` neither replaces nor shadows it |
3955
+
3881
3956
### Tier I — Middleware conformance (eval modifiers)
0 commit comments