@skastr0/prism-darwin-x64 0.4.3 → 0.4.4
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/bin/prism
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skastr0/prism-darwin-x64",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Prism standalone CLI binary for macOS x64.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@opencode-ai/plugin": "^1.15.13",
|
|
21
21
|
"@opentui/core-darwin-x64": "0.4.1",
|
|
22
|
-
"@skastr0/prism-sdk": "0.4.
|
|
22
|
+
"@skastr0/prism-sdk": "0.4.4",
|
|
23
23
|
"effect": "^3.21.1",
|
|
24
24
|
"typescript": "^5.8.3",
|
|
25
25
|
"zod": "4.4.3"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyWorkflowTask, type WorkflowRuntimeOptions } from "./workflows.js";
|
|
1
|
+
import { type AnyWorkflowTask, type WorkflowSessionPersistence, type WorkflowRuntimeOptions } from "./workflows.js";
|
|
2
2
|
/**
|
|
3
3
|
* `cacheKey` and `promptHash` AND together in the cache primary key
|
|
4
4
|
* (workflow-store.ts) — `cacheKey` never substitutes for `promptHash`, and
|
|
@@ -45,6 +45,7 @@ export interface WorkflowRunTaskSnapshot {
|
|
|
45
45
|
readonly worker?: string;
|
|
46
46
|
readonly model?: string;
|
|
47
47
|
readonly profile?: string;
|
|
48
|
+
readonly sessionPersistence?: WorkflowSessionPersistence;
|
|
48
49
|
};
|
|
49
50
|
readonly outputSchema?: unknown;
|
|
50
51
|
readonly finishCriteria: ReadonlyArray<string>;
|
|
@@ -28,7 +28,7 @@ export { WorkflowRunStoppedError, WorkflowTaskDecodeError, WorkflowTaskEscalated
|
|
|
28
28
|
export type WorkflowTaskRepairMode = "native-continuation" | "fresh-executor-invocation" | "none";
|
|
29
29
|
export type WorkflowTaskProgressSource = "executor" | "worker-stdout" | "worker-stderr";
|
|
30
30
|
export type WorkflowTaskProgressReporter = (source?: WorkflowTaskProgressSource) => void;
|
|
31
|
-
export type WorkflowTaskRepairFallbackReason = "adapter-does-not-support-continuation" | "executor-does-not-advertise-continuation" | "missing-session-id";
|
|
31
|
+
export type WorkflowTaskRepairFallbackReason = "adapter-does-not-support-continuation" | "ephemeral-session" | "executor-does-not-advertise-continuation" | "missing-session-id";
|
|
32
32
|
interface WorkflowTaskRepairContextBase {
|
|
33
33
|
readonly attempt: number;
|
|
34
34
|
readonly criterion: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WorkflowSessionPersistence } from "./workflows.js";
|
|
1
2
|
export declare const DEFAULT_WORKFLOW_WORKER_STDERR_EXCERPT_BYTES = 4096;
|
|
2
3
|
export interface WorkflowWorkerStderrMetadata {
|
|
3
4
|
readonly stderrBytes?: number;
|
|
@@ -6,6 +7,7 @@ export interface WorkflowWorkerStderrMetadata {
|
|
|
6
7
|
readonly stderrTruncated?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare const summarizeWorkflowWorkerStderr: (stderr: string, maxExcerptBytes?: number) => WorkflowWorkerStderrMetadata;
|
|
10
|
+
export declare const summarizeWorkflowWorkerStderrForSession: (stderr: string, sessionPersistence: WorkflowSessionPersistence, maxExcerptBytes?: number) => WorkflowWorkerStderrMetadata;
|
|
9
11
|
/**
|
|
10
12
|
* Forensics attached to a worker adapter's thrown error on the failure path (OBS-006).
|
|
11
13
|
* On success, every adapter already returns `{ adapter, ..., sessionId, ...stderr summary }`
|
|
@@ -20,5 +22,6 @@ export declare const workflowWorkerFailureMetadata: (input: {
|
|
|
20
22
|
readonly adapter: string;
|
|
21
23
|
readonly stderr: string;
|
|
22
24
|
readonly sessionId?: string;
|
|
25
|
+
readonly sessionPersistence?: WorkflowSessionPersistence;
|
|
23
26
|
readonly maxExcerptBytes?: number;
|
|
24
27
|
}) => Record<string, unknown>;
|
package/types/workflows.d.ts
CHANGED
|
@@ -61,6 +61,12 @@ export type WorkflowFinishCriterionError = Error;
|
|
|
61
61
|
export type WorkflowWorkerId = "amp-code" | "antigravity-cli" | "claude-code" | "codex-cli" | "devin" | "grok" | "hermes" | "kimi-code" | "opencode" | "omp";
|
|
62
62
|
export type WorkflowPermissionMode = "legacy" | "permissive" | "restricted" | "interactive" | "sandbox-read-only" | "sandbox-workspace-write" | "full-access";
|
|
63
63
|
export type AntigravityWorkflowPermissionMode = Extract<WorkflowPermissionMode, "legacy" | "permissive" | "full-access">;
|
|
64
|
+
export declare const WORKFLOW_SESSION_PERSISTENCE_WORKERS: readonly ["claude-code", "codex-cli", "omp"];
|
|
65
|
+
export type WorkflowSessionPersistenceWorkerId = typeof WORKFLOW_SESSION_PERSISTENCE_WORKERS[number];
|
|
66
|
+
export type WorkflowSessionPersistence = "persistent" | "ephemeral";
|
|
67
|
+
/** @deprecated Use WorkflowSessionPersistence. */
|
|
68
|
+
export type CodexWorkflowSessionPersistence = WorkflowSessionPersistence;
|
|
69
|
+
export declare const workflowWorkerSupportsSessionPersistence: (worker: unknown) => worker is WorkflowSessionPersistenceWorkerId;
|
|
64
70
|
/**
|
|
65
71
|
* Per-task override for the executor-level transient-failure retry (WFE-009). Only
|
|
66
72
|
* classified-transient executor failures (process/idle timeout, unclassified non-zero
|
|
@@ -81,11 +87,17 @@ type WorkflowTaskWorkerOptionsBase = {
|
|
|
81
87
|
readonly retry?: WorkflowTaskWorkerRetryOptions;
|
|
82
88
|
};
|
|
83
89
|
export type WorkflowTaskWorkerOptions = (WorkflowTaskWorkerOptionsBase & {
|
|
84
|
-
readonly worker?: Exclude<WorkflowWorkerId, "antigravity-cli">;
|
|
90
|
+
readonly worker?: Exclude<WorkflowWorkerId, "antigravity-cli" | WorkflowSessionPersistenceWorkerId>;
|
|
85
91
|
readonly permission?: WorkflowPermissionMode;
|
|
92
|
+
readonly sessionPersistence?: never;
|
|
93
|
+
}) | (WorkflowTaskWorkerOptionsBase & {
|
|
94
|
+
readonly worker: WorkflowSessionPersistenceWorkerId;
|
|
95
|
+
readonly permission?: WorkflowPermissionMode;
|
|
96
|
+
readonly sessionPersistence?: WorkflowSessionPersistence;
|
|
86
97
|
}) | (WorkflowTaskWorkerOptionsBase & {
|
|
87
98
|
readonly worker: "antigravity-cli";
|
|
88
99
|
readonly permission?: AntigravityWorkflowPermissionMode;
|
|
100
|
+
readonly sessionPersistence?: never;
|
|
89
101
|
});
|
|
90
102
|
export type WorkflowResolvedModelEntry = Readonly<{
|
|
91
103
|
readonly model: string;
|
|
@@ -191,6 +203,8 @@ export interface WorkflowTask<Id extends string = string, Agent extends Workflow
|
|
|
191
203
|
}
|
|
192
204
|
export type AnyWorkflowTask = WorkflowTask<string, WorkflowAgentRef, WorkflowOutputSchema>;
|
|
193
205
|
export type WorkflowTaskOutput<Task extends AnyWorkflowTask> = Schema.Schema.Type<Task["output"]>;
|
|
206
|
+
export declare const resolveWorkflowTaskSessionPersistence: (task: Pick<AnyWorkflowTask, "worker">, effectiveWorker?: string | undefined) => WorkflowSessionPersistence | undefined;
|
|
207
|
+
export declare const assertWorkflowTaskSessionPersistence: (task: AnyWorkflowTask) => void;
|
|
194
208
|
export declare const isWorkflowAgentRef: (value: unknown) => value is WorkflowAgentRef;
|
|
195
209
|
export declare const isWorkflowTask: (value: unknown) => value is AnyWorkflowTask;
|
|
196
210
|
export interface WorkflowDefinition<Name extends string, Tasks extends ReadonlyArray<AnyWorkflowTask>> {
|