@sentry/junior 0.110.0 → 0.111.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-ELT4ODFF.js → agent-hooks-QQ2IWKOP.js} +8 -8
- package/dist/api.js +11 -11
- package/dist/app.js +521 -394
- package/dist/build/virtual-config.d.ts +2 -0
- package/dist/{catalog-runtime-4GI22PXK.js → catalog-runtime-D22W6QEJ.js} +5 -5
- package/dist/chat/agent/request.d.ts +3 -6
- package/dist/chat/agent/sandbox.d.ts +36 -11
- package/dist/chat/agent/tools.d.ts +5 -8
- package/dist/chat/config.d.ts +8 -1
- package/dist/chat/pi/sdk.d.ts +1 -1
- package/dist/chat/plugins/agent-hooks.d.ts +2 -2
- package/dist/chat/runtime/agent-continue-runner.d.ts +7 -3
- package/dist/chat/runtime/slack-runtime.d.ts +1 -2
- package/dist/chat/runtime/thread-state.d.ts +3 -7
- package/dist/chat/runtime/turn-preparation.d.ts +2 -2
- package/dist/chat/sandbox/command-result.d.ts +91 -0
- package/dist/chat/sandbox/errors.d.ts +3 -1
- package/dist/chat/sandbox/ref.d.ts +5 -0
- package/dist/chat/sandbox/sandbox.d.ts +19 -46
- package/dist/chat/sandbox/session.d.ts +16 -20
- package/dist/chat/sandbox/skill-sync.d.ts +2 -2
- package/dist/chat/sandbox/workspace.d.ts +14 -12
- package/dist/chat/services/turn-result.d.ts +3 -4
- package/dist/chat/task-execution/slack-work.d.ts +3 -1
- package/dist/chat/task-execution/state.d.ts +75 -22
- package/dist/chat/task-execution/store.d.ts +34 -3
- package/dist/chat/task-execution/worker.d.ts +0 -1
- package/dist/chat/tool-support/normalize-result.d.ts +2 -2
- package/dist/chat/tool-support/pi-tool-adapter.d.ts +2 -2
- package/dist/chat/tool-support/structured-result.d.ts +1 -2
- package/dist/chat/tools/sandbox/file-uploads.d.ts +1 -1
- package/dist/chat/{runtime → tools/sandbox}/generated-artifacts.d.ts +3 -3
- package/dist/chat/tools/types.d.ts +1 -1
- package/dist/chat/tools/web/fetch-content.d.ts +5 -0
- package/dist/chat/tools/web/image-generate.d.ts +2 -1
- package/dist/chat/tools/web/search.d.ts +1 -1
- package/dist/{chunk-W6RJZG7F.js → chunk-B45FPP2A.js} +306 -31
- package/dist/{chunk-SBOBTS27.js → chunk-BTRNMS6A.js} +2 -2
- package/dist/{chunk-L5XQPJ7T.js → chunk-IFAHK54X.js} +2 -2
- package/dist/{chunk-IYKPU7H6.js → chunk-J7APPQIJ.js} +1 -1
- package/dist/{chunk-3S7YYHBI.js → chunk-L6JPKANW.js} +1 -1
- package/dist/{chunk-W75ZPAGG.js → chunk-MPVES2IC.js} +1 -1
- package/dist/{chunk-WNOVRQ67.js → chunk-NQLWOTY4.js} +46 -18
- package/dist/{chunk-RHHRKSPI.js → chunk-OOLU34J4.js} +8714 -9027
- package/dist/{chunk-GK47NBDE.js → chunk-PYKKM4MM.js} +1 -1
- package/dist/{chunk-3UBQI73J.js → chunk-PZELBSHC.js} +7 -8
- package/dist/{chunk-2T7TIEXI.js → chunk-QQIVLZW4.js} +11 -15
- package/dist/{chunk-C5XAFTHY.js → chunk-SL3ZKNLQ.js} +16 -13
- package/dist/{chunk-3TV7OEHL.js → chunk-WSRBFHPX.js} +1 -1
- package/dist/{chunk-Y3H2DN6F.js → chunk-XQAYFRWT.js} +1 -1
- package/dist/{chunk-Y5FK3CNG.js → chunk-Z2W4SJZ7.js} +1 -1
- package/dist/{chunk-ZKIOWEFL.js → chunk-Z4G3WCP3.js} +1 -1
- package/dist/{chunk-4QU44P7Q.js → chunk-ZRZ4SVWG.js} +2 -2
- package/dist/cli/chat.js +19 -19
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +11 -11
- package/dist/cli/snapshot-warmup.js +8 -8
- package/dist/cli/upgrade.js +5 -5
- package/dist/{db-Y6W6CWWW.js → db-WXQOQESG.js} +5 -5
- package/dist/instrumentation.js +2 -2
- package/dist/nitro.js +14 -8
- package/dist/{runner-BBFV5GLR.js → runner-4QY4XH4B.js} +19 -28
- package/dist/{skills-AR4AF32L.js → skills-P5MU4EBX.js} +6 -6
- package/dist/{validation-FBIEPTC2.js → validation-PQF5OP6T.js} +6 -6
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -14,20 +14,20 @@ import {
|
|
|
14
14
|
markTurnCompleted,
|
|
15
15
|
mergeArtifactsState,
|
|
16
16
|
updateConversationStats
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SL3ZKNLQ.js";
|
|
18
18
|
import {
|
|
19
19
|
createPluginEmbedder,
|
|
20
20
|
createPluginLogger,
|
|
21
21
|
createPluginModel,
|
|
22
22
|
createPluginState,
|
|
23
23
|
getPlugins
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QQIVLZW4.js";
|
|
25
25
|
import {
|
|
26
26
|
getStateAdapter
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-PYKKM4MM.js";
|
|
28
28
|
import {
|
|
29
29
|
getDb
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZRZ4SVWG.js";
|
|
31
31
|
import {
|
|
32
32
|
getPiMessageRole,
|
|
33
33
|
instructionTextForProjection,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
isToolResultMessage,
|
|
36
36
|
normalizeToolNameFromResult,
|
|
37
37
|
stripRuntimeTurnContext
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-NQLWOTY4.js";
|
|
39
39
|
import {
|
|
40
40
|
buildTurnFailureResponse
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-J7APPQIJ.js";
|
|
42
42
|
import {
|
|
43
43
|
parseSlackMessageTs
|
|
44
44
|
} from "./chunk-42WRQLJ6.js";
|
|
@@ -514,8 +514,7 @@ function buildDeliveredTurnStatePatch(args) {
|
|
|
514
514
|
return {
|
|
515
515
|
artifacts,
|
|
516
516
|
conversation,
|
|
517
|
-
|
|
518
|
-
sandboxDependencyProfileHash: args.reply.sandboxDependencyProfileHash
|
|
517
|
+
sandboxRef: args.reply.sandboxRef
|
|
519
518
|
};
|
|
520
519
|
}
|
|
521
520
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SANDBOX_WORKSPACE_ROOT,
|
|
3
3
|
getStateAdapter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PYKKM4MM.js";
|
|
5
5
|
import {
|
|
6
6
|
isConversationChannel,
|
|
7
7
|
isConversationScopedChannel,
|
|
8
8
|
isDmChannel,
|
|
9
9
|
normalizeSlackConversationId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IFAHK54X.js";
|
|
11
11
|
import {
|
|
12
12
|
getDb
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZRZ4SVWG.js";
|
|
14
14
|
import {
|
|
15
15
|
botConfig,
|
|
16
16
|
completeObject,
|
|
17
17
|
embedTexts,
|
|
18
18
|
standardModelId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NQLWOTY4.js";
|
|
20
20
|
import {
|
|
21
21
|
isActorUserId,
|
|
22
22
|
parseActorUserId
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
logException,
|
|
26
26
|
logInfo,
|
|
27
27
|
logWarn
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-J7APPQIJ.js";
|
|
29
29
|
import {
|
|
30
30
|
parseSlackChannelReferenceId,
|
|
31
31
|
parseSlackMessageTs,
|
|
@@ -1172,27 +1172,23 @@ function normalizeEnv(value) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
return env;
|
|
1174
1174
|
}
|
|
1175
|
-
function createSandboxCapability(
|
|
1175
|
+
function createSandboxCapability(workspace) {
|
|
1176
1176
|
return {
|
|
1177
1177
|
root: SANDBOX_WORKSPACE_ROOT,
|
|
1178
1178
|
juniorRoot: `${SANDBOX_WORKSPACE_ROOT}/.junior`,
|
|
1179
1179
|
async readFile(filePath) {
|
|
1180
|
-
return await
|
|
1180
|
+
return await workspace.readFileToBuffer({ path: filePath }) ?? null;
|
|
1181
1181
|
},
|
|
1182
1182
|
async run(input) {
|
|
1183
|
-
const result = await
|
|
1184
|
-
const [stdout, stderr] = await Promise.all([
|
|
1185
|
-
result.stdout(),
|
|
1186
|
-
result.stderr()
|
|
1187
|
-
]);
|
|
1183
|
+
const result = await workspace.runCommand(input);
|
|
1188
1184
|
return {
|
|
1189
1185
|
exitCode: result.exitCode,
|
|
1190
|
-
stdout,
|
|
1191
|
-
stderr
|
|
1186
|
+
stdout: result.stdout,
|
|
1187
|
+
stderr: result.stderr
|
|
1192
1188
|
};
|
|
1193
1189
|
},
|
|
1194
1190
|
async writeFile(input) {
|
|
1195
|
-
await
|
|
1191
|
+
await workspace.writeFiles([
|
|
1196
1192
|
{
|
|
1197
1193
|
path: input.path,
|
|
1198
1194
|
content: input.content,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-MU6HHZEN.js";
|
|
5
5
|
import {
|
|
6
6
|
getStateAdapter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PYKKM4MM.js";
|
|
8
8
|
import {
|
|
9
9
|
contextProvenance,
|
|
10
10
|
createSqlConversationEventStore,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
instructionProvenanceFor,
|
|
16
16
|
sanitizePostgresJson,
|
|
17
17
|
withConversationEventLock
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZRZ4SVWG.js";
|
|
19
19
|
import {
|
|
20
20
|
sleep
|
|
21
21
|
} from "./chunk-4ZNGQH7C.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
standardModelId,
|
|
29
29
|
stripRuntimeTurnContext,
|
|
30
30
|
trimTrailingAssistantMessages
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NQLWOTY4.js";
|
|
32
32
|
import {
|
|
33
33
|
toStoredSlackActor
|
|
34
34
|
} from "./chunk-C4MZ3GP5.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
logException,
|
|
38
38
|
logWarn,
|
|
39
39
|
setSpanAttributes
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-J7APPQIJ.js";
|
|
41
41
|
import {
|
|
42
42
|
isRecord,
|
|
43
43
|
parseSlackMessageTs,
|
|
@@ -2352,11 +2352,9 @@ function buildThreadStatePayload(patch) {
|
|
|
2352
2352
|
if (patch.conversation) {
|
|
2353
2353
|
Object.assign(payload, buildConversationStatePatch(patch.conversation));
|
|
2354
2354
|
}
|
|
2355
|
-
if (patch.
|
|
2356
|
-
payload.app_sandbox_id = patch.
|
|
2357
|
-
|
|
2358
|
-
if (patch.sandboxDependencyProfileHash !== void 0) {
|
|
2359
|
-
payload.app_sandbox_dependency_profile_hash = patch.sandboxDependencyProfileHash;
|
|
2355
|
+
if (patch.sandboxRef !== void 0) {
|
|
2356
|
+
payload.app_sandbox_id = patch.sandboxRef?.id ?? "";
|
|
2357
|
+
payload.app_sandbox_dependency_profile_hash = patch.sandboxRef?.profileHash ?? "";
|
|
2360
2358
|
}
|
|
2361
2359
|
return payload;
|
|
2362
2360
|
}
|
|
@@ -2374,11 +2372,16 @@ function mergeArtifactsState(artifacts, patch) {
|
|
|
2374
2372
|
};
|
|
2375
2373
|
}
|
|
2376
2374
|
function getPersistedSandboxState(state) {
|
|
2375
|
+
const id = toOptionalString(state.app_sandbox_id);
|
|
2376
|
+
if (!id) {
|
|
2377
|
+
return void 0;
|
|
2378
|
+
}
|
|
2379
|
+
const profileHash = toOptionalString(
|
|
2380
|
+
state.app_sandbox_dependency_profile_hash
|
|
2381
|
+
);
|
|
2377
2382
|
return {
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
state.app_sandbox_dependency_profile_hash
|
|
2381
|
-
)
|
|
2383
|
+
id,
|
|
2384
|
+
...profileHash ? { profileHash } : {}
|
|
2382
2385
|
};
|
|
2383
2386
|
}
|
|
2384
2387
|
async function persistThreadState(thread, patch) {
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
getChatConfig,
|
|
10
10
|
modelProfileSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NQLWOTY4.js";
|
|
12
12
|
import {
|
|
13
13
|
juniorDestinations
|
|
14
14
|
} from "./chunk-VFUK3X5B.js";
|
|
15
15
|
import {
|
|
16
16
|
normalizeIdentityEmail
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-J7APPQIJ.js";
|
|
18
18
|
import {
|
|
19
19
|
parseSlackChannelReferenceId,
|
|
20
20
|
parseSlackTeamId
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAgentRunner,
|
|
3
3
|
executeAgentRun
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OOLU34J4.js";
|
|
5
|
+
import "../chunk-SL3ZKNLQ.js";
|
|
6
|
+
import "../chunk-B45FPP2A.js";
|
|
7
7
|
import "../chunk-MU6HHZEN.js";
|
|
8
8
|
import "../chunk-PDO5BLNM.js";
|
|
9
9
|
import "../chunk-UIE3R5XU.js";
|
|
10
10
|
import {
|
|
11
11
|
loadAppPluginSet
|
|
12
12
|
} from "../chunk-Y2CM7HXH.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-QQIVLZW4.js";
|
|
14
|
+
import "../chunk-PYKKM4MM.js";
|
|
15
|
+
import "../chunk-IFAHK54X.js";
|
|
16
|
+
import "../chunk-ZRZ4SVWG.js";
|
|
17
17
|
import "../chunk-JQFJO5WH.js";
|
|
18
18
|
import "../chunk-4ZNGQH7C.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-NQLWOTY4.js";
|
|
20
20
|
import "../chunk-VFUK3X5B.js";
|
|
21
21
|
import "../chunk-6Y5L4BOM.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-BTRNMS6A.js";
|
|
23
|
+
import "../chunk-WSRBFHPX.js";
|
|
24
|
+
import "../chunk-XQAYFRWT.js";
|
|
25
25
|
import "../chunk-C4MZ3GP5.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-J7APPQIJ.js";
|
|
27
27
|
import "../chunk-42WRQLJ6.js";
|
|
28
28
|
import "../chunk-6GWA276C.js";
|
|
29
29
|
import "../chunk-B3IT5END.js";
|
|
30
30
|
import "../chunk-3V7OFJZC.js";
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-MPVES2IC.js";
|
|
32
|
+
import "../chunk-Z4G3WCP3.js";
|
|
33
33
|
import "../chunk-MLKGABMK.js";
|
|
34
34
|
|
|
35
35
|
// src/cli/chat.ts
|
|
@@ -152,10 +152,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
152
152
|
databaseModule
|
|
153
153
|
] = await Promise.all([
|
|
154
154
|
import("../plugins-PZMDS7AT.js"),
|
|
155
|
-
import("../agent-hooks-
|
|
156
|
-
import("../catalog-runtime-
|
|
157
|
-
import("../validation-
|
|
158
|
-
import("../db-
|
|
155
|
+
import("../agent-hooks-QQ2IWKOP.js"),
|
|
156
|
+
import("../catalog-runtime-D22W6QEJ.js"),
|
|
157
|
+
import("../validation-PQF5OP6T.js"),
|
|
158
|
+
import("../db-WXQOQESG.js")
|
|
159
159
|
]);
|
|
160
160
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
161
161
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -216,7 +216,7 @@ function newRunConversationId() {
|
|
|
216
216
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
217
217
|
defaultStateAdapterForLocalChat();
|
|
218
218
|
await configureLocalChatPlugins(pluginSet);
|
|
219
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
219
|
+
const { runLocalAgentTurn } = await import("../runner-4QY4XH4B.js");
|
|
220
220
|
const deps = {
|
|
221
221
|
agentRunner: createAgentRunner(executeAgentRun),
|
|
222
222
|
deliverReply: async (reply) => {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-BTRNMS6A.js";
|
|
4
|
+
import "../chunk-WSRBFHPX.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-XQAYFRWT.js";
|
|
9
9
|
import "../chunk-C4MZ3GP5.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-J7APPQIJ.js";
|
|
11
11
|
import "../chunk-42WRQLJ6.js";
|
|
12
12
|
import "../chunk-6GWA276C.js";
|
|
13
13
|
import "../chunk-B3IT5END.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-MPVES2IC.js";
|
|
20
|
+
import "../chunk-Z4G3WCP3.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-Z2W4SJZ7.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -14,29 +14,29 @@ import {
|
|
|
14
14
|
createPluginLogger,
|
|
15
15
|
setPlugins,
|
|
16
16
|
validatePlugins
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-QQIVLZW4.js";
|
|
18
|
+
import "../chunk-PYKKM4MM.js";
|
|
19
|
+
import "../chunk-IFAHK54X.js";
|
|
20
20
|
import {
|
|
21
21
|
getDb
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-ZRZ4SVWG.js";
|
|
23
23
|
import "../chunk-JQFJO5WH.js";
|
|
24
24
|
import "../chunk-4ZNGQH7C.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-NQLWOTY4.js";
|
|
26
26
|
import "../chunk-VFUK3X5B.js";
|
|
27
27
|
import "../chunk-6Y5L4BOM.js";
|
|
28
28
|
import {
|
|
29
29
|
pluginCatalogRuntime
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-WSRBFHPX.js";
|
|
31
|
+
import "../chunk-XQAYFRWT.js";
|
|
32
32
|
import "../chunk-C4MZ3GP5.js";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-J7APPQIJ.js";
|
|
34
34
|
import "../chunk-42WRQLJ6.js";
|
|
35
35
|
import "../chunk-6GWA276C.js";
|
|
36
36
|
import "../chunk-B3IT5END.js";
|
|
37
37
|
import "../chunk-3V7OFJZC.js";
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-MPVES2IC.js";
|
|
39
|
+
import "../chunk-Z4G3WCP3.js";
|
|
40
40
|
import "../chunk-MLKGABMK.js";
|
|
41
41
|
|
|
42
42
|
// src/cli/plugins.ts
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GLOBAL_RUNTIME_DEPENDENCIES,
|
|
3
3
|
resolveRuntimeDependencySnapshot
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-B45FPP2A.js";
|
|
5
5
|
import {
|
|
6
6
|
disconnectStateAdapter
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-PYKKM4MM.js";
|
|
8
8
|
import "../chunk-4ZNGQH7C.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-NQLWOTY4.js";
|
|
10
10
|
import "../chunk-6Y5L4BOM.js";
|
|
11
11
|
import {
|
|
12
12
|
pluginCatalogRuntime
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-WSRBFHPX.js";
|
|
14
|
+
import "../chunk-XQAYFRWT.js";
|
|
15
15
|
import "../chunk-C4MZ3GP5.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-J7APPQIJ.js";
|
|
17
17
|
import "../chunk-42WRQLJ6.js";
|
|
18
18
|
import "../chunk-6GWA276C.js";
|
|
19
19
|
import "../chunk-B3IT5END.js";
|
|
20
20
|
import "../chunk-3V7OFJZC.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-MPVES2IC.js";
|
|
22
|
+
import "../chunk-Z4G3WCP3.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/snapshot-warmup.ts
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
} from "../chunk-JQFJO5WH.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-NQLWOTY4.js";
|
|
15
15
|
import "../chunk-VFUK3X5B.js";
|
|
16
16
|
import "../chunk-6Y5L4BOM.js";
|
|
17
17
|
import {
|
|
18
18
|
createPluginCatalogRuntime
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-XQAYFRWT.js";
|
|
20
20
|
import "../chunk-C4MZ3GP5.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-J7APPQIJ.js";
|
|
22
22
|
import "../chunk-42WRQLJ6.js";
|
|
23
23
|
import "../chunk-6GWA276C.js";
|
|
24
24
|
import "../chunk-B3IT5END.js";
|
|
25
25
|
import "../chunk-3V7OFJZC.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-MPVES2IC.js";
|
|
27
|
+
import "../chunk-Z4G3WCP3.js";
|
|
28
28
|
import "../chunk-MLKGABMK.js";
|
|
29
29
|
|
|
30
30
|
// src/chat/conversations/sql/migrations.ts
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZRZ4SVWG.js";
|
|
9
9
|
import "./chunk-JQFJO5WH.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-NQLWOTY4.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
12
|
import "./chunk-6Y5L4BOM.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-J7APPQIJ.js";
|
|
14
14
|
import "./chunk-42WRQLJ6.js";
|
|
15
15
|
import "./chunk-6GWA276C.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-MPVES2IC.js";
|
|
17
|
+
import "./chunk-Z4G3WCP3.js";
|
|
18
18
|
import "./chunk-MLKGABMK.js";
|
|
19
19
|
export {
|
|
20
20
|
closeDb,
|
package/dist/instrumentation.js
CHANGED
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
getDeploymentServiceVersion,
|
|
17
17
|
getDeploymentTelemetryAttributes
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-MPVES2IC.js";
|
|
19
|
+
import "./chunk-Z4G3WCP3.js";
|
|
20
20
|
import "./chunk-MLKGABMK.js";
|
|
21
21
|
|
|
22
22
|
// src/chat/sentry-payload-filter.ts
|
package/dist/nitro.js
CHANGED
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE,
|
|
26
26
|
JUNIOR_RETENTION_CRON_SCHEDULE,
|
|
27
27
|
JUNIOR_RETENTION_ROUTE
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-MPVES2IC.js";
|
|
29
|
+
import "./chunk-Z4G3WCP3.js";
|
|
30
30
|
import "./chunk-MLKGABMK.js";
|
|
31
31
|
|
|
32
32
|
// src/nitro.ts
|
|
@@ -260,7 +260,8 @@ function renderVirtualConfig(options) {
|
|
|
260
260
|
] : ["export const pluginSet = undefined;"],
|
|
261
261
|
`export const plugins = ${JSON.stringify(options.plugins ?? { packages: [] })};`,
|
|
262
262
|
`export const pluginRuntimeRegistrations = ${JSON.stringify(options.pluginRuntimeRegistrations ?? [])};`,
|
|
263
|
-
`export const dashboard = ${JSON.stringify(options.dashboard)}
|
|
263
|
+
`export const dashboard = ${JSON.stringify(options.dashboard)};`,
|
|
264
|
+
`export const functionMaxDurationSeconds = ${JSON.stringify(options.functionMaxDurationSeconds)};`
|
|
264
265
|
];
|
|
265
266
|
return lines.join("\n");
|
|
266
267
|
}
|
|
@@ -271,6 +272,7 @@ function injectVirtualConfig(nitro, options = {}) {
|
|
|
271
272
|
}
|
|
272
273
|
const pluginSet = await options.loadPluginSet();
|
|
273
274
|
return renderVirtualConfig({
|
|
275
|
+
functionMaxDurationSeconds: options.functionMaxDurationSeconds,
|
|
274
276
|
pluginModule: options.pluginModule,
|
|
275
277
|
plugins: pluginCatalogConfigFromPluginSet(pluginSet),
|
|
276
278
|
pluginRuntimeRegistrations: pluginRuntimeRegistrationsFromPluginSet(
|
|
@@ -347,8 +349,7 @@ function configureVercelDeployment(nitro, options) {
|
|
|
347
349
|
});
|
|
348
350
|
}
|
|
349
351
|
nitro.options.vercel.functions ??= {};
|
|
350
|
-
nitro.options.vercel.functions.maxDuration
|
|
351
|
-
const callbackMaxDuration = nitro.options.vercel.functions.maxDuration ?? defaultMaxDuration;
|
|
352
|
+
nitro.options.vercel.functions.maxDuration = defaultMaxDuration;
|
|
352
353
|
nitro.options.vercel.functionRules ??= {};
|
|
353
354
|
const existingRule = nitro.options.vercel.functionRules[JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE] ?? {};
|
|
354
355
|
const existingTriggers = Array.isArray(existingRule.experimentalTriggers) ? existingRule.experimentalTriggers : [];
|
|
@@ -356,8 +357,8 @@ function configureVercelDeployment(nitro, options) {
|
|
|
356
357
|
(trigger) => trigger.type !== VERCEL_QUEUE_TRIGGER_TYPE
|
|
357
358
|
);
|
|
358
359
|
nitro.options.vercel.functionRules[JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE] = {
|
|
359
|
-
maxDuration: callbackMaxDuration,
|
|
360
360
|
...existingRule,
|
|
361
|
+
maxDuration: defaultMaxDuration,
|
|
361
362
|
experimentalTriggers: [
|
|
362
363
|
...otherTriggers,
|
|
363
364
|
{
|
|
@@ -374,8 +375,8 @@ function configureVercelDeployment(nitro, options) {
|
|
|
374
375
|
(trigger) => trigger.type !== VERCEL_QUEUE_TRIGGER_TYPE
|
|
375
376
|
);
|
|
376
377
|
nitro.options.vercel.functionRules[JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE] = {
|
|
377
|
-
maxDuration: callbackMaxDuration,
|
|
378
378
|
...existingPluginTaskRule,
|
|
379
|
+
maxDuration: defaultMaxDuration,
|
|
379
380
|
experimentalTriggers: [
|
|
380
381
|
...otherPluginTaskTriggers,
|
|
381
382
|
{
|
|
@@ -384,6 +385,7 @@ function configureVercelDeployment(nitro, options) {
|
|
|
384
385
|
}
|
|
385
386
|
]
|
|
386
387
|
};
|
|
388
|
+
return defaultMaxDuration;
|
|
387
389
|
}
|
|
388
390
|
function juniorNitro(options = {}) {
|
|
389
391
|
return {
|
|
@@ -392,7 +394,10 @@ function juniorNitro(options = {}) {
|
|
|
392
394
|
const cwd = path2.resolve(
|
|
393
395
|
options.cwd ?? nitro.options.rootDir ?? process.cwd()
|
|
394
396
|
);
|
|
395
|
-
configureVercelDeployment(
|
|
397
|
+
const functionMaxDurationSeconds = configureVercelDeployment(
|
|
398
|
+
nitro,
|
|
399
|
+
options
|
|
400
|
+
);
|
|
396
401
|
bundleOpenTelemetryLoaderHooks(nitro);
|
|
397
402
|
applyRolldownTreeshakeWorkaround(nitro);
|
|
398
403
|
const pluginSource = options.plugins;
|
|
@@ -411,6 +416,7 @@ function juniorNitro(options = {}) {
|
|
|
411
416
|
(plugin) => plugin.manifest.name
|
|
412
417
|
);
|
|
413
418
|
injectVirtualConfig(nitro, {
|
|
419
|
+
functionMaxDurationSeconds,
|
|
414
420
|
...pluginModule ? {
|
|
415
421
|
loadPluginSet: loadConfiguredPluginSet,
|
|
416
422
|
pluginModule: runtimeModuleForResolvedPluginModule(pluginModule)
|