@skaile/workspaces 1.10.1 → 1.10.2
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 +23 -0
- package/dist/{chunk-MMM6JBBQ.js → chunk-EAJWXVQL.js} +2 -2
- package/dist/{chunk-MMM6JBBQ.js.map → chunk-EAJWXVQL.js.map} +1 -1
- package/dist/{chunk-TG4IJM6C.js → chunk-JLJ3OMHR.js} +91 -16
- package/dist/chunk-JLJ3OMHR.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 +1 -1
- package/dist/runner/src/serve.d.ts +27 -0
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/runner.js +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-TG4IJM6C.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -6,10 +6,10 @@ import { getStoreConfig, storeFetch, deviceLogin, loadStoreAuthConfig, logout, h
|
|
|
6
6
|
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-SMWXVW6Z.js';
|
|
7
7
|
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-ZDRAMXBS.js';
|
|
8
8
|
import { LocalSecretsProvider } from '../chunk-6BEGKO2Q.js';
|
|
9
|
-
import { runFlow, resumeFlow } from '../chunk-
|
|
9
|
+
import { runFlow, resumeFlow } from '../chunk-EAJWXVQL.js';
|
|
10
10
|
import '../chunk-4R6DROGN.js';
|
|
11
11
|
import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-GXC3TYMQ.js';
|
|
12
|
-
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-
|
|
12
|
+
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-JLJ3OMHR.js';
|
|
13
13
|
import { buildClaudePluginFiles } from '../chunk-2ZP6KIIQ.js';
|
|
14
14
|
import '../chunk-X5YPJV4N.js';
|
|
15
15
|
import '../chunk-O7SG5PC2.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, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, pickRepointedManager, planFlowMutate, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hostOpResumeStimulus, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, pickRepointedManager, planFlowMutate, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, stimulusFromMetas, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-JLJ3OMHR.js';
|
|
2
2
|
import '../chunk-2ZP6KIIQ.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
*/
|
|
33
33
|
import { ConnectorManager, type TokenMediator } from "@skaile/workspaces/connectors";
|
|
34
34
|
import type { FlowDefinition } from "@skaile/workspaces/factory-assets/connectors/flow/engine";
|
|
35
|
+
import { type TurnStimulus } from "@skaile/workspaces/factory-assets/connectors/flow/prompt-fragments";
|
|
35
36
|
import type { AgentEvent, ConnectorsAvailableEvent, FlowExecution, ServerTransport } from "@skaile/workspaces/types";
|
|
36
37
|
import { CLAUDE_CODE_CREDENTIALS_KEY, extractClaudeAiOauthExpiresAt, writeClaudeCodeCredentialsFile } from "./serve-credentials.js";
|
|
37
38
|
import { type AgentSession } from "./session-builder.js";
|
|
@@ -233,6 +234,32 @@ export declare function planFlowMutate(cmd: {
|
|
|
233
234
|
/** Connector id of the singleton active run, or null when none. */
|
|
234
235
|
onlyActiveConnectorId: string | null;
|
|
235
236
|
}): FlowMutatePlan;
|
|
237
|
+
/**
|
|
238
|
+
* Map a host-op `connector_mutate` (applyApproval/applyInput/retryNode) to the
|
|
239
|
+
* typed {@link TurnStimulus} that must explicitly wake the agent; `null` for
|
|
240
|
+
* ops that don't resume a turn (cancel, setAutonomousMode, hydrate, start).
|
|
241
|
+
*
|
|
242
|
+
* These need an explicit kick because the generic mutate→computeStimulus path
|
|
243
|
+
* only emits `state_changed` and can miss an approved-only change (status/focus
|
|
244
|
+
* unchanged), so the gate would hang.
|
|
245
|
+
*
|
|
246
|
+
* Pure — depends only on its inputs.
|
|
247
|
+
*
|
|
248
|
+
* @docLink packages/runner/concepts#host-op-resume-stimulus
|
|
249
|
+
*/
|
|
250
|
+
export declare function hostOpResumeStimulus(op: string, payload: Record<string, unknown>): TurnStimulus | null;
|
|
251
|
+
/**
|
|
252
|
+
* Pick the stimulus for a coalesced batch of bus signals. A host-op resume kick
|
|
253
|
+
* rides in the same batch as the adapter's generic `state_changed`; scanning
|
|
254
|
+
* from the most recent, the most-specific typed stimulus wins so a trailing
|
|
255
|
+
* `state_changed` can't mask it. Falls back to `state_changed` for an
|
|
256
|
+
* all-generic batch.
|
|
257
|
+
*
|
|
258
|
+
* Pure — depends only on its inputs.
|
|
259
|
+
*
|
|
260
|
+
* @docLink packages/runner/concepts#stimulus-from-metas
|
|
261
|
+
*/
|
|
262
|
+
export declare function stimulusFromMetas(metas: Array<Record<string, unknown>>): TurnStimulus;
|
|
236
263
|
/**
|
|
237
264
|
* Start a WebSocket agent server that the Skaile platform connects to for
|
|
238
265
|
* host-driven agent execution inside a local subprocess or Docker container.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../runner/src/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAsBH,OAAO,EAKL,gBAAgB,EAMhB,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AAYvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../runner/src/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAsBH,OAAO,EAKL,gBAAgB,EAMhB,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AAYvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC/F,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,oEAAoE,CAAC;AAE5E,OAAO,KAAK,EAEV,UAAU,EAEV,wBAAwB,EACxB,aAAa,EAEb,eAAe,EAChB,MAAM,0BAA0B,CAAC;AAiClC,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAG7B,8BAA8B,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAkB9B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,GACjC,IAAI,CAMN;AAoFD,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,IAAI,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC9F,CAAC;AAEF;;;;;GAKG;AACH,wB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AO,CAAC;IACvB,mEAAmE;IACnE,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC,GACA,cAAc,CA8DhB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,YAAY,GAAG,IAAI,CA0BrB;AA+CD;;;;;;;;;;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,CA0tFxE"}
|
package/dist/sdk/index.js
CHANGED
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, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, pickRepointedManager, planFlowMutate, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hostOpResumeStimulus, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, pickRepointedManager, planFlowMutate, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, stimulusFromMetas, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-JLJ3OMHR.js';
|
|
2
2
|
import '../chunk-2ZP6KIIQ.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
import '../chunk-O7SG5PC2.js';
|
package/dist/tui/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skaile/workspaces",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
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",
|