@sublang/slc 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +4 -4
  2. package/dist/app.d.ts +20 -20
  3. package/dist/app.js +29 -29
  4. package/dist/app.js.map +1 -1
  5. package/dist/artifacts.d.ts +6 -6
  6. package/dist/artifacts.d.ts.map +1 -1
  7. package/dist/artifacts.js +9 -9
  8. package/dist/artifacts.js.map +1 -1
  9. package/dist/cli.js +3 -3
  10. package/dist/cligent-agent.d.ts +1 -1
  11. package/dist/cligent-agent.js +5 -5
  12. package/dist/compiled-executor.d.ts +14 -6
  13. package/dist/compiled-executor.d.ts.map +1 -1
  14. package/dist/compiled-executor.js +133 -31
  15. package/dist/compiled-executor.js.map +1 -1
  16. package/dist/config-file.d.ts +6 -6
  17. package/dist/config-file.js +5 -5
  18. package/dist/config.d.ts +17 -15
  19. package/dist/config.d.ts.map +1 -1
  20. package/dist/config.js +26 -16
  21. package/dist/config.js.map +1 -1
  22. package/dist/emitted-imports.d.ts +14 -0
  23. package/dist/emitted-imports.d.ts.map +1 -1
  24. package/dist/emitted-imports.js +63 -7
  25. package/dist/emitted-imports.js.map +1 -1
  26. package/dist/entry-module.d.ts +5 -3
  27. package/dist/entry-module.d.ts.map +1 -1
  28. package/dist/entry-module.js +41 -13
  29. package/dist/entry-module.js.map +1 -1
  30. package/dist/execution.d.ts +10 -10
  31. package/dist/execution.d.ts.map +1 -1
  32. package/dist/execution.js +13 -13
  33. package/dist/execution.js.map +1 -1
  34. package/dist/hash.js +2 -2
  35. package/dist/host-capabilities.d.ts +115 -0
  36. package/dist/host-capabilities.d.ts.map +1 -0
  37. package/dist/host-capabilities.js +507 -0
  38. package/dist/host-capabilities.js.map +1 -0
  39. package/dist/interpreter.d.ts +2 -2
  40. package/dist/interpreter.d.ts.map +1 -1
  41. package/dist/interpreter.js +7 -7
  42. package/dist/invocation.d.ts +6 -6
  43. package/dist/invocation.d.ts.map +1 -1
  44. package/dist/invocation.js +1 -1
  45. package/dist/link.d.ts +4 -4
  46. package/dist/link.d.ts.map +1 -1
  47. package/dist/link.js +11 -11
  48. package/dist/link.js.map +1 -1
  49. package/dist/phase-runner.d.ts +4 -4
  50. package/dist/phase-runner.js +9 -9
  51. package/dist/phase.d.ts +4 -4
  52. package/dist/phase.d.ts.map +1 -1
  53. package/dist/phase.js +7 -7
  54. package/dist/phase.js.map +1 -1
  55. package/dist/pin-closure.d.ts +35 -7
  56. package/dist/pin-closure.d.ts.map +1 -1
  57. package/dist/pin-closure.js +135 -21
  58. package/dist/pin-closure.js.map +1 -1
  59. package/dist/pin-currency.d.ts +9 -4
  60. package/dist/pin-currency.d.ts.map +1 -1
  61. package/dist/pin-currency.js +57 -20
  62. package/dist/pin-currency.js.map +1 -1
  63. package/dist/pin-generate.d.ts +7 -7
  64. package/dist/pin-generate.d.ts.map +1 -1
  65. package/dist/pin-generate.js +14 -8
  66. package/dist/pin-generate.js.map +1 -1
  67. package/dist/pin-inputs.d.ts +41 -0
  68. package/dist/pin-inputs.d.ts.map +1 -0
  69. package/dist/pin-inputs.js +179 -0
  70. package/dist/pin-inputs.js.map +1 -0
  71. package/dist/pin-paths.d.ts +1 -1
  72. package/dist/pin-paths.js +4 -4
  73. package/dist/pin-paths.js.map +1 -1
  74. package/dist/pins.d.ts +4 -4
  75. package/dist/pins.d.ts.map +1 -1
  76. package/dist/pins.js +5 -5
  77. package/dist/pins.js.map +1 -1
  78. package/dist/pipeline.d.ts +5 -5
  79. package/dist/pipeline.js +10 -10
  80. package/dist/playbook-contract.d.ts +53 -5
  81. package/dist/playbook-contract.d.ts.map +1 -1
  82. package/dist/playbook-contract.js +70 -21
  83. package/dist/playbook-contract.js.map +1 -1
  84. package/dist/playbook-ports.d.ts +9 -9
  85. package/dist/playbook-ports.d.ts.map +1 -1
  86. package/dist/playbook-ports.js +3 -3
  87. package/dist/playbook-ports.js.map +1 -1
  88. package/dist/progress.d.ts +8 -9
  89. package/dist/progress.d.ts.map +1 -1
  90. package/dist/progress.js +3 -3
  91. package/dist/progress.js.map +1 -1
  92. package/dist/resolver.d.ts +9 -9
  93. package/dist/resolver.d.ts.map +1 -1
  94. package/dist/resolver.js +12 -12
  95. package/dist/resolver.js.map +1 -1
  96. package/dist/runner.d.ts +1 -1
  97. package/dist/runner.d.ts.map +1 -1
  98. package/dist/runner.js +195 -80
  99. package/dist/runner.js.map +1 -1
  100. package/dist/verify-coverage.d.ts +4 -3
  101. package/dist/verify-coverage.d.ts.map +1 -1
  102. package/dist/verify-coverage.js +509 -71
  103. package/dist/verify-coverage.js.map +1 -1
  104. package/dist/verify.d.ts +111 -15
  105. package/dist/verify.d.ts.map +1 -1
  106. package/dist/verify.js +656 -59
  107. package/dist/verify.js.map +1 -1
  108. package/package.json +3 -3
