@skaile/workspaces 1.5.0 → 1.6.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/CHANGELOG.md +53 -0
- package/dist/{chunk-CNSNN7N6.js → chunk-BEO6KN7P.js} +2 -2
- package/dist/{chunk-CNSNN7N6.js.map → chunk-BEO6KN7P.js.map} +1 -1
- package/dist/{chunk-BGIC25VK.js → chunk-CBA2XIBF.js} +24 -8
- package/dist/chunk-CBA2XIBF.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/capability-registry.d.ts +21 -2
- package/dist/runner/src/capability-registry.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-BGIC25VK.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import { makeSourceCommand, syncProjectSources } from '../chunk-WYGXYGJH.js';
|
|
|
5
5
|
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-RSYV7XEN.js';
|
|
6
6
|
import { logErr, S, logOk, logInfo, colorRef, logWarn, kindColorPad, kindColor, formatSoftDepSection, bareSoftDepName, formatSoftDepHint, formatRelativeTime, fitWidth, formatSoftDepRemovePreview, formatSoftDepAddPreview } from '../chunk-KMY7HVQ6.js';
|
|
7
7
|
import { LocalSecretsProvider } from '../chunk-6BEGKO2Q.js';
|
|
8
|
-
import { runFlow, resumeFlow } from '../chunk-
|
|
8
|
+
import { runFlow, resumeFlow } from '../chunk-BEO6KN7P.js';
|
|
9
9
|
import '../chunk-4R6DROGN.js';
|
|
10
10
|
import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-GXC3TYMQ.js';
|
|
11
|
-
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-
|
|
11
|
+
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-CBA2XIBF.js';
|
|
12
12
|
import { buildClaudePluginFiles } from '../chunk-RDYOU6N6.js';
|
|
13
13
|
import '../chunk-X5YPJV4N.js';
|
|
14
14
|
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, 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, 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, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-CBA2XIBF.js';
|
|
2
2
|
import '../chunk-RDYOU6N6.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -72,6 +72,16 @@ export type RegisterSource = "client" | "agent" | {
|
|
|
72
72
|
kind: "app";
|
|
73
73
|
appId: string;
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* The `instance` segment of a capability's log slice. An app capability carries
|
|
77
|
+
* its `appId`, yielding `capability:app:<appId>.<name>` — so an operator can
|
|
78
|
+
* attribute an invocation to the app that answered it, not just to its name.
|
|
79
|
+
*
|
|
80
|
+
* The `appId.name` join is unambiguous because an `appId` cannot contain a dot:
|
|
81
|
+
* the platform validates it as `/^[a-z0-9-]+$/` before an app connection is ever
|
|
82
|
+
* bound. Nothing here re-checks it; a dotted `appId` would only blur the slice.
|
|
83
|
+
*/
|
|
84
|
+
export declare function capabilityLogInstance(cap: Pick<Capability, "name" | "origin">): string;
|
|
75
85
|
/**
|
|
76
86
|
* Per-session registry of capabilities. Construct one per
|
|
77
87
|
* `startAgentServer` invocation; the runner threads it through serve mode's
|
|
@@ -118,9 +128,14 @@ export declare class CapabilityRegistry {
|
|
|
118
128
|
*
|
|
119
129
|
* Allowed combinations:
|
|
120
130
|
* - source `'agent'`: origins `framework | agent | flow | skill | mcp | connector | mount`
|
|
121
|
-
*
|
|
131
|
+
* — never `client`, and never `app` (an in-process registrant must not be
|
|
132
|
+
* able to impersonate an embedded app)
|
|
133
|
+
* - source `'client'`: origins `client` or `app`. The platform gateway is the
|
|
134
|
+
* only client peer; it forwards an embedded app's capabilities after binding
|
|
135
|
+
* each to the connection it arrived on. The runner cannot verify an `appId`.
|
|
122
136
|
* - source `{ kind: 'app', appId }`: origin `app` only, and the origin's
|
|
123
|
-
* `appId` must match the source `appId
|
|
137
|
+
* `appId` must match the source `appId`. For a direct app→runner connection;
|
|
138
|
+
* unused today.
|
|
124
139
|
*
|
|
125
140
|
* @param cap - capability to register (typically built via {@link defineCapability})
|
|
126
141
|
* @param source - which side is doing the registration
|
|
@@ -179,6 +194,10 @@ export declare class CapabilityRegistry {
|
|
|
179
194
|
* hibernation by this method — agent-side ones come back via the
|
|
180
195
|
* skill / flow / connector / mount adapters. Snapshot entries from other
|
|
181
196
|
* origins are skipped on hydrate.
|
|
197
|
+
*
|
|
198
|
+
* Embedded-app capabilities carry an `app` origin, so the `client`-origin
|
|
199
|
+
* check already excludes them; the reserved-prefix skip below is a backstop
|
|
200
|
+
* against a capability that reaches the registry with a relabelled origin.
|
|
182
201
|
*/
|
|
183
202
|
hydrate(snapshot: Capability[]): void;
|
|
184
203
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-registry.d.ts","sourceRoot":"","sources":["../../../runner/src/capability-registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"capability-regist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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, 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, 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, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-CBA2XIBF.js';
|
|
2
2
|
import '../chunk-RDYOU6N6.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.
|
|
3
|
+
"version": "1.6.0",
|
|
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",
|