@agentic-workspace/workspace-cli 1.20.0 → 1.22.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/package.json +1 -9
- package/src/agent-yaml.mjs +2 -4
- package/src/native/_transport.mjs +12 -4
- package/src/native/agent-view.d.mts +2 -4
- package/src/native/agent-view.mjs +15 -8
- package/src/native/bin/darwin-arm64/agentic-workspace +0 -0
- package/src/native/bin/darwin-arm64/agentic-workspace-core +0 -0
- package/src/native/bin/darwin-arm64/artifact.json +1 -1
- package/src/native/bin/darwin-x64/agentic-workspace +0 -0
- package/src/native/bin/darwin-x64/agentic-workspace-core +0 -0
- package/src/native/bin/darwin-x64/artifact.json +1 -1
- package/src/native/bin/linux-arm64/agentic-workspace +0 -0
- package/src/native/bin/linux-arm64/agentic-workspace-core +0 -0
- package/src/native/bin/linux-arm64/artifact.json +1 -1
- package/src/native/bin/linux-x64/agentic-workspace +0 -0
- package/src/native/bin/linux-x64/agentic-workspace-core +0 -0
- package/src/native/bin/linux-x64/artifact.json +1 -1
- package/src/native/bin/win32-arm64/agentic-workspace-core.exe +0 -0
- package/src/native/bin/win32-arm64/agentic-workspace.exe +0 -0
- package/src/native/bin/win32-arm64/artifact.json +1 -1
- package/src/native/bin/win32-x64/agentic-workspace-core.exe +0 -0
- package/src/native/bin/win32-x64/agentic-workspace.exe +0 -0
- package/src/native/bin/win32-x64/artifact.json +1 -1
- package/src/native/operating.d.mts +8 -1
- package/src/native/_agent-yaml.mjs +0 -117
package/package.json
CHANGED
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=20"
|
|
15
15
|
},
|
|
16
|
-
"peerDependencies": {
|
|
17
|
-
"yaml": "2.9.1"
|
|
18
|
-
},
|
|
19
|
-
"peerDependenciesMeta": {
|
|
20
|
-
"yaml": {
|
|
21
|
-
"optional": true
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
16
|
"private": false,
|
|
25
17
|
"publishConfig": {
|
|
26
18
|
"access": "public"
|
|
@@ -67,7 +59,7 @@
|
|
|
67
59
|
"support": "declared release platforms"
|
|
68
60
|
}
|
|
69
61
|
},
|
|
70
|
-
"version": "1.
|
|
62
|
+
"version": "1.22.0",
|
|
71
63
|
"description": "Persistent operating context and dynamic control for coding agents.",
|
|
72
64
|
"os": [
|
|
73
65
|
"linux",
|
package/src/agent-yaml.mjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { readFileSync } from 'node:fs'
|
|
3
3
|
import { renderAgentYaml } from './native/agent-view.mjs'
|
|
4
|
-
import { loadYaml } from './native/_agent-yaml.mjs'
|
|
5
4
|
|
|
6
5
|
if (process.argv[2] === '--help') {
|
|
7
|
-
console.log('Read one native AW JSON response on stdin and print anchored YAML. Requires Node 22.12
|
|
6
|
+
console.log('Read one native AW JSON response on stdin and print anchored YAML. Requires Node 22.12+.')
|
|
8
7
|
} else {
|
|
9
8
|
try {
|
|
10
9
|
if (process.argv.length !== 2) throw new TypeError('Supply one JSON response on stdin.')
|
|
11
|
-
|
|
12
|
-
process.stdout.write(renderAgentYaml(readFileSync(0, 'utf8'), yaml))
|
|
10
|
+
process.stdout.write(renderAgentYaml(readFileSync(0, 'utf8')))
|
|
13
11
|
} catch (error) {
|
|
14
12
|
console.error(error.message)
|
|
15
13
|
process.exitCode = 2
|
|
@@ -50,9 +50,9 @@ export function runNativeCli(args) {
|
|
|
50
50
|
return result.status ?? 1;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
const result = spawnSync(toNamespacedPath(coreBinary()),
|
|
55
|
-
input
|
|
53
|
+
function runCore(args, input) {
|
|
54
|
+
const result = spawnSync(toNamespacedPath(coreBinary()), args, {
|
|
55
|
+
input,
|
|
56
56
|
encoding: "utf8",
|
|
57
57
|
windowsHide: true,
|
|
58
58
|
// Full owner responses can exceed Node's default 1 MiB capture limit.
|
|
@@ -65,5 +65,13 @@ export function request(payload) {
|
|
|
65
65
|
try { message = JSON.parse(result.stderr).error.message; } catch {}
|
|
66
66
|
throw new Error(message);
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return result.stdout;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function request(payload) {
|
|
72
|
+
return JSON.parse(runCore([], JSON.stringify(payload)));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function renderYaml(json) {
|
|
76
|
+
return runCore(["--render-yaml"], json);
|
|
69
77
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** Optional YAML 1.2 renderer. Pass the namespace imported from yaml@2.9.1. */
|
|
2
|
-
type YamlLibrary = Pick<typeof import("yaml"), "Document" | "isMap" | "isSeq" | "parseDocument">;
|
|
3
1
|
export type SelectionRole = "detail" | "answer" | "action";
|
|
4
2
|
export interface AgentView {
|
|
5
3
|
readonly yaml: string;
|
|
@@ -8,8 +6,8 @@ export interface AgentView {
|
|
|
8
6
|
/** Reject expired, unissued and wrong-role selections before dispatch. */
|
|
9
7
|
resolve(handle: string, role: SelectionRole): string;
|
|
10
8
|
}
|
|
11
|
-
export function renderAgentYaml(raw: string,
|
|
12
|
-
export function createAgentSession(
|
|
9
|
+
export function renderAgentYaml(raw: string, legacyYamlLibrary?: unknown): string;
|
|
10
|
+
export function createAgentSession(legacyYamlLibrary?: unknown): {
|
|
13
11
|
present(raw: string): AgentView;
|
|
14
12
|
clear(): void;
|
|
15
13
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { randomBytes } from 'node:crypto'
|
|
2
|
-
import {
|
|
2
|
+
import { renderYaml } from './_transport.mjs'
|
|
3
3
|
|
|
4
4
|
const digest = /sha256:[0-9a-f]{64}(?![0-9a-f])/g
|
|
5
5
|
const idString = /^[A-Za-z0-9_:./#-]+$/
|
|
6
|
-
const isRecord = value => value !== null && typeof value === 'object' && !Array.isArray(value)
|
|
6
|
+
const isRecord = value => value !== null && typeof value === 'object' && !Array.isArray(value) && !JSON.isRawJSON(value)
|
|
7
7
|
const rows = value => Array.isArray(value) ? value : []
|
|
8
8
|
|
|
9
9
|
// The native response supplies the authoritative selectors. Owner material,
|
|
@@ -57,7 +57,14 @@ function unwrap(native) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function modelView(raw) {
|
|
60
|
-
|
|
60
|
+
if (typeof raw !== 'string') throw new TypeError('Expected the original AW JSON text')
|
|
61
|
+
if (typeof JSON.rawJSON !== 'function') throw new TypeError('The YAML view requires Node 22.12 or later')
|
|
62
|
+
// Keep exact native number lexemes through host-only carriage and handle selection.
|
|
63
|
+
const view = unwrap(JSON.parse(raw, (_key, value, context) => {
|
|
64
|
+
if (typeof value !== 'number') return value
|
|
65
|
+
if (!Number.isFinite(value)) throw new RangeError('Number outside AW numeric range')
|
|
66
|
+
return JSON.rawJSON(context.source)
|
|
67
|
+
}))
|
|
61
68
|
if (isRecord(view?.effect_outcome) && view.continuation?.status === 'current' && isRecord(view.continuation.result)) {
|
|
62
69
|
try {
|
|
63
70
|
view.continuation.result = unwrap(view.continuation.result)
|
|
@@ -70,11 +77,11 @@ function modelView(raw) {
|
|
|
70
77
|
return view
|
|
71
78
|
}
|
|
72
79
|
|
|
73
|
-
export function renderAgentYaml(raw
|
|
74
|
-
return
|
|
80
|
+
export function renderAgentYaml(raw) {
|
|
81
|
+
return renderYaml(JSON.stringify(modelView(raw)))
|
|
75
82
|
}
|
|
76
83
|
|
|
77
|
-
export function createAgentSession(
|
|
84
|
+
export function createAgentSession() {
|
|
78
85
|
let active
|
|
79
86
|
return {
|
|
80
87
|
clear() { active = undefined },
|
|
@@ -82,7 +89,7 @@ export function createAgentSession(yamlLibrary) {
|
|
|
82
89
|
// Invalidate even if the successor is malformed or rendering fails.
|
|
83
90
|
active = undefined
|
|
84
91
|
const view = modelView(raw)
|
|
85
|
-
const literal =
|
|
92
|
+
const literal = JSON.stringify(view)
|
|
86
93
|
let prefix
|
|
87
94
|
do { prefix = 'h_' + randomBytes(9).toString('base64url') + '.' } while (literal.includes(prefix))
|
|
88
95
|
const symbols = new Map()
|
|
@@ -105,7 +112,7 @@ export function createAgentSession(yamlLibrary) {
|
|
|
105
112
|
if (isRecord(view?.effect_outcome) && view.continuation?.status === 'current') {
|
|
106
113
|
project(view.continuation.result, shorten, value => byValue.get(value))
|
|
107
114
|
}
|
|
108
|
-
const yaml =
|
|
115
|
+
const yaml = renderYaml(JSON.stringify(view))
|
|
109
116
|
active = byDisplay
|
|
110
117
|
function lookup(handle, role) {
|
|
111
118
|
const entry = byDisplay.get(handle)
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.
|
|
1
|
+
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.22.0", "platform": "darwin", "arch": "arm64", "sha256": "e60b0dbe51cb4ff3d38a9e51de1639a46faac595e6c1d81677cbb73cfdaf138e", "cli_sha256": "c921976e4a4c6cd68e3a6b4f42d2b03a589004459c284d5cbc13e04ee499b0bc", "source_head": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "source_dirty": true, "source_staging": {"source_commit": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "version": "1.22.0", "tag": "v1.22.0", "boundary": {"source_commit": "3cbe658ffa2eb26088cbbeb173113d0faec7032b", "tag": "v1.21.0"}, "changesets": [{"blob": "a18af8a8d22a640938d77c28a2e179f37d880083", "bump": "patch", "path": ".release/changes/3976-windows-proof-mode-budget.toml", "sha256": "ce8edd9e5b10bbd22b27b9e26a48f03d7cbba594e903f0e96166837b80472e8a", "summary": "Allow larger Windows proof snapshots within bounded Git index-mode observation and explain how to recover when that budget is exhausted."}, {"blob": "c0a7b85e402818c932d8da36cb61938beceb66eb", "bump": "minor", "path": ".release/changes/3977-manual-review-handoff.toml", "sha256": "887924b036abe442593cf7a296fca39f74f69daa1ecb04ef3ed19f3ad92eeb84", "summary": "Show a maintainer review handoff and retain reported external outcomes against the exact checkout revision without granting review authority."}, {"blob": "0e49107bf99fde086d4c660b9681926dd933323f", "bump": "minor", "path": ".release/changes/3979-reconciliation-discovery-scope.toml", "sha256": "3a2dc17ca4361f28acb6bd6a0844d04be9757965c8e6f270fc3ce08139b2f4b5", "summary": "Allow admitted source reconciliation rules to exclude disposable output from inferred discovery while retaining tracked and explicit source inputs."}], "transform": [{"path": ".agentic-workspace/payload-provenance.json", "sha256": "4d3c69ee1baf042d360583acaa6fdc47dc1bd306334503ea565d88bf4a3959bb"}, {"path": "Cargo.lock", "sha256": "19655241248cdcd719275d66c9d8f0a95433df400ef0d1bc41e4d31323f9b693"}, {"path": "pyproject.toml", "sha256": "e3a52583a895edb4452d343122aa0ca9fb8c04c1474019c2acc59463280d4a24"}, {"path": "src/cli/rust/Cargo.toml", "sha256": "b5f938d328557469a754972ed3574597ebe262226feee0dde3b7d12f8e08f1b1"}, {"path": "src/core/Cargo.toml", "sha256": "70c52ded71b3eee1ddd9a5628f05e627e4f5777a3692427b7aaaf61305f142cb"}, {"path": "tests/fixtures/native-independent-owner/Cargo.lock", "sha256": "2dd2e9d25c5a065dc69041aef96ed6a53169df692f11f5805816b0258e2faffc"}, {"path": "uv.lock", "sha256": "9ff1014a4c647fbac0d4d10f4d717c93906c7d488c6f8a2a109d5a2167718a7a"}]}, "profile": "release", "rust_host": "aarch64-apple-darwin", "rust_target": "aarch64-apple-darwin", "rust_toolchain": {"macos_deployment_target": "14.0", "channel": "1.98.1", "declaration_sha256": "887f9be066a15585a2c583578e84b0fcb541126d81546276bad3d2ff00d61167", "release": "1.98.1", "commit_hash": "48a229ceaefd4985c50990b14116b6d856af0985", "commit_date": "2026-09-01", "host": "aarch64-apple-darwin", "llvm_version": "22.1.8"}}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.
|
|
1
|
+
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.22.0", "platform": "darwin", "arch": "x64", "sha256": "5abebd4662316468b6b1139f9408221df9f63fdb1a965b1292348b29e03b5a85", "cli_sha256": "480772537aac30569496c084b78e1d25d75f129d2c5fcca29df1a294f545122b", "source_head": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "source_dirty": true, "source_staging": {"source_commit": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "version": "1.22.0", "tag": "v1.22.0", "boundary": {"source_commit": "3cbe658ffa2eb26088cbbeb173113d0faec7032b", "tag": "v1.21.0"}, "changesets": [{"blob": "a18af8a8d22a640938d77c28a2e179f37d880083", "bump": "patch", "path": ".release/changes/3976-windows-proof-mode-budget.toml", "sha256": "ce8edd9e5b10bbd22b27b9e26a48f03d7cbba594e903f0e96166837b80472e8a", "summary": "Allow larger Windows proof snapshots within bounded Git index-mode observation and explain how to recover when that budget is exhausted."}, {"blob": "c0a7b85e402818c932d8da36cb61938beceb66eb", "bump": "minor", "path": ".release/changes/3977-manual-review-handoff.toml", "sha256": "887924b036abe442593cf7a296fca39f74f69daa1ecb04ef3ed19f3ad92eeb84", "summary": "Show a maintainer review handoff and retain reported external outcomes against the exact checkout revision without granting review authority."}, {"blob": "0e49107bf99fde086d4c660b9681926dd933323f", "bump": "minor", "path": ".release/changes/3979-reconciliation-discovery-scope.toml", "sha256": "3a2dc17ca4361f28acb6bd6a0844d04be9757965c8e6f270fc3ce08139b2f4b5", "summary": "Allow admitted source reconciliation rules to exclude disposable output from inferred discovery while retaining tracked and explicit source inputs."}], "transform": [{"path": ".agentic-workspace/payload-provenance.json", "sha256": "4d3c69ee1baf042d360583acaa6fdc47dc1bd306334503ea565d88bf4a3959bb"}, {"path": "Cargo.lock", "sha256": "19655241248cdcd719275d66c9d8f0a95433df400ef0d1bc41e4d31323f9b693"}, {"path": "pyproject.toml", "sha256": "e3a52583a895edb4452d343122aa0ca9fb8c04c1474019c2acc59463280d4a24"}, {"path": "src/cli/rust/Cargo.toml", "sha256": "b5f938d328557469a754972ed3574597ebe262226feee0dde3b7d12f8e08f1b1"}, {"path": "src/core/Cargo.toml", "sha256": "70c52ded71b3eee1ddd9a5628f05e627e4f5777a3692427b7aaaf61305f142cb"}, {"path": "tests/fixtures/native-independent-owner/Cargo.lock", "sha256": "2dd2e9d25c5a065dc69041aef96ed6a53169df692f11f5805816b0258e2faffc"}, {"path": "uv.lock", "sha256": "9ff1014a4c647fbac0d4d10f4d717c93906c7d488c6f8a2a109d5a2167718a7a"}]}, "profile": "release", "rust_host": "x86_64-apple-darwin", "rust_target": "x86_64-apple-darwin", "rust_toolchain": {"macos_deployment_target": "15.0", "channel": "1.98.1", "declaration_sha256": "887f9be066a15585a2c583578e84b0fcb541126d81546276bad3d2ff00d61167", "release": "1.98.1", "commit_hash": "48a229ceaefd4985c50990b14116b6d856af0985", "commit_date": "2026-09-01", "host": "x86_64-apple-darwin", "llvm_version": "22.1.8"}}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.
|
|
1
|
+
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.22.0", "platform": "linux", "arch": "arm64", "sha256": "2bbdd9de9fa29cfded7df4aa8f36812bb004e30bfddbc9791c3495eda4b7bd61", "cli_sha256": "270c3d2605d7bca6dcb70f01e0d58c2176294d3bcac2edf2a1babccac3521b8a", "source_head": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "source_dirty": true, "source_staging": {"source_commit": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "version": "1.22.0", "tag": "v1.22.0", "boundary": {"source_commit": "3cbe658ffa2eb26088cbbeb173113d0faec7032b", "tag": "v1.21.0"}, "changesets": [{"blob": "a18af8a8d22a640938d77c28a2e179f37d880083", "bump": "patch", "path": ".release/changes/3976-windows-proof-mode-budget.toml", "sha256": "ce8edd9e5b10bbd22b27b9e26a48f03d7cbba594e903f0e96166837b80472e8a", "summary": "Allow larger Windows proof snapshots within bounded Git index-mode observation and explain how to recover when that budget is exhausted."}, {"blob": "c0a7b85e402818c932d8da36cb61938beceb66eb", "bump": "minor", "path": ".release/changes/3977-manual-review-handoff.toml", "sha256": "887924b036abe442593cf7a296fca39f74f69daa1ecb04ef3ed19f3ad92eeb84", "summary": "Show a maintainer review handoff and retain reported external outcomes against the exact checkout revision without granting review authority."}, {"blob": "0e49107bf99fde086d4c660b9681926dd933323f", "bump": "minor", "path": ".release/changes/3979-reconciliation-discovery-scope.toml", "sha256": "3a2dc17ca4361f28acb6bd6a0844d04be9757965c8e6f270fc3ce08139b2f4b5", "summary": "Allow admitted source reconciliation rules to exclude disposable output from inferred discovery while retaining tracked and explicit source inputs."}], "transform": [{"path": ".agentic-workspace/payload-provenance.json", "sha256": "4d3c69ee1baf042d360583acaa6fdc47dc1bd306334503ea565d88bf4a3959bb"}, {"path": "Cargo.lock", "sha256": "19655241248cdcd719275d66c9d8f0a95433df400ef0d1bc41e4d31323f9b693"}, {"path": "pyproject.toml", "sha256": "e3a52583a895edb4452d343122aa0ca9fb8c04c1474019c2acc59463280d4a24"}, {"path": "src/cli/rust/Cargo.toml", "sha256": "b5f938d328557469a754972ed3574597ebe262226feee0dde3b7d12f8e08f1b1"}, {"path": "src/core/Cargo.toml", "sha256": "70c52ded71b3eee1ddd9a5628f05e627e4f5777a3692427b7aaaf61305f142cb"}, {"path": "tests/fixtures/native-independent-owner/Cargo.lock", "sha256": "2dd2e9d25c5a065dc69041aef96ed6a53169df692f11f5805816b0258e2faffc"}, {"path": "uv.lock", "sha256": "9ff1014a4c647fbac0d4d10f4d717c93906c7d488c6f8a2a109d5a2167718a7a"}]}, "profile": "release", "rust_host": "aarch64-unknown-linux-gnu", "rust_target": "aarch64-unknown-linux-gnu", "rust_toolchain": {"channel": "1.98.1", "declaration_sha256": "887f9be066a15585a2c583578e84b0fcb541126d81546276bad3d2ff00d61167", "release": "1.98.1", "commit_hash": "48a229ceaefd4985c50990b14116b6d856af0985", "commit_date": "2026-09-01", "host": "aarch64-unknown-linux-gnu", "llvm_version": "22.1.8"}}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.
|
|
1
|
+
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.22.0", "platform": "linux", "arch": "x64", "sha256": "6aca8ce43b379bad948d8c0ffcefcd94d9b6d4f6714d4bc4301379d20f919adb", "cli_sha256": "d4b21032e993aa103c4d30363c7c4aced6596da45180b150d4c6e291d622ae09", "source_head": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "source_dirty": true, "source_staging": {"source_commit": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "version": "1.22.0", "tag": "v1.22.0", "boundary": {"source_commit": "3cbe658ffa2eb26088cbbeb173113d0faec7032b", "tag": "v1.21.0"}, "changesets": [{"blob": "a18af8a8d22a640938d77c28a2e179f37d880083", "bump": "patch", "path": ".release/changes/3976-windows-proof-mode-budget.toml", "sha256": "ce8edd9e5b10bbd22b27b9e26a48f03d7cbba594e903f0e96166837b80472e8a", "summary": "Allow larger Windows proof snapshots within bounded Git index-mode observation and explain how to recover when that budget is exhausted."}, {"blob": "c0a7b85e402818c932d8da36cb61938beceb66eb", "bump": "minor", "path": ".release/changes/3977-manual-review-handoff.toml", "sha256": "887924b036abe442593cf7a296fca39f74f69daa1ecb04ef3ed19f3ad92eeb84", "summary": "Show a maintainer review handoff and retain reported external outcomes against the exact checkout revision without granting review authority."}, {"blob": "0e49107bf99fde086d4c660b9681926dd933323f", "bump": "minor", "path": ".release/changes/3979-reconciliation-discovery-scope.toml", "sha256": "3a2dc17ca4361f28acb6bd6a0844d04be9757965c8e6f270fc3ce08139b2f4b5", "summary": "Allow admitted source reconciliation rules to exclude disposable output from inferred discovery while retaining tracked and explicit source inputs."}], "transform": [{"path": ".agentic-workspace/payload-provenance.json", "sha256": "4d3c69ee1baf042d360583acaa6fdc47dc1bd306334503ea565d88bf4a3959bb"}, {"path": "Cargo.lock", "sha256": "19655241248cdcd719275d66c9d8f0a95433df400ef0d1bc41e4d31323f9b693"}, {"path": "pyproject.toml", "sha256": "e3a52583a895edb4452d343122aa0ca9fb8c04c1474019c2acc59463280d4a24"}, {"path": "src/cli/rust/Cargo.toml", "sha256": "b5f938d328557469a754972ed3574597ebe262226feee0dde3b7d12f8e08f1b1"}, {"path": "src/core/Cargo.toml", "sha256": "70c52ded71b3eee1ddd9a5628f05e627e4f5777a3692427b7aaaf61305f142cb"}, {"path": "tests/fixtures/native-independent-owner/Cargo.lock", "sha256": "2dd2e9d25c5a065dc69041aef96ed6a53169df692f11f5805816b0258e2faffc"}, {"path": "uv.lock", "sha256": "9ff1014a4c647fbac0d4d10f4d717c93906c7d488c6f8a2a109d5a2167718a7a"}]}, "profile": "release", "rust_host": "x86_64-unknown-linux-gnu", "rust_target": "x86_64-unknown-linux-gnu", "rust_toolchain": {"channel": "1.98.1", "declaration_sha256": "887f9be066a15585a2c583578e84b0fcb541126d81546276bad3d2ff00d61167", "release": "1.98.1", "commit_hash": "48a229ceaefd4985c50990b14116b6d856af0985", "commit_date": "2026-09-01", "host": "x86_64-unknown-linux-gnu", "llvm_version": "22.1.8"}}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.
|
|
1
|
+
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.22.0", "platform": "win32", "arch": "arm64", "sha256": "1e96d0e0cedf16e3cb6341f22c49500ba2fe3d2767758820d17b7b31c09cf832", "cli_sha256": "1265320b5ce40f93a5a1ece9e829187100b09376822f875678521756f9bce048", "source_head": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "source_dirty": true, "source_staging": {"source_commit": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "version": "1.22.0", "tag": "v1.22.0", "boundary": {"source_commit": "3cbe658ffa2eb26088cbbeb173113d0faec7032b", "tag": "v1.21.0"}, "changesets": [{"blob": "a18af8a8d22a640938d77c28a2e179f37d880083", "bump": "patch", "path": ".release/changes/3976-windows-proof-mode-budget.toml", "sha256": "ce8edd9e5b10bbd22b27b9e26a48f03d7cbba594e903f0e96166837b80472e8a", "summary": "Allow larger Windows proof snapshots within bounded Git index-mode observation and explain how to recover when that budget is exhausted."}, {"blob": "c0a7b85e402818c932d8da36cb61938beceb66eb", "bump": "minor", "path": ".release/changes/3977-manual-review-handoff.toml", "sha256": "887924b036abe442593cf7a296fca39f74f69daa1ecb04ef3ed19f3ad92eeb84", "summary": "Show a maintainer review handoff and retain reported external outcomes against the exact checkout revision without granting review authority."}, {"blob": "0e49107bf99fde086d4c660b9681926dd933323f", "bump": "minor", "path": ".release/changes/3979-reconciliation-discovery-scope.toml", "sha256": "3a2dc17ca4361f28acb6bd6a0844d04be9757965c8e6f270fc3ce08139b2f4b5", "summary": "Allow admitted source reconciliation rules to exclude disposable output from inferred discovery while retaining tracked and explicit source inputs."}], "transform": [{"path": ".agentic-workspace/payload-provenance.json", "sha256": "4d3c69ee1baf042d360583acaa6fdc47dc1bd306334503ea565d88bf4a3959bb"}, {"path": "Cargo.lock", "sha256": "19655241248cdcd719275d66c9d8f0a95433df400ef0d1bc41e4d31323f9b693"}, {"path": "pyproject.toml", "sha256": "e3a52583a895edb4452d343122aa0ca9fb8c04c1474019c2acc59463280d4a24"}, {"path": "src/cli/rust/Cargo.toml", "sha256": "b5f938d328557469a754972ed3574597ebe262226feee0dde3b7d12f8e08f1b1"}, {"path": "src/core/Cargo.toml", "sha256": "70c52ded71b3eee1ddd9a5628f05e627e4f5777a3692427b7aaaf61305f142cb"}, {"path": "tests/fixtures/native-independent-owner/Cargo.lock", "sha256": "2dd2e9d25c5a065dc69041aef96ed6a53169df692f11f5805816b0258e2faffc"}, {"path": "uv.lock", "sha256": "9ff1014a4c647fbac0d4d10f4d717c93906c7d488c6f8a2a109d5a2167718a7a"}]}, "profile": "release", "rust_host": "aarch64-pc-windows-msvc", "rust_target": "aarch64-pc-windows-msvc", "rust_toolchain": {"channel": "1.98.1", "declaration_sha256": "887f9be066a15585a2c583578e84b0fcb541126d81546276bad3d2ff00d61167", "release": "1.98.1", "commit_hash": "48a229ceaefd4985c50990b14116b6d856af0985", "commit_date": "2026-09-01", "host": "aarch64-pc-windows-msvc", "llvm_version": "22.1.8"}}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.
|
|
1
|
+
{"kind": "agentic-workspace/native-npm-artifact/v1", "package_version": "1.22.0", "platform": "win32", "arch": "x64", "sha256": "d3f1f84fac58ce507b14604eeebdc178e3d92fc4f562065404764cd67de7887d", "cli_sha256": "72b28fd0f2bceab2fa9a891b615ab76f45f27d1e94ec15c4f12c79bded562e08", "source_head": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "source_dirty": true, "source_staging": {"source_commit": "18f5830cbef5348a0d422dd74d4e419682e42a8c", "version": "1.22.0", "tag": "v1.22.0", "boundary": {"source_commit": "3cbe658ffa2eb26088cbbeb173113d0faec7032b", "tag": "v1.21.0"}, "changesets": [{"blob": "a18af8a8d22a640938d77c28a2e179f37d880083", "bump": "patch", "path": ".release/changes/3976-windows-proof-mode-budget.toml", "sha256": "ce8edd9e5b10bbd22b27b9e26a48f03d7cbba594e903f0e96166837b80472e8a", "summary": "Allow larger Windows proof snapshots within bounded Git index-mode observation and explain how to recover when that budget is exhausted."}, {"blob": "c0a7b85e402818c932d8da36cb61938beceb66eb", "bump": "minor", "path": ".release/changes/3977-manual-review-handoff.toml", "sha256": "887924b036abe442593cf7a296fca39f74f69daa1ecb04ef3ed19f3ad92eeb84", "summary": "Show a maintainer review handoff and retain reported external outcomes against the exact checkout revision without granting review authority."}, {"blob": "0e49107bf99fde086d4c660b9681926dd933323f", "bump": "minor", "path": ".release/changes/3979-reconciliation-discovery-scope.toml", "sha256": "3a2dc17ca4361f28acb6bd6a0844d04be9757965c8e6f270fc3ce08139b2f4b5", "summary": "Allow admitted source reconciliation rules to exclude disposable output from inferred discovery while retaining tracked and explicit source inputs."}], "transform": [{"path": ".agentic-workspace/payload-provenance.json", "sha256": "4d3c69ee1baf042d360583acaa6fdc47dc1bd306334503ea565d88bf4a3959bb"}, {"path": "Cargo.lock", "sha256": "19655241248cdcd719275d66c9d8f0a95433df400ef0d1bc41e4d31323f9b693"}, {"path": "pyproject.toml", "sha256": "e3a52583a895edb4452d343122aa0ca9fb8c04c1474019c2acc59463280d4a24"}, {"path": "src/cli/rust/Cargo.toml", "sha256": "b5f938d328557469a754972ed3574597ebe262226feee0dde3b7d12f8e08f1b1"}, {"path": "src/core/Cargo.toml", "sha256": "70c52ded71b3eee1ddd9a5628f05e627e4f5777a3692427b7aaaf61305f142cb"}, {"path": "tests/fixtures/native-independent-owner/Cargo.lock", "sha256": "2dd2e9d25c5a065dc69041aef96ed6a53169df692f11f5805816b0258e2faffc"}, {"path": "uv.lock", "sha256": "9ff1014a4c647fbac0d4d10f4d717c93906c7d488c6f8a2a109d5a2167718a7a"}]}, "profile": "release", "rust_host": "x86_64-pc-windows-msvc", "rust_target": "x86_64-pc-windows-msvc", "rust_toolchain": {"channel": "1.98.1", "declaration_sha256": "887f9be066a15585a2c583578e84b0fcb541126d81546276bad3d2ff00d61167", "release": "1.98.1", "commit_hash": "48a229ceaefd4985c50990b14116b6d856af0985", "commit_date": "2026-09-01", "host": "x86_64-pc-windows-msvc", "llvm_version": "22.1.8"}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// Generated from source_decision_contract.json. Regenerate with make render-schema-reference.
|
|
1
2
|
/** JSON transport declarations, not an executable owner or validation model. */
|
|
2
3
|
export type Json = null | boolean | number | string | Json[] | { [key: string]: Json };
|
|
3
4
|
export type JsonObject = { [key: string]: Json };
|
|
@@ -11,17 +12,23 @@ export interface WorkContext {
|
|
|
11
12
|
maintenance?: "configuration";
|
|
12
13
|
projection?: Projection;
|
|
13
14
|
delivered?: string[];
|
|
15
|
+
reuse_delivery?: boolean;
|
|
16
|
+
short_restrictions?: boolean;
|
|
14
17
|
available_sources?: { reference: string; revision: string; extent: string; selector?: string; content_revision?: string }[];
|
|
15
18
|
}
|
|
16
19
|
export interface StartInput extends WorkContext {
|
|
17
20
|
/** Native-carried read-only setup job selection; submit the returned input unchanged. */
|
|
18
21
|
setup?: JsonObject;
|
|
19
22
|
reference?: string;
|
|
23
|
+
/** Read one exact repository-relative payload observation via the effective Configuration reference. */
|
|
24
|
+
payload_path?: string;
|
|
20
25
|
answer?: Json;
|
|
21
26
|
}
|
|
22
27
|
export interface InvokeInput extends WorkContext {
|
|
23
28
|
invocation?: Json;
|
|
24
29
|
reference?: string;
|
|
30
|
+
/** Execute the exact current workspace.cli_invoke question with its reference. */
|
|
31
|
+
answer?: "authorize-write";
|
|
25
32
|
}
|
|
26
33
|
/** Results retain the exact Rust shape, including unknown owner contributions. */
|
|
27
34
|
export function start(context: StartInput): JsonObject;
|
|
@@ -32,6 +39,6 @@ export interface ResourceInput extends WorkContext {
|
|
|
32
39
|
request: JsonObject;
|
|
33
40
|
}
|
|
34
41
|
export function resources(context: ResourceInput): JsonObject;
|
|
35
|
-
export function selectReference(context: WorkContext, reference: string, answer?: Json): JsonObject;
|
|
42
|
+
export function selectReference(context: WorkContext & Pick<StartInput, "payload_path">, reference: string, answer?: Json): JsonObject;
|
|
36
43
|
export function answerCarried(carriage: JsonObject, reference: string, answer: Json): JsonObject;
|
|
37
44
|
export function invokeCarried(carriage: JsonObject, reference: string): JsonObject;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import assert from 'node:assert/strict'
|
|
2
|
-
|
|
3
|
-
function requireNumericSupport() {
|
|
4
|
-
if (typeof JSON.rawJSON !== 'function') throw new TypeError('The YAML view requires Node 22.12 or later')
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export async function loadYaml() {
|
|
8
|
-
requireNumericSupport()
|
|
9
|
-
try {
|
|
10
|
-
return await import('yaml')
|
|
11
|
-
} catch (error) {
|
|
12
|
-
if (error.code !== 'ERR_MODULE_NOT_FOUND') throw error
|
|
13
|
-
throw new Error('Install yaml@2.9.1 alongside the AW npm package to enable YAML output.')
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// AW uses serde_json integers (including u64) and finite IEEE doubles. Keep
|
|
18
|
-
// integer lexemes exact instead of passing them through a JavaScript Number.
|
|
19
|
-
export function parseJSON(text) {
|
|
20
|
-
if (typeof text !== 'string') throw new TypeError('Expected the original AW JSON text')
|
|
21
|
-
requireNumericSupport()
|
|
22
|
-
return JSON.parse(text, (_key, value, context) => {
|
|
23
|
-
if (typeof value !== 'number') return value
|
|
24
|
-
if (!Number.isFinite(value)) throw new RangeError('Number outside AW numeric range')
|
|
25
|
-
if (/^-?\d+$/.test(context.source) && context.source !== '-0') {
|
|
26
|
-
return BigInt(context.source)
|
|
27
|
-
}
|
|
28
|
-
return value
|
|
29
|
-
})
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function jsonText(value) {
|
|
33
|
-
return JSON.stringify(value, (_key, item) => {
|
|
34
|
-
if (typeof item === 'bigint') return JSON.rawJSON(String(item))
|
|
35
|
-
if (Object.is(item, -0)) return JSON.rawJSON('-0.0')
|
|
36
|
-
if (typeof item === 'number' && Number.isInteger(item)) {
|
|
37
|
-
const decimal = String(item)
|
|
38
|
-
return JSON.rawJSON(decimal.includes('e') ? decimal : decimal + '.0')
|
|
39
|
-
}
|
|
40
|
-
return item
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function anchorName(index) {
|
|
45
|
-
let name = ''
|
|
46
|
-
for (let n = index; n > 0; n = Math.floor((n - 1) / 26)) {
|
|
47
|
-
name = String.fromCharCode(97 + (n - 1) % 26) + name
|
|
48
|
-
}
|
|
49
|
-
return name
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const blockStyle = { lineWidth: 0, indent: 1, indentSeq: false, flowCollectionPadding: false }
|
|
53
|
-
const quoteControls = /[\u007f-\u009f\u2028\u2029\ufeff\ufffe\uffff]/
|
|
54
|
-
const escapeControls = new RegExp(quoteControls.source, 'g')
|
|
55
|
-
|
|
56
|
-
function safeStrings(tags) {
|
|
57
|
-
return tags.map(tag => tag.tag === 'tag:yaml.org,2002:str' ? {
|
|
58
|
-
...tag,
|
|
59
|
-
stringify(node, ...context) {
|
|
60
|
-
if (!quoteControls.test(node.value)) return tag.stringify(node, ...context)
|
|
61
|
-
return JSON.stringify(node.value).replace(escapeControls, character =>
|
|
62
|
-
'\\u' + character.charCodeAt(0).toString(16).padStart(4, '0'))
|
|
63
|
-
}
|
|
64
|
-
} : tag)
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function anchored(value, yamlLibrary, options = {}, useAnchors = true) {
|
|
68
|
-
const { Document, isMap, isSeq, parseDocument } = yamlLibrary
|
|
69
|
-
const { minLength = 24, name = anchorName, inlineLists = true, style = blockStyle } = options
|
|
70
|
-
const doc = new Document(value, { aliasDuplicateObjects: false, customTags: safeStrings })
|
|
71
|
-
const first = new Map()
|
|
72
|
-
let anchorCount = 0
|
|
73
|
-
function visit(node, item) {
|
|
74
|
-
const key = useAnchors ? jsonText(item) : ''
|
|
75
|
-
if (key.length >= minLength) {
|
|
76
|
-
const existing = first.get(key)
|
|
77
|
-
if (existing) {
|
|
78
|
-
if (!existing.anchor) {
|
|
79
|
-
anchorCount += 1
|
|
80
|
-
existing.anchor = name(anchorCount)
|
|
81
|
-
}
|
|
82
|
-
return doc.createAlias(existing)
|
|
83
|
-
}
|
|
84
|
-
first.set(key, node)
|
|
85
|
-
}
|
|
86
|
-
if (isMap(node)) {
|
|
87
|
-
for (const entry of node.items) entry.value = visit(entry.value, item[entry.key.value])
|
|
88
|
-
} else if (isSeq(node)) {
|
|
89
|
-
if (inlineLists && item.length <= 12 && jsonText(item).length <= 200 &&
|
|
90
|
-
item.every(x => x === null || typeof x !== 'object')) node.flow = true
|
|
91
|
-
node.items = node.items.map((child, i) => visit(child, item[i]))
|
|
92
|
-
} else if (typeof item === 'number') {
|
|
93
|
-
// BigInts represent JSON integers. A Number came from a floating-point
|
|
94
|
-
// value, even when its shortest decimal has no fractional digit.
|
|
95
|
-
if (String(item).includes('e')) node.tag = 'tag:yaml.org,2002:float'
|
|
96
|
-
else node.minFractionDigits = 1
|
|
97
|
-
}
|
|
98
|
-
return node
|
|
99
|
-
}
|
|
100
|
-
doc.contents = visit(doc.contents, value)
|
|
101
|
-
const yaml = doc.toString(style)
|
|
102
|
-
const parsed = parseDocument(yaml, { intAsBigInt: true })
|
|
103
|
-
if (parsed.errors.length) throw parsed.errors[0]
|
|
104
|
-
// A valid input may contain enough repeated nested records to trip the
|
|
105
|
-
// default alias-expansion limit. Keep that limit intact for readers.
|
|
106
|
-
let expanded
|
|
107
|
-
try {
|
|
108
|
-
expanded = parsed.toJS()
|
|
109
|
-
} catch (error) {
|
|
110
|
-
if (useAnchors && error instanceof ReferenceError && error.message.includes('Excessive alias count')) {
|
|
111
|
-
return anchored(value, yamlLibrary, options, false)
|
|
112
|
-
}
|
|
113
|
-
throw error
|
|
114
|
-
}
|
|
115
|
-
assert.ok(jsonText(expanded) === jsonText(value), 'Lossy YAML rendering')
|
|
116
|
-
return yaml
|
|
117
|
-
}
|