@yaag/cli 0.8.1 → 0.8.2
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.
|
@@ -12,4 +12,4 @@ export { replayMismatch } from "./replay-divergence.ts";
|
|
|
12
12
|
export { replayTransport } from "./replay-transport.ts";
|
|
13
13
|
export { programIdentityWarning } from "./resume-identity.ts";
|
|
14
14
|
export { resumeTransport } from "./resume-transport.ts";
|
|
15
|
-
export { type ProgramIdentity, publishRunCheckpoint, type RunCheckpointResult, resolveRunIdentity, writeRecordingDiagnostic, } from "./run-checkpoint.ts";
|
|
15
|
+
export { type ProgramIdentity, prepareRecordDestination, publishRunCheckpoint, type RunCheckpointResult, resolveRunIdentity, writeRecordingDiagnostic, } from "./run-checkpoint.ts";
|
|
@@ -40,10 +40,21 @@ export type RunCheckpointResult = {
|
|
|
40
40
|
*/
|
|
41
41
|
export declare function publishRunCheckpoint(options: RunCheckpointOptions): Promise<RunCheckpointResult>;
|
|
42
42
|
/**
|
|
43
|
-
* Creates the
|
|
44
|
-
*
|
|
43
|
+
* Creates the directory the Run's artifact goes into. A `--record` path names
|
|
44
|
+
* where the artifact goes, so yaag creates the chain that path implies rather
|
|
45
|
+
* than refusing. ADR-0021 makes `--record` fix the destination path only, and a
|
|
46
|
+
* path yaag can make is a destination yaag makes. The checkpoint directory yaag owns stays
|
|
47
|
+
* private; a user-named `--record` directory takes the process umask, because it
|
|
48
|
+
* lives in the user's own tree.
|
|
45
49
|
*/
|
|
46
50
|
export declare function ensureCheckpointDirectory(record: string | undefined, destination: string): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Makes the directory chain of the `--record` path at Run start, and rejects the
|
|
53
|
+
* Run before the first spawn when that chain cannot exist. It does not prove the
|
|
54
|
+
* destination writable: an existing directory that refuses a write, or a name
|
|
55
|
+
* already taken, still fails later, at publication.
|
|
56
|
+
*/
|
|
57
|
+
export declare function prepareRecordDestination(record: string): Promise<void>;
|
|
47
58
|
/** Which program a Run executes: a file on disk, or inline source text (ADR-0033). */
|
|
48
59
|
export interface ProgramIdentity {
|
|
49
60
|
readonly programFile?: string;
|
|
@@ -30,7 +30,7 @@ export interface ModelResolutionOutcome {
|
|
|
30
30
|
readonly modelErrors: readonly ModelError[];
|
|
31
31
|
}
|
|
32
32
|
/** Why an Ask, spawn, or Run failed. Programs may branch on this; most won't. */
|
|
33
|
-
export type YaagErrorCode = "AGENT_FAILED" | "AGENT_DIED" | "AGENT_BUSY" | "ASK_TIMEOUT" | "ASK_LIMIT" | "ASK_STALLED" | "ASK_INVALID_OUTPUT" | "ARGS_INVALID" | "CONFIG_INVALID" | "OPTIONS_CONFLICT" | "REPLAY_DIVERGED" | "RESUME_REFUSED" | "RUN_CLOSED" | "RUN_STOPPED" | "WORKTREE_REFUSED" | "MODEL_RESOLUTION_FAILED" | "SPAWN_FAILED";
|
|
33
|
+
export type YaagErrorCode = "AGENT_FAILED" | "AGENT_DIED" | "AGENT_BUSY" | "ASK_TIMEOUT" | "ASK_LIMIT" | "ASK_STALLED" | "ASK_INVALID_OUTPUT" | "ARGS_INVALID" | "CONFIG_INVALID" | "OPTIONS_CONFLICT" | "RECORD_PATH_UNUSABLE" | "REPLAY_DIVERGED" | "RESUME_REFUSED" | "RUN_CLOSED" | "RUN_STOPPED" | "WORKTREE_REFUSED" | "MODEL_RESOLUTION_FAILED" | "SPAWN_FAILED";
|
|
34
34
|
/** The single error class of the runtime (ADR-0003). */
|
|
35
35
|
export declare class YaagError extends Error {
|
|
36
36
|
readonly code: YaagErrorCode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yaag/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@earendil-works/pi-tui": "^0.84.0",
|
|
24
|
-
"@yaag/runtime": "0.8.
|
|
25
|
-
"@yaag/tui": "0.8.
|
|
24
|
+
"@yaag/runtime": "0.8.2",
|
|
25
|
+
"@yaag/tui": "0.8.2",
|
|
26
26
|
"typebox": "1.3.7"
|
|
27
27
|
}
|
|
28
28
|
}
|