@sentry/junior 0.202.0 → 0.204.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-CMyTD4DD.js +17509 -0
- package/dist/agent-hooks-Bbcp9e33.js +4040 -0
- package/dist/agent-runner-DNb1A49M.js +678 -0
- package/dist/api/schema.d.ts +2728 -2639
- package/dist/api/schema.js +4 -169
- package/dist/api.d.ts +23 -17
- package/dist/api.js +3881 -5326
- package/dist/app-B1TOqBI8.d.ts +246 -0
- package/dist/app.d.ts +4 -520
- package/dist/app.js +9522 -11875
- package/dist/auth-pause-state-DosEalIG.js +168 -0
- package/dist/catalog-runtime-BReos-D4.js +7 -0
- package/dist/checkpoint-CNrPyRJN.js +2450 -0
- package/dist/cli/chat.d.ts +20 -0
- package/dist/cli/chat.js +229 -336
- package/dist/cli/check.d.ts +8 -0
- package/dist/cli/check.js +513 -806
- package/dist/cli/env.d.ts +13 -0
- package/dist/cli/env.js +63 -12
- package/dist/cli/init.d.ts +3 -0
- package/dist/cli/init.js +90 -159
- package/dist/cli/main.d.ts +6 -0
- package/dist/cli/main.js +43 -64
- package/dist/cli/plugins.d.ts +13 -0
- package/dist/cli/plugins.js +148 -227
- package/dist/cli/run.d.ts +16 -0
- package/dist/cli/run.js +52 -8
- package/dist/cli/snapshot-create.d.ts +4 -0
- package/dist/cli/snapshot-create.js +71 -125
- package/dist/cli/upgrade.d.ts +15 -0
- package/dist/cli/upgrade.js +232 -335
- package/dist/config-nGCW1OTG.js +941 -0
- package/dist/context-B45_WqVX.js +298 -0
- package/dist/conversation-privacy-B4voFRSm.js +182 -0
- package/dist/conversation-work-C6y3T5Hx.js +51 -0
- package/dist/credential-sync-kXr1hvO1.js +2660 -0
- package/dist/db-BeyXKJOI.d.ts +5 -0
- package/dist/destinations-BeBiJeEM.js +29 -0
- package/dist/execution-stats-DWfSihcH.js +373 -0
- package/dist/executor-DcMSlI5c.js +721 -0
- package/dist/experimental-CIXf7Uye.js +46 -0
- package/dist/history-ClE4toxe.d.ts +32 -0
- package/dist/history-CqTuSAdI.js +441 -0
- package/dist/instrumentation.d.ts +3 -3
- package/dist/instrumentation.js +130 -176
- package/dist/job-queue-Drn_LXlM.js +63 -0
- package/dist/logging-BzAk1S_s.js +1210 -0
- package/dist/model-profile-CZmVoGdX.js +49 -0
- package/dist/nitro.d.ts +31 -36
- package/dist/nitro.js +275 -456
- package/dist/oauth-callback-server-JiftokvA.js +130 -0
- package/dist/oauth-relay-CdCnu80W.js +62 -0
- package/dist/package-discovery-7a9YqLhE.js +455 -0
- package/dist/pending-auth-CWmSdZVg.js +185 -0
- package/dist/plugin-module-BKGOXca2.js +81 -0
- package/dist/plugins-BI9A1vKA.d.ts +95 -0
- package/dist/plugins-egKWjgue.js +99 -0
- package/dist/private-trace-result-BLvBjy_e.js +16 -0
- package/dist/profile-CrT5nXbw.js +861 -0
- package/dist/registry-DH1xUo2N.js +1419 -0
- package/dist/reporting-schema-DosTN__Q.js +105 -0
- package/dist/resolve-CZHnfxaS.js +546 -0
- package/dist/rolldown-runtime-B4FMCO8f.js +28 -0
- package/dist/runner-CZV2sC46.js +392 -0
- package/dist/sandbox-egress-signals-bHZfmhbd.js +46 -0
- package/dist/schema-Rn8-XEaN.js +1140 -0
- package/dist/sentry-CD3SdJl-.js +26 -0
- package/dist/skills-CIcDQSgM.js +316 -0
- package/dist/spawn-DdkUFRmq.js +29 -0
- package/dist/stats-DTUbAb88.js +2634 -0
- package/dist/store-C5qxF2ac.d.ts +208 -0
- package/dist/task-queue-CJIR4RF7.js +136 -0
- package/dist/task-runner-D-O3A-Cp.js +639 -0
- package/dist/thread-state-CRc9jTJS.js +431 -0
- package/dist/turn-execution-BkinIdJF.js +47 -0
- package/dist/turn-lifecycle-DQV19VTW.js +54 -0
- package/dist/usage-D3EbSO7w.js +296 -0
- package/dist/usage-schema-CKaDkH_j.js +20 -0
- package/dist/validation-C2CR-OX3.js +40 -0
- package/dist/vercel-queue-DIkVcfK4.js +167 -0
- package/dist/vercel.d.ts +6 -6
- package/dist/vercel.js +14 -6
- package/dist/version-CnXZ614E.d.ts +5 -0
- package/dist/version-DxcWdoKa.js +8 -0
- package/dist/version.d.ts +2 -4
- package/dist/version.js +2 -6
- package/dist/web-authorization-RMBxAR_t.js +76 -0
- package/dist/web-input-3EPfpf55.js +494 -0
- package/dist/work-fGofI7Op.js +509 -0
- package/dist/worker-CsOLq-mR.js +625 -0
- package/package.json +9 -9
- package/dist/agent-hooks-UXITLYOK.js +0 -51
- package/dist/catalog-runtime-BG3JLLK2.js +0 -14
- package/dist/chunk-2LYHWMR4.js +0 -46
- package/dist/chunk-2MK3QBGA.js +0 -321
- package/dist/chunk-3PGQSKJV.js +0 -692
- package/dist/chunk-3UI3WFTX.js +0 -519
- package/dist/chunk-3Y47VMHV.js +0 -6
- package/dist/chunk-4UO6FK4G.js +0 -64
- package/dist/chunk-5NOPO64K.js +0 -198
- package/dist/chunk-5PKWYPFT.js +0 -2943
- package/dist/chunk-63NKKFJL.js +0 -1228
- package/dist/chunk-6AYH6252.js +0 -787
- package/dist/chunk-6Y5B5PEX.js +0 -80
- package/dist/chunk-7DHZP5KJ.js +0 -333
- package/dist/chunk-7H2VZTWN.js +0 -103
- package/dist/chunk-7NL7T6VU.js +0 -406
- package/dist/chunk-A76OIMYN.js +0 -102
- package/dist/chunk-AWMS3SPP.js +0 -58
- package/dist/chunk-B3LY5RCL.js +0 -229
- package/dist/chunk-BD2KT3OB.js +0 -36
- package/dist/chunk-BXCX5QKA.js +0 -2086
- package/dist/chunk-C6VVF43U.js +0 -81
- package/dist/chunk-CEMMLV5L.js +0 -98
- package/dist/chunk-CM5HNV2W.js +0 -131
- package/dist/chunk-DA2KGZZI.js +0 -13
- package/dist/chunk-DBVY6HLX.js +0 -64
- package/dist/chunk-DIB4GX3G.js +0 -8
- package/dist/chunk-DKIJ2RP5.js +0 -68
- package/dist/chunk-DL2KLKVH.js +0 -931
- package/dist/chunk-DWPN6SCH.js +0 -172
- package/dist/chunk-ELWOYVOY.js +0 -206
- package/dist/chunk-EWT7H65X.js +0 -506
- package/dist/chunk-FA6POGLH.js +0 -70
- package/dist/chunk-HMREVIO2.js +0 -135
- package/dist/chunk-IIWUT4FO.js +0 -820
- package/dist/chunk-JAL3CH4G.js +0 -27
- package/dist/chunk-JSJQEWBJ.js +0 -3295
- package/dist/chunk-KHKKHDLD.js +0 -387
- package/dist/chunk-LA6R4A7Q.js +0 -706
- package/dist/chunk-LOOU2DUR.js +0 -20428
- package/dist/chunk-M6FHWXE3.js +0 -700
- package/dist/chunk-M76HMB7M.js +0 -1856
- package/dist/chunk-MAGNK5J4.js +0 -1520
- package/dist/chunk-MTM5IFCY.js +0 -1190
- package/dist/chunk-N7TMSOZH.js +0 -235
- package/dist/chunk-NHJU2ZAL.js +0 -56
- package/dist/chunk-NSXKRGRT.js +0 -717
- package/dist/chunk-OWMPFXJA.js +0 -1764
- package/dist/chunk-PDO5BLNM.js +0 -22
- package/dist/chunk-PEQXYSSE.js +0 -45
- package/dist/chunk-PW4P4JYF.js +0 -1135
- package/dist/chunk-QB54UQUS.js +0 -320
- package/dist/chunk-QP3OGJXF.js +0 -105
- package/dist/chunk-RC745GGZ.js +0 -122
- package/dist/chunk-REOIRYPR.js +0 -37
- package/dist/chunk-SCOZRLZ4.js +0 -164
- package/dist/chunk-TXJSXBV5.js +0 -1433
- package/dist/chunk-TXKUKMVO.js +0 -417
- package/dist/chunk-U2GPUYAL.js +0 -3656
- package/dist/chunk-UIE3R5XU.js +0 -17
- package/dist/chunk-UXPG6ZIN.js +0 -84
- package/dist/chunk-VFUK3X5B.js +0 -50
- package/dist/chunk-WQSHDTTI.js +0 -1163
- package/dist/chunk-X6GDDWQH.js +0 -60
- package/dist/chunk-Y2CM7HXH.js +0 -111
- package/dist/chunk-Y7X25LFY.js +0 -15
- package/dist/chunk-YDUR3ZYW.js +0 -10
- package/dist/conversation-work-VIOQ5ZF3.js +0 -54
- package/dist/db-3L2MCVRI.js +0 -26
- package/dist/discovery-DWVDM7UK.js +0 -44
- package/dist/experimental-P5FZM4CU.js +0 -12
- package/dist/oauth-callback-server-YVV6C6T2.js +0 -243
- package/dist/oauth-relay-5XPVRPYB.js +0 -8
- package/dist/plugins-YTYJMMJF.js +0 -14
- package/dist/runner-LQ7RETDP.js +0 -522
- package/dist/sandbox-egress-signals-FIL7EGPR.js +0 -73
- package/dist/sentry-MB3NL3IR.js +0 -42
- package/dist/skills-XRWYEDCD.js +0 -27
- package/dist/spawn-RC6SJUAI.js +0 -42
- package/dist/task-runner-7DY7ARYH.js +0 -36
- package/dist/validation-7MNQGCJA.js +0 -17
- package/dist/work-COALHUCG.js +0 -51
- package/dist/worker-6MURZIPD.js +0 -24
|
@@ -1,133 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "../
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
disconnectStateAdapter
|
|
9
|
-
} from "../chunk-2MK3QBGA.js";
|
|
10
|
-
import "../chunk-63NKKFJL.js";
|
|
11
|
-
import "../chunk-NHJU2ZAL.js";
|
|
12
|
-
import "../chunk-5NOPO64K.js";
|
|
13
|
-
import {
|
|
14
|
-
pluginCatalogRuntime
|
|
15
|
-
} from "../chunk-YDUR3ZYW.js";
|
|
16
|
-
import "../chunk-BXCX5QKA.js";
|
|
17
|
-
import "../chunk-CEMMLV5L.js";
|
|
18
|
-
import "../chunk-N7TMSOZH.js";
|
|
19
|
-
import "../chunk-DWPN6SCH.js";
|
|
20
|
-
import "../chunk-TXKUKMVO.js";
|
|
21
|
-
import "../chunk-MAGNK5J4.js";
|
|
22
|
-
import "../chunk-PEQXYSSE.js";
|
|
23
|
-
import "../chunk-HMREVIO2.js";
|
|
24
|
-
|
|
25
|
-
// src/cli/snapshot-create.ts
|
|
26
|
-
var DEFAULT_RUNTIME = "node22";
|
|
27
|
-
var DEFAULT_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
1
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BReos-D4.js";
|
|
2
|
+
import { S as disconnectStateAdapter, t as create } from "../profile-CrT5nXbw.js";
|
|
3
|
+
import { r as resolve } from "../resolve-CZHnfxaS.js";
|
|
4
|
+
//#region src/cli/snapshot-create.ts
|
|
5
|
+
const DEFAULT_RUNTIME = "node22";
|
|
6
|
+
const DEFAULT_TIMEOUT_MS = 6e5;
|
|
28
7
|
function progressMessage(phase) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
if (phase === "waiting_for_lock") {
|
|
36
|
-
return "Waiting for sandbox snapshot build lock...";
|
|
37
|
-
}
|
|
38
|
-
if (phase === "building_snapshot") {
|
|
39
|
-
return "Building sandbox snapshot...";
|
|
40
|
-
}
|
|
41
|
-
return "Sandbox snapshot build complete.";
|
|
8
|
+
if (phase === "resolve_start") return "Resolving sandbox snapshot profile...";
|
|
9
|
+
if (phase === "cache_hit") return "Using cached sandbox snapshot.";
|
|
10
|
+
if (phase === "waiting_for_lock") return "Waiting for sandbox snapshot build lock...";
|
|
11
|
+
if (phase === "building_snapshot") return "Building sandbox snapshot...";
|
|
12
|
+
return "Sandbox snapshot build complete.";
|
|
42
13
|
}
|
|
43
14
|
function formatList(values) {
|
|
44
|
-
|
|
15
|
+
return values.length > 0 ? values.join(", ") : "none";
|
|
45
16
|
}
|
|
46
17
|
function logSnapshotProfile(runtime, log) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
);
|
|
74
|
-
if (snapshotPluginNames.length === 0 && systemDependencies.length === 0 && npmDependencies.length === 0 && postinstallCommands.length === 0) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
log(
|
|
78
|
-
`Snapshot plugins (${snapshotPluginNames.length}): ${formatList(snapshotPluginNames)}`
|
|
79
|
-
);
|
|
80
|
-
if (systemDependencies.length > 0) {
|
|
81
|
-
log(
|
|
82
|
-
`System dependencies (${systemDependencies.length}): ${systemDependencies.join(", ")}`
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
if (npmDependencies.length > 0) {
|
|
86
|
-
log(
|
|
87
|
-
`NPM dependencies (${npmDependencies.length}): ${npmDependencies.join(", ")}`
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
if (postinstallCommands.length > 0) {
|
|
91
|
-
log(
|
|
92
|
-
`Runtime postinstall (${postinstallCommands.length}): ${postinstallCommands.join(", ")}`
|
|
93
|
-
);
|
|
94
|
-
}
|
|
18
|
+
const providers = pluginCatalogRuntime.getProviders();
|
|
19
|
+
const currentProfile = create(runtime);
|
|
20
|
+
const pluginNames = providers.map((plugin) => plugin.manifest.name).sort();
|
|
21
|
+
const snapshotPluginNames = providers.filter((plugin) => (plugin.manifest.runtimeDependencies?.length ?? 0) > 0 || (plugin.manifest.runtimePostinstall?.length ?? 0) > 0).map((plugin) => plugin.manifest.name).sort();
|
|
22
|
+
const systemDependencies = [];
|
|
23
|
+
const npmDependencies = [];
|
|
24
|
+
for (const dep of currentProfile?.dependencies ?? []) {
|
|
25
|
+
if (dep.type === "npm") {
|
|
26
|
+
npmDependencies.push(`${dep.package}@${dep.version}`);
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
systemDependencies.push("package" in dep ? dep.package : dep.url);
|
|
30
|
+
}
|
|
31
|
+
const postinstallCommands = (currentProfile?.postinstall ?? []).map(({ cmd, args }) => [cmd, ...args ?? []].filter((part) => part.trim().length > 0).join(" "));
|
|
32
|
+
log(`Loaded plugins (${pluginNames.length}): ${formatList(pluginNames)}`);
|
|
33
|
+
log("Sandbox snapshot inputs: " + [
|
|
34
|
+
`plugins=${snapshotPluginNames.length}`,
|
|
35
|
+
`system_dependencies=${systemDependencies.length}`,
|
|
36
|
+
`npm_dependencies=${npmDependencies.length}`,
|
|
37
|
+
`postinstall_commands=${postinstallCommands.length}`
|
|
38
|
+
].join(" "));
|
|
39
|
+
if (snapshotPluginNames.length === 0 && systemDependencies.length === 0 && npmDependencies.length === 0 && postinstallCommands.length === 0) return;
|
|
40
|
+
log(`Snapshot plugins (${snapshotPluginNames.length}): ${formatList(snapshotPluginNames)}`);
|
|
41
|
+
if (systemDependencies.length > 0) log(`System dependencies (${systemDependencies.length}): ${systemDependencies.join(", ")}`);
|
|
42
|
+
if (npmDependencies.length > 0) log(`NPM dependencies (${npmDependencies.length}): ${npmDependencies.join(", ")}`);
|
|
43
|
+
if (postinstallCommands.length > 0) log(`Runtime postinstall (${postinstallCommands.length}): ${postinstallCommands.join(", ")}`);
|
|
95
44
|
}
|
|
45
|
+
/** Resolve or create the default sandbox snapshot and report its progress. */
|
|
96
46
|
async function runSnapshotCreate(log = console.log) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
} finally {
|
|
128
|
-
await disconnectStateAdapter();
|
|
129
|
-
}
|
|
47
|
+
if (process.env.JUNIOR_SKIP_SNAPSHOT === "1") {
|
|
48
|
+
log("Skipping sandbox snapshot create (JUNIOR_SKIP_SNAPSHOT=1)");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const runtime = DEFAULT_RUNTIME;
|
|
52
|
+
const timeoutMs = DEFAULT_TIMEOUT_MS;
|
|
53
|
+
try {
|
|
54
|
+
logSnapshotProfile(runtime, log);
|
|
55
|
+
const emitted = /* @__PURE__ */ new Set();
|
|
56
|
+
const snapshot = await resolve({
|
|
57
|
+
runtime,
|
|
58
|
+
timeoutMs,
|
|
59
|
+
onProgress: async (phase) => {
|
|
60
|
+
if (emitted.has(phase)) return;
|
|
61
|
+
emitted.add(phase);
|
|
62
|
+
log(progressMessage(phase));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
log(`Sandbox snapshot create complete: ${[
|
|
66
|
+
`runtime=${runtime}`,
|
|
67
|
+
`resolve_outcome=${snapshot.resolveOutcome}`,
|
|
68
|
+
`cache_hit=${snapshot.cacheHit}`,
|
|
69
|
+
`dependency_count=${snapshot.dependencyCount}`,
|
|
70
|
+
...snapshot.profileHash ? [`profile_hash=${snapshot.profileHash}`] : [],
|
|
71
|
+
...snapshot.snapshotId ? [`snapshot_id=${snapshot.snapshotId}`] : [],
|
|
72
|
+
...snapshot.rebuildReason ? [`rebuild_reason=${snapshot.rebuildReason}`] : []
|
|
73
|
+
].join(" ")}`);
|
|
74
|
+
} finally {
|
|
75
|
+
await disconnectStateAdapter();
|
|
76
|
+
}
|
|
130
77
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
};
|
|
78
|
+
//#endregion
|
|
79
|
+
export { runSnapshotCreate };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../db-BeyXKJOI.js";
|
|
2
|
+
import { n as JuniorPluginSet } from "../plugins-BI9A1vKA.js";
|
|
3
|
+
//#region src/cli/upgrade/types.d.ts
|
|
4
|
+
interface UpgradeIo {
|
|
5
|
+
info: (line: string) => void;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/cli/upgrade.d.ts
|
|
9
|
+
/** Resolve the plugin set available to upgrade migrations in source and built CLI runs. */
|
|
10
|
+
export declare function resolveUpgradePluginSet(): Promise<JuniorPluginSet | undefined>;
|
|
11
|
+
/** Apply Junior and enabled-plugin database migrations. */
|
|
12
|
+
export declare function runUpgrade(io?: UpgradeIo, options?: {
|
|
13
|
+
pluginSet?: JuniorPluginSet | null;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
//#endregion
|