@skaile/workspaces 1.10.3 → 1.12.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 +27 -0
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-BQMXT42Z.js → asset-feeds-2DQJNYTO.js} +4 -4
- package/dist/{asset-feeds-BQMXT42Z.js.map → asset-feeds-2DQJNYTO.js.map} +1 -1
- package/dist/asset-manager/index.js +1 -1
- package/dist/bridge/drivers/claude-sdk.js +1 -1
- package/dist/bridge/drivers/codex.js +1 -1
- package/dist/bridge/drivers/continue.js +2 -2
- package/dist/bridge/drivers/echo.js +8 -6
- package/dist/bridge/drivers/echo.js.map +1 -1
- package/dist/bridge/drivers/gemini.js +3 -3
- package/dist/bridge/drivers/goose.js +2 -2
- package/dist/bridge/drivers/omp.js +1 -1
- package/dist/bridge/drivers/opencode.js +2 -2
- package/dist/bridge/drivers/qwen.js +3 -3
- package/dist/bridge/index.js +2 -2
- package/dist/bridge/src/drivers/echo.d.ts.map +1 -1
- package/dist/bridge/src/drivers/flow-script.d.ts +3 -2
- package/dist/bridge/src/drivers/flow-script.d.ts.map +1 -1
- package/dist/bridge/src/types.d.ts +7 -0
- package/dist/bridge/src/types.d.ts.map +1 -1
- package/dist/{chunk-NQD7INSF.js → chunk-25LDSYP4.js} +4 -4
- package/dist/{chunk-NQD7INSF.js.map → chunk-25LDSYP4.js.map} +1 -1
- package/dist/{chunk-DEYYRFQU.js → chunk-3EBFDMZC.js} +10 -7
- package/dist/chunk-3EBFDMZC.js.map +1 -0
- package/dist/{chunk-QHU6TM7D.js → chunk-A7GDV5BV.js} +2 -2
- package/dist/{chunk-QHU6TM7D.js.map → chunk-A7GDV5BV.js.map} +1 -1
- package/dist/{chunk-DFJUCT6V.js → chunk-AT3DUOZD.js} +3 -3
- package/dist/{chunk-DFJUCT6V.js.map → chunk-AT3DUOZD.js.map} +1 -1
- package/dist/{chunk-5RUKUVKQ.js → chunk-B2RBDYQS.js} +3 -3
- package/dist/{chunk-5RUKUVKQ.js.map → chunk-B2RBDYQS.js.map} +1 -1
- package/dist/{chunk-7BRSWDKY.js → chunk-D4IYQI4G.js} +6 -6
- package/dist/{chunk-7BRSWDKY.js.map → chunk-D4IYQI4G.js.map} +1 -1
- package/dist/{chunk-MCQHSNA2.js → chunk-EN42DDM6.js} +5 -5
- package/dist/{chunk-MCQHSNA2.js.map → chunk-EN42DDM6.js.map} +1 -1
- package/dist/{chunk-XVWK3VHH.js → chunk-GAA5W4VX.js} +3 -3
- package/dist/{chunk-XVWK3VHH.js.map → chunk-GAA5W4VX.js.map} +1 -1
- package/dist/{chunk-T5XXWWHT.js → chunk-H5XWVDL4.js} +3 -3
- package/dist/{chunk-T5XXWWHT.js.map → chunk-H5XWVDL4.js.map} +1 -1
- package/dist/{chunk-4N5XR5DQ.js → chunk-HPGV54O4.js} +12 -3
- package/dist/chunk-HPGV54O4.js.map +1 -0
- package/dist/{chunk-MW7GNYRT.js → chunk-P5VLR3L7.js} +3 -3
- package/dist/{chunk-MW7GNYRT.js.map → chunk-P5VLR3L7.js.map} +1 -1
- package/dist/{chunk-5RKAGH37.js → chunk-SORYPIC3.js} +51 -25
- package/dist/chunk-SORYPIC3.js.map +1 -0
- package/dist/{chunk-2QKVA5Y6.js → chunk-SPC3TJPZ.js} +2 -2
- package/dist/{chunk-2QKVA5Y6.js.map → chunk-SPC3TJPZ.js.map} +1 -1
- package/dist/{chunk-H6ICUWWL.js → chunk-TEU4LMJB.js} +6 -6
- package/dist/{chunk-H6ICUWWL.js.map → chunk-TEU4LMJB.js.map} +1 -1
- package/dist/{chunk-XJOPAGZX.js → chunk-TSB46BHR.js} +4 -4
- package/dist/{chunk-XJOPAGZX.js.map → chunk-TSB46BHR.js.map} +1 -1
- package/dist/{chunk-YODB4IHP.js → chunk-UFGWIXRA.js} +19 -7
- package/dist/chunk-UFGWIXRA.js.map +1 -0
- package/dist/{chunk-776EVMDG.js → chunk-XZ2ZXULF.js} +4 -4
- package/dist/{chunk-776EVMDG.js.map → chunk-XZ2ZXULF.js.map} +1 -1
- package/dist/{chunk-KF3KDVKT.js → chunk-YM5P2P4R.js} +2 -2
- package/dist/chunk-YM5P2P4R.js.map +1 -0
- package/dist/{chunk-QRHQY4IG.js → chunk-ZBUEGXBO.js} +2 -2
- package/dist/{chunk-QRHQY4IG.js.map → chunk-ZBUEGXBO.js.map} +1 -1
- package/dist/cli/index.js +30 -30
- package/dist/connectors/index.js +3 -3
- package/dist/{ensure-sources-WL442SHF.js → ensure-sources-UQRURIW2.js} +4 -4
- package/dist/{ensure-sources-WL442SHF.js.map → ensure-sources-UQRURIW2.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +3 -3
- package/dist/factory-assets/connectors/deploy.js +3 -3
- package/dist/factory-assets/connectors/devserver.js +3 -3
- package/dist/factory-assets/connectors/flow/adapter.d.ts +2 -0
- package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +3 -3
- package/dist/factory-assets/connectors/flow/engine/flow-manifest.d.ts +6 -0
- package/dist/factory-assets/connectors/flow/engine/flow-manifest.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/types.d.ts +9 -0
- package/dist/factory-assets/connectors/flow/engine/types.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine.js +1 -1
- package/dist/factory-assets/connectors/flow/prompt-fragments.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/prompt-fragments.js +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +4 -4
- package/dist/factory-assets/connectors/flow.js +3 -3
- package/dist/factory-assets/connectors/git.js +3 -3
- package/dist/factory-assets/connectors/gmail.js +3 -3
- package/dist/factory-assets/connectors/googledrive.js +3 -3
- package/dist/factory-assets/connectors/local.js +3 -3
- package/dist/factory-assets/connectors/mattermost.js +3 -3
- package/dist/factory-assets/connectors/memory.js +3 -3
- package/dist/factory-assets/connectors/minio.js +3 -3
- package/dist/factory-assets/connectors/postgres.js +3 -3
- package/dist/factory-assets/connectors/s3.js +3 -3
- package/dist/factory-assets/connectors/sharepoint.js +3 -3
- package/dist/factory-assets/connectors/sqlite.js +3 -3
- package/dist/factory-assets/connectors/static-server.js +3 -3
- package/dist/factory-assets/connectors/tunnel.js +3 -3
- package/dist/factory-assets/connectors/webdav.js +3 -3
- package/dist/factory-assets/connectors/xstate-store.js +3 -3
- package/dist/factory-assets/connectors/xstate.js +3 -3
- package/dist/{flows-RR6R3WBL.js → flows-TIUWM7SZ.js} +3 -3
- package/dist/{flows-RR6R3WBL.js.map → flows-TIUWM7SZ.js.map} +1 -1
- package/dist/{helpers-AE7TFRJD.js → helpers-23SAM2P6.js} +4 -4
- package/dist/{helpers-AE7TFRJD.js.map → helpers-23SAM2P6.js.map} +1 -1
- package/dist/{library-publish-V4L2M5VY.js → library-publish-5BXJMSIR.js} +7 -7
- package/dist/{library-publish-V4L2M5VY.js.map → library-publish-5BXJMSIR.js.map} +1 -1
- package/dist/{open-library-KPK6NKIX.js → open-library-WV7GNUHL.js} +6 -6
- package/dist/{open-library-KPK6NKIX.js.map → open-library-WV7GNUHL.js.map} +1 -1
- package/dist/{project-NIFONZRU.js → project-CDUJVKCN.js} +5 -5
- package/dist/{project-NIFONZRU.js.map → project-CDUJVKCN.js.map} +1 -1
- package/dist/runner/index.js +8 -8
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +1 -1
- package/dist/sdk/bridge.js +2 -2
- package/dist/sdk/flow.js +1 -1
- package/dist/sdk/index.js +8 -8
- package/dist/sdk/runner.js +8 -8
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/types.js +1 -1
- package/dist/session/index.js +2 -2
- package/dist/{setup-M6QZBZSE.js → setup-RN2M4VOG.js} +4 -4
- package/dist/{setup-M6QZBZSE.js.map → setup-RN2M4VOG.js.map} +1 -1
- package/dist/{source-5IAXOWCU.js → source-7JHYBOFS.js} +7 -7
- package/dist/{source-5IAXOWCU.js.map → source-7JHYBOFS.js.map} +1 -1
- package/dist/{source-manifest-publish-UJM6D3Y7.js → source-manifest-publish-II7N6E2P.js} +8 -8
- package/dist/{source-manifest-publish-UJM6D3Y7.js.map → source-manifest-publish-II7N6E2P.js.map} +1 -1
- package/dist/tui/index.js +8 -8
- package/dist/types/index.js +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/lifecycle.d.ts +30 -0
- package/dist/types/src/lifecycle.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +12 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +1 -1
- package/dist/workspace-plugin/adapters/omp.js +3 -3
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4N5XR5DQ.js.map +0 -1
- package/dist/chunk-5RKAGH37.js.map +0 -1
- package/dist/chunk-DEYYRFQU.js.map +0 -1
- package/dist/chunk-KF3KDVKT.js.map +0 -1
- package/dist/chunk-YODB4IHP.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { WorkspacePlugin } from './chunk-
|
|
1
|
+
import { WorkspacePlugin } from './chunk-SPC3TJPZ.js';
|
|
2
2
|
import { WebSocketServerTransport } from './chunk-WQ7DE5UC.js';
|
|
3
3
|
import { assembleSystemPrompt, buildCapabilitiesPromptSection } from './chunk-W3UDISS2.js';
|
|
4
|
-
import { EventNormalizer } from './chunk-
|
|
4
|
+
import { EventNormalizer } from './chunk-H5XWVDL4.js';
|
|
5
5
|
import { SUPPORTED_CLOUDS, CLOUD_SECRET_ENV_KEYS } from './chunk-ISQWMBKD.js';
|
|
6
6
|
import { classifyClaudeSdkError } from './chunk-GAH4YRCI.js';
|
|
7
|
-
import { createDriver } from './chunk-
|
|
7
|
+
import { createDriver } from './chunk-YM5P2P4R.js';
|
|
8
8
|
import { deployCatalogEntry, undeployCatalogEntry } from './chunk-LV2HPH3C.js';
|
|
9
|
-
import { registerBuiltinConnectors, buildConnectorPromptSection, findMissingPackages, installNpmPackages, ConnectorManager, ConnectorStartupError, buildSdkConnectorTools, buildSdkFlowTools } from './chunk-
|
|
9
|
+
import { registerBuiltinConnectors, buildConnectorPromptSection, findMissingPackages, installNpmPackages, ConnectorManager, ConnectorStartupError, buildSdkConnectorTools, buildSdkFlowTools } from './chunk-UFGWIXRA.js';
|
|
10
10
|
import { loadConnectorDeclarations, SecretProviderChain, PreMintedSecretProvider, InMemorySecretProvider, resolvedConfigToDeclarations, deriveSingleMaterializedConnectorDeclaration } from './chunk-Y6FV73IH.js';
|
|
11
|
-
import { renderStimulusPrompt, buildOrchestratorPrompt } from './chunk-
|
|
12
|
-
import { PROTOCOL_VERSION } from './chunk-
|
|
11
|
+
import { renderStimulusPrompt, buildOrchestratorPrompt } from './chunk-3EBFDMZC.js';
|
|
12
|
+
import { PROTOCOL_VERSION } from './chunk-TSB46BHR.js';
|
|
13
13
|
import { resolveSettings, resolveApiKey, providerEnvKey } from './chunk-5NZ56R63.js';
|
|
14
14
|
import { resolveRuntimeAssets } from './chunk-7J7LQP6T.js';
|
|
15
15
|
import { resolveSkWorkspaceConfig, resolveAgentDir, cloudConfigFromProfile, stageMaterializedSkills, loadMcpServerDeclarations, COMPACTION_DEFAULTS, validateAssetRecipeAttr, deriveSingleMaterializedMcpDeclaration } from './chunk-ISA7R7PK.js';
|
|
@@ -4545,13 +4545,23 @@ async function startAgentServer(opts) {
|
|
|
4545
4545
|
);
|
|
4546
4546
|
}
|
|
4547
4547
|
const effectiveCloudConfig = cloudConfigFromProfile(profile);
|
|
4548
|
+
const diskProfileHasAgentSettings = (p) => !!p && !!(p.driver || p.provider || p.model || p.cloud || p.cloud_config || p.thinking || p.effort);
|
|
4549
|
+
function resolveEffectiveCloudForSession() {
|
|
4550
|
+
if (effectiveCloud !== "default" || !wireAgentConfig) {
|
|
4551
|
+
return { cloud: effectiveCloud, cloudConfig: effectiveCloudConfig };
|
|
4552
|
+
}
|
|
4553
|
+
const raw = wireAgentConfig.cloud ?? "default";
|
|
4554
|
+
const cloud = SUPPORTED_CLOUDS.includes(raw) ? raw : "default";
|
|
4555
|
+
return { cloud, cloudConfig: wireAgentConfig.cloudConfig };
|
|
4556
|
+
}
|
|
4548
4557
|
function buildSessionConfig(secretProvider2, apiKey, cloudSecrets, fallbackConnectorDeclarations) {
|
|
4558
|
+
const { cloud: sessionCloud, cloudConfig: sessionCloudConfig } = resolveEffectiveCloudForSession();
|
|
4549
4559
|
return {
|
|
4550
4560
|
projectDir: opts.projectDir,
|
|
4551
4561
|
agentDir,
|
|
4552
|
-
driver: opts.driver,
|
|
4553
|
-
model: opts.model,
|
|
4554
|
-
provider: opts.provider,
|
|
4562
|
+
driver: opts.driver ?? wireAgentConfig?.driver,
|
|
4563
|
+
model: opts.model ?? wireAgentConfig?.model,
|
|
4564
|
+
provider: opts.provider ?? wireAgentConfig?.provider,
|
|
4555
4565
|
promptsDir: opts.promptsDir,
|
|
4556
4566
|
sessionId,
|
|
4557
4567
|
resumeSessionId,
|
|
@@ -4565,9 +4575,11 @@ async function startAgentServer(opts) {
|
|
|
4565
4575
|
// plus the platform-resolved credential bundle (Vertex SA JSON already
|
|
4566
4576
|
// materialized to a file path by resolveCloudSecretBundle). Omitted
|
|
4567
4577
|
// entirely for `default` so the session config stays byte-identical.
|
|
4568
|
-
...
|
|
4569
|
-
...
|
|
4578
|
+
...sessionCloud !== "default" ? { cloud: sessionCloud } : {},
|
|
4579
|
+
...sessionCloudConfig ? { cloudConfig: sessionCloudConfig } : {},
|
|
4570
4580
|
...cloudSecrets ? { cloudSecrets } : {},
|
|
4581
|
+
...wireAgentConfig?.thinking ? { thinking: wireAgentConfig.thinking } : {},
|
|
4582
|
+
...wireAgentConfig?.effort ? { effort: wireAgentConfig.effort } : {},
|
|
4571
4583
|
// Protocol v2 `<CAPABILITIES>` block — joins each registered capability's
|
|
4572
4584
|
// `promptFragment` (framework first, then client, then agent-side
|
|
4573
4585
|
// surfaces). Built lazily inside `buildSessionConfig` so newly registered
|
|
@@ -4645,12 +4657,14 @@ async function startAgentServer(opts) {
|
|
|
4645
4657
|
let secretProvider;
|
|
4646
4658
|
let runtimeIdentity;
|
|
4647
4659
|
let preMintedSecrets;
|
|
4660
|
+
let wireAgentConfig;
|
|
4661
|
+
let appliedWireAgentConfigKey;
|
|
4648
4662
|
const stagedSkillDirs = /* @__PURE__ */ new Set();
|
|
4649
4663
|
await restageMaterializedSkills(false);
|
|
4650
4664
|
async function restageMaterializedSkills(allowRestart) {
|
|
4651
4665
|
try {
|
|
4652
4666
|
const { skillsDir } = resolveDriverPaths({
|
|
4653
|
-
driver: opts.driver ?? wsConfig.agent_config?.default?.driver ?? "claude-sdk"
|
|
4667
|
+
driver: opts.driver ?? wsConfig.agent_config?.default?.driver ?? wireAgentConfig?.driver ?? "claude-sdk"
|
|
4654
4668
|
});
|
|
4655
4669
|
const declared = (wsConfig.dependencies ?? []).flatMap((dep) => {
|
|
4656
4670
|
try {
|
|
@@ -4970,7 +4984,8 @@ async function startAgentServer(opts) {
|
|
|
4970
4984
|
}
|
|
4971
4985
|
driver.config.flowTestDriver = {
|
|
4972
4986
|
getState: () => adapter.getExecution(handle),
|
|
4973
|
-
execute: (op, args) => adapter.executeOp(handle, op, args)
|
|
4987
|
+
execute: (op, args) => adapter.executeOp(handle, op, args),
|
|
4988
|
+
mandatoryGates: () => adapter.getMandatoryGates(handle)
|
|
4974
4989
|
};
|
|
4975
4990
|
if (agentSession?.driverType === "claude-sdk") {
|
|
4976
4991
|
try {
|
|
@@ -5151,13 +5166,14 @@ async function startAgentServer(opts) {
|
|
|
5151
5166
|
async function buildSessionFromInit(secrets, fallbackConnectorDeclarations) {
|
|
5152
5167
|
let apiKeyFromSecrets;
|
|
5153
5168
|
let cloudSecrets;
|
|
5154
|
-
|
|
5155
|
-
|
|
5169
|
+
const { cloud: initCloud } = resolveEffectiveCloudForSession();
|
|
5170
|
+
if (initCloud === "default") {
|
|
5171
|
+
const effectiveProvider = opts.provider ?? wireAgentConfig?.provider ?? "anthropic";
|
|
5156
5172
|
const envKey = providerEnvKey(effectiveProvider);
|
|
5157
5173
|
apiKeyFromSecrets = secrets?.[envKey];
|
|
5158
5174
|
} else {
|
|
5159
5175
|
({ cloudSecrets } = resolveCloudSecretBundle({
|
|
5160
|
-
cloud:
|
|
5176
|
+
cloud: initCloud,
|
|
5161
5177
|
secrets,
|
|
5162
5178
|
projectDir: opts.projectDir
|
|
5163
5179
|
}));
|
|
@@ -5169,6 +5185,7 @@ async function startAgentServer(opts) {
|
|
|
5169
5185
|
fallbackConnectorDeclarations
|
|
5170
5186
|
);
|
|
5171
5187
|
let needsWireFallbackRecreate = false;
|
|
5188
|
+
const agentSessionExistedBeforeThisInit = !!agentSession;
|
|
5172
5189
|
if (!agentSession) {
|
|
5173
5190
|
agentSession = await createAgentSession(sessionConfig);
|
|
5174
5191
|
emitSystemPromptComposed(agentSession, sendEvent);
|
|
@@ -5179,6 +5196,7 @@ async function startAgentServer(opts) {
|
|
|
5179
5196
|
captureBakedMcpServers();
|
|
5180
5197
|
emitResourcesAvailable();
|
|
5181
5198
|
agentSession.startWatching();
|
|
5199
|
+
appliedWireAgentConfigKey = wireAgentConfig ? JSON.stringify(wireAgentConfig) : void 0;
|
|
5182
5200
|
log("[serve] session built from session_init envelope");
|
|
5183
5201
|
} else if ((fallbackConnectorDeclarations?.length ?? 0) > 0 && !agentSession.resourceManager) {
|
|
5184
5202
|
log(
|
|
@@ -5186,6 +5204,15 @@ async function startAgentServer(opts) {
|
|
|
5186
5204
|
);
|
|
5187
5205
|
needsWireFallbackRecreate = true;
|
|
5188
5206
|
}
|
|
5207
|
+
const wireKey = wireAgentConfig ? JSON.stringify(wireAgentConfig) : void 0;
|
|
5208
|
+
let needsWireAgentConfigRecreate = false;
|
|
5209
|
+
if (agentSessionExistedBeforeThisInit && wireKey && wireKey !== appliedWireAgentConfigKey) {
|
|
5210
|
+
log(
|
|
5211
|
+
`[serve] session_init: recreating eagerly-built session to apply wire agentConfig (driver=${wireAgentConfig.driver ?? "(default)"} model=${wireAgentConfig.model ?? "(default)"})`
|
|
5212
|
+
);
|
|
5213
|
+
needsWireAgentConfigRecreate = true;
|
|
5214
|
+
appliedWireAgentConfigKey = wireKey;
|
|
5215
|
+
}
|
|
5189
5216
|
wireSessionCapabilities({
|
|
5190
5217
|
capabilityRegistry,
|
|
5191
5218
|
remoteCapabilityInvoker,
|
|
@@ -5199,7 +5226,7 @@ async function startAgentServer(opts) {
|
|
|
5199
5226
|
attachSkillInstance,
|
|
5200
5227
|
log
|
|
5201
5228
|
});
|
|
5202
|
-
return { needsWireFallbackRecreate };
|
|
5229
|
+
return { needsWireFallbackRecreate, needsWireAgentConfigRecreate };
|
|
5203
5230
|
}
|
|
5204
5231
|
async function recreateAgentSession(overrides) {
|
|
5205
5232
|
const disposedManager = agentSession.resourceManager;
|
|
@@ -5378,7 +5405,7 @@ async function startAgentServer(opts) {
|
|
|
5378
5405
|
async function attachSkillInstance(name) {
|
|
5379
5406
|
try {
|
|
5380
5407
|
const { skillsDir } = resolveDriverPaths({
|
|
5381
|
-
driver: opts.driver ?? wsConfig.agent_config?.default?.driver ?? "claude-sdk"
|
|
5408
|
+
driver: opts.driver ?? wsConfig.agent_config?.default?.driver ?? wireAgentConfig?.driver ?? "claude-sdk"
|
|
5382
5409
|
});
|
|
5383
5410
|
const staged = stageMaterializedSkills(opts.projectDir, skillsDir, {
|
|
5384
5411
|
declared: [name]
|
|
@@ -5454,6 +5481,7 @@ async function startAgentServer(opts) {
|
|
|
5454
5481
|
aiProviderConfigId = cmd.resolvedConfig.aiProviderConfigId;
|
|
5455
5482
|
log(`[serve] stashed aiProviderConfigId=${aiProviderConfigId}`);
|
|
5456
5483
|
}
|
|
5484
|
+
wireAgentConfig = diskProfileHasAgentSettings(profile) ? void 0 : cmd.resolvedConfig.agentConfig ?? wireAgentConfig;
|
|
5457
5485
|
if (aiProviderConfigId && initialAiCredentialExpiresAt) {
|
|
5458
5486
|
aiCredentialRefreshScheduler.schedule(initialAiCredentialExpiresAt);
|
|
5459
5487
|
}
|
|
@@ -5462,10 +5490,7 @@ async function startAgentServer(opts) {
|
|
|
5462
5490
|
capabilitySignature: computeCapabilitySignature(capabilityRegistry.list())
|
|
5463
5491
|
});
|
|
5464
5492
|
const buildSession = async () => {
|
|
5465
|
-
const { needsWireFallbackRecreate } = await buildSessionFromInit(
|
|
5466
|
-
cmd.secrets,
|
|
5467
|
-
resolvedConfigToDeclarations(cmd.resolvedConfig)
|
|
5468
|
-
);
|
|
5493
|
+
const { needsWireFallbackRecreate, needsWireAgentConfigRecreate } = await buildSessionFromInit(cmd.secrets, resolvedConfigToDeclarations(cmd.resolvedConfig));
|
|
5469
5494
|
const cfg = {
|
|
5470
5495
|
aiResources: cmd.resolvedConfig.aiResources,
|
|
5471
5496
|
subagents: cmd.resolvedConfig.subagents,
|
|
@@ -5504,7 +5529,8 @@ async function startAgentServer(opts) {
|
|
|
5504
5529
|
pendingResumeSessionId = cfgResumeSessionId;
|
|
5505
5530
|
}
|
|
5506
5531
|
}
|
|
5507
|
-
if (pendingResumeSessionId || cfg.subagents || needsWireFallbackRecreate) {
|
|
5532
|
+
if (pendingResumeSessionId || cfg.subagents || needsWireFallbackRecreate || needsWireAgentConfigRecreate) {
|
|
5533
|
+
log("[serve] session_init: consolidated session recreate");
|
|
5508
5534
|
await recreateSessionForInit(pendingResumeSessionId);
|
|
5509
5535
|
}
|
|
5510
5536
|
if (cfg.sharedState) {
|
|
@@ -6177,5 +6203,5 @@ function touchSession(state) {
|
|
|
6177
6203
|
}
|
|
6178
6204
|
|
|
6179
6205
|
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, buildStoreSnapshotReplay, 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 };
|
|
6180
|
-
//# sourceMappingURL=chunk-
|
|
6181
|
-
//# sourceMappingURL=chunk-
|
|
6206
|
+
//# sourceMappingURL=chunk-SORYPIC3.js.map
|
|
6207
|
+
//# sourceMappingURL=chunk-SORYPIC3.js.map
|