@dsh-enhanced/assistant-goals 0.1.30
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/LICENSE +21 -0
- package/README.md +274 -0
- package/cordis.patch.yml +3 -0
- package/lib/budget-store.d.ts +73 -0
- package/lib/budget-store.d.ts.map +1 -0
- package/lib/budget-store.js +345 -0
- package/lib/budget-store.js.map +1 -0
- package/lib/budget.d.ts +78 -0
- package/lib/budget.d.ts.map +1 -0
- package/lib/budget.js +344 -0
- package/lib/budget.js.map +1 -0
- package/lib/dependency.d.ts +11 -0
- package/lib/dependency.d.ts.map +1 -0
- package/lib/dependency.js +34 -0
- package/lib/dependency.js.map +1 -0
- package/lib/event-wait-store.d.ts +56 -0
- package/lib/event-wait-store.d.ts.map +1 -0
- package/lib/event-wait-store.js +189 -0
- package/lib/event-wait-store.js.map +1 -0
- package/lib/event-wait.d.ts +47 -0
- package/lib/event-wait.d.ts.map +1 -0
- package/lib/event-wait.js +372 -0
- package/lib/event-wait.js.map +1 -0
- package/lib/execution-store.d.ts +23 -0
- package/lib/execution-store.d.ts.map +1 -0
- package/lib/execution-store.js +207 -0
- package/lib/execution-store.js.map +1 -0
- package/lib/execution.d.ts +49 -0
- package/lib/execution.d.ts.map +1 -0
- package/lib/execution.js +438 -0
- package/lib/execution.js.map +1 -0
- package/lib/feedback.d.ts +63 -0
- package/lib/feedback.d.ts.map +1 -0
- package/lib/feedback.js +134 -0
- package/lib/feedback.js.map +1 -0
- package/lib/index.d.ts +27 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -0
- package/lib/outcome-store.d.ts +47 -0
- package/lib/outcome-store.d.ts.map +1 -0
- package/lib/outcome-store.js +271 -0
- package/lib/outcome-store.js.map +1 -0
- package/lib/outcome.d.ts +77 -0
- package/lib/outcome.d.ts.map +1 -0
- package/lib/outcome.js +417 -0
- package/lib/outcome.js.map +1 -0
- package/lib/service.d.ts +363 -0
- package/lib/service.d.ts.map +1 -0
- package/lib/service.js +1839 -0
- package/lib/service.js.map +1 -0
- package/lib/store.d.ts +21 -0
- package/lib/store.d.ts.map +1 -0
- package/lib/store.js +577 -0
- package/lib/store.js.map +1 -0
- package/lib/strategy-feedback.d.ts +29 -0
- package/lib/strategy-feedback.d.ts.map +1 -0
- package/lib/strategy-feedback.js +53 -0
- package/lib/strategy-feedback.js.map +1 -0
- package/lib/strategy-identity.d.ts +11 -0
- package/lib/strategy-identity.d.ts.map +1 -0
- package/lib/strategy-identity.js +10 -0
- package/lib/strategy-identity.js.map +1 -0
- package/lib/strategy-store.d.ts +76 -0
- package/lib/strategy-store.d.ts.map +1 -0
- package/lib/strategy-store.js +277 -0
- package/lib/strategy-store.js.map +1 -0
- package/lib/strategy.d.ts +56 -0
- package/lib/strategy.d.ts.map +1 -0
- package/lib/strategy.js +478 -0
- package/lib/strategy.js.map +1 -0
- package/lib/tools.d.ts +4 -0
- package/lib/tools.d.ts.map +1 -0
- package/lib/tools.js +130 -0
- package/lib/tools.js.map +1 -0
- package/lib/types.d.ts +285 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +10 -0
- package/lib/types.js.map +1 -0
- package/lib/verified-artifact.d.ts +72 -0
- package/lib/verified-artifact.d.ts.map +1 -0
- package/lib/verified-artifact.js +142 -0
- package/lib/verified-artifact.js.map +1 -0
- package/lib/verified-workflow.d.ts +120 -0
- package/lib/verified-workflow.d.ts.map +1 -0
- package/lib/verified-workflow.js +253 -0
- package/lib/verified-workflow.js.map +1 -0
- package/lib/version.d.ts +2 -0
- package/lib/version.d.ts.map +1 -0
- package/lib/version.js +2 -0
- package/lib/version.js.map +1 -0
- package/lib/wake-store.d.ts +38 -0
- package/lib/wake-store.d.ts.map +1 -0
- package/lib/wake-store.js +177 -0
- package/lib/wake-store.js.map +1 -0
- package/lib/wake.d.ts +45 -0
- package/lib/wake.d.ts.map +1 -0
- package/lib/wake.js +327 -0
- package/lib/wake.js.map +1 -0
- package/package.json +143 -0
package/lib/service.d.ts
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import type { ToolExecution } from '@deepseek-ai/dsh-tools';
|
|
2
|
+
import { Context, Service } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
4
|
+
import type { OwnerGoalOutcomeFeedbackLocator, OwnerGoalOutcomeFeedbackProof } from '@dsh-enhanced/assistant-delivery';
|
|
5
|
+
import Schema from '@deepseek-ai/schemastery';
|
|
6
|
+
import type { GoalCheckpoint, GoalControlInput, GoalExecutionRun, GoalRecord, GoalScope, GoalTaskContext, HostFailureEvidenceSummary, HostFailureTriggerEvidence, NativeGoalState, OwnerAuthorizedRepairInput, OwnerFailureCaptureSummaryInput, OwnerFailureTriggerInput, OwnerGoalExecutionSnapshotInput, OwnerGoalRunProof, OwnerGoalRunProofInput } from './types.js';
|
|
7
|
+
import { type GoalFeedback } from './feedback.js';
|
|
8
|
+
import type { GoalBudgetConfig, GoalBudgetMeter } from './budget.js';
|
|
9
|
+
import type { GoalBudgetSnapshot } from './budget-store.js';
|
|
10
|
+
import type { TaskAcceptanceContract } from '@dsh-enhanced/task-acceptance-contract';
|
|
11
|
+
import type { TaskAcceptanceRegistration } from '@dsh-enhanced/assistant-verifier';
|
|
12
|
+
import { type GoalWakeConfig } from './wake.js';
|
|
13
|
+
import type { GoalWake } from './wake-store.js';
|
|
14
|
+
import { type PreparationAuthority } from './event-wait.js';
|
|
15
|
+
import type { DeliveryGoalWakeInput } from '@dsh-enhanced/assistant-delivery';
|
|
16
|
+
import { type GoalOutcomeView } from './outcome.js';
|
|
17
|
+
import { type GoalStrategyConfig } from './strategy.js';
|
|
18
|
+
import { type GoalStrategyHistory } from './strategy-feedback.js';
|
|
19
|
+
import { type VerifiedWorkflowSource } from './verified-workflow.js';
|
|
20
|
+
import { type OwnerVerifiedArtifactsInput } from './verified-artifact.js';
|
|
21
|
+
export interface Config {
|
|
22
|
+
eventWaits?: boolean;
|
|
23
|
+
strategy?: Partial<GoalStrategyConfig>;
|
|
24
|
+
preauthorizedCreateMaxRounds?: number;
|
|
25
|
+
preauthorizedSchedule?: boolean;
|
|
26
|
+
databasePath?: string;
|
|
27
|
+
maxContextChars?: number;
|
|
28
|
+
verifyNativeRounds?: boolean;
|
|
29
|
+
verifyGoalOutcome?: boolean;
|
|
30
|
+
stepMaxDurationMs?: number;
|
|
31
|
+
executionBudget?: GoalBudgetConfig;
|
|
32
|
+
backgroundWake?: GoalWakeConfig;
|
|
33
|
+
}
|
|
34
|
+
export declare const Config: Schema<Config>;
|
|
35
|
+
declare module '@deepseek-ai/cordis' {
|
|
36
|
+
interface Context {
|
|
37
|
+
assistantGoals: AssistantGoalsService;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export declare class AssistantGoalsService extends Service {
|
|
41
|
+
#private;
|
|
42
|
+
static Config: Schema<Config>;
|
|
43
|
+
readonly preauthorizedCreateEnabled: boolean;
|
|
44
|
+
readonly preauthorizedScheduleEnabled: boolean;
|
|
45
|
+
readonly strategyEnabled: boolean;
|
|
46
|
+
readonly eventWaitsEnabled: boolean;
|
|
47
|
+
constructor(ctx: Context, input?: Config);
|
|
48
|
+
/** Owner-scoped retrieval context, including explicit focus; never execution authority. */
|
|
49
|
+
taskContext: (agent: Agent | undefined) => GoalTaskContext | undefined;
|
|
50
|
+
preauthorizeSchedule: (execution: ToolExecution) => boolean;
|
|
51
|
+
preauthorizeCreate: (execution: ToolExecution) => boolean;
|
|
52
|
+
create: (agent: Agent | undefined, objective: string, maxGoalRounds?: number) => GoalRecord;
|
|
53
|
+
control: (agent: Agent | undefined, value: GoalControlInput) => GoalRecord;
|
|
54
|
+
/** Explicit owner authorization for one delayed resume, never an autonomous human-turn substitute. */
|
|
55
|
+
schedule: (agent: Agent | undefined, goalId: string, expectedRevision: number, at: number, signal: AbortSignal) => Promise<GoalWake>;
|
|
56
|
+
waitForEvent: (agent: Agent | undefined, goalId: string, expectedRevision: number, triggerId: string, expiresAt: number, signal: AbortSignal, opportunityProfile?: string) => Promise<import("./event-wait-store.js").GoalEventWait>;
|
|
57
|
+
assertPreparationCurrent: (input: PreparationAuthority) => void;
|
|
58
|
+
eventWaitsForGoal: (agent: Agent | undefined, goalId: string) => readonly import("./event-wait-store.js").GoalEventWait[];
|
|
59
|
+
concludeNativeEventWait: (agent: Agent | undefined) => boolean;
|
|
60
|
+
preauthorizeEventWait: (execution: ToolExecution) => boolean;
|
|
61
|
+
scheduledWakes: (agent: Agent | undefined, goalId: string) => readonly GoalWake[];
|
|
62
|
+
ownsWakeExecution: (input: DeliveryGoalWakeInput) => boolean;
|
|
63
|
+
list: (agent: Agent | undefined) => readonly GoalRecord[];
|
|
64
|
+
inspect: (agent: Agent | undefined, goalId: string) => GoalRecord;
|
|
65
|
+
/** Minimal read-only lifecycle projection for exact host-owned source bindings. */
|
|
66
|
+
inspectGoalLifecycle: (input: {
|
|
67
|
+
scope: GoalScope;
|
|
68
|
+
goalId: string;
|
|
69
|
+
}) => Readonly<{
|
|
70
|
+
scope: Readonly<{
|
|
71
|
+
principalId: string;
|
|
72
|
+
principalRecordId: string;
|
|
73
|
+
principalVersion: number;
|
|
74
|
+
workspace: string;
|
|
75
|
+
preset: string;
|
|
76
|
+
}>;
|
|
77
|
+
id: string;
|
|
78
|
+
definition: Readonly<{
|
|
79
|
+
version: number;
|
|
80
|
+
digest: string;
|
|
81
|
+
}>;
|
|
82
|
+
native: Readonly<{
|
|
83
|
+
sessionId: string;
|
|
84
|
+
goalId: string;
|
|
85
|
+
revision: number;
|
|
86
|
+
phase: "active" | "paused" | "blocked" | "complete" | "cleared";
|
|
87
|
+
}>;
|
|
88
|
+
}> | undefined;
|
|
89
|
+
focus: (agent: Agent | undefined, goalId: string) => GoalRecord;
|
|
90
|
+
checkpoint: (agent: Agent | undefined, goalId: string, expectedVersion: number, checkpoint: GoalCheckpoint) => GoalRecord;
|
|
91
|
+
snapshot: (agent: Agent | undefined) => string;
|
|
92
|
+
catalog: (agent: Agent | undefined) => string;
|
|
93
|
+
describe: (record: GoalRecord) => string;
|
|
94
|
+
describeForAgent: (agent: Agent | undefined, goalId: string) => string;
|
|
95
|
+
preauthorizeStrategy: (execution: ToolExecution) => boolean;
|
|
96
|
+
runStrategy: (agent: Agent | undefined, input: unknown, signal: AbortSignal) => Promise<{
|
|
97
|
+
children: {
|
|
98
|
+
usage: Readonly<import("./budget-store.js").GoalBudgetRunUsage>;
|
|
99
|
+
sessionId: string;
|
|
100
|
+
stopReason: string;
|
|
101
|
+
quiescent: boolean;
|
|
102
|
+
diagnostics?: import("./strategy-store.js").StrategyChildDiagnostics;
|
|
103
|
+
}[];
|
|
104
|
+
strategyId: string;
|
|
105
|
+
outcome: "advice" | "execution-failed" | "cancelled" | "unknown";
|
|
106
|
+
advice: string[];
|
|
107
|
+
terminationReason: import("./strategy-store.js").StrategyTerminationReason;
|
|
108
|
+
unverified: true;
|
|
109
|
+
}>;
|
|
110
|
+
inspectStrategies: (agent: Agent | undefined, goalId: string) => readonly import("./strategy-store.js").StrategyRecord[];
|
|
111
|
+
inspectStrategyAssessments: (agent: Agent | undefined, goalId: string) => GoalStrategyHistory | undefined;
|
|
112
|
+
registerBudgetMeter: (meter: GoalBudgetMeter) => (() => void);
|
|
113
|
+
inspectBudget: (agent: Agent | undefined, goalId: string) => GoalBudgetSnapshot | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Host-only post-quiescence evidence read. It revalidates the live Delivery
|
|
116
|
+
* owner route and never needs (or revives) the former native Agent.
|
|
117
|
+
*/
|
|
118
|
+
inspectOwnerGoalExecution: (input: OwnerGoalExecutionSnapshotInput) => Readonly<{
|
|
119
|
+
outcomeAssessments: {
|
|
120
|
+
contract: TaskAcceptanceContract;
|
|
121
|
+
triggerRunId: string | null;
|
|
122
|
+
dispatchedAt: number | null;
|
|
123
|
+
execution: {
|
|
124
|
+
readonly status: "succeeded" | "unknown";
|
|
125
|
+
readonly quiescent: boolean;
|
|
126
|
+
readonly completedAt: number;
|
|
127
|
+
} | null;
|
|
128
|
+
}[];
|
|
129
|
+
acceptedTasks: ({
|
|
130
|
+
contractId: string;
|
|
131
|
+
state: "unavailable";
|
|
132
|
+
attempts: number;
|
|
133
|
+
reason: null;
|
|
134
|
+
contract: null;
|
|
135
|
+
receipt: null;
|
|
136
|
+
verifierExecutionObservation: null;
|
|
137
|
+
} | {
|
|
138
|
+
contractId: string;
|
|
139
|
+
state: "awaiting-execution" | "pending" | "verifying" | "done" | "needs-attention";
|
|
140
|
+
attempts: number;
|
|
141
|
+
reason: string | null;
|
|
142
|
+
contract: TaskAcceptanceContract;
|
|
143
|
+
receipt: import("@dsh-enhanced/task-acceptance-contract").TaskVerificationReceipt | null;
|
|
144
|
+
/** Verifier readback; only exact goal-step values are cross-checked against our ledger. */ verifierExecutionObservation: {
|
|
145
|
+
status?: unknown;
|
|
146
|
+
quiescent?: unknown;
|
|
147
|
+
completedAt?: unknown;
|
|
148
|
+
executionRef?: unknown;
|
|
149
|
+
} | null;
|
|
150
|
+
})[];
|
|
151
|
+
feedback?: GoalFeedback;
|
|
152
|
+
outcome?: GoalOutcomeView;
|
|
153
|
+
strategyRecords: readonly import("./strategy-store.js").StrategyRecord[];
|
|
154
|
+
strategy?: GoalStrategyHistory;
|
|
155
|
+
budget?: GoalBudgetSnapshot;
|
|
156
|
+
protocol: "assistant-goals/owner-execution-snapshot/v1";
|
|
157
|
+
ownerRoute: Readonly<import("@dsh-enhanced/assistant-delivery").OwnerRouteValidationReceipt>;
|
|
158
|
+
storedGoal: {
|
|
159
|
+
id: string;
|
|
160
|
+
scope: GoalScope;
|
|
161
|
+
originalObjective: string;
|
|
162
|
+
definition: import("./types.js").GoalDefinition;
|
|
163
|
+
checkpoint: GoalCheckpoint;
|
|
164
|
+
version: number;
|
|
165
|
+
createdAt: number;
|
|
166
|
+
updatedAt: number;
|
|
167
|
+
/** Historical ledger observation only; this API does not assert a live native Session. */ nativeAtLastObservation: NativeGoalState;
|
|
168
|
+
};
|
|
169
|
+
executionRuns: readonly GoalExecutionRun[];
|
|
170
|
+
}>;
|
|
171
|
+
/** Mint a process-local capability for one exact terminal whole-goal assessment. */
|
|
172
|
+
issueOwnerGoalOutcomeFeedbackTarget: (value: OwnerGoalOutcomeFeedbackLocator) => unknown;
|
|
173
|
+
/** Resolve only a capability minted by this live service and re-prove its exact issuance identity. */
|
|
174
|
+
resolveOwnerGoalOutcomeFeedbackTarget: (capability: unknown) => OwnerGoalOutcomeFeedbackProof;
|
|
175
|
+
/** Host-only final outcome artifact handoff. It never creates a model tool or Agent. */
|
|
176
|
+
inspectOwnerVerifiedArtifacts: (value: OwnerVerifiedArtifactsInput) => Readonly<{
|
|
177
|
+
protocol: "assistant-goals/verified-artifacts/v1";
|
|
178
|
+
scope: GoalScope;
|
|
179
|
+
goal: {
|
|
180
|
+
id: string;
|
|
181
|
+
definition: {
|
|
182
|
+
readonly version: number;
|
|
183
|
+
readonly digest: string;
|
|
184
|
+
readonly objective: string;
|
|
185
|
+
};
|
|
186
|
+
sessionId: string;
|
|
187
|
+
nativeGoalId: string;
|
|
188
|
+
};
|
|
189
|
+
runId: string;
|
|
190
|
+
acceptance: {
|
|
191
|
+
stepContractId: string;
|
|
192
|
+
stepContractDigest: string;
|
|
193
|
+
outcomeContractId: string;
|
|
194
|
+
outcomeContractDigest: string;
|
|
195
|
+
stepReceiptDigest: string;
|
|
196
|
+
outcomeReceiptDigest: string;
|
|
197
|
+
validUntil: number;
|
|
198
|
+
};
|
|
199
|
+
files: {
|
|
200
|
+
readonly path: string;
|
|
201
|
+
readonly content: string;
|
|
202
|
+
readonly sha256: string;
|
|
203
|
+
readonly jobId: string;
|
|
204
|
+
}[];
|
|
205
|
+
}>;
|
|
206
|
+
/** Host-only accepted step artifact handoff for explicitly authorized intermediate delivery. */
|
|
207
|
+
inspectOwnerAcceptedStepArtifacts: (value: OwnerVerifiedArtifactsInput) => Readonly<{
|
|
208
|
+
protocol: "assistant-goals/accepted-step-artifacts/v1";
|
|
209
|
+
scope: GoalScope;
|
|
210
|
+
goal: {
|
|
211
|
+
id: string;
|
|
212
|
+
definition: {
|
|
213
|
+
readonly version: number;
|
|
214
|
+
readonly digest: string;
|
|
215
|
+
readonly objective: string;
|
|
216
|
+
};
|
|
217
|
+
sessionId: string;
|
|
218
|
+
nativeGoalId: string;
|
|
219
|
+
};
|
|
220
|
+
runId: string;
|
|
221
|
+
acceptance: {
|
|
222
|
+
stepContractId: string;
|
|
223
|
+
stepContractDigest: string;
|
|
224
|
+
stepReceiptDigest: string;
|
|
225
|
+
validUntil: number;
|
|
226
|
+
};
|
|
227
|
+
files: {
|
|
228
|
+
readonly path: string;
|
|
229
|
+
readonly content: string;
|
|
230
|
+
readonly sha256: string;
|
|
231
|
+
readonly jobId: string;
|
|
232
|
+
}[];
|
|
233
|
+
}>;
|
|
234
|
+
/**
|
|
235
|
+
* Host-only exact native run trace. The digest provides integrity and
|
|
236
|
+
* correlation only; callers trust this value because it came directly from
|
|
237
|
+
* the current Goals service capability.
|
|
238
|
+
*/
|
|
239
|
+
inspectOwnerGoalRunProof: (value: OwnerGoalRunProofInput, signal?: AbortSignal) => Promise<OwnerGoalRunProof>;
|
|
240
|
+
/**
|
|
241
|
+
* Host-only not-achieved evidence for bounded exact failed Goals and one
|
|
242
|
+
* independently achieved repair Goal. The public digest detects drift but does not authenticate a
|
|
243
|
+
* caller-supplied value; source trust is this current service capability.
|
|
244
|
+
*/
|
|
245
|
+
inspectOwnerFailureCaptureSummary: (value: OwnerFailureCaptureSummaryInput, signal?: AbortSignal) => Promise<HostFailureEvidenceSummary>;
|
|
246
|
+
/**
|
|
247
|
+
* Host-only, repair-free evidence for a bounded repeated failure trigger.
|
|
248
|
+
* This is deliberately separate from the historical achieved-repair summary:
|
|
249
|
+
* it cannot be mistaken for a completed remediation.
|
|
250
|
+
*/
|
|
251
|
+
inspectOwnerFailureTrigger: (value: OwnerFailureTriggerInput, signal?: AbortSignal) => Promise<HostFailureTriggerEvidence>;
|
|
252
|
+
/** Host-only bridge for a durable, already-authorized background repair. Never exposed as a tool. */
|
|
253
|
+
startOwnerAuthorizedRepair: (agent: Agent, value: OwnerAuthorizedRepairInput, currentAuthority: () => void) => Promise<GoalRecord>;
|
|
254
|
+
trustedAcceptanceProducerGeneration: () => string;
|
|
255
|
+
registerTaskAcceptanceSink: (registration: TaskAcceptanceRegistration) => () => void;
|
|
256
|
+
currentArtifactAdmission: (agent: Agent) => import("@dsh-enhanced/task-acceptance-contract").GoalArtifactAdmission | undefined;
|
|
257
|
+
inspectAcceptedArtifactSource: (contract: TaskAcceptanceContract) => Promise<import("@dsh-enhanced/assistant-verifier").AcceptanceHandle | null>;
|
|
258
|
+
inspectAcceptedExecution: (contract: TaskAcceptanceContract) => Promise<import("@dsh-enhanced/assistant-verifier").AcceptedExecution | null>;
|
|
259
|
+
inspectGoalOutcome: (agent: Agent | undefined, goalId: string) => GoalOutcomeView | undefined;
|
|
260
|
+
inspectWorkflowRunContext: (agent: Agent | undefined, goalId: string) => Readonly<{
|
|
261
|
+
scope: Readonly<{
|
|
262
|
+
principalId: string;
|
|
263
|
+
principalRecordId: string;
|
|
264
|
+
principalVersion: number;
|
|
265
|
+
workspace: string;
|
|
266
|
+
preset: string;
|
|
267
|
+
}>;
|
|
268
|
+
goalId: string;
|
|
269
|
+
sessionId: string;
|
|
270
|
+
nativeGoalId: string;
|
|
271
|
+
definition: Readonly<{
|
|
272
|
+
version: number;
|
|
273
|
+
digest: string;
|
|
274
|
+
objective: string;
|
|
275
|
+
}>;
|
|
276
|
+
goalExecutionRunId: string;
|
|
277
|
+
}>;
|
|
278
|
+
/**
|
|
279
|
+
* Host-only capture registration context for the still-open authenticated
|
|
280
|
+
* owner turn. Unlike inspectWorkflowRunContext(), it intentionally does not
|
|
281
|
+
* require an admitted native execution run.
|
|
282
|
+
*/
|
|
283
|
+
inspectActiveWorkflowCaptureContext: (agent: Agent | undefined, goalId: string) => Readonly<{
|
|
284
|
+
scope: Readonly<{
|
|
285
|
+
principalId: string;
|
|
286
|
+
principalRecordId: string;
|
|
287
|
+
principalVersion: number;
|
|
288
|
+
workspace: string;
|
|
289
|
+
preset: string;
|
|
290
|
+
}>;
|
|
291
|
+
goalId: string;
|
|
292
|
+
sessionId: string;
|
|
293
|
+
nativeGoalId: string;
|
|
294
|
+
definition: Readonly<{
|
|
295
|
+
version: number;
|
|
296
|
+
digest: string;
|
|
297
|
+
objective: string;
|
|
298
|
+
}>;
|
|
299
|
+
}>;
|
|
300
|
+
inspectVerifiedWorkflowSource: (agent: Agent | undefined, goalId: string) => VerifiedWorkflowSource;
|
|
301
|
+
/** Read an exact independently accepted run, even after this Session starts another Goal. */
|
|
302
|
+
inspectVerifiedWorkflowRun: (agent: Agent | undefined, goalId: string, goalExecutionRunId: string) => VerifiedWorkflowSource;
|
|
303
|
+
/**
|
|
304
|
+
* Owner-authorized cold/live Session evidence read. It deliberately has no
|
|
305
|
+
* Agent argument, so observing an ended owner Session cannot reactivate it.
|
|
306
|
+
*/
|
|
307
|
+
inspectOwnerVerifiedWorkflowSource: (input: OwnerGoalExecutionSnapshotInput, signal?: AbortSignal) => Promise<VerifiedWorkflowSource>;
|
|
308
|
+
executionRuns: (agent: Agent | undefined, goalId: string) => readonly GoalExecutionRun[];
|
|
309
|
+
whenIdle: () => Promise<void>;
|
|
310
|
+
/** Host lifecycle read; it grants no Goal mutation or tool authority. */
|
|
311
|
+
hasPendingExecutionSettlement: (agent: Agent | undefined) => boolean;
|
|
312
|
+
health: () => {
|
|
313
|
+
observationFailures: number;
|
|
314
|
+
executionEnabled: boolean;
|
|
315
|
+
verifierConnected: boolean;
|
|
316
|
+
outcomeEnabled: boolean;
|
|
317
|
+
outcomeConnected: boolean;
|
|
318
|
+
budgetEnabled: boolean;
|
|
319
|
+
registeredBudgetMeters: number;
|
|
320
|
+
activeBudgetCalls: number;
|
|
321
|
+
wakeEnabled: boolean;
|
|
322
|
+
wakeConnected: boolean;
|
|
323
|
+
wakeReconciliationFailures: number;
|
|
324
|
+
eventWaitsEnabled: boolean;
|
|
325
|
+
eventWait: {
|
|
326
|
+
enabled: boolean;
|
|
327
|
+
connected: boolean;
|
|
328
|
+
reconciliationFailures: number;
|
|
329
|
+
} | {
|
|
330
|
+
enabled: false;
|
|
331
|
+
};
|
|
332
|
+
execution: {
|
|
333
|
+
enabled: boolean;
|
|
334
|
+
verifierConnected: boolean;
|
|
335
|
+
activeRounds: number;
|
|
336
|
+
};
|
|
337
|
+
outcome: {
|
|
338
|
+
enabled: boolean;
|
|
339
|
+
connected: boolean;
|
|
340
|
+
} | {
|
|
341
|
+
enabled: false;
|
|
342
|
+
};
|
|
343
|
+
budget: {
|
|
344
|
+
enabled: boolean;
|
|
345
|
+
registeredMeters: number;
|
|
346
|
+
activeCalls: number;
|
|
347
|
+
} | {
|
|
348
|
+
enabled: false;
|
|
349
|
+
};
|
|
350
|
+
wake: {
|
|
351
|
+
enabled: boolean;
|
|
352
|
+
connected: boolean;
|
|
353
|
+
reconciliationFailures: number;
|
|
354
|
+
} | {
|
|
355
|
+
enabled: false;
|
|
356
|
+
};
|
|
357
|
+
goals: number;
|
|
358
|
+
awaitingVerification: number;
|
|
359
|
+
ready: boolean;
|
|
360
|
+
contextReady: boolean;
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAInD,OAAO,KAAK,EAA4B,+BAA+B,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAA;AAEhJ,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAK7C,OA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