@sentry/junior 0.170.0 → 0.171.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-IPUNCZPZ.js → agent-hooks-UXIRPATC.js} +15 -10
- package/dist/api.js +31 -30
- package/dist/app.js +32 -32
- package/dist/{catalog-runtime-E6XHWRPG.js → catalog-runtime-PQCGQUXA.js} +5 -5
- package/dist/chat/sandbox/snapshot/store.d.ts +28 -0
- package/dist/chat/workspaces/store.d.ts +1 -10
- package/dist/chat/workspaces/types.d.ts +14 -1
- package/dist/{chunk-B53NR3XY.js → chunk-2AYWP7PZ.js} +6 -270
- package/dist/{chunk-3SFZJVX5.js → chunk-3AX2WCFV.js} +2 -2
- package/dist/{chunk-T4SEUU7A.js → chunk-4TKPTFSO.js} +1 -1
- package/dist/{chunk-6W2UIZSA.js → chunk-5GF7HQOP.js} +70 -11
- package/dist/{chunk-KQCHIOME.js → chunk-5ML752HJ.js} +8 -8
- package/dist/{chunk-UD4BNNM2.js → chunk-5TZ2DKVU.js} +1 -1
- package/dist/{chunk-F3I6YFB4.js → chunk-62WK6FLT.js} +182 -68
- package/dist/{chunk-5EPG7PYS.js → chunk-6RRTVWAD.js} +1 -1
- package/dist/{chunk-YWX7D7BJ.js → chunk-AOAOBZJQ.js} +17 -17
- package/dist/chunk-CVHKLS7B.js +399 -0
- package/dist/{chunk-6GOKKLWF.js → chunk-CWTWZKWH.js} +6 -6
- package/dist/{chunk-NGL4XFT2.js → chunk-FI5A2RF6.js} +1 -1
- package/dist/{chunk-IX7VHMIJ.js → chunk-HKWEMKK4.js} +3 -3
- package/dist/{chunk-UHW5RAIB.js → chunk-HWXXFINO.js} +12 -12
- package/dist/{chunk-2XI6OLXA.js → chunk-IZSMYLCS.js} +9 -9
- package/dist/{chunk-47GJ7QRO.js → chunk-JNYIJHFF.js} +1 -1
- package/dist/{chunk-A22DGDXT.js → chunk-KUYIW4BD.js} +1 -1
- package/dist/{chunk-NFERKIUX.js → chunk-M5QJJMFK.js} +4 -4
- package/dist/{chunk-NESGW5HV.js → chunk-MFFU45QO.js} +1 -1
- package/dist/{chunk-TX553KXA.js → chunk-O2SUZKWU.js} +5 -5
- package/dist/{chunk-IF3OK4XO.js → chunk-POF7HORW.js} +6 -6
- package/dist/{chunk-FKOLWEMX.js → chunk-QHBHUCDS.js} +5 -5
- package/dist/{chunk-6E4WQV75.js → chunk-SIOO3CCL.js} +1 -1
- package/dist/{chunk-E7HKIHI5.js → chunk-UC35XHGT.js} +2 -2
- package/dist/{chunk-CA6JIB7S.js → chunk-UTG3IY2C.js} +21 -21
- package/dist/{chunk-IJTFG6AK.js → chunk-VGWC4KG2.js} +5 -9
- package/dist/{chunk-BW644E3V.js → chunk-WCWPRFHZ.js} +1 -1
- package/dist/{chunk-HZALSYOW.js → chunk-WIUGVE66.js} +5 -5
- package/dist/{chunk-4PSUCN4P.js → chunk-XHBYNJNZ.js} +1 -1
- package/dist/{chunk-7TVGQZOH.js → chunk-Y5RRKS67.js} +4 -4
- package/dist/{chunk-F4UM52UH.js → chunk-Y6DW6AVG.js} +1 -1
- package/dist/{chunk-74XMBKRI.js → chunk-YURMXTZF.js} +1 -1
- package/dist/cli/chat.js +30 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +12 -11
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/snapshots.d.ts +254 -0
- package/dist/db/schema/workspaces.d.ts +0 -68
- package/dist/db/schema.d.ts +251 -69
- package/dist/{db-WMSEGSFM.js → db-EHCO5WGL.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-GBS47NTO.js → oauth-callback-server-O7CH6FOJ.js} +23 -23
- package/dist/{runner-V2A2Z7K3.js → runner-3D5AGGUD.js} +17 -13
- package/dist/{skills-Z35YXLUG.js → skills-6IW3DDW2.js} +6 -6
- package/dist/spawn-5LKOLABU.js +37 -0
- package/dist/{validation-EQCK4DA5.js → validation-RCLP4EU4.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-XIANCABO.js → work-L54N7O65.js} +18 -18
- package/dist/worker-VJCSXI5L.js +24 -0
- package/migrations/0032_workspace_snapshots_table.sql +69 -0
- package/migrations/meta/0032_snapshot.json +2892 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +5 -5
- package/dist/chunk-BVREIWBD.js +0 -131
- package/dist/spawn-AKPJBUS2.js +0 -37
- package/dist/worker-YALLEN2Z.js +0 -24
|
@@ -225,6 +225,13 @@
|
|
|
225
225
|
"when": 1786762860381,
|
|
226
226
|
"tag": "0031_wild_phantom_reporter",
|
|
227
227
|
"breakpoints": true
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"idx": 32,
|
|
231
|
+
"version": "7",
|
|
232
|
+
"when": 1786954953911,
|
|
233
|
+
"tag": "0032_workspace_snapshots_table",
|
|
234
|
+
"breakpoints": true
|
|
228
235
|
}
|
|
229
236
|
]
|
|
230
|
-
}
|
|
237
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.171.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"pg": "^8.16.3",
|
|
86
86
|
"yaml": "^2.9.0",
|
|
87
87
|
"zod": "^4.4.3",
|
|
88
|
-
"@sentry/junior-plugin-api": "0.
|
|
88
|
+
"@sentry/junior-plugin-api": "0.171.0"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@hono/node-server": "1.19.14",
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
"typescript": "^6.0.3",
|
|
104
104
|
"vercel": "^54.4.0",
|
|
105
105
|
"vitest": "^4.1.7",
|
|
106
|
-
"@sentry/junior-
|
|
107
|
-
"@sentry/junior-
|
|
108
|
-
"@sentry/junior-
|
|
106
|
+
"@sentry/junior-testing": "0.0.0",
|
|
107
|
+
"@sentry/junior-github": "0.171.0",
|
|
108
|
+
"@sentry/junior-memory": "0.171.0"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
package/dist/chunk-BVREIWBD.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
// src/chat/sandbox/paths.ts
|
|
2
|
-
function normalizeWorkspaceRoot(input) {
|
|
3
|
-
const candidate = (input ?? "").trim();
|
|
4
|
-
if (!candidate) {
|
|
5
|
-
return "/vercel/sandbox";
|
|
6
|
-
}
|
|
7
|
-
const normalized = candidate.replace(/\/+$/, "");
|
|
8
|
-
return normalized.startsWith("/") ? normalized : `/${normalized}`;
|
|
9
|
-
}
|
|
10
|
-
var SANDBOX_WORKSPACE_ROOT = normalizeWorkspaceRoot(
|
|
11
|
-
process.env.VERCEL_SANDBOX_WORKSPACE_DIR
|
|
12
|
-
);
|
|
13
|
-
var SANDBOX_REPOS_ROOT = `${SANDBOX_WORKSPACE_ROOT}/repos`;
|
|
14
|
-
var SANDBOX_SKILLS_ROOT = `${SANDBOX_WORKSPACE_ROOT}/skills`;
|
|
15
|
-
var SANDBOX_DATA_ROOT = `${SANDBOX_WORKSPACE_ROOT}/data`;
|
|
16
|
-
function sandboxSkillDir(skillName) {
|
|
17
|
-
return `${SANDBOX_SKILLS_ROOT}/${skillName}`;
|
|
18
|
-
}
|
|
19
|
-
function sandboxSkillFile(skillName) {
|
|
20
|
-
return `${sandboxSkillDir(skillName)}/SKILL.md`;
|
|
21
|
-
}
|
|
22
|
-
function sandboxSkillPathResolution(skillName) {
|
|
23
|
-
const skillDir = sandboxSkillDir(skillName);
|
|
24
|
-
return `Resolve relative paths in this skill against ${skillDir}. For bash commands from this skill, cd to ${skillDir} first or use absolute paths.`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// src/chat/sandbox/noninteractive-command.ts
|
|
28
|
-
var NON_INTERACTIVE_ENV = {
|
|
29
|
-
CI: "1",
|
|
30
|
-
TERM: "dumb",
|
|
31
|
-
NO_COLOR: "1",
|
|
32
|
-
PAGER: "cat",
|
|
33
|
-
GIT_PAGER: "cat",
|
|
34
|
-
GH_PROMPT_DISABLED: "1",
|
|
35
|
-
GH_NO_UPDATE_NOTIFIER: "1",
|
|
36
|
-
GH_NO_EXTENSION_UPDATE_NOTIFIER: "1",
|
|
37
|
-
GH_SPINNER_DISABLED: "1",
|
|
38
|
-
GIT_TERMINAL_PROMPT: "0",
|
|
39
|
-
GCM_INTERACTIVE: "never",
|
|
40
|
-
DEBIAN_FRONTEND: "noninteractive",
|
|
41
|
-
// Git credential isolation: prevent git from sending its own auth so the
|
|
42
|
-
// sandbox egress proxy's header transforms are the sole credential source.
|
|
43
|
-
GIT_ASKPASS: "/bin/true",
|
|
44
|
-
GIT_CONFIG_NOSYSTEM: "1",
|
|
45
|
-
GIT_CONFIG_COUNT: "2",
|
|
46
|
-
GIT_CONFIG_KEY_0: "credential.helper",
|
|
47
|
-
GIT_CONFIG_VALUE_0: "",
|
|
48
|
-
GIT_CONFIG_KEY_1: "http.emptyAuth",
|
|
49
|
-
GIT_CONFIG_VALUE_1: "true"
|
|
50
|
-
};
|
|
51
|
-
function shellQuote(value) {
|
|
52
|
-
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
53
|
-
}
|
|
54
|
-
function buildEnvExports(options) {
|
|
55
|
-
const lines = [];
|
|
56
|
-
if (options.pathPrefix) {
|
|
57
|
-
lines.push(`export PATH="${options.pathPrefix}"`);
|
|
58
|
-
}
|
|
59
|
-
for (const [key, value] of Object.entries(NON_INTERACTIVE_ENV)) {
|
|
60
|
-
lines.push(`export ${key}=${shellQuote(value)}`);
|
|
61
|
-
}
|
|
62
|
-
for (const [key, value] of Object.entries(options.env ?? {})) {
|
|
63
|
-
lines.push(`export ${key}=${shellQuote(value)}`);
|
|
64
|
-
}
|
|
65
|
-
return lines;
|
|
66
|
-
}
|
|
67
|
-
function buildCommandScript(input) {
|
|
68
|
-
return [shellQuote(input.cmd), ...(input.args ?? []).map(shellQuote)].join(
|
|
69
|
-
" "
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
function buildNonInteractiveShellScript(script, options = {}) {
|
|
73
|
-
return [...buildEnvExports(options), "exec </dev/null", script].join(" && ");
|
|
74
|
-
}
|
|
75
|
-
function buildNonInteractiveCommand(input) {
|
|
76
|
-
return {
|
|
77
|
-
cmd: "bash",
|
|
78
|
-
args: [
|
|
79
|
-
input.login ? "-lc" : "-c",
|
|
80
|
-
buildNonInteractiveShellScript(buildCommandScript(input), {
|
|
81
|
-
env: input.env,
|
|
82
|
-
pathPrefix: input.pathPrefix
|
|
83
|
-
})
|
|
84
|
-
]
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
async function runNonInteractiveCommand(sandbox, input) {
|
|
88
|
-
const command = {
|
|
89
|
-
...buildNonInteractiveCommand(input),
|
|
90
|
-
...input.cwd ? { cwd: input.cwd } : {},
|
|
91
|
-
...input.signal ? { signal: input.signal } : {},
|
|
92
|
-
...input.sudo !== void 0 ? { sudo: input.sudo } : {}
|
|
93
|
-
};
|
|
94
|
-
return await sandbox.runCommand(command);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// src/chat/sleep.ts
|
|
98
|
-
function sleep(ms, signal) {
|
|
99
|
-
if (!signal) {
|
|
100
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
101
|
-
}
|
|
102
|
-
return new Promise((resolve, reject) => {
|
|
103
|
-
if (signal.aborted) {
|
|
104
|
-
reject(signal.reason);
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
const timeoutId = setTimeout(() => {
|
|
108
|
-
signal.removeEventListener("abort", onAbort);
|
|
109
|
-
resolve();
|
|
110
|
-
}, ms);
|
|
111
|
-
const onAbort = () => {
|
|
112
|
-
clearTimeout(timeoutId);
|
|
113
|
-
reject(signal.reason);
|
|
114
|
-
};
|
|
115
|
-
signal.addEventListener("abort", onAbort, { once: true });
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export {
|
|
120
|
-
SANDBOX_WORKSPACE_ROOT,
|
|
121
|
-
SANDBOX_REPOS_ROOT,
|
|
122
|
-
SANDBOX_SKILLS_ROOT,
|
|
123
|
-
SANDBOX_DATA_ROOT,
|
|
124
|
-
sandboxSkillDir,
|
|
125
|
-
sandboxSkillFile,
|
|
126
|
-
sandboxSkillPathResolution,
|
|
127
|
-
sleep,
|
|
128
|
-
buildCommandScript,
|
|
129
|
-
buildNonInteractiveShellScript,
|
|
130
|
-
runNonInteractiveCommand
|
|
131
|
-
};
|
package/dist/spawn-AKPJBUS2.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bindSpawnAgent
|
|
3
|
-
} from "./chunk-UD4BNNM2.js";
|
|
4
|
-
import "./chunk-IF3OK4XO.js";
|
|
5
|
-
import "./chunk-7TVGQZOH.js";
|
|
6
|
-
import "./chunk-TX553KXA.js";
|
|
7
|
-
import "./chunk-JAL3CH4G.js";
|
|
8
|
-
import "./chunk-FKOLWEMX.js";
|
|
9
|
-
import "./chunk-DIB4GX3G.js";
|
|
10
|
-
import "./chunk-RF6J3DIO.js";
|
|
11
|
-
import "./chunk-6GOKKLWF.js";
|
|
12
|
-
import "./chunk-6ZWRNC4D.js";
|
|
13
|
-
import "./chunk-HZALSYOW.js";
|
|
14
|
-
import "./chunk-3Y47VMHV.js";
|
|
15
|
-
import "./chunk-PDO5BLNM.js";
|
|
16
|
-
import "./chunk-F3I6YFB4.js";
|
|
17
|
-
import "./chunk-IX7VHMIJ.js";
|
|
18
|
-
import "./chunk-6W2UIZSA.js";
|
|
19
|
-
import "./chunk-BVREIWBD.js";
|
|
20
|
-
import "./chunk-74XMBKRI.js";
|
|
21
|
-
import "./chunk-E7HKIHI5.js";
|
|
22
|
-
import "./chunk-VFUK3X5B.js";
|
|
23
|
-
import "./chunk-NGL4XFT2.js";
|
|
24
|
-
import "./chunk-6E4WQV75.js";
|
|
25
|
-
import "./chunk-A22DGDXT.js";
|
|
26
|
-
import "./chunk-CGA4ERJ5.js";
|
|
27
|
-
import "./chunk-M63DETLL.js";
|
|
28
|
-
import "./chunk-5EPG7PYS.js";
|
|
29
|
-
import "./chunk-6GWA276C.js";
|
|
30
|
-
import "./chunk-OOUNJNMR.js";
|
|
31
|
-
import "./chunk-H4HBKISO.js";
|
|
32
|
-
import "./chunk-BW644E3V.js";
|
|
33
|
-
import "./chunk-F4UM52UH.js";
|
|
34
|
-
import "./chunk-MLKGABMK.js";
|
|
35
|
-
export {
|
|
36
|
-
bindSpawnAgent
|
|
37
|
-
};
|
package/dist/worker-YALLEN2Z.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
3
|
-
processConversationWork
|
|
4
|
-
} from "./chunk-NFERKIUX.js";
|
|
5
|
-
import "./chunk-T4SEUU7A.js";
|
|
6
|
-
import "./chunk-7TVGQZOH.js";
|
|
7
|
-
import "./chunk-JAL3CH4G.js";
|
|
8
|
-
import "./chunk-3Y47VMHV.js";
|
|
9
|
-
import "./chunk-IX7VHMIJ.js";
|
|
10
|
-
import "./chunk-6W2UIZSA.js";
|
|
11
|
-
import "./chunk-74XMBKRI.js";
|
|
12
|
-
import "./chunk-E7HKIHI5.js";
|
|
13
|
-
import "./chunk-VFUK3X5B.js";
|
|
14
|
-
import "./chunk-NGL4XFT2.js";
|
|
15
|
-
import "./chunk-M63DETLL.js";
|
|
16
|
-
import "./chunk-5EPG7PYS.js";
|
|
17
|
-
import "./chunk-6GWA276C.js";
|
|
18
|
-
import "./chunk-BW644E3V.js";
|
|
19
|
-
import "./chunk-F4UM52UH.js";
|
|
20
|
-
import "./chunk-MLKGABMK.js";
|
|
21
|
-
export {
|
|
22
|
-
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
23
|
-
processConversationWork
|
|
24
|
-
};
|