@sentry/junior 0.133.0 → 0.135.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-5BUIXVIX.js → agent-hooks-EMXDAD2K.js} +9 -9
- package/dist/api/schema/task.d.ts +36 -0
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +1 -1
- package/dist/api.js +39 -20
- package/dist/app.js +46 -24
- package/dist/{catalog-runtime-VGB3DWXZ.js → catalog-runtime-NVPT6HA5.js} +5 -5
- package/dist/chat/agent/prompt.d.ts +7 -5
- package/dist/chat/agent/repository-context.d.ts +20 -0
- package/dist/chat/agent/sandbox.d.ts +8 -0
- package/dist/chat/agent/tools.d.ts +3 -0
- package/dist/chat/plugins/agent-hooks.d.ts +2 -2
- package/dist/chat/repository-instructions.d.ts +44 -0
- package/dist/chat/sandbox/noninteractive-command.d.ts +2 -0
- package/dist/chat/sandbox/sandbox.d.ts +3 -0
- package/dist/chat/sandbox/session.d.ts +1 -0
- package/dist/chat/services/context-compaction.d.ts +1 -0
- package/dist/chat/slack/tools/user-lookup.d.ts +2 -6
- package/dist/chat/tasks/execution-stats.d.ts +28 -0
- package/dist/chat/tools/index.d.ts +2 -0
- package/dist/chat/tools/sandbox/bash.d.ts +1 -0
- package/dist/chat/tools/system-time.d.ts +11 -1
- package/dist/{chunk-XTQGVNM3.js → chunk-45DPXMI3.js} +6 -12
- package/dist/{chunk-TU7P77FI.js → chunk-5EX36ZCD.js} +12 -12
- package/dist/{chunk-VL7OYSHD.js → chunk-5LD6EBH2.js} +1 -1
- package/dist/{chunk-HJ4KDO4N.js → chunk-6UNZ5DHG.js} +1 -1
- package/dist/{chunk-IVTHTAVK.js → chunk-AGAHACF7.js} +2 -2
- package/dist/{chunk-HX236W2U.js → chunk-CDQ4YIZM.js} +9 -0
- package/dist/{chunk-5ZAZHLIW.js → chunk-EBRB6ZBF.js} +1 -1
- package/dist/{chunk-VQA25AL4.js → chunk-EJT7EPP3.js} +6 -6
- package/dist/{chunk-FX6BLEDP.js → chunk-HDGTBCQR.js} +1 -1
- package/dist/{chunk-AH5HTUYX.js → chunk-IRTIVX42.js} +1 -1
- package/dist/{chunk-ECUILEUX.js → chunk-NGX2V4WY.js} +430 -29
- package/dist/{chunk-TBVS7GBE.js → chunk-OSCF2BDE.js} +9 -8
- package/dist/{chunk-HTGXUNEC.js → chunk-P2D7IW57.js} +7 -7
- package/dist/{chunk-EJRJWBKG.js → chunk-QQCEMMVN.js} +1 -1
- package/dist/{chunk-LDRO4OQ4.js → chunk-RMI6OX52.js} +2 -2
- package/dist/{chunk-QVEXYYFM.js → chunk-TRZSM67C.js} +11 -1
- package/dist/{chunk-TLN54TOQ.js → chunk-TYEDZVRM.js} +32 -32
- package/dist/{chunk-QWGZ273D.js → chunk-U37P4IIP.js} +81 -27
- package/dist/{chunk-JLN4XSPR.js → chunk-UXYZPEWP.js} +1 -1
- package/dist/{chunk-LNYNTR27.js → chunk-VZEKCQLD.js} +3 -3
- package/dist/{chunk-T5FPIBU2.js → chunk-Y6627MTY.js} +788 -674
- package/dist/{chunk-IKO5LFIU.js → chunk-YPKPXLMS.js} +1 -1
- package/dist/chunk-Z67KVHMJ.js +233 -0
- package/dist/{chunk-WHEMUEXT.js → chunk-ZBQIA5NI.js} +8 -6
- package/dist/cli/chat.js +25 -25
- package/dist/cli/check.js +6 -6
- package/dist/cli/init.js +0 -1
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/task-executions.d.ts +110 -0
- package/dist/db/schema.d.ts +111 -1
- package/dist/{db-RICMPUFT.js → db-UA6OFL25.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-YFVS4SAX.js → oauth-callback-server-IJDYBSTX.js} +18 -18
- package/dist/{runner-A3LVGZR6.js → runner-K6GID4HN.js} +12 -12
- package/dist/{skills-P7Q6Z6PN.js → skills-KJVS753I.js} +6 -6
- package/dist/{validation-RYHOWBET.js → validation-7VDJGK7K.js} +6 -6
- package/dist/version.js +1 -1
- package/migrations/0019_lowly_valkyrie.sql +14 -0
- package/migrations/0020_restrict_task_execution_kinds.sql +2 -0
- package/migrations/meta/0019_snapshot.json +1904 -0
- package/migrations/meta/0020_snapshot.json +1848 -0
- package/migrations/meta/_journal.json +15 -1
- package/package.json +4 -4
- package/dist/chunk-V365UVCU.js +0 -115
|
@@ -134,6 +134,20 @@
|
|
|
134
134
|
"when": 1785884173643,
|
|
135
135
|
"tag": "0018_curvy_excalibur",
|
|
136
136
|
"breakpoints": true
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"idx": 19,
|
|
140
|
+
"version": "7",
|
|
141
|
+
"when": 1785951633228,
|
|
142
|
+
"tag": "0019_lowly_valkyrie",
|
|
143
|
+
"breakpoints": true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"idx": 20,
|
|
147
|
+
"version": "7",
|
|
148
|
+
"when": 1785960181727,
|
|
149
|
+
"tag": "0020_restrict_task_execution_kinds",
|
|
150
|
+
"breakpoints": true
|
|
137
151
|
}
|
|
138
152
|
]
|
|
139
|
-
}
|
|
153
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.135.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"pg": "^8.16.3",
|
|
80
80
|
"yaml": "^2.9.0",
|
|
81
81
|
"zod": "^4.4.3",
|
|
82
|
-
"@sentry/junior-plugin-api": "0.
|
|
82
|
+
"@sentry/junior-plugin-api": "0.135.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@emnapi/core": "^1.10.0",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"typescript": "^6.0.3",
|
|
97
97
|
"vercel": "^54.4.0",
|
|
98
98
|
"vitest": "^4.1.7",
|
|
99
|
-
"@sentry/junior-github": "0.
|
|
100
|
-
"@sentry/junior-memory": "0.
|
|
99
|
+
"@sentry/junior-github": "0.135.0",
|
|
100
|
+
"@sentry/junior-memory": "0.135.0",
|
|
101
101
|
"@sentry/junior-testing": "0.0.0"
|
|
102
102
|
},
|
|
103
103
|
"scripts": {
|
package/dist/chunk-V365UVCU.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
healthReportSchema
|
|
3
|
-
} from "./chunk-UTL3MHPC.js";
|
|
4
|
-
import {
|
|
5
|
-
parseSlackThreadId
|
|
6
|
-
} from "./chunk-AH5HTUYX.js";
|
|
7
|
-
import {
|
|
8
|
-
normalizeSlackConversationId
|
|
9
|
-
} from "./chunk-WHEMUEXT.js";
|
|
10
|
-
|
|
11
|
-
// src/handlers/health.ts
|
|
12
|
-
function readHealthReport() {
|
|
13
|
-
return healthReportSchema.parse({
|
|
14
|
-
status: "ok",
|
|
15
|
-
service: "junior",
|
|
16
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function GET() {
|
|
20
|
-
return Response.json(readHealthReport());
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// src/chat/slack/conversation-context.ts
|
|
24
|
-
function normalizeConversationName(type, channelName) {
|
|
25
|
-
const trimmed = channelName?.trim();
|
|
26
|
-
if (!trimmed) return void 0;
|
|
27
|
-
if (type === "public_channel" || type === "private_channel" || type === "private_channel_or_group_dm") {
|
|
28
|
-
return trimmed.startsWith("#") ? trimmed : `#${trimmed}`;
|
|
29
|
-
}
|
|
30
|
-
return trimmed;
|
|
31
|
-
}
|
|
32
|
-
function typeFromSlackChannelType(channelType) {
|
|
33
|
-
if (channelType === "channel") return "public_channel";
|
|
34
|
-
if (channelType === "group") return "private_channel";
|
|
35
|
-
if (channelType === "mpim") return "group_dm";
|
|
36
|
-
if (channelType === "im") return "direct_message";
|
|
37
|
-
return void 0;
|
|
38
|
-
}
|
|
39
|
-
function typeFromChannelId(channelId, channelName) {
|
|
40
|
-
const normalized = normalizeSlackConversationId(channelId);
|
|
41
|
-
if (!normalized) return void 0;
|
|
42
|
-
if (normalized.startsWith("C")) return "public_channel";
|
|
43
|
-
if (normalized.startsWith("D")) return "direct_message";
|
|
44
|
-
if (normalized.startsWith("G")) {
|
|
45
|
-
return channelName?.trim().startsWith("mpdm-") ? "group_dm" : "private_channel_or_group_dm";
|
|
46
|
-
}
|
|
47
|
-
return void 0;
|
|
48
|
-
}
|
|
49
|
-
function toSlackEventChannelType(channelType) {
|
|
50
|
-
if (channelType === "channel" || channelType === "group" || channelType === "mpim" || channelType === "im") {
|
|
51
|
-
return channelType;
|
|
52
|
-
}
|
|
53
|
-
return void 0;
|
|
54
|
-
}
|
|
55
|
-
function conversationVisibilityFromSlackChannelType(channelType) {
|
|
56
|
-
if (!channelType) return void 0;
|
|
57
|
-
return channelType === "channel" ? "public" : "private";
|
|
58
|
-
}
|
|
59
|
-
function resolveSlackChannelTypeFromMessage(message) {
|
|
60
|
-
const raw = message.raw;
|
|
61
|
-
if (!raw || typeof raw !== "object") {
|
|
62
|
-
return void 0;
|
|
63
|
-
}
|
|
64
|
-
const channelType = raw.channel_type;
|
|
65
|
-
return typeof channelType === "string" ? toSlackEventChannelType(channelType.trim()) : void 0;
|
|
66
|
-
}
|
|
67
|
-
function resolveSlackConversationContext(input) {
|
|
68
|
-
const type = typeFromSlackChannelType(input.channelType) ?? typeFromChannelId(input.channelId, input.channelName);
|
|
69
|
-
if (!type) return void 0;
|
|
70
|
-
const name = normalizeConversationName(type, input.channelName);
|
|
71
|
-
const visibility = conversationVisibilityFromSlackChannelType(
|
|
72
|
-
input.channelType
|
|
73
|
-
);
|
|
74
|
-
return {
|
|
75
|
-
type,
|
|
76
|
-
...name ? { name } : {},
|
|
77
|
-
...visibility ? { visibility } : {}
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function resolveSlackConversationContextFromThreadId(input) {
|
|
81
|
-
const slackThread = parseSlackThreadId(input.threadId);
|
|
82
|
-
const context = resolveSlackConversationContext({
|
|
83
|
-
channelId: slackThread?.channelId,
|
|
84
|
-
channelName: input.channelName
|
|
85
|
-
});
|
|
86
|
-
if (!context || !input.visibility) {
|
|
87
|
-
return context;
|
|
88
|
-
}
|
|
89
|
-
return {
|
|
90
|
-
...context,
|
|
91
|
-
type: input.visibility === "private" && context.type === "public_channel" ? "private_channel" : context.type,
|
|
92
|
-
visibility: input.visibility
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function formatSlackConversationTypeLabel(type) {
|
|
96
|
-
if (type === "public_channel") return "Public Channel";
|
|
97
|
-
if (type === "private_channel") return "Private Channel";
|
|
98
|
-
if (type === "group_dm") return "Group DM";
|
|
99
|
-
if (type === "direct_message") return "Direct Message";
|
|
100
|
-
return "Private Channel or Group DM";
|
|
101
|
-
}
|
|
102
|
-
function formatSlackConversationRedactedLabel(context) {
|
|
103
|
-
if (!context) return void 0;
|
|
104
|
-
return formatSlackConversationTypeLabel(context.type);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export {
|
|
108
|
-
readHealthReport,
|
|
109
|
-
GET,
|
|
110
|
-
conversationVisibilityFromSlackChannelType,
|
|
111
|
-
resolveSlackChannelTypeFromMessage,
|
|
112
|
-
resolveSlackConversationContext,
|
|
113
|
-
resolveSlackConversationContextFromThreadId,
|
|
114
|
-
formatSlackConversationRedactedLabel
|
|
115
|
-
};
|