@sentry/junior 0.167.0 → 0.169.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/dist/{agent-hooks-KEHBR4DB.js → agent-hooks-YGKANST4.js} +9 -9
- package/dist/api.js +25 -25
- package/dist/app.js +31 -31
- package/dist/{catalog-runtime-7QFMBU2Q.js → catalog-runtime-BFDMFZV4.js} +5 -5
- package/dist/chat/workspaces/tools.d.ts +1 -1
- package/dist/{chunk-WZGOP5BZ.js → chunk-23IKSW3E.js} +1 -1
- package/dist/{chunk-BGRLZPMI.js → chunk-2VK3CYSL.js} +1 -1
- package/dist/{chunk-GIGUXRMY.js → chunk-5OUQCD2J.js} +1 -1
- package/dist/{chunk-PRV74X7E.js → chunk-5Z7QQYHV.js} +5 -5
- package/dist/{chunk-5IR2ABRO.js → chunk-65QX23BY.js} +12 -12
- package/dist/{chunk-2RSPCWAV.js → chunk-73XNLM4O.js} +5 -5
- package/dist/{chunk-O5J556I2.js → chunk-7RIHHVFN.js} +9 -9
- package/dist/{chunk-2MPO25ZZ.js → chunk-BOZCSRAR.js} +1 -1
- package/dist/{chunk-KSQIE2R4.js → chunk-ECBD46QI.js} +4 -4
- package/dist/{chunk-4KRDL4ZD.js → chunk-EEKFF74Y.js} +5 -5
- package/dist/{chunk-MV4LDMRG.js → chunk-ELOZI777.js} +17 -17
- package/dist/{chunk-TZHLY42G.js → chunk-EPXPE5Y5.js} +1 -1
- package/dist/{chunk-PMULUKHL.js → chunk-FIMO3IDW.js} +3 -3
- package/dist/{chunk-V7GGA4LW.js → chunk-FSH6HT5C.js} +1 -1
- package/dist/{chunk-HIB3XTKR.js → chunk-HWXQZCKV.js} +6 -6
- package/dist/{chunk-WHMDWHZX.js → chunk-JJUZK6P2.js} +5 -5
- package/dist/{chunk-EWAG7BNE.js → chunk-JNK444WM.js} +1 -1
- package/dist/{chunk-YVW44V5Y.js → chunk-MKEHLCSM.js} +1 -1
- package/dist/{chunk-MKDIEH3C.js → chunk-MPLBAWGP.js} +2 -2
- package/dist/{chunk-W72TSO24.js → chunk-N7V2WPZV.js} +1 -1
- package/dist/{chunk-6SJN7JZ3.js → chunk-OU2DMDUI.js} +1 -1
- package/dist/{chunk-5LZVDKQJ.js → chunk-Q62IHFIH.js} +4 -4
- package/dist/{chunk-GC3AKBNP.js → chunk-S6JDUILF.js} +7 -7
- package/dist/{chunk-L63FA77C.js → chunk-TMZOUVEP.js} +1 -1
- package/dist/{chunk-WD7PVGMA.js → chunk-URM4KBIU.js} +1 -1
- package/dist/{chunk-WRBQL2AW.js → chunk-VRMPMOAT.js} +2 -2
- package/dist/{chunk-CC4EYBUO.js → chunk-VVQYG2GD.js} +184 -18
- package/dist/{chunk-IHSPBOWG.js → chunk-WF3WTELH.js} +6 -6
- package/dist/{chunk-CU7YQNZ3.js → chunk-WYNLAO2K.js} +4 -4
- package/dist/{chunk-UFTE42ZF.js → chunk-YTVYU5IF.js} +1 -1
- package/dist/{chunk-KE5ETKIR.js → chunk-ZXCVYSTS.js} +4 -4
- package/dist/cli/chat.js +29 -29
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-H25MZO65.js → db-CA3AJ2BU.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-BX334MQ6.js → oauth-callback-server-JVWWSDT5.js} +22 -22
- package/dist/{runner-GRWCCCKP.js → runner-CMDQJDCH.js} +12 -12
- package/dist/{skills-TG76W7TS.js → skills-GYJ4MBNQ.js} +6 -6
- package/dist/spawn-KSP4DKK6.js +37 -0
- package/dist/{validation-JY6EXXR3.js → validation-55EBPZHH.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-53J6P32F.js → work-N7CBTARL.js} +17 -17
- package/dist/{worker-WLLGEEQS.js → worker-CGMUVQ2Q.js} +11 -11
- package/package.json +5 -5
- package/dist/spawn-4YBTXAR2.js +0 -37
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PluginCredentialFailureError,
|
|
8
8
|
agentNameSchema,
|
|
9
9
|
createPluginAuthOrchestration
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5Z7QQYHV.js";
|
|
11
11
|
import {
|
|
12
12
|
authorizationId
|
|
13
13
|
} from "./chunk-DIB4GX3G.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
searchSlackUsers,
|
|
33
33
|
selectPluginGrant,
|
|
34
34
|
toMcpProviderError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-S6JDUILF.js";
|
|
36
36
|
import {
|
|
37
37
|
RetryableDeliveryError,
|
|
38
38
|
actorFromRun,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
getSlackMessagePermalink,
|
|
49
49
|
resolveBaseUrl,
|
|
50
50
|
uploadFilesToConversation
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-HWXQZCKV.js";
|
|
52
52
|
import {
|
|
53
53
|
parseSandboxEgressAuthRequiredSignal,
|
|
54
54
|
parseSandboxEgressPermissionDeniedSignal,
|
|
@@ -88,10 +88,10 @@ import {
|
|
|
88
88
|
scheduledTaskAttributes,
|
|
89
89
|
storeAttachments,
|
|
90
90
|
writableEventTask
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-JJUZK6P2.js";
|
|
92
92
|
import {
|
|
93
93
|
parseSlackThreadId
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-EPXPE5Y5.js";
|
|
95
95
|
import {
|
|
96
96
|
AGENTS_REMOVAL_NOTICE,
|
|
97
97
|
AGENTS_REPLACEMENT_NOTICE,
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
stripRuntimeTurnContext,
|
|
163
163
|
trimTrailingAssistantMessages,
|
|
164
164
|
truncateText
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-ECBD46QI.js";
|
|
166
166
|
import {
|
|
167
167
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
168
168
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -183,19 +183,23 @@ import {
|
|
|
183
183
|
stopSession,
|
|
184
184
|
throwSandboxOperationError,
|
|
185
185
|
wrapSandboxSetupError
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-Q62IHFIH.js";
|
|
187
187
|
import {
|
|
188
188
|
privateTraceResultAttributes
|
|
189
189
|
} from "./chunk-UIE3R5XU.js";
|
|
190
190
|
import {
|
|
191
191
|
SlackActionError,
|
|
192
|
+
WorkspaceValidationError,
|
|
192
193
|
createPluginHookRunner,
|
|
194
|
+
createWorkspace,
|
|
195
|
+
deleteWorkspace,
|
|
193
196
|
downloadPrivateSlackFile,
|
|
194
197
|
getDashboardTaskLink,
|
|
195
198
|
getFilePermalink,
|
|
196
199
|
getPluginSystemPromptContributions,
|
|
197
200
|
getPluginTools,
|
|
198
201
|
getPluginUserPromptContributions,
|
|
202
|
+
getPlugins,
|
|
199
203
|
getSlackClient,
|
|
200
204
|
getSlackToolContext,
|
|
201
205
|
getWorkspace,
|
|
@@ -207,9 +211,10 @@ import {
|
|
|
207
211
|
recordResolvedWorkspaceSnapshot,
|
|
208
212
|
resolveChannelCapabilities,
|
|
209
213
|
tryWorkspaceRepoCheckoutPath,
|
|
214
|
+
updateWorkspace,
|
|
210
215
|
withSlackRetries,
|
|
211
216
|
workspaceRepoCheckoutPath
|
|
212
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-EEKFF74Y.js";
|
|
213
218
|
import {
|
|
214
219
|
KNOWN_CONVERSATION_EVENT_TYPES,
|
|
215
220
|
contextProvenance,
|
|
@@ -221,11 +226,11 @@ import {
|
|
|
221
226
|
instructionActors,
|
|
222
227
|
instructionProvenanceFor,
|
|
223
228
|
sameActorIdentity
|
|
224
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-FIMO3IDW.js";
|
|
225
230
|
import {
|
|
226
231
|
juniorArtifacts,
|
|
227
232
|
juniorIdentities
|
|
228
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-MKEHLCSM.js";
|
|
229
234
|
import {
|
|
230
235
|
SANDBOX_DATA_ROOT,
|
|
231
236
|
SANDBOX_REPOS_ROOT,
|
|
@@ -241,7 +246,7 @@ import {
|
|
|
241
246
|
} from "./chunk-BVREIWBD.js";
|
|
242
247
|
import {
|
|
243
248
|
getStateAdapter
|
|
244
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-N7V2WPZV.js";
|
|
245
250
|
import {
|
|
246
251
|
ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
|
|
247
252
|
COMPACTION_SUMMARY_PREFIX,
|
|
@@ -274,7 +279,7 @@ import {
|
|
|
274
279
|
resolveGatewayCredential,
|
|
275
280
|
resolveGatewayModel,
|
|
276
281
|
unwrapCurrentInstruction
|
|
277
|
-
} from "./chunk-
|
|
282
|
+
} from "./chunk-MPLBAWGP.js";
|
|
278
283
|
import {
|
|
279
284
|
canExposeConversationPayload,
|
|
280
285
|
resolveConversationPrivacy,
|
|
@@ -284,16 +289,16 @@ import {
|
|
|
284
289
|
toGenAiMessagesTraceAttributes,
|
|
285
290
|
toGenAiPayloadMetadata,
|
|
286
291
|
toGenAiPayloadTraceAttributes
|
|
287
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-23IKSW3E.js";
|
|
288
293
|
import {
|
|
289
294
|
discoverSkills,
|
|
290
295
|
findSkillByName,
|
|
291
296
|
loadSkillsByName,
|
|
292
297
|
parseSkillInvocation
|
|
293
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-VRMPMOAT.js";
|
|
294
299
|
import {
|
|
295
300
|
pluginCatalogRuntime
|
|
296
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-TMZOUVEP.js";
|
|
297
302
|
import {
|
|
298
303
|
CredentialUnavailableError,
|
|
299
304
|
OAuthProviderError,
|
|
@@ -301,7 +306,7 @@ import {
|
|
|
301
306
|
getOAuthProviderErrorAttributes,
|
|
302
307
|
resolveAuthTokenPlaceholder,
|
|
303
308
|
resolvePluginCommandEnv
|
|
304
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-JNK444WM.js";
|
|
305
310
|
import {
|
|
306
311
|
credentialUserSubjectId
|
|
307
312
|
} from "./chunk-BDUENQD3.js";
|
|
@@ -329,7 +334,7 @@ import {
|
|
|
329
334
|
summarizeMessageText,
|
|
330
335
|
withLogContext,
|
|
331
336
|
withSpan
|
|
332
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-FSH6HT5C.js";
|
|
333
338
|
import {
|
|
334
339
|
startInactiveSpan,
|
|
335
340
|
withActiveSpan
|
|
@@ -13678,6 +13683,22 @@ function createWriteFileTool() {
|
|
|
13678
13683
|
|
|
13679
13684
|
// src/chat/workspaces/tools.ts
|
|
13680
13685
|
import { z as z63 } from "zod";
|
|
13686
|
+
async function tryRecordWorkspaceSwitchStat(workspace) {
|
|
13687
|
+
if (!process.env.DATABASE_URL) return;
|
|
13688
|
+
try {
|
|
13689
|
+
await incrementStat({
|
|
13690
|
+
namespace: "junior",
|
|
13691
|
+
metric: "workspace_switch",
|
|
13692
|
+
name: workspace.id
|
|
13693
|
+
});
|
|
13694
|
+
} catch (error) {
|
|
13695
|
+
logWarn("workspace.switch.stat.failed", {
|
|
13696
|
+
"app.workspace.id": workspace.id,
|
|
13697
|
+
"app.workspace.name": workspace.name,
|
|
13698
|
+
"exception.message": error instanceof Error ? error.message : String(error)
|
|
13699
|
+
});
|
|
13700
|
+
}
|
|
13701
|
+
}
|
|
13681
13702
|
var repoSchema = z63.object({
|
|
13682
13703
|
provider: z63.string(),
|
|
13683
13704
|
repo: z63.string(),
|
|
@@ -13701,9 +13722,153 @@ function view(workspace) {
|
|
|
13701
13722
|
}))
|
|
13702
13723
|
};
|
|
13703
13724
|
}
|
|
13725
|
+
function workspaceProviderNames() {
|
|
13726
|
+
const providers = getPlugins().filter((plugin) => plugin.hooks?.workspacePrepare).map((plugin) => plugin.manifest.name).sort((left, right) => left.localeCompare(right));
|
|
13727
|
+
if (providers.length === 0) return void 0;
|
|
13728
|
+
return providers;
|
|
13729
|
+
}
|
|
13730
|
+
function workspaceWriteSchemas(providers) {
|
|
13731
|
+
const providerNames = providers.map((provider) => `\`${provider}\``).join(", ");
|
|
13732
|
+
const repoInputSchema = z63.object({
|
|
13733
|
+
provider: z63.enum(providers).describe(`Repository provider. Supported: ${providerNames}.`),
|
|
13734
|
+
repo: z63.string().trim().min(1).describe("Repository in owner/name format.")
|
|
13735
|
+
}).strict();
|
|
13736
|
+
const workspaceInputSchema = z63.object({
|
|
13737
|
+
name: z63.string().trim().min(1).describe(
|
|
13738
|
+
"Workspace name. Use lowercase letters, digits, underscores, or hyphens."
|
|
13739
|
+
),
|
|
13740
|
+
setup_script: z63.string().nullable().describe(
|
|
13741
|
+
"Optional shell script to run after repository checkout whenever this Workspace starts. Omit or use null for no setup script."
|
|
13742
|
+
).optional(),
|
|
13743
|
+
repos: z63.array(repoInputSchema).max(32).describe("Complete repository list.")
|
|
13744
|
+
}).strict();
|
|
13745
|
+
return { providerNames, workspaceInputSchema };
|
|
13746
|
+
}
|
|
13747
|
+
function writeInput(input) {
|
|
13748
|
+
return {
|
|
13749
|
+
name: input.name,
|
|
13750
|
+
...input.setup_script == null ? {} : { setupScript: input.setup_script },
|
|
13751
|
+
repos: input.repos.map((repo) => ({
|
|
13752
|
+
provider: repo.provider,
|
|
13753
|
+
repo: repo.repo
|
|
13754
|
+
}))
|
|
13755
|
+
};
|
|
13756
|
+
}
|
|
13757
|
+
function prepareWorkspaceWriteArguments(args) {
|
|
13758
|
+
const input = args;
|
|
13759
|
+
const prepared = { ...input };
|
|
13760
|
+
if (prepared.setup_script == null) {
|
|
13761
|
+
delete prepared.setup_script;
|
|
13762
|
+
}
|
|
13763
|
+
return prepared;
|
|
13764
|
+
}
|
|
13765
|
+
async function workspaceWrite(operation) {
|
|
13766
|
+
try {
|
|
13767
|
+
return await operation();
|
|
13768
|
+
} catch (error) {
|
|
13769
|
+
if (error instanceof WorkspaceValidationError) {
|
|
13770
|
+
throw new ToolInputError(error.message);
|
|
13771
|
+
}
|
|
13772
|
+
throw error;
|
|
13773
|
+
}
|
|
13774
|
+
}
|
|
13775
|
+
function describeWorkspaceWrite(action, input) {
|
|
13776
|
+
const repositories = `${input.repos.length} ${input.repos.length === 1 ? "repository" : "repositories"}`;
|
|
13777
|
+
const setupText = input.setup_script ? "; includes a setup script" : "";
|
|
13778
|
+
return `${action} Workspace ${input.name} (${repositories}${setupText}).`;
|
|
13779
|
+
}
|
|
13780
|
+
function createWorkspaceWriteTools(providers) {
|
|
13781
|
+
const { providerNames, workspaceInputSchema } = workspaceWriteSchemas(providers);
|
|
13782
|
+
return {
|
|
13783
|
+
createWorkspace: zodTool({
|
|
13784
|
+
approvalMode: "review",
|
|
13785
|
+
describeProposal: (input) => describeWorkspaceWrite("Create", input),
|
|
13786
|
+
executionMode: "sequential",
|
|
13787
|
+
annotations: {
|
|
13788
|
+
destructiveHint: false,
|
|
13789
|
+
idempotentHint: false,
|
|
13790
|
+
openWorldHint: false,
|
|
13791
|
+
readOnlyHint: false
|
|
13792
|
+
},
|
|
13793
|
+
description: `Create an install-wide Workspace recipe. Repository providers: ${providerNames}. The Workspace becomes available to future conversations.`,
|
|
13794
|
+
inputSchema: workspaceInputSchema,
|
|
13795
|
+
prepareArguments: prepareWorkspaceWriteArguments,
|
|
13796
|
+
outputSchema: juniorToolOutputSchema.extend({
|
|
13797
|
+
workspace: workspaceSchema
|
|
13798
|
+
}),
|
|
13799
|
+
async execute(input) {
|
|
13800
|
+
const workspace = await workspaceWrite(
|
|
13801
|
+
() => createWorkspace(writeInput(input))
|
|
13802
|
+
);
|
|
13803
|
+
return { workspace: view(workspace) };
|
|
13804
|
+
}
|
|
13805
|
+
}),
|
|
13806
|
+
updateWorkspace: zodTool({
|
|
13807
|
+
approvalMode: "review",
|
|
13808
|
+
describeProposal: ({ id: _id, ...input }) => describeWorkspaceWrite("Replace", input),
|
|
13809
|
+
executionMode: "sequential",
|
|
13810
|
+
annotations: {
|
|
13811
|
+
destructiveHint: true,
|
|
13812
|
+
idempotentHint: true,
|
|
13813
|
+
openWorldHint: false,
|
|
13814
|
+
readOnlyHint: false
|
|
13815
|
+
},
|
|
13816
|
+
description: `Replace an install-wide Workspace recipe. Repository providers: ${providerNames}. Use the Workspace ID returned by listWorkspaces.`,
|
|
13817
|
+
inputSchema: workspaceInputSchema.extend({
|
|
13818
|
+
id: z63.string().uuid().describe("Workspace ID from listWorkspaces.")
|
|
13819
|
+
}).strict(),
|
|
13820
|
+
prepareArguments(args) {
|
|
13821
|
+
const input = args;
|
|
13822
|
+
return {
|
|
13823
|
+
...prepareWorkspaceWriteArguments(input),
|
|
13824
|
+
id: input.id
|
|
13825
|
+
};
|
|
13826
|
+
},
|
|
13827
|
+
outputSchema: juniorToolOutputSchema.extend({
|
|
13828
|
+
workspace: workspaceSchema
|
|
13829
|
+
}),
|
|
13830
|
+
async execute({ id, ...input }) {
|
|
13831
|
+
const workspace = await workspaceWrite(
|
|
13832
|
+
() => updateWorkspace(id, writeInput(input))
|
|
13833
|
+
);
|
|
13834
|
+
if (!workspace) {
|
|
13835
|
+
throw new ToolInputError(`Workspace not found: ${id}`);
|
|
13836
|
+
}
|
|
13837
|
+
return { workspace: view(workspace) };
|
|
13838
|
+
}
|
|
13839
|
+
}),
|
|
13840
|
+
deleteWorkspace: zodTool({
|
|
13841
|
+
approvalMode: "review",
|
|
13842
|
+
describeProposal: ({ id }) => `Delete Workspace ${id}.`,
|
|
13843
|
+
executionMode: "sequential",
|
|
13844
|
+
annotations: {
|
|
13845
|
+
destructiveHint: true,
|
|
13846
|
+
idempotentHint: true,
|
|
13847
|
+
openWorldHint: false,
|
|
13848
|
+
readOnlyHint: false
|
|
13849
|
+
},
|
|
13850
|
+
description: "Delete one install-wide Workspace recipe. Use the Workspace ID returned by listWorkspaces.",
|
|
13851
|
+
inputSchema: z63.object({
|
|
13852
|
+
id: z63.string().uuid().describe("Workspace ID from listWorkspaces.")
|
|
13853
|
+
}).strict(),
|
|
13854
|
+
outputSchema: juniorToolOutputSchema.extend({
|
|
13855
|
+
deleted: z63.literal(true)
|
|
13856
|
+
}),
|
|
13857
|
+
async execute({ id }) {
|
|
13858
|
+
const deleted = await workspaceWrite(() => deleteWorkspace(id));
|
|
13859
|
+
if (!deleted) {
|
|
13860
|
+
throw new ToolInputError(`Workspace not found: ${id}`);
|
|
13861
|
+
}
|
|
13862
|
+
return { deleted: true };
|
|
13863
|
+
}
|
|
13864
|
+
})
|
|
13865
|
+
};
|
|
13866
|
+
}
|
|
13704
13867
|
function createWorkspaceTools(context) {
|
|
13705
13868
|
if (!context.workspaces) return {};
|
|
13869
|
+
const providers = workspaceProviderNames();
|
|
13706
13870
|
return {
|
|
13871
|
+
...providers ? createWorkspaceWriteTools(providers) : {},
|
|
13707
13872
|
listWorkspaces: zodTool({
|
|
13708
13873
|
annotations: {
|
|
13709
13874
|
destructiveHint: false,
|
|
@@ -13711,7 +13876,7 @@ function createWorkspaceTools(context) {
|
|
|
13711
13876
|
openWorldHint: false,
|
|
13712
13877
|
readOnlyHint: true
|
|
13713
13878
|
},
|
|
13714
|
-
description: "List named repository workspaces that can replace the current sandbox.
|
|
13879
|
+
description: "List named repository workspaces that can replace the current sandbox.",
|
|
13715
13880
|
inputSchema: z63.object({}).strict(),
|
|
13716
13881
|
outputSchema: juniorToolOutputSchema.extend({
|
|
13717
13882
|
active_workspace_id: z63.string().nullable(),
|
|
@@ -13744,6 +13909,7 @@ function createWorkspaceTools(context) {
|
|
|
13744
13909
|
if (!workspace)
|
|
13745
13910
|
throw new ToolInputError(`Workspace not found: ${name}`);
|
|
13746
13911
|
await context.workspaces.switch(workspace, options.signal);
|
|
13912
|
+
await tryRecordWorkspaceSwitchStat(workspace);
|
|
13747
13913
|
return { workspace: view(workspace) };
|
|
13748
13914
|
}
|
|
13749
13915
|
})
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendAndEnqueueInboundMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZXCVYSTS.js";
|
|
4
4
|
import {
|
|
5
5
|
ConversationTurnLifecycleService,
|
|
6
6
|
getPersistedSandboxState,
|
|
7
7
|
getPersistedThreadState,
|
|
8
8
|
persistThreadStateById
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-73XNLM4O.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentInvocationBusyError,
|
|
12
12
|
AgentInvocationLimitError,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
agentBindingSchema,
|
|
16
16
|
agentInvocationSchema,
|
|
17
17
|
createAgentInvocationSchema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5Z7QQYHV.js";
|
|
19
19
|
import {
|
|
20
20
|
TurnInputCommitLostError,
|
|
21
21
|
failTurnRecord,
|
|
@@ -26,16 +26,16 @@ import {
|
|
|
26
26
|
isTurnInputCommitLostError,
|
|
27
27
|
openConversationProjection,
|
|
28
28
|
saveTurnCheckpoint
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ECBD46QI.js";
|
|
30
30
|
import {
|
|
31
31
|
getConversationEventStore,
|
|
32
32
|
getConversationStore,
|
|
33
33
|
getSqlExecutor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FIMO3IDW.js";
|
|
35
35
|
import {
|
|
36
36
|
juniorAgentBindings,
|
|
37
37
|
juniorAgentInvocations
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MKEHLCSM.js";
|
|
39
39
|
|
|
40
40
|
// src/chat/agent-invocations/work.ts
|
|
41
41
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTurnRequestDeadline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OU2DMDUI.js";
|
|
4
4
|
import {
|
|
5
5
|
CONVERSATION_WORK_CHECK_IN_INTERVAL_MS,
|
|
6
6
|
CONVERSATION_WORK_MAX_RETRIES,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
releaseConversationWork,
|
|
22
22
|
requestAnotherSlice,
|
|
23
23
|
startConversationWork
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZXCVYSTS.js";
|
|
25
25
|
import {
|
|
26
26
|
ConversationQueueMessageRejectedError
|
|
27
27
|
} from "./chunk-JAL3CH4G.js";
|
|
28
28
|
import {
|
|
29
29
|
getChatConfig,
|
|
30
30
|
isProviderRetryError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MPLBAWGP.js";
|
|
32
32
|
import {
|
|
33
33
|
logException,
|
|
34
34
|
logInfo,
|
|
35
35
|
logWarn,
|
|
36
36
|
withLogContext
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FSH6HT5C.js";
|
|
38
38
|
|
|
39
39
|
// src/chat/task-execution/worker.ts
|
|
40
40
|
var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getConversationStore,
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FIMO3IDW.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N7V2WPZV.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MPLBAWGP.js";
|
|
19
19
|
import {
|
|
20
20
|
parseStoredSlackActor
|
|
21
21
|
} from "./chunk-V7YE4WCP.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isRecord,
|
|
24
24
|
toOptionalNumber,
|
|
25
25
|
toOptionalString
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FSH6HT5C.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAgentRun
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-VVQYG2GD.js";
|
|
4
|
+
import "../chunk-5Z7QQYHV.js";
|
|
5
5
|
import "../chunk-DIB4GX3G.js";
|
|
6
6
|
import {
|
|
7
7
|
createAgentRunner
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-S6JDUILF.js";
|
|
9
9
|
import "../chunk-RF6J3DIO.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-HWXQZCKV.js";
|
|
11
11
|
import "../chunk-7MA4HV4W.js";
|
|
12
12
|
import "../chunk-VRS6WDK5.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-JJUZK6P2.js";
|
|
14
|
+
import "../chunk-EPXPE5Y5.js";
|
|
15
|
+
import "../chunk-ECBD46QI.js";
|
|
16
16
|
import "../chunk-3Y47VMHV.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-Q62IHFIH.js";
|
|
18
18
|
import "../chunk-PDO5BLNM.js";
|
|
19
19
|
import "../chunk-UIE3R5XU.js";
|
|
20
20
|
import {
|
|
21
21
|
loadAppPluginSet
|
|
22
22
|
} from "../chunk-Y2CM7HXH.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-EEKFF74Y.js";
|
|
24
|
+
import "../chunk-FIMO3IDW.js";
|
|
25
|
+
import "../chunk-MKEHLCSM.js";
|
|
26
26
|
import "../chunk-BVREIWBD.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-N7V2WPZV.js";
|
|
28
|
+
import "../chunk-MPLBAWGP.js";
|
|
29
29
|
import "../chunk-VFUK3X5B.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-23IKSW3E.js";
|
|
31
|
+
import "../chunk-VRMPMOAT.js";
|
|
32
|
+
import "../chunk-TMZOUVEP.js";
|
|
33
|
+
import "../chunk-JNK444WM.js";
|
|
34
34
|
import "../chunk-BDUENQD3.js";
|
|
35
35
|
import "../chunk-V7YE4WCP.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-FSH6HT5C.js";
|
|
37
37
|
import "../chunk-6GWA276C.js";
|
|
38
38
|
import "../chunk-OOUNJNMR.js";
|
|
39
39
|
import "../chunk-H4HBKISO.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-YTVYU5IF.js";
|
|
41
|
+
import "../chunk-5OUQCD2J.js";
|
|
42
42
|
import "../chunk-MLKGABMK.js";
|
|
43
43
|
|
|
44
44
|
// src/cli/chat.ts
|
|
@@ -161,10 +161,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
161
161
|
databaseModule
|
|
162
162
|
] = await Promise.all([
|
|
163
163
|
import("../plugins-HW4VWW6G.js"),
|
|
164
|
-
import("../agent-hooks-
|
|
165
|
-
import("../catalog-runtime-
|
|
166
|
-
import("../validation-
|
|
167
|
-
import("../db-
|
|
164
|
+
import("../agent-hooks-YGKANST4.js"),
|
|
165
|
+
import("../catalog-runtime-BFDMFZV4.js"),
|
|
166
|
+
import("../validation-55EBPZHH.js"),
|
|
167
|
+
import("../db-CA3AJ2BU.js")
|
|
168
168
|
]);
|
|
169
169
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
170
170
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -230,14 +230,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
230
230
|
await configureLocalChatPlugins(pluginSet);
|
|
231
231
|
const { setExperimentalFeatures } = await import("../experimental-XVDOSRBS.js");
|
|
232
232
|
setExperimentalFeatures({ subagents: true });
|
|
233
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
234
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
233
|
+
const { runLocalAgentTurn } = await import("../runner-CMDQJDCH.js");
|
|
234
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-JVWWSDT5.js");
|
|
235
235
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
236
236
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-U3ZX7C5W.js");
|
|
237
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
238
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
237
|
+
const { bindSpawnAgent } = await import("../spawn-KSP4DKK6.js");
|
|
238
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-N7CBTARL.js");
|
|
239
239
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
240
|
-
const { processConversationWork } = await import("../worker-
|
|
240
|
+
const { processConversationWork } = await import("../worker-CGMUVQ2Q.js");
|
|
241
241
|
let agentRunner;
|
|
242
242
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
243
243
|
if (!agentRunner) {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-VRMPMOAT.js";
|
|
4
|
+
import "../chunk-TMZOUVEP.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-JNK444WM.js";
|
|
9
9
|
import "../chunk-BDUENQD3.js";
|
|
10
10
|
import "../chunk-V7YE4WCP.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-FSH6HT5C.js";
|
|
12
12
|
import "../chunk-6GWA276C.js";
|
|
13
13
|
import "../chunk-OOUNJNMR.js";
|
|
14
14
|
import "../chunk-H4HBKISO.js";
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
17
17
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
18
18
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-YTVYU5IF.js";
|
|
20
|
+
import "../chunk-5OUQCD2J.js";
|
|
21
21
|
import "../chunk-MLKGABMK.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/check.ts
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-URM4KBIU.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -14,28 +14,28 @@ import {
|
|
|
14
14
|
createPluginLogger,
|
|
15
15
|
setPlugins,
|
|
16
16
|
validatePlugins
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-EEKFF74Y.js";
|
|
18
18
|
import {
|
|
19
19
|
getDb
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-FIMO3IDW.js";
|
|
21
|
+
import "../chunk-MKEHLCSM.js";
|
|
22
22
|
import "../chunk-BVREIWBD.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-N7V2WPZV.js";
|
|
24
|
+
import "../chunk-MPLBAWGP.js";
|
|
25
25
|
import "../chunk-VFUK3X5B.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-23IKSW3E.js";
|
|
27
27
|
import {
|
|
28
28
|
pluginCatalogRuntime
|
|
29
|
-
} from "../chunk-
|
|
30
|
-
import "../chunk-
|
|
29
|
+
} from "../chunk-TMZOUVEP.js";
|
|
30
|
+
import "../chunk-JNK444WM.js";
|
|
31
31
|
import "../chunk-BDUENQD3.js";
|
|
32
32
|
import "../chunk-V7YE4WCP.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-FSH6HT5C.js";
|
|
34
34
|
import "../chunk-6GWA276C.js";
|
|
35
35
|
import "../chunk-OOUNJNMR.js";
|
|
36
36
|
import "../chunk-H4HBKISO.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-YTVYU5IF.js";
|
|
38
|
+
import "../chunk-5OUQCD2J.js";
|
|
39
39
|
import "../chunk-MLKGABMK.js";
|
|
40
40
|
|
|
41
41
|
// src/cli/plugins.ts
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
resolve
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-Q62IHFIH.js";
|
|
5
5
|
import "../chunk-BVREIWBD.js";
|
|
6
6
|
import {
|
|
7
7
|
disconnectStateAdapter
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-N7V2WPZV.js";
|
|
9
|
+
import "../chunk-MPLBAWGP.js";
|
|
10
|
+
import "../chunk-23IKSW3E.js";
|
|
11
11
|
import {
|
|
12
12
|
pluginCatalogRuntime
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-TMZOUVEP.js";
|
|
14
|
+
import "../chunk-JNK444WM.js";
|
|
15
15
|
import "../chunk-BDUENQD3.js";
|
|
16
16
|
import "../chunk-V7YE4WCP.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-FSH6HT5C.js";
|
|
18
18
|
import "../chunk-6GWA276C.js";
|
|
19
19
|
import "../chunk-OOUNJNMR.js";
|
|
20
20
|
import "../chunk-H4HBKISO.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-YTVYU5IF.js";
|
|
22
|
+
import "../chunk-5OUQCD2J.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/snapshot-create.ts
|