@galaxy-stack/ai-coder-core 0.3.0-alpha.17 → 0.3.0-alpha.18
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.d/2026-09-26-finalization-prefix-and-verified-inhistory.md +5 -5
- package/CHANGELOG.d/2026-09-26-generated-state-and-churn-guard.md +8 -9
- package/CHANGELOG.d/2026-09-26-rerecord-live-fixture.md +6 -0
- package/dist/adapters/node/host/node-workspace-evidence-verifier.d.ts.map +1 -1
- package/dist/adapters/node/host/node-workspace-evidence-verifier.js +3 -5
- package/dist/adapters/node/host/node-workspace-evidence-verifier.js.map +1 -1
- package/dist/adapters/node/host/node-workspace-snapshot.d.ts.map +1 -1
- package/dist/adapters/node/host/node-workspace-snapshot.js +18 -2
- package/dist/adapters/node/host/node-workspace-snapshot.js.map +1 -1
- package/dist/adapters/node/host/workspace-generated-state.d.ts +4 -18
- package/dist/adapters/node/host/workspace-generated-state.d.ts.map +1 -1
- package/dist/adapters/node/host/workspace-generated-state.js +4 -52
- package/dist/adapters/node/host/workspace-generated-state.js.map +1 -1
- package/dist/runtime/run-controller.d.ts.map +1 -1
- package/dist/runtime/run-controller.js +14 -31
- package/dist/runtime/run-controller.js.map +1 -1
- package/dist/runtime/workspace-generated-path.d.ts +26 -0
- package/dist/runtime/workspace-generated-path.d.ts.map +1 -0
- package/dist/runtime/workspace-generated-path.js +60 -0
- package/dist/runtime/workspace-generated-path.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared generated-state policy.
|
|
3
|
+
*
|
|
4
|
+
* A path is generated state when it is build output, an installed dependency
|
|
5
|
+
* tree, or a tool/editor cache rather than authored source. The Node workspace
|
|
6
|
+
* snapshotter (which decides durable `write` evidence) and the workspace
|
|
7
|
+
* evidence verifier (which decides the resume/final workspace fingerprint)
|
|
8
|
+
* must agree on this boundary.
|
|
9
|
+
*
|
|
10
|
+
* The snapshotter deliberately keeps build/output directories (dist, build,
|
|
11
|
+
* coverage, out) `durable` so `run_command` can still attest the file
|
|
12
|
+
* mutations it performed; the runtime filters these paths out of *authored*
|
|
13
|
+
* evidence and progress below, so regenerating build output never resets the
|
|
14
|
+
* no-progress budget.
|
|
15
|
+
*/
|
|
16
|
+
/** Generated directory basenames. Any path segment equal to one of these marks the subtree. */
|
|
17
|
+
export declare const GENERATED_WORKSPACE_DIRECTORIES: readonly string[];
|
|
18
|
+
/** Generated file suffixes: incremental build metadata, never authored source. */
|
|
19
|
+
export declare const GENERATED_WORKSPACE_FILE_SUFFIXES: readonly string[];
|
|
20
|
+
/** Generated file basenames. */
|
|
21
|
+
export declare const GENERATED_WORKSPACE_FILE_NAMES: readonly string[];
|
|
22
|
+
export declare function isGeneratedWorkspaceDirectoryName(name: string): boolean;
|
|
23
|
+
export declare function isGeneratedWorkspaceFileName(name: string): boolean;
|
|
24
|
+
/** True when any path segment is a generated directory, or the leaf is a generated file. */
|
|
25
|
+
export declare function isGeneratedWorkspacePath(segments: readonly string[]): boolean;
|
|
26
|
+
//# sourceMappingURL=workspace-generated-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-generated-path.d.ts","sourceRoot":"","sources":["../../src/runtime/workspace-generated-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,+FAA+F;AAC/F,eAAO,MAAM,+BAA+B,EAAE,SAAS,MAAM,EAiB3D,CAAC;AAEH,kFAAkF;AAClF,eAAO,MAAM,iCAAiC,EAAE,SAAS,MAAM,EAE7D,CAAC;AAEH,gCAAgC;AAChC,eAAO,MAAM,8BAA8B,EAAE,SAAS,MAAM,EAG1D,CAAC;AAKH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGlE;AAED,4FAA4F;AAC5F,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAI7E"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared generated-state policy.
|
|
3
|
+
*
|
|
4
|
+
* A path is generated state when it is build output, an installed dependency
|
|
5
|
+
* tree, or a tool/editor cache rather than authored source. The Node workspace
|
|
6
|
+
* snapshotter (which decides durable `write` evidence) and the workspace
|
|
7
|
+
* evidence verifier (which decides the resume/final workspace fingerprint)
|
|
8
|
+
* must agree on this boundary.
|
|
9
|
+
*
|
|
10
|
+
* The snapshotter deliberately keeps build/output directories (dist, build,
|
|
11
|
+
* coverage, out) `durable` so `run_command` can still attest the file
|
|
12
|
+
* mutations it performed; the runtime filters these paths out of *authored*
|
|
13
|
+
* evidence and progress below, so regenerating build output never resets the
|
|
14
|
+
* no-progress budget.
|
|
15
|
+
*/
|
|
16
|
+
/** Generated directory basenames. Any path segment equal to one of these marks the subtree. */
|
|
17
|
+
export const GENERATED_WORKSPACE_DIRECTORIES = Object.freeze([
|
|
18
|
+
".bun-cache",
|
|
19
|
+
".cache",
|
|
20
|
+
".gradle",
|
|
21
|
+
".mypy_cache",
|
|
22
|
+
".next",
|
|
23
|
+
".parcel-cache",
|
|
24
|
+
".pytest_cache",
|
|
25
|
+
".turbo",
|
|
26
|
+
".vite",
|
|
27
|
+
"__pycache__",
|
|
28
|
+
"build",
|
|
29
|
+
"coverage",
|
|
30
|
+
"dist",
|
|
31
|
+
"node_modules",
|
|
32
|
+
"out",
|
|
33
|
+
"target",
|
|
34
|
+
]);
|
|
35
|
+
/** Generated file suffixes: incremental build metadata, never authored source. */
|
|
36
|
+
export const GENERATED_WORKSPACE_FILE_SUFFIXES = Object.freeze([
|
|
37
|
+
".tsbuildinfo",
|
|
38
|
+
]);
|
|
39
|
+
/** Generated file basenames. */
|
|
40
|
+
export const GENERATED_WORKSPACE_FILE_NAMES = Object.freeze([
|
|
41
|
+
".DS_Store",
|
|
42
|
+
".eslintcache",
|
|
43
|
+
]);
|
|
44
|
+
const DIRECTORY_NAMES = new Set(GENERATED_WORKSPACE_DIRECTORIES);
|
|
45
|
+
const FILE_NAMES = new Set(GENERATED_WORKSPACE_FILE_NAMES);
|
|
46
|
+
export function isGeneratedWorkspaceDirectoryName(name) {
|
|
47
|
+
return DIRECTORY_NAMES.has(name);
|
|
48
|
+
}
|
|
49
|
+
export function isGeneratedWorkspaceFileName(name) {
|
|
50
|
+
return FILE_NAMES.has(name)
|
|
51
|
+
|| GENERATED_WORKSPACE_FILE_SUFFIXES.some((suffix) => name.endsWith(suffix));
|
|
52
|
+
}
|
|
53
|
+
/** True when any path segment is a generated directory, or the leaf is a generated file. */
|
|
54
|
+
export function isGeneratedWorkspacePath(segments) {
|
|
55
|
+
if (segments.some((segment) => DIRECTORY_NAMES.has(segment)))
|
|
56
|
+
return true;
|
|
57
|
+
const leaf = segments[segments.length - 1];
|
|
58
|
+
return leaf !== undefined && isGeneratedWorkspaceFileName(leaf);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=workspace-generated-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-generated-path.js","sourceRoot":"","sources":["../../src/runtime/workspace-generated-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,+FAA+F;AAC/F,MAAM,CAAC,MAAM,+BAA+B,GAAsB,MAAM,CAAC,MAAM,CAAC;IAC9E,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,aAAa;IACb,OAAO;IACP,eAAe;IACf,eAAe;IACf,QAAQ;IACR,OAAO;IACP,aAAa;IACb,OAAO;IACP,UAAU;IACV,MAAM;IACN,cAAc;IACd,KAAK;IACL,QAAQ;CACT,CAAC,CAAC;AAEH,kFAAkF;AAClF,MAAM,CAAC,MAAM,iCAAiC,GAAsB,MAAM,CAAC,MAAM,CAAC;IAChF,cAAc;CACf,CAAC,CAAC;AAEH,gCAAgC;AAChC,MAAM,CAAC,MAAM,8BAA8B,GAAsB,MAAM,CAAC,MAAM,CAAC;IAC7E,WAAW;IACX,cAAc;CACf,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,+BAA+B,CAAC,CAAC;AACjE,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,8BAA8B,CAAC,CAAC;AAE3D,MAAM,UAAU,iCAAiC,CAAC,IAAY;IAC5D,OAAO,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAY;IACvD,OAAO,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC;WACtB,iCAAiC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AACjF,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,wBAAwB,CAAC,QAA2B;IAClE,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1E,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,IAAI,KAAK,SAAS,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galaxy-stack/ai-coder-core",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
3
|
+
"version": "0.3.0-alpha.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Platform-neutral runtime for the Galaxy AI Coder single agent. Core exception under @galaxy-stack, versioned by the galaxy-blackhole organization. Consumed by galaxy-code (Blackhole CLI), galaxy-vscode-extension, and galaxy-desktop.",
|
|
6
6
|
"license": "MIT",
|