@sentry/junior 0.169.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-YGKANST4.js → agent-hooks-UXIRPATC.js} +16 -11
- package/dist/api.js +33 -32
- package/dist/app.js +35 -35
- package/dist/catalog-runtime-PQCGQUXA.js +16 -0
- package/dist/chat/conversations/sql/store.d.ts +7 -0
- package/dist/chat/conversations/store.d.ts +14 -0
- package/dist/chat/sandbox/snapshot/store.d.ts +28 -0
- package/dist/chat/slack/channel.d.ts +0 -13
- package/dist/chat/slack/ids.d.ts +7 -1
- package/dist/chat/slack/tool-support/channel-target.d.ts +6 -5
- package/dist/chat/workspaces/store.d.ts +1 -10
- package/dist/chat/workspaces/types.d.ts +14 -1
- package/dist/{chunk-Q62IHFIH.js → chunk-2AYWP7PZ.js} +6 -270
- package/dist/{chunk-VRMPMOAT.js → chunk-3AX2WCFV.js} +2 -2
- package/dist/{chunk-OU2DMDUI.js → chunk-4TKPTFSO.js} +1 -1
- package/dist/{chunk-MKEHLCSM.js → chunk-5GF7HQOP.js} +70 -11
- package/dist/{chunk-S6JDUILF.js → chunk-5ML752HJ.js} +8 -8
- package/dist/{chunk-2VK3CYSL.js → chunk-5TZ2DKVU.js} +1 -1
- package/dist/{chunk-EEKFF74Y.js → chunk-62WK6FLT.js} +183 -69
- package/dist/{chunk-FSH6HT5C.js → chunk-6RRTVWAD.js} +1 -1
- package/dist/{chunk-7MA4HV4W.js → chunk-6ZWRNC4D.js} +1 -1
- package/dist/{chunk-ELOZI777.js → chunk-AOAOBZJQ.js} +18 -18
- package/dist/{chunk-BDUENQD3.js → chunk-CGA4ERJ5.js} +1 -1
- package/dist/chunk-CVHKLS7B.js +399 -0
- package/dist/{chunk-HWXQZCKV.js → chunk-CWTWZKWH.js} +7 -7
- package/dist/{chunk-23IKSW3E.js → chunk-FI5A2RF6.js} +1 -1
- package/dist/{chunk-FIMO3IDW.js → chunk-HKWEMKK4.js} +32 -4
- package/dist/{chunk-65QX23BY.js → chunk-HWXXFINO.js} +13 -13
- package/dist/{chunk-7RIHHVFN.js → chunk-IZSMYLCS.js} +11 -11
- package/dist/{chunk-URM4KBIU.js → chunk-JNYIJHFF.js} +1 -1
- package/dist/{chunk-JNK444WM.js → chunk-KUYIW4BD.js} +2 -2
- package/dist/{chunk-WYNLAO2K.js → chunk-M5QJJMFK.js} +4 -4
- package/dist/{chunk-V7YE4WCP.js → chunk-M63DETLL.js} +7 -4
- package/dist/{chunk-BOZCSRAR.js → chunk-MFFU45QO.js} +1 -1
- package/dist/{chunk-73XNLM4O.js → chunk-O2SUZKWU.js} +5 -5
- package/dist/{chunk-WF3WTELH.js → chunk-POF7HORW.js} +6 -6
- package/dist/{chunk-5Z7QQYHV.js → chunk-QHBHUCDS.js} +7 -7
- package/dist/{chunk-TMZOUVEP.js → chunk-SIOO3CCL.js} +1 -1
- package/dist/{chunk-MPLBAWGP.js → chunk-UC35XHGT.js} +2 -2
- package/dist/{chunk-VVQYG2GD.js → chunk-UTG3IY2C.js} +63 -100
- package/dist/{chunk-JJUZK6P2.js → chunk-VGWC4KG2.js} +5 -9
- package/dist/{chunk-YTVYU5IF.js → chunk-WCWPRFHZ.js} +1 -1
- package/dist/{chunk-ECBD46QI.js → chunk-WIUGVE66.js} +6 -6
- package/dist/{chunk-EPXPE5Y5.js → chunk-XHBYNJNZ.js} +2 -2
- package/dist/{chunk-ZXCVYSTS.js → chunk-Y5RRKS67.js} +5 -5
- package/dist/{chunk-5OUQCD2J.js → chunk-Y6DW6AVG.js} +1 -1
- package/dist/{chunk-N7V2WPZV.js → chunk-YURMXTZF.js} +1 -1
- package/dist/cli/chat.js +34 -34
- package/dist/cli/check.js +8 -8
- package/dist/cli/plugins.js +15 -15
- package/dist/cli/snapshot-create.js +14 -13
- package/dist/cli/upgrade.js +9 -9
- 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-CA3AJ2BU.js → db-EHCO5WGL.js} +8 -8
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-JVWWSDT5.js → oauth-callback-server-O7CH6FOJ.js} +25 -25
- package/dist/{runner-CMDQJDCH.js → runner-3D5AGGUD.js} +19 -15
- package/dist/{sandbox-egress-signals-U3ZX7C5W.js → sandbox-egress-signals-DXOOBSBI.js} +3 -3
- package/dist/{skills-GYJ4MBNQ.js → skills-6IW3DDW2.js} +8 -8
- package/dist/spawn-5LKOLABU.js +37 -0
- package/dist/{validation-55EBPZHH.js → validation-RCLP4EU4.js} +8 -8
- package/dist/version.js +1 -1
- package/dist/{work-N7CBTARL.js → work-L54N7O65.js} +21 -21
- 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/catalog-runtime-BFDMFZV4.js +0 -16
- package/dist/chunk-BVREIWBD.js +0 -131
- package/dist/spawn-KSP4DKK6.js +0 -37
- package/dist/worker-CGMUVQ2Q.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-github": "0.
|
|
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",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
pluginCatalogRuntime
|
|
3
|
-
} from "./chunk-TMZOUVEP.js";
|
|
4
|
-
import "./chunk-JNK444WM.js";
|
|
5
|
-
import "./chunk-BDUENQD3.js";
|
|
6
|
-
import "./chunk-V7YE4WCP.js";
|
|
7
|
-
import "./chunk-FSH6HT5C.js";
|
|
8
|
-
import "./chunk-6GWA276C.js";
|
|
9
|
-
import "./chunk-OOUNJNMR.js";
|
|
10
|
-
import "./chunk-H4HBKISO.js";
|
|
11
|
-
import "./chunk-YTVYU5IF.js";
|
|
12
|
-
import "./chunk-5OUQCD2J.js";
|
|
13
|
-
import "./chunk-MLKGABMK.js";
|
|
14
|
-
export {
|
|
15
|
-
pluginCatalogRuntime
|
|
16
|
-
};
|
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-KSP4DKK6.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bindSpawnAgent
|
|
3
|
-
} from "./chunk-2VK3CYSL.js";
|
|
4
|
-
import "./chunk-WF3WTELH.js";
|
|
5
|
-
import "./chunk-ZXCVYSTS.js";
|
|
6
|
-
import "./chunk-73XNLM4O.js";
|
|
7
|
-
import "./chunk-JAL3CH4G.js";
|
|
8
|
-
import "./chunk-5Z7QQYHV.js";
|
|
9
|
-
import "./chunk-DIB4GX3G.js";
|
|
10
|
-
import "./chunk-RF6J3DIO.js";
|
|
11
|
-
import "./chunk-HWXQZCKV.js";
|
|
12
|
-
import "./chunk-7MA4HV4W.js";
|
|
13
|
-
import "./chunk-ECBD46QI.js";
|
|
14
|
-
import "./chunk-3Y47VMHV.js";
|
|
15
|
-
import "./chunk-PDO5BLNM.js";
|
|
16
|
-
import "./chunk-EEKFF74Y.js";
|
|
17
|
-
import "./chunk-FIMO3IDW.js";
|
|
18
|
-
import "./chunk-MKEHLCSM.js";
|
|
19
|
-
import "./chunk-BVREIWBD.js";
|
|
20
|
-
import "./chunk-N7V2WPZV.js";
|
|
21
|
-
import "./chunk-MPLBAWGP.js";
|
|
22
|
-
import "./chunk-VFUK3X5B.js";
|
|
23
|
-
import "./chunk-23IKSW3E.js";
|
|
24
|
-
import "./chunk-TMZOUVEP.js";
|
|
25
|
-
import "./chunk-JNK444WM.js";
|
|
26
|
-
import "./chunk-BDUENQD3.js";
|
|
27
|
-
import "./chunk-V7YE4WCP.js";
|
|
28
|
-
import "./chunk-FSH6HT5C.js";
|
|
29
|
-
import "./chunk-6GWA276C.js";
|
|
30
|
-
import "./chunk-OOUNJNMR.js";
|
|
31
|
-
import "./chunk-H4HBKISO.js";
|
|
32
|
-
import "./chunk-YTVYU5IF.js";
|
|
33
|
-
import "./chunk-5OUQCD2J.js";
|
|
34
|
-
import "./chunk-MLKGABMK.js";
|
|
35
|
-
export {
|
|
36
|
-
bindSpawnAgent
|
|
37
|
-
};
|
package/dist/worker-CGMUVQ2Q.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
3
|
-
processConversationWork
|
|
4
|
-
} from "./chunk-WYNLAO2K.js";
|
|
5
|
-
import "./chunk-OU2DMDUI.js";
|
|
6
|
-
import "./chunk-ZXCVYSTS.js";
|
|
7
|
-
import "./chunk-JAL3CH4G.js";
|
|
8
|
-
import "./chunk-3Y47VMHV.js";
|
|
9
|
-
import "./chunk-FIMO3IDW.js";
|
|
10
|
-
import "./chunk-MKEHLCSM.js";
|
|
11
|
-
import "./chunk-N7V2WPZV.js";
|
|
12
|
-
import "./chunk-MPLBAWGP.js";
|
|
13
|
-
import "./chunk-VFUK3X5B.js";
|
|
14
|
-
import "./chunk-23IKSW3E.js";
|
|
15
|
-
import "./chunk-V7YE4WCP.js";
|
|
16
|
-
import "./chunk-FSH6HT5C.js";
|
|
17
|
-
import "./chunk-6GWA276C.js";
|
|
18
|
-
import "./chunk-YTVYU5IF.js";
|
|
19
|
-
import "./chunk-5OUQCD2J.js";
|
|
20
|
-
import "./chunk-MLKGABMK.js";
|
|
21
|
-
export {
|
|
22
|
-
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
23
|
-
processConversationWork
|
|
24
|
-
};
|