@sentry/junior 0.108.0 → 0.110.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-NU5HK3PS.js → agent-hooks-ELT4ODFF.js} +12 -13
- package/dist/api/conversations/access.d.ts +9 -0
- package/dist/api/conversations/aggregate.d.ts +12 -1
- package/dist/api/conversations/archive.d.ts +3 -5
- package/dist/api/conversations/detail.d.ts +156 -7
- package/dist/api/conversations/events.d.ts +2 -2
- package/dist/api/conversations/list.d.ts +57 -6
- package/dist/api/conversations/projection.d.ts +6 -7
- package/dist/api/conversations/reporting.d.ts +10 -4
- package/dist/api/conversations/routes.d.ts +2 -1
- package/dist/api/conversations/shared.d.ts +1 -1
- package/dist/api/conversations/stats.d.ts +37 -6
- package/dist/api/conversations/stats.query.d.ts +1 -1
- package/dist/api/conversations/usage.d.ts +9 -0
- package/dist/api/http.d.ts +7 -0
- package/dist/api/locations/detail.d.ts +102 -6
- package/dist/api/locations/list.d.ts +43 -5
- package/dist/api/locations/query.d.ts +4 -2
- package/dist/api/locations/routes.d.ts +2 -1
- package/dist/api/people/list.d.ts +28 -6
- package/dist/api/people/list.query.d.ts +1 -1
- package/dist/api/people/profile.d.ts +96 -7
- package/dist/api/people/profile.query.d.ts +4 -2
- package/dist/api/people/routes.d.ts +2 -1
- package/dist/api/people/shared.d.ts +1219 -2
- package/dist/api/route.d.ts +18 -4
- package/dist/api/schema/common.d.ts +6 -0
- package/dist/api/{conversations/schema.d.ts → schema/conversation.d.ts} +88 -9
- package/dist/api/{locations/schema.d.ts → schema/location.d.ts} +5 -0
- package/dist/api/{people/schema.d.ts → schema/person.d.ts} +37 -45
- package/dist/api/schema.d.ts +8 -22
- package/dist/api/schema.js +10 -2
- package/dist/api.d.ts +5 -1
- package/dist/api.js +838 -369
- package/dist/app.d.ts +1 -0
- package/dist/app.js +1564 -486
- package/dist/catalog-runtime-4GI22PXK.js +16 -0
- package/dist/chat/agent/resume.d.ts +11 -12
- package/dist/chat/conversations/history.d.ts +3 -0
- package/dist/chat/conversations/sql/privacy.d.ts +3 -15
- package/dist/chat/conversations/sql/store.d.ts +0 -7
- package/dist/chat/log-context.d.ts +40 -0
- package/dist/chat/logging.d.ts +3 -26
- package/dist/chat/pi/messages.d.ts +2 -2
- package/dist/chat/pi/sql-model-usage.d.ts +4 -1
- package/dist/chat/runtime/slack-resume.d.ts +2 -2
- package/dist/chat/services/auth-pause.d.ts +4 -0
- package/dist/chat/services/context-compaction.d.ts +1 -0
- package/dist/chat/services/turn-session-record.d.ts +0 -2
- package/dist/chat/slack/reply.d.ts +7 -19
- package/dist/chat/state/conversation.d.ts +1 -0
- package/dist/chat/task-execution/queue-signing.d.ts +10 -8
- package/dist/chat/task-execution/queue.d.ts +9 -7
- package/dist/chat/task-execution/slack-work.d.ts +6 -6
- package/dist/{chunk-UD6THJ2I.js → chunk-2T7TIEXI.js} +197 -12
- package/dist/{chunk-CEA3A3UA.js → chunk-2ZTTXTSZ.js} +24 -1
- package/dist/{chunk-XKB7LGIW.js → chunk-3S7YYHBI.js} +3 -139
- package/dist/chunk-3TV7OEHL.js +10 -0
- package/dist/{chunk-A5CO2EHL.js → chunk-3UBQI73J.js} +11 -15
- package/dist/{chunk-7FBGKXPE.js → chunk-42WRQLJ6.js} +10 -33
- package/dist/{chunk-TE4QHJH4.js → chunk-4QU44P7Q.js} +135 -595
- package/dist/{chunk-RT5BUHR5.js → chunk-6Y5L4BOM.js} +3 -5
- package/dist/{chunk-VIXFG2VC.js → chunk-C4MZ3GP5.js} +1 -2
- package/dist/{chunk-3RGQLX2F.js → chunk-C5XAFTHY.js} +1011 -29
- package/dist/{chunk-PUAMO4PI.js → chunk-FPK7XY3F.js} +139 -99
- package/dist/{chunk-H3QYZL7K.js → chunk-GK47NBDE.js} +28 -3
- package/dist/{chunk-O24R4DCK.js → chunk-IYKPU7H6.js} +94 -56
- package/dist/chunk-JQFJO5WH.js +477 -0
- package/dist/{chunk-VH6KWKG2.js → chunk-L5XQPJ7T.js} +3 -3
- package/dist/{chunk-2XXEKR44.js → chunk-MIAKQNYX.js} +43 -31
- package/dist/{chunk-KPMPQ6AA.js → chunk-RHHRKSPI.js} +249 -223
- package/dist/{chunk-YT72TOEK.js → chunk-SBOBTS27.js} +2 -2
- package/dist/{chunk-B5I5LMSP.js → chunk-W6RJZG7F.js} +5 -7
- package/dist/chunk-W75ZPAGG.js +44 -0
- package/dist/{chunk-SS67LUOK.js → chunk-WNOVRQ67.js} +6 -7
- package/dist/{chunk-YIPD3L6L.js → chunk-Y3H2DN6F.js} +8 -10
- package/dist/{chunk-DY7TRYB5.js → chunk-Y5FK3CNG.js} +1 -1
- package/dist/chunk-ZKIOWEFL.js +125 -0
- package/dist/cli/chat.js +23 -24
- package/dist/cli/check.js +9 -7
- package/dist/cli/plugins.js +16 -17
- package/dist/cli/snapshot-warmup.js +11 -10
- package/dist/cli/upgrade.js +314 -3505
- package/dist/db/db.d.ts +1 -1
- package/dist/db/schema/conversations.d.ts +17 -0
- package/dist/db/schema.d.ts +17 -0
- package/dist/{db-AMRBAT5D.js → db-Y6W6CWWW.js} +8 -7
- package/dist/instrumentation.js +4 -3
- package/dist/nitro.js +4 -4
- package/dist/reporting-schema.d.ts +46 -0
- package/dist/{runner-TQH5GAJ4.js → runner-BBFV5GLR.js} +17 -21
- package/dist/{skills-ITNHBARB.js → skills-AR4AF32L.js} +8 -6
- package/dist/{validation-AGQ46ZGV.js → validation-FBIEPTC2.js} +8 -6
- package/dist/version.d.ts +2 -0
- package/dist/version.js +7 -0
- package/migrations/0006_drop_legacy_conversation_messages.sql +1 -0
- package/migrations/0007_thick_sugar_man.sql +23 -0
- package/migrations/README.md +12 -9
- package/migrations/meta/0006_snapshot.json +948 -0
- package/migrations/meta/0007_snapshot.json +1013 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +9 -5
- package/dist/catalog-runtime-FOFNPR3P.js +0 -14
- package/dist/chunk-AHJR2IFF.js +0 -115
- package/dist/chunk-B7PUBQQM.js +0 -53
- package/dist/chunk-G3E7SCME.js +0 -28
- package/dist/chunk-J3B3FPP2.js +0 -1061
- package/dist/chunk-OB42YVAE.js +0 -16
- package/dist/chunk-TWINAEZQ.js +0 -1283
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
SANDBOX_WORKSPACE_ROOT
|
|
3
|
-
} from "./chunk-G3E7SCME.js";
|
|
4
|
-
import {
|
|
2
|
+
SANDBOX_WORKSPACE_ROOT,
|
|
5
3
|
getStateAdapter
|
|
6
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GK47NBDE.js";
|
|
7
5
|
import {
|
|
8
6
|
sleep
|
|
9
7
|
} from "./chunk-4ZNGQH7C.js";
|
|
10
8
|
import {
|
|
11
9
|
toOptionalTrimmed
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WNOVRQ67.js";
|
|
13
11
|
import {
|
|
14
12
|
pluginCatalogRuntime
|
|
15
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3TV7OEHL.js";
|
|
16
14
|
import {
|
|
17
15
|
withSpan
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IYKPU7H6.js";
|
|
19
17
|
|
|
20
18
|
// src/chat/sandbox/runtime-dependencies.ts
|
|
21
19
|
var GLOBAL_RUNTIME_DEPENDENCIES = [
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
JUNIOR_VERSION
|
|
3
|
+
} from "./chunk-ZKIOWEFL.js";
|
|
4
|
+
|
|
5
|
+
// src/deployment.ts
|
|
6
|
+
var JUNIOR_HEARTBEAT_ROUTE = "/api/internal/heartbeat";
|
|
7
|
+
var JUNIOR_HEARTBEAT_CRON_SCHEDULE = "* * * * *";
|
|
8
|
+
var JUNIOR_RETENTION_ROUTE = "/api/internal/retention";
|
|
9
|
+
var JUNIOR_RETENTION_CRON_SCHEDULE = "0 4 * * *";
|
|
10
|
+
var JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE = "/api/internal/agent/continue";
|
|
11
|
+
var JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE = "/api/internal/plugin/tasks";
|
|
12
|
+
var LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION = "api/internal/agent/continue.ts";
|
|
13
|
+
function toOptionalTrimmed(value) {
|
|
14
|
+
const trimmed = value?.trim();
|
|
15
|
+
return trimmed ? trimmed : void 0;
|
|
16
|
+
}
|
|
17
|
+
function getDeploymentServiceVersion() {
|
|
18
|
+
return toOptionalTrimmed(process.env.SENTRY_RELEASE) ?? toOptionalTrimmed(process.env.VERCEL_GIT_COMMIT_SHA);
|
|
19
|
+
}
|
|
20
|
+
function getDeploymentTelemetryAttributes() {
|
|
21
|
+
const attributes = {};
|
|
22
|
+
const serviceVersion = getDeploymentServiceVersion();
|
|
23
|
+
const deploymentId = toOptionalTrimmed(process.env.VERCEL_DEPLOYMENT_ID);
|
|
24
|
+
attributes["app.junior.version"] = JUNIOR_VERSION;
|
|
25
|
+
if (serviceVersion) {
|
|
26
|
+
attributes["service.version"] = serviceVersion;
|
|
27
|
+
}
|
|
28
|
+
if (deploymentId) {
|
|
29
|
+
attributes["deployment.id"] = deploymentId;
|
|
30
|
+
}
|
|
31
|
+
return attributes;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
JUNIOR_HEARTBEAT_ROUTE,
|
|
36
|
+
JUNIOR_HEARTBEAT_CRON_SCHEDULE,
|
|
37
|
+
JUNIOR_RETENTION_ROUTE,
|
|
38
|
+
JUNIOR_RETENTION_CRON_SCHEDULE,
|
|
39
|
+
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
40
|
+
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE,
|
|
41
|
+
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION,
|
|
42
|
+
getDeploymentServiceVersion,
|
|
43
|
+
getDeploymentTelemetryAttributes
|
|
44
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
toCanonicalInputMessage,
|
|
5
5
|
toCanonicalOutputMessage,
|
|
6
6
|
toGenAiMessagesTraceAttributes
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6Y5L4BOM.js";
|
|
8
8
|
import {
|
|
9
9
|
extractGenAiUsageAttributes,
|
|
10
10
|
logException,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
normalizeGenAiFinishReason,
|
|
13
13
|
serializeGenAiAttribute,
|
|
14
14
|
withSpan
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IYKPU7H6.js";
|
|
16
16
|
|
|
17
17
|
// src/chat/xml.ts
|
|
18
18
|
function escapeXml(value) {
|
|
@@ -403,14 +403,14 @@ async function completeText(params) {
|
|
|
403
403
|
}
|
|
404
404
|
function logContextFromMetadata(modelId, metadata) {
|
|
405
405
|
const conversationId = typeof metadata?.conversationId === "string" ? metadata.conversationId : typeof metadata?.threadId === "string" ? metadata.threadId : void 0;
|
|
406
|
-
const
|
|
407
|
-
const
|
|
406
|
+
const messageConversationId = typeof metadata?.threadId === "string" ? metadata.threadId : void 0;
|
|
407
|
+
const destinationName = typeof metadata?.channelId === "string" ? metadata.channelId : void 0;
|
|
408
408
|
const runId = typeof metadata?.runId === "string" ? metadata.runId : void 0;
|
|
409
409
|
return {
|
|
410
410
|
modelId,
|
|
411
411
|
...conversationId ? { conversationId } : {},
|
|
412
|
-
...
|
|
413
|
-
...
|
|
412
|
+
...messageConversationId ? { messageConversationId } : {},
|
|
413
|
+
...destinationName ? { destinationName } : {},
|
|
414
414
|
...runId ? { runId } : {}
|
|
415
415
|
};
|
|
416
416
|
}
|
|
@@ -869,7 +869,6 @@ function setSlackReactionConfig(overrides) {
|
|
|
869
869
|
export {
|
|
870
870
|
toOptionalTrimmed,
|
|
871
871
|
escapeXml,
|
|
872
|
-
unescapeXml,
|
|
873
872
|
renderCurrentInstruction,
|
|
874
873
|
unwrapCurrentInstruction,
|
|
875
874
|
TURN_CONTEXT_TAG,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseActorUserId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C4MZ3GP5.js";
|
|
4
4
|
import {
|
|
5
5
|
logInfo,
|
|
6
6
|
logWarn,
|
|
7
7
|
setSpanAttributes
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IYKPU7H6.js";
|
|
9
9
|
import {
|
|
10
10
|
discoverInstalledPluginPackageContent,
|
|
11
11
|
normalizePluginPackageNames
|
|
@@ -14,10 +14,6 @@ import {
|
|
|
14
14
|
pluginRoots
|
|
15
15
|
} from "./chunk-3V7OFJZC.js";
|
|
16
16
|
|
|
17
|
-
// src/chat/plugins/registry.ts
|
|
18
|
-
import { readFileSync, readdirSync, statSync } from "fs";
|
|
19
|
-
import path from "path";
|
|
20
|
-
|
|
21
17
|
// src/chat/plugins/manifest.ts
|
|
22
18
|
import { z } from "zod";
|
|
23
19
|
import { parse as parseYaml } from "yaml";
|
|
@@ -1070,6 +1066,10 @@ function parseInlinePluginManifest(manifest, dir, config) {
|
|
|
1070
1066
|
});
|
|
1071
1067
|
}
|
|
1072
1068
|
|
|
1069
|
+
// src/chat/plugins/registry.ts
|
|
1070
|
+
import { readFileSync, readdirSync, statSync } from "fs";
|
|
1071
|
+
import path from "path";
|
|
1072
|
+
|
|
1073
1073
|
// src/chat/plugins/auth/oauth-bearer-broker.ts
|
|
1074
1074
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
1075
1075
|
|
|
@@ -2066,19 +2066,17 @@ function createPluginCatalogRuntime() {
|
|
|
2066
2066
|
};
|
|
2067
2067
|
}
|
|
2068
2068
|
|
|
2069
|
-
// src/chat/plugins/catalog-runtime.ts
|
|
2070
|
-
var pluginCatalogRuntime = createPluginCatalogRuntime();
|
|
2071
|
-
|
|
2072
2069
|
export {
|
|
2073
2070
|
parsePluginManifest,
|
|
2074
2071
|
parseInlinePluginManifest,
|
|
2075
2072
|
CredentialUnavailableError,
|
|
2076
2073
|
credentialSubjectSchema,
|
|
2077
2074
|
credentialContextSchema,
|
|
2075
|
+
credentialUserSubjectId,
|
|
2078
2076
|
hasRequiredOAuthScope,
|
|
2079
2077
|
resolvePluginCommandEnv,
|
|
2080
2078
|
resolveAuthTokenPlaceholder,
|
|
2081
2079
|
buildOAuthTokenRequest,
|
|
2082
2080
|
parseOAuthTokenResponse,
|
|
2083
|
-
|
|
2081
|
+
createPluginCatalogRuntime
|
|
2084
2082
|
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// package.json
|
|
2
|
+
var package_default = {
|
|
3
|
+
name: "@sentry/junior",
|
|
4
|
+
version: "0.110.0",
|
|
5
|
+
private: false,
|
|
6
|
+
publishConfig: {
|
|
7
|
+
access: "public"
|
|
8
|
+
},
|
|
9
|
+
type: "module",
|
|
10
|
+
types: "./dist/app.d.ts",
|
|
11
|
+
repository: {
|
|
12
|
+
type: "git",
|
|
13
|
+
url: "git+https://github.com/getsentry/junior.git",
|
|
14
|
+
directory: "packages/junior"
|
|
15
|
+
},
|
|
16
|
+
bin: {
|
|
17
|
+
junior: "bin/junior.mjs"
|
|
18
|
+
},
|
|
19
|
+
exports: {
|
|
20
|
+
".": {
|
|
21
|
+
types: "./dist/app.d.ts",
|
|
22
|
+
default: "./dist/app.js"
|
|
23
|
+
},
|
|
24
|
+
"./instrumentation": {
|
|
25
|
+
types: "./dist/instrumentation.d.ts",
|
|
26
|
+
default: "./dist/instrumentation.js"
|
|
27
|
+
},
|
|
28
|
+
"./nitro": {
|
|
29
|
+
types: "./dist/nitro.d.ts",
|
|
30
|
+
default: "./dist/nitro.js"
|
|
31
|
+
},
|
|
32
|
+
"./api": {
|
|
33
|
+
types: "./dist/api.d.ts",
|
|
34
|
+
default: "./dist/api.js"
|
|
35
|
+
},
|
|
36
|
+
"./api/schema": {
|
|
37
|
+
types: "./dist/api/schema.d.ts",
|
|
38
|
+
default: "./dist/api/schema.js"
|
|
39
|
+
},
|
|
40
|
+
"./vercel": {
|
|
41
|
+
types: "./dist/vercel.d.ts",
|
|
42
|
+
default: "./dist/vercel.js"
|
|
43
|
+
},
|
|
44
|
+
"./version": {
|
|
45
|
+
types: "./dist/version.d.ts",
|
|
46
|
+
default: "./dist/version.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
files: [
|
|
50
|
+
"dist",
|
|
51
|
+
"bin",
|
|
52
|
+
"migrations"
|
|
53
|
+
],
|
|
54
|
+
scripts: {
|
|
55
|
+
prepare: "pnpm run build",
|
|
56
|
+
prepack: "pnpm run build",
|
|
57
|
+
build: "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
58
|
+
"db:generate": "pnpm exec drizzle-kit generate --config drizzle.config.ts",
|
|
59
|
+
lint: "oxlint --config .oxlintrc.json --deny-warnings src tests scripts bin tsup.config.ts && depcruise --config .dependency-cruiser.mjs src/chat",
|
|
60
|
+
"lint:fix": "oxlint --config .oxlintrc.json --deny-warnings --fix src tests scripts bin tsup.config.ts",
|
|
61
|
+
test: "vitest run --maxWorkers=4",
|
|
62
|
+
"test:watch": "vitest",
|
|
63
|
+
typecheck: "tsc --noEmit",
|
|
64
|
+
"skills:check": "node scripts/check-skills.mjs",
|
|
65
|
+
"test:coverage": "vitest run --maxWorkers=4 --coverage --reporter=default --reporter=junit --outputFile.junit=coverage/results.junit.xml"
|
|
66
|
+
},
|
|
67
|
+
dependencies: {
|
|
68
|
+
"@ai-sdk/gateway": "^3.0.119",
|
|
69
|
+
"@chat-adapter/slack": "4.29.0",
|
|
70
|
+
"@chat-adapter/state-memory": "4.29.0",
|
|
71
|
+
"@chat-adapter/state-redis": "4.29.0",
|
|
72
|
+
"@earendil-works/pi-agent-core": "0.80.6",
|
|
73
|
+
"@earendil-works/pi-ai": "0.80.6",
|
|
74
|
+
"@logtape/logtape": "^2.1.1",
|
|
75
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
76
|
+
"@neondatabase/serverless": "^1.1.0",
|
|
77
|
+
"@sentry/junior-plugin-api": "workspace:*",
|
|
78
|
+
"@sentry/node": "catalog:",
|
|
79
|
+
"@sinclair/typebox": "^0.34.49",
|
|
80
|
+
"@slack/web-api": "^7.16.0",
|
|
81
|
+
"@vercel/functions": "^3.6.0",
|
|
82
|
+
"@vercel/queue": "^0.2.0",
|
|
83
|
+
"@vercel/sandbox": "2.8.0",
|
|
84
|
+
ai: "^6.0.190",
|
|
85
|
+
"bash-tool": "^1.3.16",
|
|
86
|
+
chat: "4.29.0",
|
|
87
|
+
commander: "^14.0.3",
|
|
88
|
+
"drizzle-orm": "catalog:",
|
|
89
|
+
hono: "^4.12.22",
|
|
90
|
+
jiti: "^2.7.0",
|
|
91
|
+
jose: "^6.2.3",
|
|
92
|
+
"just-bash": "3.0.1",
|
|
93
|
+
"node-html-markdown": "^2.0.0",
|
|
94
|
+
pg: "^8.16.3",
|
|
95
|
+
yaml: "^2.9.0",
|
|
96
|
+
zod: "catalog:"
|
|
97
|
+
},
|
|
98
|
+
devDependencies: {
|
|
99
|
+
"@emnapi/core": "^1.10.0",
|
|
100
|
+
"@emnapi/runtime": "^1.10.0",
|
|
101
|
+
"@sentry/junior-github": "workspace:*",
|
|
102
|
+
"@sentry/junior-memory": "workspace:*",
|
|
103
|
+
"@sentry/junior-scheduler": "workspace:*",
|
|
104
|
+
"@sentry/junior-testing": "workspace:*",
|
|
105
|
+
"@types/node": "^25.9.1",
|
|
106
|
+
"@types/pg": "^8.15.6",
|
|
107
|
+
"@vitest/coverage-v8": "4.1.7",
|
|
108
|
+
"dependency-cruiser": "^17.4.0",
|
|
109
|
+
"drizzle-kit": "catalog:",
|
|
110
|
+
msw: "^2.14.6",
|
|
111
|
+
nitro: "3.0.260522-beta",
|
|
112
|
+
oxlint: "^1.66.0",
|
|
113
|
+
tsup: "^8.5.1",
|
|
114
|
+
typescript: "^6.0.3",
|
|
115
|
+
vercel: "^54.4.0",
|
|
116
|
+
vitest: "^4.1.7"
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// src/version.ts
|
|
121
|
+
var JUNIOR_VERSION = typeof package_default.version === "string" && package_default.version.trim() ? package_default.version : "unknown";
|
|
122
|
+
|
|
123
|
+
export {
|
|
124
|
+
JUNIOR_VERSION
|
|
125
|
+
};
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAgentRunner,
|
|
3
3
|
executeAgentRun
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-B5I5LMSP.js";
|
|
4
|
+
} from "../chunk-RHHRKSPI.js";
|
|
5
|
+
import "../chunk-C5XAFTHY.js";
|
|
6
|
+
import "../chunk-W6RJZG7F.js";
|
|
8
7
|
import "../chunk-MU6HHZEN.js";
|
|
9
8
|
import "../chunk-PDO5BLNM.js";
|
|
10
9
|
import "../chunk-UIE3R5XU.js";
|
|
11
10
|
import {
|
|
12
11
|
loadAppPluginSet
|
|
13
12
|
} from "../chunk-Y2CM7HXH.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-TE4QHJH4.js";
|
|
13
|
+
import "../chunk-2T7TIEXI.js";
|
|
14
|
+
import "../chunk-GK47NBDE.js";
|
|
15
|
+
import "../chunk-L5XQPJ7T.js";
|
|
16
|
+
import "../chunk-4QU44P7Q.js";
|
|
17
|
+
import "../chunk-JQFJO5WH.js";
|
|
20
18
|
import "../chunk-4ZNGQH7C.js";
|
|
21
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-WNOVRQ67.js";
|
|
22
20
|
import "../chunk-VFUK3X5B.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-6Y5L4BOM.js";
|
|
22
|
+
import "../chunk-SBOBTS27.js";
|
|
23
|
+
import "../chunk-3TV7OEHL.js";
|
|
24
|
+
import "../chunk-Y3H2DN6F.js";
|
|
25
|
+
import "../chunk-C4MZ3GP5.js";
|
|
26
|
+
import "../chunk-IYKPU7H6.js";
|
|
27
|
+
import "../chunk-42WRQLJ6.js";
|
|
30
28
|
import "../chunk-6GWA276C.js";
|
|
31
29
|
import "../chunk-B3IT5END.js";
|
|
32
|
-
import "../chunk-7FBGKXPE.js";
|
|
33
30
|
import "../chunk-3V7OFJZC.js";
|
|
31
|
+
import "../chunk-W75ZPAGG.js";
|
|
32
|
+
import "../chunk-ZKIOWEFL.js";
|
|
34
33
|
import "../chunk-MLKGABMK.js";
|
|
35
34
|
|
|
36
35
|
// src/cli/chat.ts
|
|
@@ -153,10 +152,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
153
152
|
databaseModule
|
|
154
153
|
] = await Promise.all([
|
|
155
154
|
import("../plugins-PZMDS7AT.js"),
|
|
156
|
-
import("../agent-hooks-
|
|
157
|
-
import("../catalog-runtime-
|
|
158
|
-
import("../validation-
|
|
159
|
-
import("../db-
|
|
155
|
+
import("../agent-hooks-ELT4ODFF.js"),
|
|
156
|
+
import("../catalog-runtime-4GI22PXK.js"),
|
|
157
|
+
import("../validation-FBIEPTC2.js"),
|
|
158
|
+
import("../db-Y6W6CWWW.js")
|
|
160
159
|
]);
|
|
161
160
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
162
161
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -217,7 +216,7 @@ function newRunConversationId() {
|
|
|
217
216
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
218
217
|
defaultStateAdapterForLocalChat();
|
|
219
218
|
await configureLocalChatPlugins(pluginSet);
|
|
220
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
219
|
+
const { runLocalAgentTurn } = await import("../runner-BBFV5GLR.js");
|
|
221
220
|
const deps = {
|
|
222
221
|
agentRunner: createAgentRunner(executeAgentRun),
|
|
223
222
|
deliverReply: async (reply) => {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SBOBTS27.js";
|
|
4
|
+
import "../chunk-3TV7OEHL.js";
|
|
4
5
|
import {
|
|
5
6
|
parseInlinePluginManifest,
|
|
6
7
|
parsePluginManifest
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-Y3H2DN6F.js";
|
|
9
|
+
import "../chunk-C4MZ3GP5.js";
|
|
10
|
+
import "../chunk-IYKPU7H6.js";
|
|
11
|
+
import "../chunk-42WRQLJ6.js";
|
|
11
12
|
import "../chunk-6GWA276C.js";
|
|
12
13
|
import "../chunk-B3IT5END.js";
|
|
14
|
+
import "../chunk-3V7OFJZC.js";
|
|
13
15
|
import {
|
|
14
16
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
15
17
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
16
18
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-W75ZPAGG.js";
|
|
20
|
+
import "../chunk-ZKIOWEFL.js";
|
|
19
21
|
import "../chunk-MLKGABMK.js";
|
|
20
22
|
|
|
21
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-Y5FK3CNG.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -11,33 +11,32 @@ import {
|
|
|
11
11
|
loadAppPluginSet
|
|
12
12
|
} from "../chunk-Y2CM7HXH.js";
|
|
13
13
|
import {
|
|
14
|
+
createPluginLogger,
|
|
14
15
|
setPlugins,
|
|
15
16
|
validatePlugins
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
} from "../chunk-AHJR2IFF.js";
|
|
20
|
-
import "../chunk-G3E7SCME.js";
|
|
21
|
-
import "../chunk-H3QYZL7K.js";
|
|
22
|
-
import "../chunk-VH6KWKG2.js";
|
|
17
|
+
} from "../chunk-2T7TIEXI.js";
|
|
18
|
+
import "../chunk-GK47NBDE.js";
|
|
19
|
+
import "../chunk-L5XQPJ7T.js";
|
|
23
20
|
import {
|
|
24
21
|
getDb
|
|
25
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-4QU44P7Q.js";
|
|
23
|
+
import "../chunk-JQFJO5WH.js";
|
|
26
24
|
import "../chunk-4ZNGQH7C.js";
|
|
27
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-WNOVRQ67.js";
|
|
28
26
|
import "../chunk-VFUK3X5B.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-B7PUBQQM.js";
|
|
27
|
+
import "../chunk-6Y5L4BOM.js";
|
|
31
28
|
import {
|
|
32
29
|
pluginCatalogRuntime
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-3TV7OEHL.js";
|
|
31
|
+
import "../chunk-Y3H2DN6F.js";
|
|
32
|
+
import "../chunk-C4MZ3GP5.js";
|
|
33
|
+
import "../chunk-IYKPU7H6.js";
|
|
34
|
+
import "../chunk-42WRQLJ6.js";
|
|
37
35
|
import "../chunk-6GWA276C.js";
|
|
38
36
|
import "../chunk-B3IT5END.js";
|
|
39
|
-
import "../chunk-7FBGKXPE.js";
|
|
40
37
|
import "../chunk-3V7OFJZC.js";
|
|
38
|
+
import "../chunk-W75ZPAGG.js";
|
|
39
|
+
import "../chunk-ZKIOWEFL.js";
|
|
41
40
|
import "../chunk-MLKGABMK.js";
|
|
42
41
|
|
|
43
42
|
// src/cli/plugins.ts
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GLOBAL_RUNTIME_DEPENDENCIES,
|
|
3
3
|
resolveRuntimeDependencySnapshot
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-G3E7SCME.js";
|
|
4
|
+
} from "../chunk-W6RJZG7F.js";
|
|
6
5
|
import {
|
|
7
6
|
disconnectStateAdapter
|
|
8
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-GK47NBDE.js";
|
|
9
8
|
import "../chunk-4ZNGQH7C.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-WNOVRQ67.js";
|
|
10
|
+
import "../chunk-6Y5L4BOM.js";
|
|
12
11
|
import {
|
|
13
12
|
pluginCatalogRuntime
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-3TV7OEHL.js";
|
|
14
|
+
import "../chunk-Y3H2DN6F.js";
|
|
15
|
+
import "../chunk-C4MZ3GP5.js";
|
|
16
|
+
import "../chunk-IYKPU7H6.js";
|
|
17
|
+
import "../chunk-42WRQLJ6.js";
|
|
18
18
|
import "../chunk-6GWA276C.js";
|
|
19
19
|
import "../chunk-B3IT5END.js";
|
|
20
|
-
import "../chunk-7FBGKXPE.js";
|
|
21
20
|
import "../chunk-3V7OFJZC.js";
|
|
21
|
+
import "../chunk-W75ZPAGG.js";
|
|
22
|
+
import "../chunk-ZKIOWEFL.js";
|
|
22
23
|
import "../chunk-MLKGABMK.js";
|
|
23
24
|
|
|
24
25
|
// src/cli/snapshot-warmup.ts
|