@skaile/workspaces 1.8.0 → 1.8.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 +6 -0
- package/dist/{chunk-M3Y5KM6F.js → chunk-FK2L3MTF.js} +13 -4
- package/dist/chunk-FK2L3MTF.js.map +1 -0
- package/dist/{chunk-S74G7AZL.js → chunk-LLNSPJWB.js} +2 -2
- package/dist/{chunk-S74G7AZL.js.map → chunk-LLNSPJWB.js.map} +1 -1
- 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.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-M3Y5KM6F.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#381](https://github.com/skaile-ai/workspaces/pull/381) [`f1103e5`](https://github.com/skaile-ai/workspaces/commit/f1103e51491faf86fd5bc841c67f130b6db197cd) Thanks [@Frozen666](https://github.com/Frozen666)! - fix(serve): apply session_init wire connector declarations when the session was eagerly built in env mode. Broker containers have no skaile.yaml, so serve resolves env secrets mode and builds the agent session at boot; the session_init wire-declaration fallback (from the disk-first fallback work) then skipped the create branch and dropped the declarations — broker sessions registered zero resources. buildSessionFromInit now recreates the eagerly-built session when it has no resource manager and the wire supplies declarations. Disk-first invariant unchanged: a disk-built resource manager always wins and an empty wire is a no-op, so docker/local sessions behave byte-identically.
|
|
8
|
+
|
|
3
9
|
## 1.8.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -5025,7 +5025,13 @@ async function startAgentServer(opts) {
|
|
|
5025
5025
|
capabilityRegistry.register(cap, "agent");
|
|
5026
5026
|
}
|
|
5027
5027
|
log("[serve] session built from session_init envelope");
|
|
5028
|
+
} else if ((fallbackConnectorDeclarations?.length ?? 0) > 0 && !agentSession.resourceManager) {
|
|
5029
|
+
log(
|
|
5030
|
+
`[serve] session_init: recreating eagerly-built session to apply ${fallbackConnectorDeclarations.length} wire connector declaration(s) (no disk declarations)`
|
|
5031
|
+
);
|
|
5032
|
+
return { needsWireFallbackRecreate: true };
|
|
5028
5033
|
}
|
|
5034
|
+
return { needsWireFallbackRecreate: false };
|
|
5029
5035
|
}
|
|
5030
5036
|
async function recreateSessionForInit(pendingResumeSessionId) {
|
|
5031
5037
|
await agentSession.dispose();
|
|
@@ -5281,7 +5287,10 @@ async function startAgentServer(opts) {
|
|
|
5281
5287
|
capabilitySignature: computeCapabilitySignature(capabilityRegistry.list())
|
|
5282
5288
|
});
|
|
5283
5289
|
const buildSession = async () => {
|
|
5284
|
-
await buildSessionFromInit(
|
|
5290
|
+
const { needsWireFallbackRecreate } = await buildSessionFromInit(
|
|
5291
|
+
cmd.secrets,
|
|
5292
|
+
resolvedConfigToDeclarations(cmd.resolvedConfig)
|
|
5293
|
+
);
|
|
5285
5294
|
const cfg = {
|
|
5286
5295
|
aiResources: cmd.resolvedConfig.aiResources,
|
|
5287
5296
|
subagents: cmd.resolvedConfig.subagents,
|
|
@@ -5320,7 +5329,7 @@ async function startAgentServer(opts) {
|
|
|
5320
5329
|
pendingResumeSessionId = cfgResumeSessionId;
|
|
5321
5330
|
}
|
|
5322
5331
|
}
|
|
5323
|
-
if (pendingResumeSessionId || cfg.subagents) {
|
|
5332
|
+
if (pendingResumeSessionId || cfg.subagents || needsWireFallbackRecreate) {
|
|
5324
5333
|
await recreateSessionForInit(pendingResumeSessionId);
|
|
5325
5334
|
}
|
|
5326
5335
|
if (cfg.sharedState) {
|
|
@@ -5940,5 +5949,5 @@ function touchSession(state) {
|
|
|
5940
5949
|
}
|
|
5941
5950
|
|
|
5942
5951
|
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 };
|
|
5943
|
-
//# sourceMappingURL=chunk-
|
|
5944
|
-
//# sourceMappingURL=chunk-
|
|
5952
|
+
//# sourceMappingURL=chunk-FK2L3MTF.js.map
|
|
5953
|
+
//# sourceMappingURL=chunk-FK2L3MTF.js.map
|