package/README.md CHANGED
@@ -78,7 +78,7 @@ commands with `npx`: a project-local install is authoritative wherever it
78
78
  resolves, a project manifest declaring `@sublang/playbook` must install
79
79
  it itself, and a global SDK is invisible to a project's nested
80
80
  `@sublang/cligent`
81
- ([RELEASE-11](specs/dev/release.md#release-11) has the full rules).
81
+ ([[release-11](specs/packages/release.md#release-11)] has the full rules).
82
82
 
83
83
  ## Quick start
84
84
 
@@ -132,7 +132,7 @@ the next one to compile ordinarily. `.slc/` holds verbatim copies of
132
132
  your source and outputs — treat it as no less private, gitignore it if
133
133
  you commit the bundle, and delete it freely. Excluded invocation forms
134
134
  and the full rules are in the
135
- [incremental spec](specs/user/incremental-compilation.md).
135
+ [incremental spec](specs/packages/incremental-compilation.md).
136
136
 
137
137
  ## Configuration
138
138
 
@@ -156,7 +156,7 @@ pipelinePath: # search roots for <pipeline> references; defaults to the cwd
156
156
  ```
157
157
 
158
158
  Discovery order, `--config`, and validation rules live in the
159
- [CLI spec](specs/user/cli.md); `slc --help` prints the summary.
159
+ [CLI spec](specs/packages/cli.md); `slc --help` prints the summary.
160
160
 
161
161
  ### Reviewed compilation (two agents)
162
162
 
@@ -195,7 +195,7 @@ Every phase runs through a coding agent, one of two ways:
195
195
  bundled phases this way: `slc` is self-hosting, its phase definitions
196
196
  compiled, reviewed, and sha256-pinned under
197
197
  [`pipelines/playbook/`](pipelines/playbook), failing closed on drift
198
- ([self-hosting spec](specs/user/self-hosting.md)).
198
+ ([self-hosting spec](specs/packages/self-hosting.md)).
199
199
 
200
200
  Specs are the source of truth — start at the
201
201
  [spec map](specs/map.md).
package/dist/app.d.ts CHANGED
@@ -11,11 +11,11 @@ export type DepsBuilder = (io: {
11
11
  env: Record<string, string | undefined>;
12
12
  cwd: string;
13
13
  signal: AbortSignal;
14
- /** Explicit `--config <path>`, when given (CLI-20). */
14
+ /** Explicit `--config <path>`, when given (cli-20). */
15
15
  configPath?: string;
16
- /** Sink for host notes such as first-run config seeding (DR-015, CLI-30). */
16
+ /** Sink for host notes such as first-run config seeding (DR-015, cli-30). */
17
17
  note?: (text: string) => void;
18
- /** The run's progress sink, rendered to stderr by the bin (DR-019, CLI-35). */
18
+ /** The run's progress sink, rendered to stderr by the bin (DR-019, cli-35). */
19
19
  progress?: ProgressSink;
20
20
  }) => SlcDeps | Promise<SlcDeps>;
21
21
  /** Injectable IO and configuration for {@link run}; all fields default to the process. */
@@ -24,9 +24,9 @@ export interface RunOptions {
24
24
  cwd?: string;
25
25
  stdout?: (text: string) => void;
26
26
  stderr?: (text: string) => void;
27
- /** Cancellation signal passed into `runSlc` (CLI-10). */
27
+ /** Cancellation signal passed into `runSlc` (cli-10). */
28
28
  signal?: AbortSignal;
29
- /** Overrides production dependency construction (CLI-6, CLI-7). */
29
+ /** Overrides production dependency construction (cli-6, cli-7). */
30
30
  buildDeps?: DepsBuilder;
31
31
  }
32
32
  /** The executor factory {@link buildSlcDeps} uses; injected in tests. */
@@ -35,19 +35,19 @@ export type ExecutorFactory = typeof createConfiguredExecutor;
35
35
  export type CompiledFactoryBuilder = typeof createConfiguredCompiledFactory;
36
36
  /**
37
37
  * Builds the production {@link SlcDeps}: a pipeline resolver over the resolved
38
- * search roots (CLI-6) — with the reserved `slc` reference routed to the
39
- * meta-pipeline definitions `@sublang/playbook` provides (SELFHOST-2) — an
40
- * interpreted executor for the resolved agent/model (CLI-7), and the
41
- * compiled-execution factory a current pinned phase selects (CLI-8, PHEXEC-27).
42
- * Configuration is loaded from the config file (DR-006, CLI-20) and
38
+ * search roots (cli-6) — with the reserved `slc` reference routed to the
39
+ * meta-pipeline definitions `@sublang/playbook` provides (self-hosting-2) — an
40
+ * interpreted executor for the resolved agent/model (cli-7), and the
41
+ * compiled-execution factory a current pinned phase selects (cli-8, phase-execution-27).
42
+ * Configuration is loaded from the config file (DR-006, cli-20) and
43
43
  * then overridden per key by a non-blank environment variable, so existing
44
44
  * env-only runs are unchanged and the file fills any key the environment leaves
45
45
  * unset.
46
46
  *
47
47
  * @throws {import('./config-file.js').ConfigFileError} when an explicit
48
- * `--config` path is absent or the file is malformed or invalid (CLI-21).
48
+ * `--config` path is absent or the file is malformed or invalid (cli-21).
49
49
  * @throws {import('./config.js').ConfigError} when neither source supplies an
50
- * agent, or the resolved agent is unsupported (CLI-12).
50
+ * agent, or the resolved agent is unsupported (cli-12).
51
51
  */
52
52
  export declare function buildSlcDeps({ env, cwd, signal, configPath, note, progress }: Parameters<DepsBuilder>[0], createExecutor?: ExecutorFactory, createCompiled?: CompiledFactoryBuilder): Promise<SlcDeps>;
53
53
  /** The cligent-invocation selection after merging environment over file (DR-006). */
@@ -55,34 +55,34 @@ export interface RunConfig {
55
55
  selection: AgentSelection;
56
56
  /** Search-root source: an `SLC_PIPELINE_PATH` string, the file's sequence, or undefined. */
57
57
  pipelinePath: string | string[] | undefined;
58
- /** Agent-stall watchdog window in milliseconds; `0` disables (DR-019, CLI-34). */
58
+ /** Agent-stall watchdog window in milliseconds; `0` disables (DR-019, cli-34). */
59
59
  stallTimeoutMs: number;
60
60
  }
61
- /** Default agent-stall watchdog window in seconds (DR-019, CLI-34). */
61
+ /** Default agent-stall watchdog window in seconds (DR-019, cli-34). */
62
62
  export declare const DEFAULT_STALL_TIMEOUT_SECONDS = 600;
63
63
  /**
64
- * Merges the environment over config-file values per key (DR-006, CLI-20): for
64
+ * Merges the environment over config-file values per key (DR-006, cli-20): for
65
65
  * each key a non-blank environment variable wins, otherwise the file value,
66
66
  * otherwise the built-in default. The agent and model go through
67
67
  * {@link resolveAgentSelection} so the supported-agent check stays single-sourced
68
- * (CLI-7, CLI-12); the stall timeout defaults to
68
+ * (cli-7, cli-12); the stall timeout defaults to
69
69
  * {@link DEFAULT_STALL_TIMEOUT_SECONDS} with `0` disabling the watchdog
70
- * (DR-019, CLI-34).
70
+ * (DR-019, cli-34).
71
71
  *
72
72
  * @throws {Error} when `SLC_STALL_TIMEOUT` is not a non-negative number.
73
73
  */
74
74
  export declare function resolveRunConfig(env: Record<string, string | undefined>, file: FileConfig): RunConfig;
75
- /** Usage text naming the documented invocation forms and configuration (CLI-2). */
75
+ /** Usage text naming the documented invocation forms and configuration (cli-2). */
76
76
  export declare function usageText(): string;
77
77
  /**
78
- * Runs the `slc` command line and returns a process exit code (CLI package).
78
+ * Runs the `slc` command line and returns a process exit code (`cli` package).
79
79
  * Never rejects: configuration refusals and run failures are reported and
80
80
  * mapped to a non-zero code.
81
81
  */
82
82
  export declare function run(argv: readonly string[], options?: RunOptions): Promise<number>;
83
83
  /**
84
84
  * Wires `SIGINT`/`SIGTERM` on `emitter` to abort a fresh controller, returning
85
- * its cancellation signal and a disposer that removes the listeners (CLI-10).
85
+ * its cancellation signal and a disposer that removes the listeners (cli-10).
86
86
  * The `cli.ts` shim passes `process`; tests pass a fake emitter so the
87
87
  * interrupt-to-abort wiring is exercised without real signals.
88
88
  */
package/dist/app.js CHANGED
@@ -1,17 +1,17 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  // SPDX-FileCopyrightText: 2026 SubLang International <https://sublang.ai>
3
3
  /**
4
- * The `slc` bin orchestrator (CLI package).
4
+ * The `slc` bin orchestrator (`cli` package).
5
5
  *
6
6
  * `run` is the testable command-line entry: it short-circuits `--version` and
7
- * `--help` before touching any pipeline or agent (CLI-1, CLI-2, CLI-9), builds
8
- * the run dependencies from environment configuration (CLI-6, CLI-7, CLI-12),
9
- * invokes the injectable `runSlc` core under a cancellation signal (CLI-10), and
7
+ * `--help` before touching any pipeline or agent (cli-1, cli-2, cli-9), builds
8
+ * the run dependencies from environment configuration (cli-6, cli-7, cli-12),
9
+ * invokes the injectable `runSlc` core under a cancellation signal (cli-10), and
10
10
  * maps the result onto process streams and an exit code — produced artifact
11
- * paths to stdout on success, the failure report to stderr otherwise (CLI-3,
12
- * CLI-4, CLI-11). Every IO seam is injectable so the bin is integration-testable
11
+ * paths to stdout on success, the failure report to stderr otherwise (cli-3,
12
+ * cli-4, cli-11). Every IO seam is injectable so the bin is integration-testable
13
13
  * without a real agent; the `cli.ts` shim supplies the process-backed defaults
14
- * and signal wiring. See specs/dev/cli.md and specs/user/cli.md.
14
+ * and signal wiring. See specs/packages/cli.md.
15
15
  */
16
16
  import { createRequire } from 'node:module';
17
17
  import { messageOf } from './errors.js';
@@ -33,19 +33,19 @@ export function version() {
33
33
  }
34
34
  /**
35
35
  * Builds the production {@link SlcDeps}: a pipeline resolver over the resolved
36
- * search roots (CLI-6) — with the reserved `slc` reference routed to the
37
- * meta-pipeline definitions `@sublang/playbook` provides (SELFHOST-2) — an
38
- * interpreted executor for the resolved agent/model (CLI-7), and the
39
- * compiled-execution factory a current pinned phase selects (CLI-8, PHEXEC-27).
40
- * Configuration is loaded from the config file (DR-006, CLI-20) and
36
+ * search roots (cli-6) — with the reserved `slc` reference routed to the
37
+ * meta-pipeline definitions `@sublang/playbook` provides (self-hosting-2) — an
38
+ * interpreted executor for the resolved agent/model (cli-7), and the
39
+ * compiled-execution factory a current pinned phase selects (cli-8, phase-execution-27).
40
+ * Configuration is loaded from the config file (DR-006, cli-20) and
41
41
  * then overridden per key by a non-blank environment variable, so existing
42
42
  * env-only runs are unchanged and the file fills any key the environment leaves
43
43
  * unset.
44
44
  *
45
45
  * @throws {import('./config-file.js').ConfigFileError} when an explicit
46
- * `--config` path is absent or the file is malformed or invalid (CLI-21).
46
+ * `--config` path is absent or the file is malformed or invalid (cli-21).
47
47
  * @throws {import('./config.js').ConfigError} when neither source supplies an
48
- * agent, or the resolved agent is unsupported (CLI-12).
48
+ * agent, or the resolved agent is unsupported (cli-12).
49
49
  */
50
50
  export async function buildSlcDeps({ env, cwd, signal, configPath, note, progress },
51
51
  // Injectable so a test can capture the executor options — notably the
@@ -65,7 +65,7 @@ createExecutor = createConfiguredExecutor, createCompiled = createConfiguredComp
65
65
  // Auto-accept the agents' file operations so a non-interactive `slc` run can
66
66
  // write its target artifact; the DR-003 generic checks still guard the
67
67
  // protected inputs (DR-004). The stall watchdog rides every constructed
68
- // transport (DR-019, CLI-35).
68
+ // transport (DR-019, cli-35).
69
69
  const agentOpts = {
70
70
  cwd,
71
71
  permissions: { mode: 'auto' },
@@ -73,7 +73,7 @@ createExecutor = createConfiguredExecutor, createCompiled = createConfiguredComp
73
73
  };
74
74
  const executor = createExecutor(selection, agentOpts);
75
75
  // Compiled-runtime status streams to the same reporter as phase progress
76
- // (PHEXEC-25, CLI-32).
76
+ // (phase-execution-25, cli-32).
77
77
  const compiled = createCompiled(selection, {
78
78
  ...agentOpts,
79
79
  onStatus: progress === undefined
@@ -82,16 +82,16 @@ createExecutor = createConfiguredExecutor, createCompiled = createConfiguredComp
82
82
  });
83
83
  return { resolver, executor, compiled, cwd, signal, progress };
84
84
  }
85
- /** Default agent-stall watchdog window in seconds (DR-019, CLI-34). */
85
+ /** Default agent-stall watchdog window in seconds (DR-019, cli-34). */
86
86
  export const DEFAULT_STALL_TIMEOUT_SECONDS = 600;
87
87
  /**
88
- * Merges the environment over config-file values per key (DR-006, CLI-20): for
88
+ * Merges the environment over config-file values per key (DR-006, cli-20): for
89
89
  * each key a non-blank environment variable wins, otherwise the file value,
90
90
  * otherwise the built-in default. The agent and model go through
91
91
  * {@link resolveAgentSelection} so the supported-agent check stays single-sourced
92
- * (CLI-7, CLI-12); the stall timeout defaults to
92
+ * (cli-7, cli-12); the stall timeout defaults to
93
93
  * {@link DEFAULT_STALL_TIMEOUT_SECONDS} with `0` disabling the watchdog
94
- * (DR-019, CLI-34).
94
+ * (DR-019, cli-34).
95
95
  *
96
96
  * @throws {Error} when `SLC_STALL_TIMEOUT` is not a non-negative number.
97
97
  */
@@ -128,7 +128,7 @@ function parseStallTimeout(value) {
128
128
  function nonBlank(value) {
129
129
  return value !== undefined && value.trim() !== '' ? value : undefined;
130
130
  }
131
- /** Usage text naming the documented invocation forms and configuration (CLI-2). */
131
+ /** Usage text naming the documented invocation forms and configuration (cli-2). */
132
132
  export function usageText() {
133
133
  return [
134
134
  'Usage:',
@@ -175,7 +175,7 @@ export function usageText() {
175
175
  }
176
176
  /**
177
177
  * Splits `--config <path>` out of argv, returning the path and the remaining
178
- * arguments for `runSlc` (CLI-20). `--config` is a bin-level flag, so it is
178
+ * arguments for `runSlc` (cli-20). `--config` is a bin-level flag, so it is
179
179
  * removed before the grammar parser, which rejects unknown options.
180
180
  *
181
181
  * @throws {Error} when `--config` is given without a following value.
@@ -198,14 +198,14 @@ function extractConfigFlag(argv) {
198
198
  return { configPath, rest };
199
199
  }
200
200
  /**
201
- * Runs the `slc` command line and returns a process exit code (CLI package).
201
+ * Runs the `slc` command line and returns a process exit code (`cli` package).
202
202
  * Never rejects: configuration refusals and run failures are reported and
203
203
  * mapped to a non-zero code.
204
204
  */
205
205
  export async function run(argv, options = {}) {
206
206
  const stdout = options.stdout ?? ((text) => void process.stdout.write(text));
207
207
  const stderr = options.stderr ?? ((text) => void process.stderr.write(text));
208
- // Conveniences short-circuit before any pipeline or agent work (CLI-1, CLI-2, CLI-9).
208
+ // Conveniences short-circuit before any pipeline or agent work (cli-1, cli-2, cli-9).
209
209
  if (hasFlag(argv, '--version', '-v')) {
210
210
  stdout(`${name} ${version()}\n`);
211
211
  return 0;
@@ -218,13 +218,13 @@ export async function run(argv, options = {}) {
218
218
  const cwd = options.cwd ?? process.cwd();
219
219
  const signal = options.signal ?? new AbortController().signal;
220
220
  // In-run progress renders on stderr as it happens, with the silence-bounded
221
- // heartbeat (DR-019, CLI-32, CLI-33, CLI-35).
221
+ // heartbeat (DR-019, cli-32, cli-33, cli-35).
222
222
  const reporter = createProgressReporter(stderr);
223
223
  let deps;
224
224
  let rest;
225
225
  try {
226
226
  // `--config <path>` is a bin-level flag: strip it before runSlc, whose
227
- // grammar (parseInvocation) rejects unknown options (CLI-20).
227
+ // grammar (parseInvocation) rejects unknown options (cli-20).
228
228
  const extracted = extractConfigFlag(argv);
229
229
  rest = extracted.rest;
230
230
  deps = await (options.buildDeps ?? buildSlcDeps)({
@@ -238,7 +238,7 @@ export async function run(argv, options = {}) {
238
238
  }
239
239
  catch (error) {
240
240
  // Configuration refusals — a bad `--config`, an invalid config file
241
- // (CLI-21), or an unset/unsupported agent (CLI-12) — fail the run.
241
+ // (cli-21), or an unset/unsupported agent (cli-12) — fail the run.
242
242
  reporter.dispose();
243
243
  stderr(`${name}: ${messageOf(error)}\n`);
244
244
  return 1;
@@ -255,7 +255,7 @@ export async function run(argv, options = {}) {
255
255
  stdout('up to date\n');
256
256
  else if (result.outputs.length > 0)
257
257
  stdout(`${result.outputs.join('\n')}\n`);
258
- // Surface any ambiguity the agent resolved without polluting the path output.
258
+ // Surface benign ambiguity resolved during the run without polluting paths.
259
259
  if (result.diagnostics.length > 0)
260
260
  stderr(`${result.diagnostics.join('\n')}\n`);
261
261
  return 0;
@@ -266,7 +266,7 @@ export async function run(argv, options = {}) {
266
266
  }
267
267
  /**
268
268
  * Wires `SIGINT`/`SIGTERM` on `emitter` to abort a fresh controller, returning
269
- * its cancellation signal and a disposer that removes the listeners (CLI-10).
269
+ * its cancellation signal and a disposer that removes the listeners (cli-10).
270
270
  * The `cli.ts` shim passes `process`; tests pass a fake emitter so the
271
271
  * interrupt-to-abort wiring is exercised without real signals.
272
272
  */
package/dist/app.js.map CHANGED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AAG,CAAC;YAC/B,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,CAAC,CAAC;IACX,CAAC;IACD,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;QAC/B,MAAM,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,CAAC,CAAC;AACX,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,OAG/B;IACC,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACzC,MAAM,WAAW,GAAG,GAAS,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IACnD,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACrC,OAAO;QACL,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,OAAO,EAAE,GAAG,EAAE;YACZ,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;YAC9C,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACjD,CAAC;KACF,CAAC;AACJ,CAAC;AAED,kEAAkE;AAClE,SAAS,OAAO,CAAC,IAAuB,EAAE,GAAG,KAAe;IAC1D,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AACjD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { Phase } from './phase.js';
2
2
  /** Machine-readable reason a source path was refused. */
3
3
  export type SourceErrorCode = 'invalid-source-name';
4
- /** Raised when a source filename matches no applicable form (PIPE-6). */
4
+ /** Raised when a source filename matches no applicable form (pipeline-6). */
5
5
  export declare class SourceError extends Error {
6
6
  readonly code: SourceErrorCode;
7
7
  constructor(code: SourceErrorCode, message: string);
@@ -12,13 +12,13 @@ export interface ParsedSource {
12
12
  basename: string;
13
13
  /**
14
14
  * True when an entry source carries a foreign extension: a raw input whose
15
- * compilation auto-schedules normalization (DR-014, PIPE-6, PIPE-34).
15
+ * compilation auto-schedules normalization (DR-014, pipeline-6, pipeline-34).
16
16
  */
17
17
  raw: boolean;
18
18
  }
19
19
  /**
20
20
  * Validates a source path against the consuming phase's source format and
21
- * extension, returning its `<basename>` (PIPE-6).
21
+ * extension, returning its `<basename>` (pipeline-6).
22
22
  *
23
23
  * The non-entry form requires `<basename>.<source-format>.<ext>`; the entry form
24
24
  * also accepts the plain `<basename>.<ext>`, and an entry source with any other
@@ -36,10 +36,10 @@ export declare function parseSource(opts: {
36
36
  /**
37
37
  * Computes the artifact directory under the invocation working directory,
38
38
  * reusing the working directory itself without nesting when its leaf is
39
- * already the canonical `<basename>.<pipeline>` (PIPE-7, DR-014).
39
+ * already the canonical `<basename>.<pipeline>` (pipeline-7, DR-014).
40
40
  */
41
41
  export declare function artifactDir(cwd: string, basename: string, pipeline: string): string;
42
- /** Computes the canonical path of a `<basename>.<format>.<ext>` artifact (PIPE-8). */
42
+ /** Computes the canonical path of a `<basename>.<format>.<ext>` artifact (pipeline-8). */
43
43
  export declare function artifactPath(artDir: string, basename: string, format: string, ext: string): string;
44
44
  /** A planned artifact: the phase that writes it, its path, and its pipeline role. */
45
45
  export interface ArtifactPlan {
@@ -50,7 +50,7 @@ export interface ArtifactPlan {
50
50
  /**
51
51
  * Plans the target artifact each phase writes: every non-terminal phase writes a
52
52
  * canonical intermediate, and the terminal phase writes the output, overridden by
53
- * `output` (`-o`) when provided while intermediates stay canonical (PIPE-8).
53
+ * `output` (`-o`) when provided while intermediates stay canonical (pipeline-8).
54
54
  */
55
55
  export declare function planArtifacts(opts: {
56
56
  phases: readonly Phase[];
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.d.ts","s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C;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,YAAY,EAAE,CAgBjB"}
package/dist/artifacts.js CHANGED
@@ -3,14 +3,14 @@
3
3
  /**
4
4
  * Source-name validation and artifact-path computation (DR-001, DR-014).
5
5
  *
6
- * Implements PIPE-6 (the entry/non-entry source filename forms, with a
7
- * foreign-extension entry source accepted as a raw input), PIPE-7 (compute the
6
+ * Implements pipeline-6 (the entry/non-entry source filename forms, with a
7
+ * foreign-extension entry source accepted as a raw input), pipeline-7 (compute the
8
8
  * artifact directory under the invocation working directory, reusing it without
9
- * nesting), and PIPE-8 (place intermediates and the output, honoring `-o`). See
10
- * specs/dev/pipeline.md.
9
+ * nesting), and pipeline-8 (place intermediates and the output, honoring `-o`). See
10
+ * specs/packages/pipeline.md.
11
11
  */
12
12
  import { basename as pathBasename, extname, join } from 'node:path';
13
- /** Raised when a source filename matches no applicable form (PIPE-6). */
13
+ /** Raised when a source filename matches no applicable form (pipeline-6). */
14
14
  export class SourceError extends Error {
15
15
  code;
16
16
  constructor(code, message) {
@@ -21,7 +21,7 @@ export class SourceError extends Error {
21
21
  }
22
22
  /**
23
23
  * Validates a source path against the consuming phase's source format and
24
- * extension, returning its `<basename>` (PIPE-6).
24
+ * extension, returning its `<basename>` (pipeline-6).
25
25
  *
26
26
  * The non-entry form requires `<basename>.<source-format>.<ext>`; the entry form
27
27
  * also accepts the plain `<basename>.<ext>`, and an entry source with any other
@@ -64,7 +64,7 @@ export function parseSource(opts) {
64
64
  /**
65
65
  * Computes the artifact directory under the invocation working directory,
66
66
  * reusing the working directory itself without nesting when its leaf is
67
- * already the canonical `<basename>.<pipeline>` (PIPE-7, DR-014).
67
+ * already the canonical `<basename>.<pipeline>` (pipeline-7, DR-014).
68
68
  */
69
69
  export function artifactDir(cwd, basename, pipeline) {
70
70
  const canonicalLeaf = `${basename}.${pipeline}`;
@@ -73,14 +73,14 @@ export function artifactDir(cwd, basename, pipeline) {
73
73
  }
74
74
  return join(cwd, canonicalLeaf);
75
75
  }
76
- /** Computes the canonical path of a `<basename>.<format>.<ext>` artifact (PIPE-8). */
76
+ /** Computes the canonical path of a `<basename>.<format>.<ext>` artifact (pipeline-8). */
77
77
  export function artifactPath(artDir, basename, format, ext) {
78
78
  return join(artDir, `${basename}.${format}${ext}`);
79
79
  }
80
80
  /**
81
81
  * Plans the target artifact each phase writes: every non-terminal phase writes a
82
82
  * canonical intermediate, and the terminal phase writes the output, overridden by
83
- * `output` (`-o`) when provided while intermediates stay canonical (PIPE-8).
83
+ * `output` (`-o`) when provided while intermediates stay canonical (pipeline-8).
84
84
  */
85
85
  export function planArtifacts(opts) {
86
86
  const { phases, basename, artDir, output } = opts;
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../src/artifacts.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,0EAA0E;AAE1E;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAOpE,yEAAyE;AACzE,MAAM,OAAO,WAAY,SAAQ,KAAK;IAC3B,IAAI,CAAkB;IAE/B,YAAY,IAAqB,EAAE,OAAe;QAChD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAaD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CAAC,IAK3B;IACC,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAChD,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACxB,IAAI,KA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AEX,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,QAAQ,IAAI,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC;AACrD,CAAC;AASD;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,IAK7B;IACC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAClD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QACjC,MAAM,UAAU,GAAG,KAAK,KAAK,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAC/C,MAAM,SAAS,GAAG,YAAY,CAC5B,MAAM,EACN,QAAQ,EACR,KAAK,CAAC,MAAM,CAAC,MAAM,EACnB,KAAK,CAAC,MAAM,CAAC,GAAG,CACjB,CAAC;QACF,OAAO;YACL,KAAK;YACL,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc;YAC5C,IAAI,EAAE,UAAU,IAAI,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;SAC9D,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
package/dist/cli.js CHANGED
@@ -2,12 +2,12 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-FileCopyrightText: 2026 SubLang International <https://sublang.ai>
4
4
  /**
5
- * The published `slc` executable shim (CLI package).
5
+ * The published `slc` executable shim (`cli` package).
6
6
  *
7
7
  * It supplies the process-backed defaults `run` falls back to and wires
8
8
  * cancellation through `interruptSignal`: an interrupt aborts the in-flight run
9
- * via the signal passed into `runSlc` (CLI-10), and the returned exit code
10
- * becomes the process exit status (CLI-11). All behavior lives in the testable
9
+ * via the signal passed into `runSlc` (cli-10), and the returned exit code
10
+ * becomes the process exit status (cli-11). All behavior lives in the testable
11
11
  * `run`/`interruptSignal`; see app.ts.
12
12
  */
13
13
  import { messageOf } from './errors.js';
@@ -20,7 +20,7 @@ export declare function createCligentAgent(opts: {
20
20
  effort?: string;
21
21
  /**
22
22
  * Milliseconds of adapter-event inactivity after which the in-flight call is
23
- * aborted and reported as an error (DR-019, PHEXEC-36). Zero or absent
23
+ * aborted and reported as an error (DR-019, phase-execution-36). Zero or absent
24
24
  * disables the watchdog.
25
25
  */
26
26
  stallTimeoutMs?: number;
@@ -6,19 +6,19 @@
6
6
  * Backs the interpreter's agent transport with Cligent (npm `@sublang/cligent`),
7
7
  * draining its event stream into a normalized {@link AgentRunResult}. The host
8
8
  * supplies the concrete `AgentAdapter` (e.g. Claude Code, Codex) and any write
9
- * permissions, keeping agent selection a configuration concern (PHEXEC-13); the
9
+ * permissions, keeping agent selection a configuration concern (phase-execution-13); the
10
10
  * DR-003 write-scope sandbox would be configured here via `permissions`.
11
11
  *
12
- * The transport also owns the agent-stall watchdog (DR-019, PHEXEC-36): with a
12
+ * The transport also owns the agent-stall watchdog (DR-019, phase-execution-36): with a
13
13
  * positive `stallTimeoutMs`, an in-flight call that observes no adapter event
14
14
  * for that window is aborted through a call-local controller — the caller's
15
15
  * signal is composed in, never mutated — and reported as an error carrying the
16
16
  * inactivity duration. Cligent's abort drain guarantees the event loop then
17
17
  * terminates promptly with a terminal event, so a tripped watchdog cannot
18
- * itself hang. No retry occurs at this seam (PHEXEC-12, PHEXEC-23).
18
+ * itself hang. No retry occurs at this seam (phase-execution-12, phase-execution-23).
19
19
  *
20
20
  * This transport is exercised by integration runs and by tests that fake the
21
- * adapter's event stream. See specs/dev/phase-execution.md.
21
+ * adapter's event stream. See specs/packages/phase-execution.md.
22
22
  */
23
23
  import { Cligent } from '@sublang/cligent';
24
24
  import { formatElapsed } from './progress.js';
@@ -42,7 +42,7 @@ export function createCligentAgent(opts) {
42
42
  const cligent = new Cligent(opts.adapter, {
43
43
  maxTurns: opts.maxTurns,
44
44
  permissions: opts.permissions,
45
- // Validated adapter-scoped by the configuration layer (CLI-12).
45
+ // Validated adapter-scoped by the configuration layer (cli-12).
46
46
  ...(opts.effort !== undefined ? { effort: opts.effort } : {}),
47
47
  });
48
48
  const stallMs = opts.stallTimeoutMs ?? 0;
@@ -1,17 +1,25 @@
1
1
  import { type PhaseExecutor } from './execution.js';
2
2
  import type { AgentClient } from './interpreter.js';
3
- import { type CompatiblePlaybookRuntimeFactory, type RuntimeContractProfile } from './playbook-contract.js';
3
+ import { type ComposedV3FactoryInput, type CompatiblePlaybookRuntimeFactory, type RuntimeContractProfile } from './playbook-contract.js';
4
4
  import { type PlayerTransport } from './playbook-ports.js';
5
5
  /**
6
6
  * Imports a compiled `playbook` module and returns its runtime factory
7
- * (PHEXEC-23).
7
+ * (phase-execution-23).
8
8
  *
9
9
  * @throws when the module has no callable `createPlaybookRuntime` default export.
10
10
  */
11
11
  export declare function loadPlaybookRuntime(artifactPath: string): Promise<CompatiblePlaybookRuntimeFactory>;
12
+ /** Builds one fresh, plain, capability-bearing argument for a v3 factory. */
13
+ /**
14
+ * The exact schema-3 factory input the compiled host supplies: empty configured
15
+ * options plus live host capabilities whose repository and effect-ledger seams
16
+ * fail closed (DR-024). Exported so verification drives the same construction
17
+ * the host performs rather than a divergent copy.
18
+ */
19
+ export declare function composedV3FactoryInput(): ComposedV3FactoryInput;
12
20
  /**
13
21
  * Adapts a compiled `playbook` artifact to the {@link PhaseExecutor} boundary
14
- * (PHEXEC-24, PHEXEC-25): build the Cligent-backed Playbook ports, load and
22
+ * (phase-execution-24, phase-execution-25): build the Cligent-backed Playbook ports, load and
15
23
  * construct the runtime, drive one non-interactive root-session turn, and map
16
24
  * the outcome, appending drained status and non-trace operational telemetry.
17
25
  */
@@ -24,16 +32,16 @@ export declare function createCompiledExecutor(opts: {
24
32
  player: PlayerTransport;
25
33
  /** Shared agent transport backing `callCaptain` and `callJudge`. */
26
34
  judge: AgentClient;
27
- /** Per-player model binding, applied as configuration (PHEXEC-13). */
35
+ /** Per-player model binding, applied as configuration (phase-execution-13). */
28
36
  models?: Readonly<Record<string, string>>;
29
- /** Model for players the `models` binding does not name (PHEXEC-13). */
37
+ /** Model for players the `models` binding does not name (phase-execution-13). */
30
38
  defaultModel?: string;
31
39
  /** Working directory handed to the agent transports. */
32
40
  cwd?: string;
33
41
  /** Stable authored phase identity used as the Playbook session's playbook id. */
34
42
  playbookId?: string;
35
43
  /**
36
- * Live status sink (DR-019, PHEXEC-25): streams the runtime's human status
44
+ * Live status sink (DR-019, phase-execution-25): streams the runtime's human status
37
45
  * and non-trace telemetry as it occurs; absent hosts keep the drained
38
46
  * end-of-run diagnostics.
39
47
  */
@@ -1 +1 @@
1
- {"version":3,"file":"compiled-executor.d.ts","sourceRoot":"","sources":["../src/compiled-executor.ts"],"names":[],"mappings":"AAuCA,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAOpD,OAAO,EAKL,KAAK,gCAAgC,EAKrC,KAAK,sBAAsB,EAE5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEhF;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,gCAAgC,CAAC,CAW3C;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,OAAO,EAAE,MAAM,CAAC;IAChB,0FAA0F;IAC1F,MAAM,EAAE,eAAe,CAAC;IACxB,oEAAoE;IACpE,KAAK,EAAE,WAAW,CAAC;IACnB,sEAAsE;IACtE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1C,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,GAAG,CAAC,EAAE,MAA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