@llblab/pi-kit 0.38.3 → 0.39.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.
- package/CHANGELOG.md +10 -0
- package/README.md +2 -2
- package/node_modules/@llblab/pi-actors/AGENTS.md +108 -20
- package/node_modules/@llblab/pi-actors/BACKLOG.md +207 -4
- package/node_modules/@llblab/pi-actors/CHANGELOG.md +13 -0
- package/node_modules/@llblab/pi-actors/README.md +31 -1
- package/node_modules/@llblab/pi-actors/dist/index.js +1 -1
- package/node_modules/@llblab/pi-actors/dist/lib/async-runs.d.ts +37 -0
- package/node_modules/@llblab/pi-actors/dist/lib/async-runs.js +131 -62
- package/node_modules/@llblab/pi-actors/dist/lib/automatic-review-runtime.d.ts +2 -0
- package/node_modules/@llblab/pi-actors/dist/lib/automatic-review-runtime.js +3 -2
- package/node_modules/@llblab/pi-actors/dist/lib/command-templates.d.ts +37 -0
- package/node_modules/@llblab/pi-actors/dist/lib/command-templates.js +263 -129
- package/node_modules/@llblab/pi-actors/dist/lib/execution-files.d.ts +32 -0
- package/node_modules/@llblab/pi-actors/dist/lib/execution-files.js +128 -0
- package/node_modules/@llblab/pi-actors/dist/lib/execution-output.js +5 -4
- package/node_modules/@llblab/pi-actors/dist/lib/execution-sessions.d.ts +19 -1
- package/node_modules/@llblab/pi-actors/dist/lib/execution-sessions.js +62 -26
- package/node_modules/@llblab/pi-actors/dist/lib/execution.d.ts +4 -1
- package/node_modules/@llblab/pi-actors/dist/lib/execution.js +6 -1
- package/node_modules/@llblab/pi-actors/dist/lib/extension-runtime.d.ts +9 -2
- package/node_modules/@llblab/pi-actors/dist/lib/extension-runtime.js +92 -14
- package/node_modules/@llblab/pi-actors/dist/lib/file-state.js +21 -2
- package/node_modules/@llblab/pi-actors/dist/lib/inspector-command.js +2 -2
- package/node_modules/@llblab/pi-actors/dist/lib/inspector-overlay.d.ts +25 -7
- package/node_modules/@llblab/pi-actors/dist/lib/inspector-overlay.js +562 -262
- package/node_modules/@llblab/pi-actors/dist/lib/inspector.d.ts +20 -10
- package/node_modules/@llblab/pi-actors/dist/lib/inspector.js +80 -91
- package/node_modules/@llblab/pi-actors/dist/lib/limits.d.ts +1 -0
- package/node_modules/@llblab/pi-actors/dist/lib/limits.js +1 -0
- package/node_modules/@llblab/pi-actors/dist/lib/observability.d.ts +15 -1
- package/node_modules/@llblab/pi-actors/dist/lib/observability.js +216 -99
- package/node_modules/@llblab/pi-actors/dist/lib/pi.d.ts +5 -4
- package/node_modules/@llblab/pi-actors/dist/lib/pi.js +64 -10
- package/node_modules/@llblab/pi-actors/dist/lib/recipe-projection.d.ts +18 -0
- package/node_modules/@llblab/pi-actors/dist/lib/recipe-projection.js +220 -0
- package/node_modules/@llblab/pi-actors/dist/lib/recipes-context.d.ts +2 -0
- package/node_modules/@llblab/pi-actors/dist/lib/recipes-context.js +30 -6
- package/node_modules/@llblab/pi-actors/dist/lib/registry.js +270 -36
- package/node_modules/@llblab/pi-actors/dist/lib/run-delivery.d.ts +213 -5
- package/node_modules/@llblab/pi-actors/dist/lib/run-delivery.js +1909 -40
- package/node_modules/@llblab/pi-actors/dist/lib/run-supervision.d.ts +107 -0
- package/node_modules/@llblab/pi-actors/dist/lib/run-supervision.js +412 -0
- package/node_modules/@llblab/pi-actors/dist/lib/run-ui-runtime.d.ts +9 -2
- package/node_modules/@llblab/pi-actors/dist/lib/run-ui-runtime.js +283 -60
- package/node_modules/@llblab/pi-actors/dist/lib/runs-artifacts.d.ts +26 -1
- package/node_modules/@llblab/pi-actors/dist/lib/runs-artifacts.js +68 -2
- package/node_modules/@llblab/pi-actors/dist/lib/runs-context-exports.d.ts +451 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-context-exports.js +2315 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-context-index.d.ts +97 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-context-index.js +368 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-control-delivery.js +46 -7
- package/node_modules/@llblab/pi-actors/dist/lib/runs-control.d.ts +78 -2
- package/node_modules/@llblab/pi-actors/dist/lib/runs-control.js +334 -2
- package/node_modules/@llblab/pi-actors/dist/lib/runs-controls.js +4 -1
- package/node_modules/@llblab/pi-actors/dist/lib/runs-descendant-launches.d.ts +80 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-descendant-launches.js +287 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-execution-evidence.d.ts +110 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-execution-evidence.js +282 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-index.d.ts +66 -1
- package/node_modules/@llblab/pi-actors/dist/lib/runs-index.js +349 -13
- package/node_modules/@llblab/pi-actors/dist/lib/runs-native-launches.d.ts +73 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-native-launches.js +227 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-outcomes.d.ts +141 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-outcomes.js +292 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-ownership.d.ts +10 -1
- package/node_modules/@llblab/pi-actors/dist/lib/runs-ownership.js +36 -4
- package/node_modules/@llblab/pi-actors/dist/lib/runs-process-windows-mi.d.ts +46 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-process-windows-mi.js +114 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-process.d.ts +34 -1
- package/node_modules/@llblab/pi-actors/dist/lib/runs-process.js +158 -26
- package/node_modules/@llblab/pi-actors/dist/lib/runs-results.d.ts +116 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-results.js +518 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-retention.d.ts +15 -2
- package/node_modules/@llblab/pi-actors/dist/lib/runs-retention.js +148 -9
- package/node_modules/@llblab/pi-actors/dist/lib/runs-session-exports.d.ts +95 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-session-exports.js +470 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-snapshot.d.ts +58 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-snapshot.js +92 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-start.d.ts +2 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-start.js +44 -3
- package/node_modules/@llblab/pi-actors/dist/lib/runs-status.d.ts +15 -1
- package/node_modules/@llblab/pi-actors/dist/lib/runs-status.js +337 -13
- package/node_modules/@llblab/pi-actors/dist/lib/runs-supervision.d.ts +105 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-supervision.js +501 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-trace.d.ts +1 -0
- package/node_modules/@llblab/pi-actors/dist/lib/runs-trace.js +14 -3
- package/node_modules/@llblab/pi-actors/dist/lib/runtime.js +22 -3
- package/node_modules/@llblab/pi-actors/dist/lib/session-evidence.d.ts +37 -0
- package/node_modules/@llblab/pi-actors/dist/lib/session-evidence.js +59 -3
- package/node_modules/@llblab/pi-actors/dist/lib/state-readers.d.ts +4 -1
- package/node_modules/@llblab/pi-actors/dist/lib/state-readers.js +14 -8
- package/node_modules/@llblab/pi-actors/dist/lib/temp.d.ts +2 -4
- package/node_modules/@llblab/pi-actors/dist/lib/temp.js +4 -56
- package/node_modules/@llblab/pi-actors/dist/lib/tools-access.d.ts +3 -0
- package/node_modules/@llblab/pi-actors/dist/lib/tools-access.js +13 -0
- package/node_modules/@llblab/pi-actors/dist/lib/tools-inspect.d.ts +1 -0
- package/node_modules/@llblab/pi-actors/dist/lib/tools-inspect.js +110 -43
- package/node_modules/@llblab/pi-actors/dist/lib/tools-local.d.ts +3 -0
- package/node_modules/@llblab/pi-actors/dist/lib/tools-local.js +18 -6
- package/node_modules/@llblab/pi-actors/dist/lib/tools-message.d.ts +4 -1
- package/node_modules/@llblab/pi-actors/dist/lib/tools-message.js +126 -31
- package/node_modules/@llblab/pi-actors/dist/lib/tools-response.d.ts +31 -3
- package/node_modules/@llblab/pi-actors/dist/lib/tools-response.js +311 -47
- package/node_modules/@llblab/pi-actors/dist/lib/tools-spawn.d.ts +3 -0
- package/node_modules/@llblab/pi-actors/dist/lib/tools-spawn.js +29 -7
- package/node_modules/@llblab/pi-actors/dist/lib/trace-projection.d.ts +20 -0
- package/node_modules/@llblab/pi-actors/dist/lib/trace-projection.js +192 -43
- package/node_modules/@llblab/pi-actors/dist/scripts/async-runner.mjs +272 -194
- package/node_modules/@llblab/pi-actors/dist/scripts/conformance.mjs +14 -2
- package/node_modules/@llblab/pi-actors/dist/skills/actors/SKILL.md +46 -2
- package/node_modules/@llblab/pi-actors/dist/skills/actors/references/diagnostics.md +40 -0
- package/node_modules/@llblab/pi-actors/dist/skills/actors/references/runs.md +55 -1
- package/node_modules/@llblab/pi-actors/docs/README.md +9 -1
- package/node_modules/@llblab/pi-actors/docs/actor-inspector.md +84 -15
- package/node_modules/@llblab/pi-actors/docs/agent-experience.md +216 -0
- package/node_modules/@llblab/pi-actors/docs/async-runs.md +18 -2
- package/node_modules/@llblab/pi-actors/docs/composition-transport.md +103 -0
- package/node_modules/@llblab/pi-actors/docs/coordinator-delivery.md +204 -4
- package/node_modules/@llblab/pi-actors/docs/inspection.md +38 -2
- package/node_modules/@llblab/pi-actors/docs/output-projection-map.md +130 -0
- package/node_modules/@llblab/pi-actors/docs/releasing.md +19 -2
- package/node_modules/@llblab/pi-actors/docs/run-supervision.md +1622 -0
- package/node_modules/@llblab/pi-actors/docs/template-recipes.md +4 -0
- package/node_modules/@llblab/pi-actors/docs/windows-process-observation.md +248 -0
- package/node_modules/@llblab/pi-actors/index.ts +1 -1
- package/node_modules/@llblab/pi-actors/lib/async-runs.ts +164 -73
- package/node_modules/@llblab/pi-actors/lib/automatic-review-runtime.ts +4 -2
- package/node_modules/@llblab/pi-actors/lib/command-templates.ts +287 -138
- package/node_modules/@llblab/pi-actors/lib/execution-files.ts +118 -0
- package/node_modules/@llblab/pi-actors/lib/execution-output.ts +4 -4
- package/node_modules/@llblab/pi-actors/lib/execution-sessions.ts +57 -27
- package/node_modules/@llblab/pi-actors/lib/execution.ts +8 -0
- package/node_modules/@llblab/pi-actors/lib/extension-runtime.ts +102 -12
- package/node_modules/@llblab/pi-actors/lib/file-state.ts +16 -2
- package/node_modules/@llblab/pi-actors/lib/inspector-command.ts +2 -2
- package/node_modules/@llblab/pi-actors/lib/inspector-overlay.ts +524 -261
- package/node_modules/@llblab/pi-actors/lib/inspector.ts +101 -130
- package/node_modules/@llblab/pi-actors/lib/limits.ts +1 -0
- package/node_modules/@llblab/pi-actors/lib/observability.ts +235 -116
- package/node_modules/@llblab/pi-actors/lib/pi.ts +59 -11
- package/node_modules/@llblab/pi-actors/lib/recipe-projection.ts +232 -0
- package/node_modules/@llblab/pi-actors/lib/recipes-context.ts +27 -6
- package/node_modules/@llblab/pi-actors/lib/registry.ts +266 -36
- package/node_modules/@llblab/pi-actors/lib/run-delivery.ts +1737 -49
- package/node_modules/@llblab/pi-actors/lib/run-supervision.ts +411 -0
- package/node_modules/@llblab/pi-actors/lib/run-ui-runtime.ts +237 -73
- package/node_modules/@llblab/pi-actors/lib/runs-artifacts.ts +73 -1
- package/node_modules/@llblab/pi-actors/lib/runs-context-exports.ts +1871 -0
- package/node_modules/@llblab/pi-actors/lib/runs-context-index.ts +372 -0
- package/node_modules/@llblab/pi-actors/lib/runs-control-delivery.ts +36 -18
- package/node_modules/@llblab/pi-actors/lib/runs-control.ts +297 -1
- package/node_modules/@llblab/pi-actors/lib/runs-controls.ts +3 -1
- package/node_modules/@llblab/pi-actors/lib/runs-descendant-launches.ts +338 -0
- package/node_modules/@llblab/pi-actors/lib/runs-execution-evidence.ts +302 -0
- package/node_modules/@llblab/pi-actors/lib/runs-index.ts +345 -17
- package/node_modules/@llblab/pi-actors/lib/runs-native-launches.ts +270 -0
- package/node_modules/@llblab/pi-actors/lib/runs-outcomes.ts +377 -0
- package/node_modules/@llblab/pi-actors/lib/runs-ownership.ts +37 -4
- package/node_modules/@llblab/pi-actors/lib/runs-process-windows-mi.ts +113 -0
- package/node_modules/@llblab/pi-actors/lib/runs-process.ts +210 -34
- package/node_modules/@llblab/pi-actors/lib/runs-results.ts +601 -0
- package/node_modules/@llblab/pi-actors/lib/runs-retention.ts +134 -10
- package/node_modules/@llblab/pi-actors/lib/runs-session-exports.ts +406 -0
- package/node_modules/@llblab/pi-actors/lib/runs-snapshot.ts +143 -0
- package/node_modules/@llblab/pi-actors/lib/runs-start.ts +44 -2
- package/node_modules/@llblab/pi-actors/lib/runs-status.ts +252 -10
- package/node_modules/@llblab/pi-actors/lib/runs-supervision.ts +394 -0
- package/node_modules/@llblab/pi-actors/lib/runs-trace.ts +14 -3
- package/node_modules/@llblab/pi-actors/lib/runtime.ts +22 -3
- package/node_modules/@llblab/pi-actors/lib/session-evidence.ts +76 -4
- package/node_modules/@llblab/pi-actors/lib/state-readers.ts +16 -7
- package/node_modules/@llblab/pi-actors/lib/temp.ts +3 -56
- package/node_modules/@llblab/pi-actors/lib/tools-access.ts +13 -0
- package/node_modules/@llblab/pi-actors/lib/tools-inspect.ts +110 -51
- package/node_modules/@llblab/pi-actors/lib/tools-local.ts +37 -24
- package/node_modules/@llblab/pi-actors/lib/tools-message.ts +120 -37
- package/node_modules/@llblab/pi-actors/lib/tools-response.ts +273 -50
- package/node_modules/@llblab/pi-actors/lib/tools-spawn.ts +31 -10
- package/node_modules/@llblab/pi-actors/lib/trace-projection.ts +165 -42
- package/node_modules/@llblab/pi-actors/package.json +10 -6
- package/node_modules/@llblab/pi-actors/scripts/async-runner.mjs +272 -194
- package/node_modules/@llblab/pi-actors/scripts/conformance.mjs +14 -2
- package/node_modules/@llblab/pi-actors/skills/actors/SKILL.md +46 -2
- package/node_modules/@llblab/pi-actors/skills/actors/references/diagnostics.md +40 -0
- package/node_modules/@llblab/pi-actors/skills/actors/references/runs.md +55 -1
- package/node_modules/@llblab/pi-codex-usage/AGENTS.md +2 -2
- package/node_modules/@llblab/pi-codex-usage/CHANGELOG.md +6 -0
- package/node_modules/@llblab/pi-codex-usage/README.md +9 -5
- package/node_modules/@llblab/pi-codex-usage/lib/query.ts +229 -50
- package/node_modules/@llblab/pi-codex-usage/lib/usage.ts +9 -1
- package/node_modules/@llblab/pi-codex-usage/package.json +1 -1
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +224 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +118 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +980 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/package.json +3 -3
- package/node_modules/@llblab/pi-actors/banner.jpg +0 -0
- package/node_modules/@llblab/pi-actors/dist/lib/inspector-actions.d.ts +0 -16
- package/node_modules/@llblab/pi-actors/dist/lib/inspector-actions.js +0 -57
- package/node_modules/@llblab/pi-actors/lib/inspector-actions.ts +0 -79
|
@@ -1,16 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Coordinator delivery persistence.
|
|
3
|
-
* Zones: owner-scoped completion batches, delivery phase fencing, bounded receipts
|
|
4
|
-
* Owns
|
|
3
|
+
* Zones: owner-scoped completion streams/batches, delivery phase fencing, bounded receipts
|
|
4
|
+
* Owns atomic stream allocations, immutable member snapshots and bounded projections; excludes logical-session admission, Run discovery, primary authorization and Pi scheduling.
|
|
5
5
|
*/
|
|
6
|
+
import { type RunDirectoryNavigation } from "./runs-index.ts";
|
|
7
|
+
import { type RunCompletionText, type RunResultDiagnosticsReference, type RunResultDiagnosticPacketExcerpt, type RunPrimaryTextBinding, type RunArtifactInventoryReference } from "./runs-outcomes.ts";
|
|
6
8
|
export type RunCompletionDeliveryStatus = "done" | "failed" | "killed" | "exited";
|
|
7
9
|
export type RunDeliveryPhase = "pending" | "queued" | "presented";
|
|
10
|
+
export type RunCompletionIndexRange = Readonly<{
|
|
11
|
+
state: "available";
|
|
12
|
+
indices: readonly number[];
|
|
13
|
+
next_index: number;
|
|
14
|
+
}> | Readonly<{
|
|
15
|
+
state: "unavailable";
|
|
16
|
+
reason: "range_unavailable";
|
|
17
|
+
next_index: number;
|
|
18
|
+
}>;
|
|
19
|
+
export type RunCompletionNumbering = Readonly<{
|
|
20
|
+
kind: "stream";
|
|
21
|
+
session_id: string;
|
|
22
|
+
stream_id: string;
|
|
23
|
+
first_index: number;
|
|
24
|
+
member_order: readonly number[];
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
kind: "unavailable";
|
|
27
|
+
session_id: string;
|
|
28
|
+
stream_id?: string;
|
|
29
|
+
reason: "counter_unavailable" | "range_unavailable" | "stream_state_unavailable";
|
|
30
|
+
member_order: readonly number[];
|
|
31
|
+
}>;
|
|
8
32
|
export interface RunCompletionBatchMember {
|
|
9
33
|
artifacts?: Record<string, string>;
|
|
34
|
+
artifact_inventory?: Readonly<RunArtifactInventoryReference> | null;
|
|
35
|
+
artifact_inventory_unavailable?: string;
|
|
36
|
+
result_diagnostics?: Readonly<RunResultDiagnosticsReference> | null;
|
|
37
|
+
result_diagnostics_unavailable?: string;
|
|
38
|
+
diagnostic_excerpt?: RunResultDiagnosticPacketExcerpt;
|
|
10
39
|
parent_run?: string;
|
|
11
40
|
parent_run_instance_id?: string;
|
|
12
41
|
parent_state_dir?: string;
|
|
13
42
|
output?: string;
|
|
43
|
+
primary_text?: Readonly<RunPrimaryTextBinding>;
|
|
44
|
+
completion_text?: Readonly<RunCompletionText>;
|
|
14
45
|
run: string;
|
|
15
46
|
run_instance_id: string;
|
|
16
47
|
state_dir: string;
|
|
@@ -18,13 +49,38 @@ export interface RunCompletionBatchMember {
|
|
|
18
49
|
summary: string;
|
|
19
50
|
terminal_at: string;
|
|
20
51
|
}
|
|
52
|
+
export interface RunCompletionInventorySource {
|
|
53
|
+
readonly path: string;
|
|
54
|
+
readonly sha256: string;
|
|
55
|
+
readonly bytes_total: number;
|
|
56
|
+
readonly members_total: number;
|
|
57
|
+
}
|
|
58
|
+
export interface RunCompletionFileNavigation {
|
|
59
|
+
readonly member_index: number;
|
|
60
|
+
readonly locations: Readonly<RunDirectoryNavigation>;
|
|
61
|
+
}
|
|
21
62
|
export interface RunCompletionBatch {
|
|
22
63
|
attempts?: number;
|
|
64
|
+
/** AX capture marker; numbered spellings/absence are retained codecs, never new-capture choices. */
|
|
65
|
+
readonly presentation_format?: "ax_records" | "ax_records_v1" | "ax_records_v2" | "ax_records_v3";
|
|
66
|
+
/** Retained singleton capture; absence preserves older indexed bytes. Never a new-capture selector. */
|
|
67
|
+
readonly single_result?: true;
|
|
68
|
+
/** Captured record-list shape; no public format/version choice or source authority. */
|
|
69
|
+
readonly result_layout?: "records" | "run_headers" | "headings" | "headings_flat_omissions" | "headings_outcomes" | "headings_shared_results" | "headings_shared_kinds" | "frontmatter_v1" | "frontmatter_v2" | "completion_yaml_core_v1";
|
|
70
|
+
/** Immutable scope/order/range data, not a caller-selected format or allocation authority. */
|
|
71
|
+
readonly numbering?: RunCompletionNumbering;
|
|
72
|
+
/** Formatting version/data only; no recipient ownership, read or publication capability. */
|
|
73
|
+
readonly navigation_handoff?: "current_session_request" | "captured_file_locations";
|
|
74
|
+
/** Formatting only; omission counts remain the already-admitted source facts. */
|
|
75
|
+
readonly excerpt_format?: "bracketed_omissions_v1";
|
|
76
|
+
readonly file_navigation?: readonly Readonly<RunCompletionFileNavigation>[];
|
|
77
|
+
readonly text_budget?: number;
|
|
78
|
+
readonly inventory_source?: Readonly<RunCompletionInventorySource>;
|
|
23
79
|
batch_id: string;
|
|
24
80
|
created_at: string;
|
|
25
81
|
last_error?: string;
|
|
26
82
|
last_failed_at?: string;
|
|
27
|
-
members: RunCompletionBatchMember[];
|
|
83
|
+
members: readonly RunCompletionBatchMember[];
|
|
28
84
|
phase: RunDeliveryPhase;
|
|
29
85
|
presented_at?: string;
|
|
30
86
|
queued_at?: string;
|
|
@@ -52,7 +108,43 @@ export interface RunDeliveryReceipt {
|
|
|
52
108
|
kind: "completion_batch" | "urgent_steer";
|
|
53
109
|
presented_at: string;
|
|
54
110
|
}
|
|
111
|
+
/** A requested fresh target only; requesting it does not activate a stream. */
|
|
112
|
+
export interface RunCompletionStreamIntent {
|
|
113
|
+
readonly pending_stream_id: string;
|
|
114
|
+
}
|
|
115
|
+
export type RunCompletionStreamCounter = Readonly<{
|
|
116
|
+
state: "available";
|
|
117
|
+
next_index: number;
|
|
118
|
+
}> | Readonly<{
|
|
119
|
+
state: "unavailable";
|
|
120
|
+
}>;
|
|
121
|
+
export interface RunCompletionStreamActive {
|
|
122
|
+
readonly stream_id: string;
|
|
123
|
+
readonly counter: RunCompletionStreamCounter;
|
|
124
|
+
}
|
|
125
|
+
export type RunCompletionStreamState = Readonly<RunCompletionStreamIntent & {
|
|
126
|
+
active?: never;
|
|
127
|
+
}> | Readonly<{
|
|
128
|
+
active: Readonly<RunCompletionStreamActive>;
|
|
129
|
+
pending_stream_id?: string;
|
|
130
|
+
}>;
|
|
131
|
+
export type RunCompletionStreamStatus = Readonly<{
|
|
132
|
+
state: "unavailable";
|
|
133
|
+
reason: "stream_state_unavailable";
|
|
134
|
+
}> | Readonly<{
|
|
135
|
+
state: "pending";
|
|
136
|
+
session_id: string;
|
|
137
|
+
pending_stream_id: string;
|
|
138
|
+
active?: Readonly<RunCompletionStreamActive>;
|
|
139
|
+
blocking_batch_id?: string;
|
|
140
|
+
}> | Readonly<{
|
|
141
|
+
state: "active";
|
|
142
|
+
session_id: string;
|
|
143
|
+
active: Readonly<RunCompletionStreamActive>;
|
|
144
|
+
blocking_batch_id?: string;
|
|
145
|
+
}>;
|
|
55
146
|
export interface RunDeliveryJournal {
|
|
147
|
+
completion_stream?: RunCompletionStreamState;
|
|
56
148
|
completion_batch?: RunCompletionBatch;
|
|
57
149
|
owner_id: string;
|
|
58
150
|
receipts: RunDeliveryReceipt[];
|
|
@@ -61,7 +153,8 @@ export interface RunDeliveryJournal {
|
|
|
61
153
|
}
|
|
62
154
|
export interface AdmitRunCompletionBatchInput {
|
|
63
155
|
batchId?: string;
|
|
64
|
-
|
|
156
|
+
fileNavigation?: readonly Readonly<RunCompletionFileNavigation>[];
|
|
157
|
+
members: readonly RunCompletionBatchMember[];
|
|
65
158
|
now?: Date;
|
|
66
159
|
ownerId: string;
|
|
67
160
|
tempDir: string;
|
|
@@ -92,9 +185,22 @@ export interface RunSteerTransitionInput {
|
|
|
92
185
|
steerId: string;
|
|
93
186
|
tempDir: string;
|
|
94
187
|
}
|
|
188
|
+
/** Pure whole-capture arithmetic, not a reservation; commit with the packet under its owner lock. */
|
|
189
|
+
export declare function projectRunCompletionIndexRange(nextIndex: number, memberCount: number): RunCompletionIndexRange;
|
|
95
190
|
export declare function getRunDeliveryJournalPath(tempDir: string, ownerId: string): string;
|
|
96
191
|
export declare function readRunDeliveryJournal(tempDir: string, ownerId: string): RunDeliveryJournal;
|
|
192
|
+
/** Read-only persisted facts, not proof of non-connection or current SDK ownership. */
|
|
193
|
+
export declare function readRunCompletionStreamStatus(tempDir: string, ownerId: string): RunCompletionStreamStatus;
|
|
194
|
+
/** Kernel-only explicit request; fresh-session bootstrap and public command admission remain separate. */
|
|
195
|
+
export declare function requestRunCompletionStream(input: {
|
|
196
|
+
tempDir: string;
|
|
197
|
+
ownerId: string;
|
|
198
|
+
}): Readonly<RunCompletionStreamIntent>;
|
|
97
199
|
export declare function admitRunCompletionBatch(input: AdmitRunCompletionBatchInput): RunCompletionBatch;
|
|
200
|
+
/** Kernel-only opt-in; ordinary Pi capture stays fenced until session/lifecycle integration is admitted. */
|
|
201
|
+
export declare function captureRunCompletionStreamBatch(input: AdmitRunCompletionBatchInput): RunCompletionBatch;
|
|
202
|
+
/** Private ordinary candidate composition; stream capture retains its separately gated codec. */
|
|
203
|
+
export declare function captureRunCompletionYamlCandidateBatch(input: AdmitRunCompletionBatchInput): RunCompletionBatch;
|
|
98
204
|
export declare function markRunCompletionBatchQueued(input: RunDeliveryTransitionInput): boolean;
|
|
99
205
|
export declare function resetRunCompletionBatchPending(input: Omit<RunDeliveryTransitionInput, "now">): boolean;
|
|
100
206
|
export declare function recordRunCompletionBatchDeliveryFailure(input: RunDeliveryTransitionInput & {
|
|
@@ -115,5 +221,107 @@ export declare function recordRunSteerDeliveryFailure(input: RunSteerTransitionI
|
|
|
115
221
|
}): boolean;
|
|
116
222
|
export declare function markRunSteerPresented(input: RunSteerTransitionInput): boolean;
|
|
117
223
|
export declare function finalizeRunSteer(input: Omit<RunSteerTransitionInput, "now">): boolean;
|
|
118
|
-
/**
|
|
224
|
+
/** Captured membership ordering only; never native lineage or a complete descendant tree. */
|
|
225
|
+
export declare function orderRunCompletionMembers(members: readonly RunCompletionBatchMember[], prioritizeFailed?: boolean): RunCompletionBatchMember[];
|
|
226
|
+
export interface RunCompletionPresentation {
|
|
227
|
+
readonly format: "ax_records" | "ax_records_v3" | "completion_frontmatter_v1";
|
|
228
|
+
readonly blocks?: readonly CompletionBlock[];
|
|
229
|
+
readonly content_sha256: string;
|
|
230
|
+
/** UTF-16 offsets in the exact content, not UTF-8 byte or source excerpt ranges. */
|
|
231
|
+
readonly compact_ranges: readonly (readonly [number, number])[];
|
|
232
|
+
}
|
|
233
|
+
/** Compiler-bound correlation data, not authentication or permission. Body equality cannot identify an epoch. */
|
|
234
|
+
export declare function readRunCompletionRecordMarker(content: string): {
|
|
235
|
+
batchId: string;
|
|
236
|
+
start: number;
|
|
237
|
+
single: boolean;
|
|
238
|
+
headers?: true;
|
|
239
|
+
} | undefined;
|
|
240
|
+
export type CompletionBlock = readonly [kind: "header" | "body" | "marker" | "service", start: number, end: number];
|
|
241
|
+
type CompletionYamlProjectionReason = "invalid_snapshot" | "unsupported_source_class" | "unsupported_selected_data" | "overbudget" | "compatibility_refused";
|
|
242
|
+
/** Nondefault pure projection; neither a newly admitted Batch nor a rendering/acceptance grant. */
|
|
243
|
+
export declare function projectRunCompletionYamlPrototype(batch: unknown): {
|
|
244
|
+
state: "available";
|
|
245
|
+
content: string;
|
|
246
|
+
presentation: {
|
|
247
|
+
format: "completion_yaml_core_v1";
|
|
248
|
+
content_sha256: string;
|
|
249
|
+
};
|
|
250
|
+
membersShown: number;
|
|
251
|
+
textBudget: number;
|
|
252
|
+
} | {
|
|
253
|
+
state: "unavailable";
|
|
254
|
+
reason: CompletionYamlProjectionReason;
|
|
255
|
+
};
|
|
256
|
+
/** Single full model content plus compiler-owned UI offsets; no source reads or saved-packet mutation. */
|
|
257
|
+
export declare function projectRunCompletionBatchPresentation(batch: RunCompletionBatch): {
|
|
258
|
+
content: string;
|
|
259
|
+
presentation?: RunCompletionPresentation | {
|
|
260
|
+
format: "completion_yaml_core_v1";
|
|
261
|
+
content_sha256: string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
export interface RunCompletionPresentationView {
|
|
265
|
+
text: string;
|
|
266
|
+
compact: boolean;
|
|
267
|
+
single?: true;
|
|
268
|
+
records?: true;
|
|
269
|
+
blocks?: readonly CompletionBlock[];
|
|
270
|
+
yaml?: true;
|
|
271
|
+
segments?: readonly Readonly<{
|
|
272
|
+
kind: "header" | "body" | "marker" | "service" | "separator";
|
|
273
|
+
text: string;
|
|
274
|
+
}>[];
|
|
275
|
+
}
|
|
276
|
+
/** Invalid/missing hints reveal all content; old captures keep their existing host renderer. */
|
|
277
|
+
export declare function readRunCompletionPresentation(content: string, value: unknown): RunCompletionPresentationView | undefined;
|
|
278
|
+
/** Format one immutable batch for a model-bound custom message, without source reads or phase changes. */
|
|
119
279
|
export declare function formatRunCompletionBatchMessage(batch: RunCompletionBatch): string;
|
|
280
|
+
export type CompletionYamlData = null | boolean | number | string | CompletionYamlData[] | {
|
|
281
|
+
[key: string]: CompletionYamlData;
|
|
282
|
+
};
|
|
283
|
+
export type CompletionYamlPart = {
|
|
284
|
+
body: string;
|
|
285
|
+
} | {
|
|
286
|
+
marker: string;
|
|
287
|
+
};
|
|
288
|
+
export interface CompletionYamlPacket {
|
|
289
|
+
batchId: string;
|
|
290
|
+
records: {
|
|
291
|
+
metadata: Record<string, CompletionYamlData>;
|
|
292
|
+
parts: CompletionYamlPart[];
|
|
293
|
+
}[];
|
|
294
|
+
service?: Record<string, CompletionYamlData>;
|
|
295
|
+
}
|
|
296
|
+
export interface CompletionYamlBlock {
|
|
297
|
+
kind: "header" | "body" | "marker" | "separator";
|
|
298
|
+
start: number;
|
|
299
|
+
end: number;
|
|
300
|
+
record: number;
|
|
301
|
+
part?: number;
|
|
302
|
+
}
|
|
303
|
+
type CompletionYamlUnavailable = {
|
|
304
|
+
state: "unavailable";
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* Unadmitted data-only prototype, not source/privacy/identity/acceptance authority.
|
|
308
|
+
* Grammar: canonical YAML headers, no physical blank lines. Bare headers end LF;
|
|
309
|
+
* another record adds LF. Body headers are --- LF / YAML / --- LF then raw parts;
|
|
310
|
+
* another record adds LF LF, independently of authored trailing CR/LF. Parts are
|
|
311
|
+
* ordered single-key body/marker UTF-16 lengths, never offsets. Only the first
|
|
312
|
+
* _completion carries codec/batch_id/service. Absent body is DTO parts:[] (no
|
|
313
|
+
* wire parts); selected empty body is body:0 and has a closed header. Zero rows
|
|
314
|
+
* is one bare service-only header requiring nonempty selected service facts.
|
|
315
|
+
* No clipping, fair fitting, source reads, admission or production callers.
|
|
316
|
+
*/
|
|
317
|
+
export declare function encodeCompletionYamlCarrier(input: unknown): {
|
|
318
|
+
state: "available";
|
|
319
|
+
text: string;
|
|
320
|
+
} | CompletionYamlUnavailable;
|
|
321
|
+
/** Strict whole-carrier decoder. Derived ranges are consistency data, never authenticity. */
|
|
322
|
+
export declare function readCompletionYamlCarrier(input: unknown): {
|
|
323
|
+
state: "available";
|
|
324
|
+
packet: CompletionYamlPacket;
|
|
325
|
+
blocks: CompletionYamlBlock[];
|
|
326
|
+
} | CompletionYamlUnavailable;
|
|
327
|
+
export {};
|