@skaile/workspaces 3.14.0 → 3.14.1
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/CHANGELOG.md +25 -0
- package/dist/{chunk-NELENR57.js → chunk-VW6RUT7X.js} +2 -2
- package/dist/{chunk-NELENR57.js.map → chunk-VW6RUT7X.js.map} +1 -1
- package/dist/{chunk-GY5SLCH2.js → chunk-ZPCHTTD7.js} +152 -7
- package/dist/chunk-ZPCHTTD7.js.map +1 -0
- package/dist/cli/index.js +2 -2
- package/dist/factory-assets/connectors/flow/run-flow.js +1 -1
- package/dist/runner/index.js +2 -2
- package/dist/runner/src/compaction/orchestrator.d.ts +23 -0
- package/dist/runner/src/compaction/orchestrator.d.ts.map +1 -1
- package/dist/runner/src/compaction-gate.d.ts +93 -0
- package/dist/runner/src/compaction-gate.d.ts.map +1 -0
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/index.js +2 -2
- package/dist/sdk/runner.js +2 -2
- package/dist/tui/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-GY5SLCH2.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getStoreConfig, storeFetch, deviceLogin, loadStoreAuthConfig, logout, h
|
|
|
6
6
|
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-Z7W4B7P2.js';
|
|
7
7
|
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-5F33LGZL.js';
|
|
8
8
|
import { LocalSecretsProvider } from '../chunk-6BEGKO2Q.js';
|
|
9
|
-
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-
|
|
9
|
+
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-ZPCHTTD7.js';
|
|
10
10
|
import { buildClaudePluginFiles } from '../chunk-UTW6YKAC.js';
|
|
11
11
|
import '../chunk-X5YPJV4N.js';
|
|
12
12
|
import '../chunk-W3UDISS2.js';
|
|
@@ -15,7 +15,7 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
15
15
|
import '../chunk-GTS2FODO.js';
|
|
16
16
|
import '../chunk-WQ7DE5UC.js';
|
|
17
17
|
import '../chunk-32NA4TVC.js';
|
|
18
|
-
import { runFlow, resumeFlow } from '../chunk-
|
|
18
|
+
import { runFlow, resumeFlow } from '../chunk-VW6RUT7X.js';
|
|
19
19
|
import '../chunk-4R6DROGN.js';
|
|
20
20
|
import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-4VTBZ2MF.js';
|
|
21
21
|
import '../chunk-GHWJHOYX.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-
|
|
1
|
+
export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-VW6RUT7X.js';
|
|
2
2
|
import '../../../chunk-4R6DROGN.js';
|
|
3
3
|
import '../../../chunk-4VTBZ2MF.js';
|
|
4
4
|
import '../../../chunk-KKMRT6GU.js';
|
package/dist/runner/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-ZPCHTTD7.js';
|
|
2
2
|
import '../chunk-UTW6YKAC.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
export { assembleSystemPrompt, buildCapabilitiesPromptSection, buildLinkedPeersPromptSection } from '../chunk-W3UDISS2.js';
|
|
@@ -7,7 +7,7 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
7
7
|
import '../chunk-GTS2FODO.js';
|
|
8
8
|
import '../chunk-WQ7DE5UC.js';
|
|
9
9
|
import '../chunk-32NA4TVC.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-VW6RUT7X.js';
|
|
11
11
|
import '../chunk-4R6DROGN.js';
|
|
12
12
|
import '../chunk-4VTBZ2MF.js';
|
|
13
13
|
import '../chunk-GHWJHOYX.js';
|
|
@@ -83,6 +83,18 @@ export interface CompactionOrchestratorOptions {
|
|
|
83
83
|
*/
|
|
84
84
|
onCompactionAttempt?: (event: CompactionAttemptEvent) => void;
|
|
85
85
|
onCompactionEnd?: () => void;
|
|
86
|
+
/**
|
|
87
|
+
* Fires once the compaction call has fully settled and the driver is free.
|
|
88
|
+
*
|
|
89
|
+
* Distinct from {@link onCompactionEnd}, which fires earlier on the success
|
|
90
|
+
* path — before `resetSession()` and the snapshot injection — so that the
|
|
91
|
+
* injection turn's events are not suppressed. A host holding user turns off
|
|
92
|
+
* the driver has to wait for this one instead, or it releases them straight
|
|
93
|
+
* into the injection.
|
|
94
|
+
*
|
|
95
|
+
* Guaranteed on every exit, including a throw.
|
|
96
|
+
*/
|
|
97
|
+
onCompactionSettled?: () => void;
|
|
86
98
|
onLog?: (line: string) => void;
|
|
87
99
|
/**
|
|
88
100
|
* Phase 3 (resume cascade): supplies the current capability registry
|
|
@@ -111,6 +123,10 @@ export declare class CompactionOrchestrator {
|
|
|
111
123
|
private readonly config;
|
|
112
124
|
private readonly opts;
|
|
113
125
|
private _isCompacting;
|
|
126
|
+
/** Whether {@link CompactionOrchestratorOptions.onCompactionStart} has fired for the current call. */
|
|
127
|
+
private _startFired;
|
|
128
|
+
/** Whether {@link CompactionOrchestratorOptions.onCompactionEnd} has fired for the current call. */
|
|
129
|
+
private _endFired;
|
|
114
130
|
private lastCompactionSeq;
|
|
115
131
|
private lastCompactionTime;
|
|
116
132
|
/**
|
|
@@ -134,6 +150,13 @@ export declare class CompactionOrchestrator {
|
|
|
134
150
|
trackMessage(seq: number): void;
|
|
135
151
|
shouldCompact(): boolean;
|
|
136
152
|
compact(trigger: CompactionTrigger, focus?: string): Promise<SnapshotEvent | null>;
|
|
153
|
+
/**
|
|
154
|
+
* Fire {@link CompactionOrchestratorOptions.onCompactionEnd} once per
|
|
155
|
+
* compaction. The host stops suppressing forwarded events here, so a second
|
|
156
|
+
* call would emit a stray idle status over the injection turn that follows
|
|
157
|
+
* it on the success path.
|
|
158
|
+
*/
|
|
159
|
+
private _endCompaction;
|
|
137
160
|
/**
|
|
138
161
|
* One compaction attempt, plus at most one narrowed retry.
|
|
139
162
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../../../runner/src/compaction/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACX,MAAM,0BAA0B,CAAC;AAwFlC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,OAAQ,CAAC;AAmD3C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAK1E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAK9F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG9D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,GAClB;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAQjD;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,eAAe,CAAC,EAA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;;OAOG;YACW,UAAU;IAyFxB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAUvB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;;;;;OAYG;YACW,oBAAoB;IA0GlC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,kBAAkB;IA2C1B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAwB9B;;;OAGG;YACW,mBAAmB;CAyDlC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { AgentEvent } from "@skaile/workspaces/types";
|
|
2
|
+
/** Opaque handle for one in-flight compaction. See {@link CompactionGate.begin}. */
|
|
3
|
+
export type CompactionHold = symbol;
|
|
4
|
+
/**
|
|
5
|
+
* Coordinates the compaction-turn / user-turn race on a single driver.
|
|
6
|
+
*
|
|
7
|
+
* Compaction prompts the very driver a user turn would, and the runner
|
|
8
|
+
* suppresses forwarded events for its duration. A turn dispatched into that
|
|
9
|
+
* window therefore runs against a driver already mid-turn and has its reply
|
|
10
|
+
* dropped on the way out — no text, no `finished`, no error, just an indefinite
|
|
11
|
+
* "AI is thinking…" (skaile-ai/platform#3882).
|
|
12
|
+
*
|
|
13
|
+
* The window this gate holds is deliberately wider than the event suppression.
|
|
14
|
+
* On the success path the orchestrator stops suppressing before it resets the
|
|
15
|
+
* driver and injects the snapshot, so a turn released at that moment would race
|
|
16
|
+
* the injection instead of the summary. The gate opens only once the whole
|
|
17
|
+
* compaction call has settled.
|
|
18
|
+
*
|
|
19
|
+
* Mirrors {@link DriverSwapGate}: one instance per agent server, and every
|
|
20
|
+
* method is safe to call when nothing is in flight.
|
|
21
|
+
*/
|
|
22
|
+
export declare class CompactionGate {
|
|
23
|
+
/**
|
|
24
|
+
* Every compaction currently holding the driver.
|
|
25
|
+
*
|
|
26
|
+
* A set rather than a boolean because holds can overlap: a driver swap
|
|
27
|
+
* rebuilds the orchestrator, and the new instance carries its own
|
|
28
|
+
* `_isCompacting`, so it can start a compaction while the previous
|
|
29
|
+
* instance's call is still unwinding. Keyed by handle so the older one
|
|
30
|
+
* settling cannot open the gate under the newer one — the same identity
|
|
31
|
+
* check `DriverSwapGate.beginSwap` makes for swaps.
|
|
32
|
+
*/
|
|
33
|
+
private held;
|
|
34
|
+
/** Resolves when the last hold is released. Null whenever the driver is free. */
|
|
35
|
+
private opened;
|
|
36
|
+
private release;
|
|
37
|
+
/**
|
|
38
|
+
* Mark a compaction as occupying the driver. The returned handle is the only
|
|
39
|
+
* thing that can release it.
|
|
40
|
+
*/
|
|
41
|
+
begin(): CompactionHold;
|
|
42
|
+
/**
|
|
43
|
+
* Release one hold, opening the gate once none remain. Unknown and null
|
|
44
|
+
* handles are ignored, so a settle signal that fires without a matching
|
|
45
|
+
* `begin()` is harmless.
|
|
46
|
+
*
|
|
47
|
+
* Call this from a signal the orchestrator emits unconditionally. A `begin()`
|
|
48
|
+
* whose `settle()` can be skipped holds user turns forever, which is a worse
|
|
49
|
+
* failure than the discarded reply this gate exists to prevent.
|
|
50
|
+
*/
|
|
51
|
+
settle(hold: CompactionHold | null | undefined): void;
|
|
52
|
+
/**
|
|
53
|
+
* Wait for the driver to be free.
|
|
54
|
+
*
|
|
55
|
+
* Returns `idle` when nothing was in flight, `waited` when every compaction
|
|
56
|
+
* settled within the bound, and `timeout` when they did not. A caller that
|
|
57
|
+
* gets `timeout` must surface it rather than dispatch: a compaction still
|
|
58
|
+
* holding the driver past this bound is stuck, and dispatching into it
|
|
59
|
+
* reproduces the silent loss.
|
|
60
|
+
*
|
|
61
|
+
* Re-checks in a loop, as `DriverSwapGate.awaitSwap` does, so a compaction
|
|
62
|
+
* armed while this turn was already waiting is also awaited. `timeoutMs`
|
|
63
|
+
* bounds the whole wait, not each iteration.
|
|
64
|
+
*/
|
|
65
|
+
awaitIdle(timeoutMs: number): Promise<"idle" | "waited" | "timeout">;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* How long a user turn waits for a compaction before the runner reports it as
|
|
69
|
+
* stuck. Read per call so a test (or an operator) can set
|
|
70
|
+
* `SKAILE_COMPACTION_GATE_TIMEOUT_MS` after this module is imported.
|
|
71
|
+
*/
|
|
72
|
+
export declare function compactionGateTimeoutMs(): number;
|
|
73
|
+
/** The message a caller sends when it abandons a turn rather than race a compaction. */
|
|
74
|
+
export declare const COMPACTION_GATE_TIMEOUT_MESSAGE = "The session is still compacting its history and could not take this message. Send it again in a moment.";
|
|
75
|
+
export interface GuardTurnDeps {
|
|
76
|
+
gate: CompactionGate;
|
|
77
|
+
/** What is waiting, for the log line: "prompt", "reply". */
|
|
78
|
+
what: string;
|
|
79
|
+
log: (line: string) => void;
|
|
80
|
+
sendEvent: (event: AgentEvent) => void;
|
|
81
|
+
/** Defaults to {@link compactionGateTimeoutMs}. */
|
|
82
|
+
timeoutMs?: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Hold a user turn until the driver is free of any compaction.
|
|
86
|
+
*
|
|
87
|
+
* Returns false when the caller must abandon the turn — dispatching anyway is
|
|
88
|
+
* what skaile-ai/platform#3882 records. The error event is the first
|
|
89
|
+
* user-visible signal this failure has ever had: before it, the turn ran and
|
|
90
|
+
* its reply was dropped in silence.
|
|
91
|
+
*/
|
|
92
|
+
export declare function guardTurnAgainstCompaction(deps: GuardTurnDeps): Promise<boolean>;
|
|
93
|
+
//# sourceMappingURL=compaction-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compaction-gate.d.ts","sourceRoot":"","sources":["../../../runner/src/compaction-gate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,oFAAoF;AACpF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,cAAc;IACzB;;;;;;;;;OASG;IACH,OAAO,CAAC,IAAI,CAA6B;IACzC,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AAO,CAAA;SAAE,CAAA;KAAE,GACxE;QAAE,SAAS,EAAE,aAAa,CAAA;KAAE,KAC7B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B;;;;OAIG;IACH,oBAAoB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3F,eAAe,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,cAAc,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3E,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CAC9C;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,oBAAoB,EACzB,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,IAAI,CAAC,CAsNf;AAiDD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,YAAY,CAMrF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA+qGxE"}
|
package/dist/sdk/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentClient } from '../chunk-AL6BU3SP.js';
|
|
2
|
-
import { startAgentServer } from '../chunk-
|
|
2
|
+
import { startAgentServer } from '../chunk-ZPCHTTD7.js';
|
|
3
3
|
import '../chunk-UTW6YKAC.js';
|
|
4
4
|
import '../chunk-X5YPJV4N.js';
|
|
5
5
|
import '../chunk-W3UDISS2.js';
|
|
@@ -8,7 +8,7 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
8
8
|
import { WebSocketClientTransport } from '../chunk-GTS2FODO.js';
|
|
9
9
|
import '../chunk-WQ7DE5UC.js';
|
|
10
10
|
import '../chunk-32NA4TVC.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-VW6RUT7X.js';
|
|
12
12
|
import '../chunk-4R6DROGN.js';
|
|
13
13
|
import '../chunk-4VTBZ2MF.js';
|
|
14
14
|
import '../chunk-GHWJHOYX.js';
|
package/dist/sdk/runner.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile } from '../chunk-ZPCHTTD7.js';
|
|
2
2
|
import '../chunk-UTW6YKAC.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
export { assembleSystemPrompt, buildCapabilitiesPromptSection, buildLinkedPeersPromptSection } from '../chunk-W3UDISS2.js';
|
|
@@ -7,7 +7,7 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
7
7
|
import '../chunk-GTS2FODO.js';
|
|
8
8
|
import '../chunk-WQ7DE5UC.js';
|
|
9
9
|
import '../chunk-32NA4TVC.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-VW6RUT7X.js';
|
|
11
11
|
import '../chunk-4R6DROGN.js';
|
|
12
12
|
import '../chunk-4VTBZ2MF.js';
|
|
13
13
|
import '../chunk-GHWJHOYX.js';
|
package/dist/tui/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createAgentSession } from '../chunk-
|
|
1
|
+
import { createAgentSession } from '../chunk-ZPCHTTD7.js';
|
|
2
2
|
import '../chunk-UTW6YKAC.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
import '../chunk-W3UDISS2.js';
|
|
@@ -7,7 +7,7 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
7
7
|
import '../chunk-GTS2FODO.js';
|
|
8
8
|
import '../chunk-WQ7DE5UC.js';
|
|
9
9
|
import '../chunk-32NA4TVC.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-VW6RUT7X.js';
|
|
11
11
|
import '../chunk-4R6DROGN.js';
|
|
12
12
|
import '../chunk-4VTBZ2MF.js';
|
|
13
13
|
import '../chunk-GHWJHOYX.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skaile/workspaces",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.1",
|
|
4
4
|
"description": "Skaile workspaces runtime — types, core, bridge, runner, store, connectors, and supporting layers as one publishable package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "bun@1.3.9",
|