@yaag/cli 0.8.1 → 0.8.3
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";
|
|
@@ -22,7 +22,8 @@ export interface RunCheckpointOptions {
|
|
|
22
22
|
* What one publication attempt did. `published` covers both a written artifact
|
|
23
23
|
* and a Run that keeps none. `displaced` carries the error that must become the
|
|
24
24
|
* Run's outcome. `lost` reports a Checkpoint the Run asked for and did not get,
|
|
25
|
-
* while a
|
|
25
|
+
* while the Run keeps its own outcome — a completed result, or a primary
|
|
26
|
+
* program error (ADR-0021 amendment).
|
|
26
27
|
*/
|
|
27
28
|
export type RunCheckpointResult = {
|
|
28
29
|
readonly kind: "published";
|
|
@@ -40,10 +41,21 @@ export type RunCheckpointResult = {
|
|
|
40
41
|
*/
|
|
41
42
|
export declare function publishRunCheckpoint(options: RunCheckpointOptions): Promise<RunCheckpointResult>;
|
|
42
43
|
/**
|
|
43
|
-
* Creates the
|
|
44
|
-
*
|
|
44
|
+
* Creates the directory the Run's artifact goes into. A `--record` path names
|
|
45
|
+
* where the artifact goes, so yaag creates the chain that path implies rather
|
|
46
|
+
* than refusing. ADR-0021 makes `--record` fix the destination path only, and a
|
|
47
|
+
* path yaag can make is a destination yaag makes. The checkpoint directory yaag owns stays
|
|
48
|
+
* private; a user-named `--record` directory takes the process umask, because it
|
|
49
|
+
* lives in the user's own tree.
|
|
45
50
|
*/
|
|
46
51
|
export declare function ensureCheckpointDirectory(record: string | undefined, destination: string): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Makes the directory chain of the `--record` path at Run start, and rejects the
|
|
54
|
+
* Run before the first spawn when that chain cannot exist. It does not prove the
|
|
55
|
+
* destination writable: an existing directory that refuses a write, or a name
|
|
56
|
+
* already taken, still fails later, at publication.
|
|
57
|
+
*/
|
|
58
|
+
export declare function prepareRecordDestination(record: string): Promise<void>;
|
|
47
59
|
/** Which program a Run executes: a file on disk, or inline source text (ADR-0033). */
|
|
48
60
|
export interface ProgramIdentity {
|
|
49
61
|
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.3",
|
|
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.3",
|
|
25
|
+
"@yaag/tui": "0.8.3",
|
|
26
26
|
"typebox": "1.3.7"
|
|
27
27
|
}
|
|
28
28
|
}
|