@tickernelz/wardmote-adapter-utils 2026.1109.0 → 2026.1112.0
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/README.md +1 -1
- package/dist/acpx-engine/composed-run-characterization.test.js +13 -16
- package/dist/acpx-engine/composed-run-characterization.test.js.map +1 -1
- package/dist/acpx-engine/ephemeral-session-environment.test.js +1 -1
- package/dist/acpx-engine/ephemeral-session-environment.test.js.map +1 -1
- package/dist/acpx-engine/execute-identity.test.js +3 -3
- package/dist/acpx-engine/execute-identity.test.js.map +1 -1
- package/dist/acpx-engine/execute.d.ts +2 -28
- package/dist/acpx-engine/execute.d.ts.map +1 -1
- package/dist/acpx-engine/execute.js +142 -203
- package/dist/acpx-engine/execute.js.map +1 -1
- package/dist/acpx-engine/execute.test.js +171 -187
- package/dist/acpx-engine/execute.test.js.map +1 -1
- package/dist/acpx-engine/filesystem-protocol.test.js +1 -1
- package/dist/acpx-engine/filesystem-protocol.test.js.map +1 -1
- package/dist/acpx-engine/managed-codex-skills-manifest.d.ts +3 -0
- package/dist/acpx-engine/managed-codex-skills-manifest.d.ts.map +1 -0
- package/dist/acpx-engine/managed-codex-skills-manifest.js +30 -0
- package/dist/acpx-engine/managed-codex-skills-manifest.js.map +1 -0
- package/dist/acpx-engine/managed-codex-skills-manifest.test.d.ts +2 -0
- package/dist/acpx-engine/managed-codex-skills-manifest.test.d.ts.map +1 -0
- package/dist/acpx-engine/managed-codex-skills-manifest.test.js +29 -0
- package/dist/acpx-engine/managed-codex-skills-manifest.test.js.map +1 -0
- package/dist/acpx-engine/operator-stop.test.js +1 -1
- package/dist/acpx-engine/operator-stop.test.js.map +1 -1
- package/dist/acpx-engine/remote-spawn-smoke.test.js +5 -5
- package/dist/acpx-engine/remote-spawn-smoke.test.js.map +1 -1
- package/dist/acpx-engine/run-contracts.d.ts +5 -15
- package/dist/acpx-engine/run-contracts.d.ts.map +1 -1
- package/dist/acpx-engine/run-contracts.js.map +1 -1
- package/dist/acpx-engine/run-fault-matrix.test.js +7 -7
- package/dist/acpx-engine/run-fault-matrix.test.js.map +1 -1
- package/dist/acpx-engine/run-site-sandbox.d.ts +5 -12
- package/dist/acpx-engine/run-site-sandbox.d.ts.map +1 -1
- package/dist/acpx-engine/run-site-sandbox.js +4 -16
- package/dist/acpx-engine/run-site-sandbox.js.map +1 -1
- package/dist/acpx-engine/run-site-sandbox.test.js +10 -13
- package/dist/acpx-engine/run-site-sandbox.test.js.map +1 -1
- package/dist/acpx-engine/settlement-characterization.test.js +20 -20
- package/dist/acpx-engine/settlement-characterization.test.js.map +1 -1
- package/dist/acpx-engine/spawn-smoke.test.js +6 -6
- package/dist/acpx-engine/spawn-smoke.test.js.map +1 -1
- package/dist/acpx-engine/startup-characterization.test.js +14 -18
- package/dist/acpx-engine/startup-characterization.test.js.map +1 -1
- package/dist/acpx-engine/startup-timing.d.ts +27 -45
- package/dist/acpx-engine/startup-timing.d.ts.map +1 -1
- package/dist/acpx-engine/startup-timing.js +1 -19
- package/dist/acpx-engine/startup-timing.js.map +1 -1
- package/dist/acpx-engine/turn-characterization.test.js +3 -3
- package/dist/acpx-engine/turn-characterization.test.js.map +1 -1
- package/dist/acpx-engine/turn-sequence.js +1 -1
- package/dist/acpx-engine/turn-sequence.js.map +1 -1
- package/dist/chat-file-delivery.d.ts +3 -3
- package/dist/chat-file-delivery.d.ts.map +1 -1
- package/dist/chat-file-delivery.js +5 -5
- package/dist/chat-file-delivery.js.map +1 -1
- package/dist/chat-file-delivery.test.js +10 -10
- package/dist/chat-file-delivery.test.js.map +1 -1
- package/dist/command-managed-runtime.js +5 -5
- package/dist/command-managed-runtime.js.map +1 -1
- package/dist/command-managed-runtime.test.js +36 -38
- package/dist/command-managed-runtime.test.js.map +1 -1
- package/dist/directory-merge-lock.test.js +1 -1
- package/dist/directory-merge-lock.test.js.map +1 -1
- package/dist/execution-target-sandbox.test.js +259 -267
- package/dist/execution-target-sandbox.test.js.map +1 -1
- package/dist/execution-target-stdin-race.test.js +55 -65
- package/dist/execution-target-stdin-race.test.js.map +1 -1
- package/dist/execution-target.d.ts +6 -36
- package/dist/execution-target.d.ts.map +1 -1
- package/dist/execution-target.js +35 -86
- package/dist/execution-target.js.map +1 -1
- package/dist/execution-target.test.js +1 -1
- package/dist/execution-target.test.js.map +1 -1
- package/dist/forbidden-config-env.test.js +2 -2
- package/dist/forbidden-config-env.test.js.map +1 -1
- package/dist/git-workspace-sync.d.ts +2 -2
- package/dist/git-workspace-sync.d.ts.map +1 -1
- package/dist/git-workspace-sync.js +7 -7
- package/dist/git-workspace-sync.js.map +1 -1
- package/dist/git-workspace-sync.test.js +61 -61
- package/dist/git-workspace-sync.test.js.map +1 -1
- package/dist/github-launcher-environment.test.js +5 -5
- package/dist/github-launcher-environment.test.js.map +1 -1
- package/dist/github-launcher.js +8 -8
- package/dist/github-launcher.test.js +6 -6
- package/dist/github-launcher.test.js.map +1 -1
- package/dist/http2-bridge-server.test.js +1 -1
- package/dist/http2-bridge-server.test.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/local-process-sandbox.js +7 -7
- package/dist/local-process-sandbox.js.map +1 -1
- package/dist/local-process-sandbox.test.js +16 -16
- package/dist/local-process-sandbox.test.js.map +1 -1
- package/dist/mcp-isolation.integration.test.js +4 -4
- package/dist/mcp-isolation.integration.test.js.map +1 -1
- package/dist/prompt-sections.test.js +11 -11
- package/dist/prompt-sections.test.js.map +1 -1
- package/dist/provider-models/claude.d.ts +0 -1
- package/dist/provider-models/claude.d.ts.map +1 -1
- package/dist/provider-models/claude.js +0 -1
- package/dist/provider-models/claude.js.map +1 -1
- package/dist/remote-managed-runtime.js +6 -6
- package/dist/remote-managed-runtime.js.map +1 -1
- package/dist/remote-managed-runtime.test.js +14 -14
- package/dist/remote-managed-runtime.test.js.map +1 -1
- package/dist/retired-marker-names.d.ts +2 -0
- package/dist/retired-marker-names.d.ts.map +1 -0
- package/dist/retired-marker-names.js +2 -0
- package/dist/retired-marker-names.js.map +1 -0
- package/dist/retired-skill-names.d.ts +3 -0
- package/dist/retired-skill-names.d.ts.map +1 -0
- package/dist/retired-skill-names.js +8 -0
- package/dist/retired-skill-names.js.map +1 -0
- package/dist/runner-connectivity.d.ts +5 -5
- package/dist/runner-connectivity.d.ts.map +1 -1
- package/dist/runner-connectivity.js +11 -11
- package/dist/runner-connectivity.js.map +1 -1
- package/dist/runner-connectivity.test.js +21 -21
- package/dist/runner-connectivity.test.js.map +1 -1
- package/dist/runtime-progress.d.ts.map +1 -1
- package/dist/runtime-progress.js +1 -4
- package/dist/runtime-progress.js.map +1 -1
- package/dist/runtime-progress.test.js +13 -13
- package/dist/runtime-progress.test.js.map +1 -1
- package/dist/sandbox-callback-bridge.d.ts +1 -16
- package/dist/sandbox-callback-bridge.d.ts.map +1 -1
- package/dist/sandbox-callback-bridge.js +28 -61
- package/dist/sandbox-callback-bridge.js.map +1 -1
- package/dist/sandbox-callback-bridge.test.js +67 -88
- package/dist/sandbox-callback-bridge.test.js.map +1 -1
- package/dist/sandbox-file-sync.test.js +9 -9
- package/dist/sandbox-file-sync.test.js.map +1 -1
- package/dist/sandbox-managed-runtime.d.ts +0 -30
- package/dist/sandbox-managed-runtime.d.ts.map +1 -1
- package/dist/sandbox-managed-runtime.js +12 -34
- package/dist/sandbox-managed-runtime.js.map +1 -1
- package/dist/sandbox-managed-runtime.test.js +130 -140
- package/dist/sandbox-managed-runtime.test.js.map +1 -1
- package/dist/sandbox-run-log-stream.js +1 -1
- package/dist/sandbox-run-log-stream.js.map +1 -1
- package/dist/server-utils-env.test.js +8 -7
- package/dist/server-utils-env.test.js.map +1 -1
- package/dist/server-utils.d.ts +118 -144
- package/dist/server-utils.d.ts.map +1 -1
- package/dist/server-utils.js +243 -270
- package/dist/server-utils.js.map +1 -1
- package/dist/server-utils.test.js +274 -257
- package/dist/server-utils.test.js.map +1 -1
- package/dist/session-compaction.js +1 -1
- package/dist/session-compaction.js.map +1 -1
- package/dist/skill-library-manifest.d.ts +2 -2
- package/dist/skill-library-manifest.d.ts.map +1 -1
- package/dist/skill-library-manifest.test.js +4 -4
- package/dist/skill-library-manifest.test.js.map +1 -1
- package/dist/ssh-fixture.test.js +57 -57
- package/dist/ssh-fixture.test.js.map +1 -1
- package/dist/ssh.d.ts.map +1 -1
- package/dist/ssh.js +16 -38
- package/dist/ssh.js.map +1 -1
- package/dist/test-fixtures/prompt-context.d.ts +5 -5
- package/dist/test-fixtures/prompt-context.js +5 -5
- package/dist/test-fixtures/prompt-context.js.map +1 -1
- package/dist/tool-profile.d.ts +1 -1
- package/dist/tool-profile.d.ts.map +1 -1
- package/dist/tool-profile.js +1 -1
- package/dist/tool-profile.js.map +1 -1
- package/dist/types.d.ts +13 -31
- package/dist/types.d.ts.map +1 -1
- package/dist/wardmote-mcp-mount.d.ts +9 -9
- package/dist/wardmote-mcp-mount.d.ts.map +1 -1
- package/dist/wardmote-mcp-mount.js +9 -9
- package/dist/wardmote-mcp-mount.js.map +1 -1
- package/dist/wardmote-mcp.d.ts +23 -25
- package/dist/wardmote-mcp.d.ts.map +1 -1
- package/dist/wardmote-mcp.js +32 -33
- package/dist/wardmote-mcp.js.map +1 -1
- package/dist/wardmote-mcp.test.js +52 -52
- package/dist/wardmote-mcp.test.js.map +1 -1
- package/dist/wardmote-runner-permissions.d.ts +14 -19
- package/dist/wardmote-runner-permissions.d.ts.map +1 -1
- package/dist/wardmote-runner-permissions.js +8 -13
- package/dist/wardmote-runner-permissions.js.map +1 -1
- package/dist/wardmote-runner-permissions.test.js +32 -32
- package/dist/wardmote-runner-permissions.test.js.map +1 -1
- package/dist/workspace-git-stream.test.js +1 -1
- package/dist/workspace-git-stream.test.js.map +1 -1
- package/dist/workspace-manifest.test.js +3 -3
- package/dist/workspace-manifest.test.js.map +1 -1
- package/dist/workspace-restore-diagnostics.js +1 -1
- package/dist/workspace-restore-diagnostics.js.map +1 -1
- package/dist/workspace-restore-diagnostics.test.js +5 -5
- package/dist/workspace-restore-diagnostics.test.js.map +1 -1
- package/dist/workspace-restore-merge.js +3 -3
- package/dist/workspace-restore-merge.js.map +1 -1
- package/dist/workspace-restore-merge.test.js +50 -56
- package/dist/workspace-restore-merge.test.js.map +1 -1
- package/dist/workspace-restore-result.test.js +2 -2
- package/dist/workspace-restore-result.test.js.map +1 -1
- package/dist/workspace-restore-teardown.test.js +6 -6
- package/dist/workspace-restore-teardown.test.js.map +1 -1
- package/package.json +2 -2
package/dist/server-utils.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ExecutionContinuationEnvelope } from "@tickernelz/wardmote-shared"
|
|
|
2
2
|
import { type ChildProcess } from "node:child_process";
|
|
3
3
|
import { type LocalProcessSandboxOptions } from "./local-process-sandbox.js";
|
|
4
4
|
import { type SshRemoteExecutionSpec } from "./ssh.js";
|
|
5
|
-
import type {
|
|
5
|
+
import type { WardmoteAccessMode } from "./wardmote-mcp.js";
|
|
6
6
|
import type { AdapterExecutionContext, AgentRuntimeIdentity, AdapterRuntimeToolAccess, AdapterSkillSnapshot } from "./types.js";
|
|
7
7
|
import type { BoundLiveStdinChannel } from "./live-stdin-channel.js";
|
|
8
8
|
export declare function buildRuntimeToolsEnv(access: AdapterRuntimeToolAccess | null | undefined): Record<string, string>;
|
|
@@ -47,19 +47,18 @@ export declare function signalRunningProcess(running: Pick<RunningProcess, "chil
|
|
|
47
47
|
export declare const runningProcesses: Map<string, RunningProcess>;
|
|
48
48
|
export declare const MAX_CAPTURE_BYTES: number;
|
|
49
49
|
export declare const MAX_EXCERPT_BYTES: number;
|
|
50
|
-
export declare function
|
|
50
|
+
export declare function isWardmoteRuntimeEnvKey(key: string): boolean;
|
|
51
51
|
export declare function isForbiddenConfigEnvKey(key: string): boolean;
|
|
52
|
-
export declare function
|
|
52
|
+
export declare function resolveWardmoteInstanceRootForAdapter(input?: {
|
|
53
53
|
homeDir?: string;
|
|
54
54
|
instanceId?: string;
|
|
55
55
|
env?: NodeJS.ProcessEnv;
|
|
56
56
|
}): string;
|
|
57
|
-
|
|
58
|
-
export declare function paperclipAgentPromptTemplate(access: PaperclipAccessMode): string;
|
|
57
|
+
export declare function wardmoteAgentPromptTemplate(access: WardmoteAccessMode): string;
|
|
59
58
|
export declare const DEFAULT_WARDMOTE_AGENT_PROMPT_TEMPLATE: string;
|
|
60
59
|
export declare const DEFAULT_WARDMOTE_CONVERSATION_PROMPT_TEMPLATE: string;
|
|
61
60
|
export declare const WATCHDOG_DEFAULT_MANDATE: string;
|
|
62
|
-
type
|
|
61
|
+
type WardmoteWakeTaskWatchdogLeaf = {
|
|
63
62
|
id: string | null;
|
|
64
63
|
identifier: string | null;
|
|
65
64
|
title: string | null;
|
|
@@ -68,7 +67,7 @@ type PaperclipWakeTaskWatchdogLeaf = {
|
|
|
68
67
|
role: string | null;
|
|
69
68
|
summary: string | null;
|
|
70
69
|
};
|
|
71
|
-
type
|
|
70
|
+
type WardmoteWakeTaskWatchdogCapabilities = {
|
|
72
71
|
operations: string[];
|
|
73
72
|
deniedOperations: string[];
|
|
74
73
|
targetScope: {
|
|
@@ -79,16 +78,16 @@ type PaperclipWakeTaskWatchdogCapabilities = {
|
|
|
79
78
|
excludedOriginKinds: string[];
|
|
80
79
|
} | null;
|
|
81
80
|
};
|
|
82
|
-
export type
|
|
81
|
+
export type WardmoteWakeTaskWatchdogContext = {
|
|
83
82
|
watchedIssueId: string | null;
|
|
84
83
|
watchedIssueIdentifier: string | null;
|
|
85
84
|
watchedIssueTitle: string | null;
|
|
86
85
|
stopFingerprint: string | null;
|
|
87
|
-
terminalLeafSummaries:
|
|
86
|
+
terminalLeafSummaries: WardmoteWakeTaskWatchdogLeaf[];
|
|
88
87
|
customInstructions: string | null;
|
|
89
|
-
capabilities:
|
|
88
|
+
capabilities: WardmoteWakeTaskWatchdogCapabilities | null;
|
|
90
89
|
};
|
|
91
|
-
export interface
|
|
90
|
+
export interface WardmoteSkillEntry {
|
|
92
91
|
key: string;
|
|
93
92
|
runtimeName: string;
|
|
94
93
|
source: string;
|
|
@@ -97,7 +96,7 @@ export interface PaperclipSkillEntry {
|
|
|
97
96
|
sourceStatus?: "available" | "missing";
|
|
98
97
|
missingDetail?: string | null;
|
|
99
98
|
}
|
|
100
|
-
export interface
|
|
99
|
+
export interface WardmoteDesiredSkillEntry {
|
|
101
100
|
key: string;
|
|
102
101
|
versionId: string | null;
|
|
103
102
|
}
|
|
@@ -105,13 +104,13 @@ export interface InstalledSkillTarget {
|
|
|
105
104
|
targetPath: string | null;
|
|
106
105
|
kind: "symlink" | "directory" | "file";
|
|
107
106
|
}
|
|
108
|
-
export interface
|
|
107
|
+
export interface MaterializedWardmoteSkillCopyResult {
|
|
109
108
|
copiedFiles: number;
|
|
110
109
|
skippedSymlinks: string[];
|
|
111
110
|
}
|
|
112
111
|
interface PersistentSkillSnapshotOptions {
|
|
113
112
|
adapterType: string;
|
|
114
|
-
availableEntries:
|
|
113
|
+
availableEntries: WardmoteSkillEntry[];
|
|
115
114
|
desiredSkills: string[];
|
|
116
115
|
installed: Map<string, InstalledSkillTarget>;
|
|
117
116
|
skillsHome: string;
|
|
@@ -124,13 +123,13 @@ interface PersistentSkillSnapshotOptions {
|
|
|
124
123
|
}
|
|
125
124
|
interface RuntimeMountedSkillSnapshotOptions {
|
|
126
125
|
adapterType: string;
|
|
127
|
-
availableEntries:
|
|
126
|
+
availableEntries: WardmoteSkillEntry[];
|
|
128
127
|
desiredSkills: string[];
|
|
129
|
-
configuredDetail: string | ((entry:
|
|
128
|
+
configuredDetail: string | ((entry: WardmoteSkillEntry) => string | null);
|
|
130
129
|
missingDetail?: string;
|
|
131
130
|
mode?: "ephemeral" | "unsupported";
|
|
132
131
|
supported?: boolean;
|
|
133
|
-
unsupportedDetail?: string | ((entry:
|
|
132
|
+
unsupportedDetail?: string | ((entry: WardmoteSkillEntry) => string | null);
|
|
134
133
|
warnings?: string[];
|
|
135
134
|
externalInstalled?: Map<string, InstalledSkillTarget>;
|
|
136
135
|
externalLocationLabel?: string | null;
|
|
@@ -143,7 +142,7 @@ interface RuntimeMountedSkillSnapshotOptions {
|
|
|
143
142
|
* mount time: their `source` path does not exist, so symlinking produces a
|
|
144
143
|
* dangling link and content hashing throws.
|
|
145
144
|
*/
|
|
146
|
-
export declare function
|
|
145
|
+
export declare function isWardmoteSkillSourceMissing(entry: WardmoteSkillEntry): boolean;
|
|
147
146
|
export declare function parseObject(value: unknown): Record<string, unknown>;
|
|
148
147
|
export declare function asString(value: unknown, fallback: string): string;
|
|
149
148
|
export declare function asNumber(value: unknown, fallback: number): number;
|
|
@@ -155,7 +154,7 @@ export declare function appendWithByteCap(prev: string, chunk: string, cap?: num
|
|
|
155
154
|
export declare function resolvePathValue(obj: Record<string, unknown>, dottedPath: string): string;
|
|
156
155
|
export declare function renderTemplate(template: string, data: Record<string, unknown>): string;
|
|
157
156
|
export declare function joinPromptSections(sections: Array<string | null | undefined>, separator?: string): string;
|
|
158
|
-
type
|
|
157
|
+
type WardmoteWakeIssue = {
|
|
159
158
|
id: string | null;
|
|
160
159
|
identifier: string | null;
|
|
161
160
|
title: string | null;
|
|
@@ -165,24 +164,24 @@ type PaperclipWakeIssue = {
|
|
|
165
164
|
workMode: string | null;
|
|
166
165
|
priority: string | null;
|
|
167
166
|
};
|
|
168
|
-
type
|
|
167
|
+
type WardmoteWakeExecutionPrincipal = {
|
|
169
168
|
type: "agent" | "user" | null;
|
|
170
169
|
agentId: string | null;
|
|
171
170
|
userId: string | null;
|
|
172
171
|
};
|
|
173
|
-
type
|
|
172
|
+
type WardmoteWakeExecutionStage = {
|
|
174
173
|
wakeRole: "reviewer" | "approver" | "executor" | null;
|
|
175
174
|
stageId: string | null;
|
|
176
175
|
stageType: string | null;
|
|
177
|
-
currentParticipant:
|
|
178
|
-
returnAssignee:
|
|
176
|
+
currentParticipant: WardmoteWakeExecutionPrincipal | null;
|
|
177
|
+
returnAssignee: WardmoteWakeExecutionPrincipal | null;
|
|
179
178
|
reviewRequest: {
|
|
180
179
|
instructions: string;
|
|
181
180
|
} | null;
|
|
182
181
|
lastDecisionOutcome: string | null;
|
|
183
182
|
allowedActions: string[];
|
|
184
183
|
};
|
|
185
|
-
type
|
|
184
|
+
type WardmoteWakeComment = {
|
|
186
185
|
id: string | null;
|
|
187
186
|
issueId: string | null;
|
|
188
187
|
body: string;
|
|
@@ -191,11 +190,11 @@ type PaperclipWakeComment = {
|
|
|
191
190
|
authorType: string | null;
|
|
192
191
|
authorId: string | null;
|
|
193
192
|
};
|
|
194
|
-
type
|
|
193
|
+
type WardmoteWakePlanReviewAuthor = {
|
|
195
194
|
type: string | null;
|
|
196
195
|
id: string | null;
|
|
197
196
|
};
|
|
198
|
-
type
|
|
197
|
+
type WardmoteWakeAnnotationDelta = {
|
|
199
198
|
id: string | null;
|
|
200
199
|
issueId: string | null;
|
|
201
200
|
threadId: string | null;
|
|
@@ -210,18 +209,18 @@ type PaperclipWakeAnnotationDelta = {
|
|
|
210
209
|
body: string;
|
|
211
210
|
bodyTruncated: boolean;
|
|
212
211
|
createdAt: string | null;
|
|
213
|
-
author:
|
|
212
|
+
author: WardmoteWakePlanReviewAuthor | null;
|
|
214
213
|
};
|
|
215
|
-
type
|
|
214
|
+
type WardmoteWakePlanReviewComment = {
|
|
216
215
|
id: string | null;
|
|
217
216
|
threadId: string | null;
|
|
218
217
|
body: string;
|
|
219
218
|
bodyTruncated: boolean;
|
|
220
|
-
author:
|
|
219
|
+
author: WardmoteWakePlanReviewAuthor | null;
|
|
221
220
|
createdAt: string | null;
|
|
222
221
|
updatedAt: string | null;
|
|
223
222
|
};
|
|
224
|
-
type
|
|
223
|
+
type WardmoteWakePlanReviewThread = {
|
|
225
224
|
id: string | null;
|
|
226
225
|
documentKey: string | null;
|
|
227
226
|
documentId: string | null;
|
|
@@ -236,45 +235,45 @@ type PaperclipWakePlanReviewThread = {
|
|
|
236
235
|
prefixTextTruncated: boolean;
|
|
237
236
|
suffixText: string;
|
|
238
237
|
suffixTextTruncated: boolean;
|
|
239
|
-
author:
|
|
238
|
+
author: WardmoteWakePlanReviewAuthor | null;
|
|
240
239
|
commentCount: number;
|
|
241
|
-
comments:
|
|
240
|
+
comments: WardmoteWakePlanReviewComment[];
|
|
242
241
|
commentsTruncated: boolean;
|
|
243
242
|
createdAt: string | null;
|
|
244
243
|
updatedAt: string | null;
|
|
245
244
|
};
|
|
246
|
-
type
|
|
245
|
+
type WardmoteWakePlanReviewInteractionTarget = {
|
|
247
246
|
issueId: string | null;
|
|
248
247
|
documentId: string | null;
|
|
249
248
|
key: string | null;
|
|
250
249
|
revisionId: string | null;
|
|
251
250
|
revisionNumber: number | null;
|
|
252
251
|
};
|
|
253
|
-
type
|
|
252
|
+
type WardmoteWakePlanReviewInteractionResult = {
|
|
254
253
|
outcome: string | null;
|
|
255
254
|
reason: string | null;
|
|
256
255
|
note: string | null;
|
|
257
256
|
commentId: string | null;
|
|
258
257
|
};
|
|
259
|
-
type
|
|
258
|
+
type WardmoteWakePlanReviewInteraction = {
|
|
260
259
|
id: string | null;
|
|
261
260
|
kind: string | null;
|
|
262
261
|
status: string | null;
|
|
263
262
|
continuationPolicy: string | null;
|
|
264
263
|
sourceCommentId: string | null;
|
|
265
264
|
sourceRunId: string | null;
|
|
266
|
-
target:
|
|
267
|
-
acceptedTargetRevision:
|
|
268
|
-
result:
|
|
265
|
+
target: WardmoteWakePlanReviewInteractionTarget | null;
|
|
266
|
+
acceptedTargetRevision: WardmoteWakePlanReviewInteractionTarget | null;
|
|
267
|
+
result: WardmoteWakePlanReviewInteractionResult | null;
|
|
269
268
|
resolvedAt: string | null;
|
|
270
269
|
};
|
|
271
|
-
type
|
|
270
|
+
type WardmoteWakePlanReviewContext = {
|
|
272
271
|
documentKey: string | null;
|
|
273
272
|
issueId: string | null;
|
|
274
273
|
latestRevisionId: string | null;
|
|
275
274
|
latestRevisionNumber: number | null;
|
|
276
|
-
threads:
|
|
277
|
-
interaction:
|
|
275
|
+
threads: WardmoteWakePlanReviewThread[];
|
|
276
|
+
interaction: WardmoteWakePlanReviewInteraction | null;
|
|
278
277
|
totals: {
|
|
279
278
|
openThreadCount: number;
|
|
280
279
|
includedThreadCount: number;
|
|
@@ -292,23 +291,23 @@ type PaperclipWakePlanReviewContext = {
|
|
|
292
291
|
} | null;
|
|
293
292
|
truncated: boolean;
|
|
294
293
|
};
|
|
295
|
-
type
|
|
294
|
+
type WardmoteWakeDocumentReviewContext = {
|
|
296
295
|
issueId: string | null;
|
|
297
|
-
documents: Array<
|
|
296
|
+
documents: Array<WardmoteWakePlanReviewContext & {
|
|
298
297
|
title: string | null;
|
|
299
298
|
}>;
|
|
300
|
-
totals:
|
|
301
|
-
limits:
|
|
299
|
+
totals: WardmoteWakePlanReviewContext["totals"];
|
|
300
|
+
limits: WardmoteWakePlanReviewContext["limits"];
|
|
302
301
|
truncated: boolean;
|
|
303
302
|
};
|
|
304
|
-
type
|
|
303
|
+
type WardmoteWakeContinuationSummary = {
|
|
305
304
|
key: string | null;
|
|
306
305
|
title: string | null;
|
|
307
306
|
body: string;
|
|
308
307
|
bodyTruncated: boolean;
|
|
309
308
|
updatedAt: string | null;
|
|
310
309
|
};
|
|
311
|
-
type
|
|
310
|
+
type WardmoteWakeLivenessContinuation = {
|
|
312
311
|
attempt: number | null;
|
|
313
312
|
maxAttempts: number | null;
|
|
314
313
|
sourceRunId: string | null;
|
|
@@ -316,7 +315,7 @@ type PaperclipWakeLivenessContinuation = {
|
|
|
316
315
|
reason: string | null;
|
|
317
316
|
instruction: string | null;
|
|
318
317
|
};
|
|
319
|
-
type
|
|
318
|
+
type WardmoteWakeChildIssueSummary = {
|
|
320
319
|
id: string | null;
|
|
321
320
|
identifier: string | null;
|
|
322
321
|
title: string | null;
|
|
@@ -324,20 +323,20 @@ type PaperclipWakeChildIssueSummary = {
|
|
|
324
323
|
priority: string | null;
|
|
325
324
|
summary: string | null;
|
|
326
325
|
};
|
|
327
|
-
type
|
|
326
|
+
type WardmoteWakeBlockerSummary = {
|
|
328
327
|
id: string | null;
|
|
329
328
|
identifier: string | null;
|
|
330
329
|
title: string | null;
|
|
331
330
|
status: string | null;
|
|
332
331
|
priority: string | null;
|
|
333
332
|
};
|
|
334
|
-
type
|
|
333
|
+
type WardmoteWakeTreeHoldSummary = {
|
|
335
334
|
holdId: string | null;
|
|
336
335
|
rootIssueId: string | null;
|
|
337
336
|
mode: string | null;
|
|
338
337
|
reason: string | null;
|
|
339
338
|
};
|
|
340
|
-
type
|
|
339
|
+
type WardmoteWakeCheckboxSelection = {
|
|
341
340
|
prompt: string | null;
|
|
342
341
|
selectedOptionIds: string[];
|
|
343
342
|
selectedOptions: Array<{
|
|
@@ -346,13 +345,13 @@ type PaperclipWakeCheckboxSelection = {
|
|
|
346
345
|
description: string | null;
|
|
347
346
|
}>;
|
|
348
347
|
};
|
|
349
|
-
type
|
|
348
|
+
type WardmoteWakeQuestionResponse = {
|
|
350
349
|
interactionId: string;
|
|
351
350
|
summaryMarkdown: string;
|
|
352
351
|
truncated: boolean;
|
|
353
352
|
};
|
|
354
|
-
type
|
|
355
|
-
schema: "
|
|
353
|
+
type WardmoteWakeExternalChatQuestionResponse = {
|
|
354
|
+
schema: "wardmote.external_chat_question_response.v1";
|
|
356
355
|
interactionId: string;
|
|
357
356
|
responseDeliveryId: string;
|
|
358
357
|
sourceRunId: string;
|
|
@@ -361,24 +360,24 @@ type PaperclipWakeExternalChatQuestionResponse = {
|
|
|
361
360
|
conversationId: string;
|
|
362
361
|
bindingSha256: string;
|
|
363
362
|
};
|
|
364
|
-
type
|
|
363
|
+
type WardmoteWakeExecutionWorkspace = {
|
|
365
364
|
branchName: string | null;
|
|
366
365
|
};
|
|
367
|
-
type
|
|
366
|
+
type WardmoteWakeToolResult = {
|
|
368
367
|
actionRequestId: string;
|
|
369
368
|
toolName: string;
|
|
370
369
|
resultSummary: string;
|
|
371
370
|
error: string | null;
|
|
372
371
|
declineReason: string | null;
|
|
373
372
|
};
|
|
374
|
-
type
|
|
375
|
-
untrustedToolResults?:
|
|
373
|
+
type WardmoteWakeAgentMessage = {
|
|
374
|
+
untrustedToolResults?: WardmoteWakeToolResult[];
|
|
376
375
|
text: string;
|
|
377
376
|
source: string | null;
|
|
378
377
|
pluginKey: string | null;
|
|
379
378
|
sessionId: string | null;
|
|
380
379
|
};
|
|
381
|
-
type
|
|
380
|
+
type WardmoteWakeRecovery = {
|
|
382
381
|
cause: string | null;
|
|
383
382
|
failureSummary: string | null;
|
|
384
383
|
originalAssignee: {
|
|
@@ -390,58 +389,58 @@ type PaperclipWakeRecovery = {
|
|
|
390
389
|
nextAction: string | null;
|
|
391
390
|
routingFallbackReason: string | null;
|
|
392
391
|
};
|
|
393
|
-
export type
|
|
394
|
-
type
|
|
392
|
+
export type WardmoteExternalChatProvider = "slack" | "github" | "discord" | "microsoft-teams" | "telegram" | "imessage-photon" | "speko";
|
|
393
|
+
type WardmoteWakePayload = {
|
|
395
394
|
executionContinuation: ExecutionContinuationEnvelope | null;
|
|
396
395
|
reason: string | null;
|
|
397
396
|
originalReason: string | null;
|
|
398
|
-
recovery:
|
|
399
|
-
issue:
|
|
397
|
+
recovery: WardmoteWakeRecovery | null;
|
|
398
|
+
issue: WardmoteWakeIssue | null;
|
|
400
399
|
checkedOutByHarness: boolean;
|
|
401
400
|
externalChatExecutionBound: boolean;
|
|
402
|
-
externalChatProvider:
|
|
403
|
-
externalChatQuestionResponse:
|
|
401
|
+
externalChatProvider: WardmoteExternalChatProvider | null;
|
|
402
|
+
externalChatQuestionResponse: WardmoteWakeExternalChatQuestionResponse | null;
|
|
404
403
|
skillTest: boolean;
|
|
405
404
|
simplifiedEnglishInteractions: boolean;
|
|
406
405
|
dependencyBlockedInteraction: boolean;
|
|
407
406
|
treeHoldInteraction: boolean;
|
|
408
|
-
activeTreeHold:
|
|
407
|
+
activeTreeHold: WardmoteWakeTreeHoldSummary | null;
|
|
409
408
|
unresolvedBlockerIssueIds: string[];
|
|
410
|
-
unresolvedBlockerSummaries:
|
|
411
|
-
executionStage:
|
|
412
|
-
continuationSummary:
|
|
413
|
-
planReviewContext:
|
|
414
|
-
documentReviewContext:
|
|
415
|
-
dispositionRepair:
|
|
416
|
-
livenessContinuation:
|
|
417
|
-
taskWatchdog:
|
|
409
|
+
unresolvedBlockerSummaries: WardmoteWakeBlockerSummary[];
|
|
410
|
+
executionStage: WardmoteWakeExecutionStage | null;
|
|
411
|
+
continuationSummary: WardmoteWakeContinuationSummary | null;
|
|
412
|
+
planReviewContext: WardmoteWakePlanReviewContext | null;
|
|
413
|
+
documentReviewContext: WardmoteWakeDocumentReviewContext | null;
|
|
414
|
+
dispositionRepair: WardmoteWakeLivenessContinuation | null;
|
|
415
|
+
livenessContinuation: WardmoteWakeLivenessContinuation | null;
|
|
416
|
+
taskWatchdog: WardmoteWakeTaskWatchdogContext | null;
|
|
418
417
|
interactionId: string | null;
|
|
419
418
|
sourceRunId: string | null;
|
|
420
419
|
interactionKind: string | null;
|
|
421
420
|
interactionStatus: string | null;
|
|
422
421
|
externalInteractionContinuation: boolean;
|
|
423
|
-
checkboxSelection:
|
|
424
|
-
questionResponse:
|
|
425
|
-
executionWorkspace:
|
|
426
|
-
agentMessage:
|
|
427
|
-
annotationDeltas:
|
|
428
|
-
childIssueSummaries:
|
|
422
|
+
checkboxSelection: WardmoteWakeCheckboxSelection | null;
|
|
423
|
+
questionResponse: WardmoteWakeQuestionResponse | null;
|
|
424
|
+
executionWorkspace: WardmoteWakeExecutionWorkspace | null;
|
|
425
|
+
agentMessage: WardmoteWakeAgentMessage | null;
|
|
426
|
+
annotationDeltas: WardmoteWakeAnnotationDelta[];
|
|
427
|
+
childIssueSummaries: WardmoteWakeChildIssueSummary[];
|
|
429
428
|
childIssueSummaryTruncated: boolean;
|
|
430
429
|
commentIds: string[];
|
|
431
430
|
latestCommentId: string | null;
|
|
432
|
-
comments:
|
|
431
|
+
comments: WardmoteWakeComment[];
|
|
433
432
|
requestedCount: number;
|
|
434
433
|
includedCount: number;
|
|
435
434
|
missingCount: number;
|
|
436
435
|
truncated: boolean;
|
|
437
436
|
fallbackFetchNeeded: boolean;
|
|
438
437
|
};
|
|
439
|
-
export declare function
|
|
440
|
-
export declare function
|
|
438
|
+
export declare function normalizeWardmoteWakePayload(value: unknown): WardmoteWakePayload | null;
|
|
439
|
+
export declare function stringifyWardmoteWakePayload(value: unknown, options?: {
|
|
441
440
|
omitIssueDescription?: boolean;
|
|
442
441
|
}): string | null;
|
|
443
442
|
/** Source ownership only. Canonical task, plan, response and event data stay in their existing fields. */
|
|
444
|
-
export interface
|
|
443
|
+
export interface WardmoteTurnContext {
|
|
445
444
|
version: 1;
|
|
446
445
|
assignment: {
|
|
447
446
|
owner: "task_markdown";
|
|
@@ -459,65 +458,53 @@ export interface PaperclipTurnContext {
|
|
|
459
458
|
};
|
|
460
459
|
}
|
|
461
460
|
/** True when the structured prompt owns current wake comments. */
|
|
462
|
-
export declare function
|
|
463
|
-
export declare function
|
|
461
|
+
export declare function wardmoteWakeCommentsArePromptOwned(value: unknown): boolean;
|
|
462
|
+
export declare function isWardmoteRecoveryWakePayload(value: unknown): boolean;
|
|
464
463
|
/**
|
|
465
464
|
* Recognize only the closed, server-attested answered-chat shape for prompting.
|
|
466
465
|
* The server must independently authorize the marker against durable state;
|
|
467
466
|
* this shape check is not a grant of publication, task, or tool authority.
|
|
468
467
|
*/
|
|
469
|
-
export declare function
|
|
470
|
-
|
|
471
|
-
* Returns true only for an ordinary external-chat task wake that the trusted
|
|
472
|
-
* Paperclip harness has already authenticated, bound to a concrete issue, and
|
|
473
|
-
* checked out for this run. Provider-like text elsewhere in the payload cannot
|
|
474
|
-
* opt a turn into this contract.
|
|
475
|
-
*/
|
|
476
|
-
export declare function isPaperclipExternalChatTurn(value: unknown): boolean;
|
|
468
|
+
export declare function isWardmoteExternalChatQuestionResponseTurn(value: unknown): boolean;
|
|
469
|
+
export declare function isWardmoteExternalChatTurn(value: unknown): boolean;
|
|
477
470
|
/**
|
|
478
471
|
* Returns true for either an inline-complete external-chat turn or the exact
|
|
479
472
|
* overflow shape that a native runner can satisfy through its closed reader.
|
|
480
473
|
* Callers must not assume the reader exists outside the native-runner lane.
|
|
481
474
|
*/
|
|
482
|
-
export declare function
|
|
483
|
-
export declare function
|
|
484
|
-
export declare function
|
|
475
|
+
export declare function isWardmoteExternalChatContractTurn(value: unknown): boolean;
|
|
476
|
+
export declare function readWardmoteIssueWorkModeFromContext(value: unknown): string | null;
|
|
477
|
+
export declare function isAssignmentShapedWardmoteWakeReason(reason: string | null | undefined): boolean;
|
|
485
478
|
export declare function hydrateFreshSessionHandoff(ctx: Pick<AdapterExecutionContext, "context" | "getFreshSessionHandoff">, options?: {
|
|
486
479
|
resumedSession?: boolean;
|
|
487
480
|
}): Promise<void>;
|
|
488
481
|
export declare function selectInitialCommunicationGuidance(context: Record<string, unknown> | null | undefined, options?: {
|
|
489
482
|
resumedSession?: boolean;
|
|
490
483
|
}): string;
|
|
491
|
-
export declare function
|
|
484
|
+
export declare function selectWardmoteTaskMarkdown(context: Record<string, unknown> | null | undefined, options?: {
|
|
492
485
|
resumedSession?: boolean;
|
|
493
486
|
includeCommunicationGuidance?: boolean;
|
|
494
487
|
}): string;
|
|
495
|
-
|
|
496
|
-
* Select Paperclip-owned sections together, at the actual provider attempt.
|
|
497
|
-
* Assignment Markdown owns the brief; the wake renderer owns current events.
|
|
498
|
-
* Adapters choose carriers and templates, not a second task/context policy.
|
|
499
|
-
* Recompute with resumedSession=false when recovery starts a fresh attempt.
|
|
500
|
-
*/
|
|
501
|
-
export declare function selectPaperclipPromptSections(context: Record<string, unknown> | null | undefined, options?: {
|
|
488
|
+
export declare function selectWardmotePromptSections(context: Record<string, unknown> | null | undefined, options?: {
|
|
502
489
|
resumedSession?: boolean;
|
|
503
490
|
includeCommunicationGuidance?: boolean;
|
|
504
491
|
/** @deprecated Generic execution instructions are no longer injected. */
|
|
505
492
|
includeExecutionContract?: boolean;
|
|
506
493
|
nativeWakeReaderAvailable?: boolean;
|
|
507
|
-
|
|
494
|
+
wardmoteAccess?: WardmoteAccessMode;
|
|
508
495
|
}): {
|
|
509
496
|
taskContextNote: string;
|
|
510
497
|
wakePrompt: string;
|
|
511
498
|
};
|
|
512
|
-
export declare function
|
|
513
|
-
declare function
|
|
499
|
+
export declare function renderWardmoteWakePrompt(value: unknown, options?: Parameters<typeof renderWardmoteWakePromptBody>[1]): string;
|
|
500
|
+
declare function renderWardmoteWakePromptBody(value: unknown, options?: {
|
|
514
501
|
resumedSession?: boolean;
|
|
515
502
|
/** @deprecated Generic execution instructions are no longer injected. */
|
|
516
503
|
includeExecutionContract?: boolean;
|
|
517
504
|
conversationMode?: boolean;
|
|
518
505
|
nativeWakeReaderAvailable?: boolean;
|
|
519
506
|
suppressIssueDescription?: boolean;
|
|
520
|
-
|
|
507
|
+
wardmoteAccess?: WardmoteAccessMode;
|
|
521
508
|
}): string;
|
|
522
509
|
export declare function redactEnvForLogs(env: Record<string, string>): Record<string, string>;
|
|
523
510
|
export declare function redactCommandTextForLogs(command: string): string;
|
|
@@ -529,13 +516,13 @@ export declare function buildInvocationEnvForLogs(env: Record<string, string>, o
|
|
|
529
516
|
}): Record<string, string>;
|
|
530
517
|
export declare const AGENT_IDENTITY_ENV_KEYS: string[];
|
|
531
518
|
export declare function buildAgentIdentityEnv(identity?: AgentRuntimeIdentity): Record<string, string>;
|
|
532
|
-
export declare function
|
|
519
|
+
export declare function buildWardmoteEnv(agent: {
|
|
533
520
|
id: string;
|
|
534
521
|
companyId: string;
|
|
535
522
|
}, options?: {
|
|
536
523
|
sameHost?: boolean;
|
|
537
524
|
}, identity?: AgentRuntimeIdentity): Record<string, string>;
|
|
538
|
-
export declare function
|
|
525
|
+
export declare function applyWardmoteWorkspaceEnv(env: Record<string, string>, input: {
|
|
539
526
|
workspaceCwd?: string | null;
|
|
540
527
|
workspaceSource?: string | null;
|
|
541
528
|
workspaceStrategy?: string | null;
|
|
@@ -546,7 +533,7 @@ export declare function applyPaperclipWorkspaceEnv(env: Record<string, string>,
|
|
|
546
533
|
workspaceWorktreePath?: string | null;
|
|
547
534
|
agentHome?: string | null;
|
|
548
535
|
}): Record<string, string>;
|
|
549
|
-
export declare function
|
|
536
|
+
export declare function shapeWardmoteWorkspaceEnvForExecution(input: {
|
|
550
537
|
workspaceCwd?: string | null;
|
|
551
538
|
workspaceWorktreePath?: string | null;
|
|
552
539
|
workspaceHints?: Array<Record<string, unknown>>;
|
|
@@ -572,7 +559,7 @@ export declare function rewriteWorkspaceCwdEnvVarsForExecution(input: {
|
|
|
572
559
|
executionCwd?: string | null;
|
|
573
560
|
executionTargetIsRemote?: boolean;
|
|
574
561
|
}): Record<string, string>;
|
|
575
|
-
export declare function
|
|
562
|
+
export declare function refreshWardmoteWorkspaceEnvForExecution(input: {
|
|
576
563
|
env: Record<string, string>;
|
|
577
564
|
envConfig?: Record<string, unknown>;
|
|
578
565
|
workspaceCwd?: string | null;
|
|
@@ -587,14 +574,14 @@ export declare function refreshPaperclipWorkspaceEnvForExecution(input: {
|
|
|
587
574
|
agentHome?: string | null;
|
|
588
575
|
executionTargetIsRemote?: boolean;
|
|
589
576
|
executionCwd?: string | null;
|
|
590
|
-
/** Referenced-project id to staged in-sandbox directory map; see {@link
|
|
577
|
+
/** Referenced-project id to staged in-sandbox directory map; see {@link shapeWardmoteWorkspaceEnvForExecution}. */
|
|
591
578
|
stagedProjectDirs?: Record<string, string>;
|
|
592
579
|
}): {
|
|
593
580
|
workspaceCwd: string | null;
|
|
594
581
|
workspaceWorktreePath: string | null;
|
|
595
582
|
workspaceHints: Array<Record<string, unknown>>;
|
|
596
583
|
};
|
|
597
|
-
export declare function
|
|
584
|
+
export declare function sanitizeInheritedWardmoteEnv(baseEnv: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
598
585
|
export declare function defaultPathForPlatform(): "/usr/local/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin" | "C:\\Windows\\System32;C:\\Windows;C:\\Windows\\System32\\Wbem";
|
|
599
586
|
export declare function resolveCommandForLogs(command: string, cwd: string, env: NodeJS.ProcessEnv, options?: {
|
|
600
587
|
remoteExecution?: RemoteExecutionSpec | null;
|
|
@@ -604,52 +591,39 @@ export declare function ensurePathInEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessE
|
|
|
604
591
|
export declare function ensureAbsoluteDirectory(cwd: string, opts?: {
|
|
605
592
|
createIfMissing?: boolean;
|
|
606
593
|
}): Promise<void>;
|
|
607
|
-
export declare function
|
|
608
|
-
export declare function
|
|
594
|
+
export declare function resolveWardmoteSkillsDir(moduleDir: string, additionalCandidates?: string[]): Promise<string | null>;
|
|
595
|
+
export declare function listWardmoteSkillEntries(moduleDir: string, additionalCandidates?: string[]): Promise<WardmoteSkillEntry[]>;
|
|
609
596
|
export declare function readInstalledSkillTargets(skillsHome: string): Promise<Map<string, InstalledSkillTarget>>;
|
|
610
597
|
export declare function buildRuntimeMountedSkillSnapshot(options: RuntimeMountedSkillSnapshotOptions): AdapterSkillSnapshot;
|
|
611
598
|
export declare function buildPersistentSkillSnapshot(options: PersistentSkillSnapshotOptions): AdapterSkillSnapshot;
|
|
612
|
-
export declare function
|
|
613
|
-
export declare function
|
|
614
|
-
export declare function
|
|
599
|
+
export declare function readWardmoteRuntimeSkillEntries(config: Record<string, unknown>, moduleDir: string, additionalCandidates?: string[]): Promise<WardmoteSkillEntry[]>;
|
|
600
|
+
export declare function readWardmoteSkillMarkdown(moduleDir: string, skillKey: string): Promise<string | null>;
|
|
601
|
+
export declare function readWardmoteSkillSyncPreference(config: Record<string, unknown>): {
|
|
615
602
|
explicit: boolean;
|
|
616
603
|
desiredSkills: string[];
|
|
617
|
-
desiredSkillEntries:
|
|
604
|
+
desiredSkillEntries: WardmoteDesiredSkillEntry[];
|
|
618
605
|
};
|
|
619
|
-
export declare function
|
|
606
|
+
export declare function resolveWardmoteDesiredSkillNames(config: Record<string, unknown>, availableEntries: Array<{
|
|
620
607
|
key: string;
|
|
621
608
|
runtimeName?: string | null;
|
|
622
609
|
}>): string[];
|
|
623
|
-
|
|
624
|
-
* Legacy adapters call the Paperclip API through the operational skill. Keep
|
|
625
|
-
* that skill mounted even when an agent predates skill preferences or carries
|
|
626
|
-
* an explicit empty desired set. Native runners provide the same authority
|
|
627
|
-
* through their protocol and must continue to use the configurable-only
|
|
628
|
-
* resolver above.
|
|
629
|
-
*/
|
|
630
|
-
export declare const WARDMOTE_OPERATIONAL_SKILL_KEY = "tickernelz/wardmote/paperclip";
|
|
610
|
+
export declare const WARDMOTE_OPERATIONAL_SKILL_KEY = "tickernelz/wardmote/wardmote";
|
|
631
611
|
export declare const WARDMOTE_FEEDBACK_SKILL_KEYS: readonly ["tickernelz/wardmote/complain", "tickernelz/wardmote/suggestion-box"];
|
|
632
|
-
|
|
633
|
-
* Native Paperclip Runner sessions receive the control-plane contract through
|
|
634
|
-
* PRP, so carrying the legacy operational skill into their stored preference
|
|
635
|
-
* is redundant and invalid. Normalize it away at persistence boundaries.
|
|
636
|
-
* Legacy adapters remain unchanged because their runtime resolver mounts the
|
|
637
|
-
* operational skill automatically, including after switching back.
|
|
638
|
-
*/
|
|
639
|
-
export declare function normalizePaperclipOperationalSkillPreference(adapterType: string, config: Record<string, unknown>): Record<string, unknown>;
|
|
612
|
+
export declare function normalizeWardmoteOperationalSkillPreference(adapterType: string, config: Record<string, unknown>): Record<string, unknown>;
|
|
640
613
|
/** Apply the persisted defaults and skill contract for the native runner. */
|
|
641
|
-
export declare function
|
|
642
|
-
export declare function
|
|
614
|
+
export declare function normalizeWardmoteRunnerAdapterConfig(adapterType: string, config: Record<string, unknown>): Record<string, unknown>;
|
|
615
|
+
export declare function resolveLegacyWardmoteDesiredSkillNames(config: Record<string, unknown>, availableEntries: Array<{
|
|
643
616
|
key: string;
|
|
644
617
|
runtimeName?: string | null;
|
|
645
618
|
}>): string[];
|
|
646
|
-
export declare function
|
|
647
|
-
export declare function
|
|
648
|
-
export declare function
|
|
619
|
+
export declare function writeWardmoteSkillSyncPreference(config: Record<string, unknown>, desiredSkills: Array<string | WardmoteDesiredSkillEntry>): Record<string, unknown>;
|
|
620
|
+
export declare function ensureWardmoteSkillSymlink(source: string, target: string, linkSkill?: (source: string, target: string) => Promise<void>): Promise<"created" | "repaired" | "skipped">;
|
|
621
|
+
export declare function removeRetiredBundledSkillLinks(skillsHome: string): Promise<string[]>;
|
|
622
|
+
export declare function relinkWardmoteSkillsFromOtherInstalls(skillsHome: string, entries: ReadonlyArray<{
|
|
649
623
|
source: string;
|
|
650
624
|
runtimeName: string;
|
|
651
625
|
}>): Promise<string[]>;
|
|
652
|
-
export declare function
|
|
626
|
+
export declare function materializeWardmoteSkillCopy(source: string, target: string): Promise<MaterializedWardmoteSkillCopyResult>;
|
|
653
627
|
export declare function removeMaintainerOnlySkillSymlinks(skillsHome: string, allowedSkillNames: Iterable<string>): Promise<string[]>;
|
|
654
628
|
export declare function ensureCommandResolvable(command: string, cwd: string, env: NodeJS.ProcessEnv, options?: {
|
|
655
629
|
remoteExecution?: RemoteExecutionSpec | null;
|