@sentry/junior 0.128.0 → 0.129.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-F75ANGBV.js → agent-hooks-ZM4WMZCN.js} +9 -9
- package/dist/api/schema/task.d.ts +152 -0
- package/dist/api/schema.d.ts +2 -0
- package/dist/api/schema.js +13 -3
- package/dist/api/tasks/routes.d.ts +4 -0
- package/dist/api.js +425 -23
- package/dist/app.d.ts +2 -1
- package/dist/app.js +315 -27
- package/dist/{catalog-runtime-ZPSA5QM2.js → catalog-runtime-TN2GPVEI.js} +5 -5
- package/dist/chat/agent-dispatch/context.d.ts +18 -0
- package/dist/chat/event-tasks/store.d.ts +7 -1
- package/dist/chat/event-tasks/tool-support.d.ts +1 -0
- package/dist/chat/resource-events/runtime-catalog.d.ts +3 -0
- package/dist/chat/sandbox/resources.d.ts +12 -1
- package/dist/chat/scheduled-tasks/cadence.d.ts +27 -0
- package/dist/chat/scheduled-tasks/heartbeat.d.ts +6 -0
- package/dist/chat/scheduled-tasks/identity.d.ts +6 -0
- package/dist/chat/scheduled-tasks/personal.d.ts +26 -0
- package/dist/chat/scheduled-tasks/schedule-intent.d.ts +61 -0
- package/dist/chat/scheduled-tasks/store.d.ts +77 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +203 -0
- package/dist/chat/scheduled-tasks/tools/create.d.ts +80 -0
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +56 -0
- package/dist/chat/scheduled-tasks/tools/list.d.ts +54 -0
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +56 -0
- package/dist/chat/scheduled-tasks/tools/update.d.ts +82 -0
- package/dist/chat/scheduled-tasks/tools.d.ts +6 -0
- package/dist/chat/scheduled-tasks/types.d.ts +81 -0
- package/dist/chat/tasks/read.d.ts +9 -0
- package/dist/chat/tools/scheduled-tasks.d.ts +4 -0
- package/dist/{chunk-K5ZB3WWH.js → chunk-2BCQKJTX.js} +2 -2
- package/dist/{chunk-G6XQODHM.js → chunk-3N4MWF3R.js} +1 -1
- package/dist/{chunk-NHWE6Y7G.js → chunk-6CMYU62S.js} +7 -7
- package/dist/{chunk-YY6CVET7.js → chunk-6QQOLIJJ.js} +1308 -804
- package/dist/{chunk-WZ365SQC.js → chunk-A6QQPVSH.js} +1 -1
- package/dist/chunk-BDIEEZK7.js +1470 -0
- package/dist/{chunk-AFJF3RGU.js → chunk-BVKP37NE.js} +61 -13
- package/dist/{chunk-5KKIBIIP.js → chunk-CZJUBH6O.js} +12 -12
- package/dist/{chunk-OLGB5Y7R.js → chunk-CZQ2DSQZ.js} +1 -1
- package/dist/{chunk-3PKF6YNU.js → chunk-E4UCPRYL.js} +1 -1
- package/dist/{chunk-KNRODVH2.js → chunk-ESYXDXNX.js} +6 -6
- package/dist/{chunk-Z4KTQMWW.js → chunk-GPWHBHAG.js} +1 -1
- package/dist/{chunk-JDCPDJ54.js → chunk-GURSWCI4.js} +2 -2
- package/dist/{chunk-RYWMDDWK.js → chunk-K3U5447S.js} +1 -1
- package/dist/{chunk-SHMHHXD5.js → chunk-KB2M27DL.js} +58 -0
- package/dist/{chunk-PBWUUVVG.js → chunk-LV2BQ26V.js} +1 -1
- package/dist/{chunk-KTGJAWRO.js → chunk-NNRV4T2C.js} +1 -2
- package/dist/{chunk-B6E3YA2H.js → chunk-P6I7LFKC.js} +1 -1
- package/dist/{chunk-B7FPRGUJ.js → chunk-PQFNTLZI.js} +3 -3
- package/dist/{chunk-A76LKS5W.js → chunk-QAOA4GUG.js} +5 -5
- package/dist/{chunk-BY43CEXN.js → chunk-R62DRNKB.js} +2 -2
- package/dist/{chunk-HBFQLSGV.js → chunk-U23X4ASF.js} +4 -4
- package/dist/{chunk-2HTHX6XV.js → chunk-XENYUOZG.js} +38 -17
- package/dist/cli/chat.js +24 -24
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +9 -17
- package/dist/db/schema/scheduled-tasks.d.ts +257 -0
- package/dist/db/schema.d.ts +258 -1
- package/dist/{db-FYJYPAKG.js → db-ZI6TBXIS.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-W3PPIHCS.js → oauth-callback-server-TLA4GARF.js} +17 -17
- package/dist/{runner-5NOFUYKR.js → runner-23YFRWQJ.js} +11 -11
- package/dist/{skills-ENIBKF5V.js → skills-QIUG4D6M.js} +6 -6
- package/dist/{validation-BHLBOO6K.js → validation-3KGEBATS.js} +6 -6
- package/dist/version.js +1 -1
- package/migrations/0016_neat_the_anarchist.sql +171 -0
- package/migrations/meta/0016_snapshot.json +1617 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -6
- package/dist/chunk-FJEIX3AH.js +0 -37
|
@@ -113,6 +113,13 @@
|
|
|
113
113
|
"when": 1785638251349,
|
|
114
114
|
"tag": "0015_magical_ezekiel_stane",
|
|
115
115
|
"breakpoints": true
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"idx": 16,
|
|
119
|
+
"version": "7",
|
|
120
|
+
"when": 1785808723471,
|
|
121
|
+
"tag": "0016_neat_the_anarchist",
|
|
122
|
+
"breakpoints": true
|
|
116
123
|
}
|
|
117
124
|
]
|
|
118
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.129.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.129.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@emnapi/core": "^1.10.0",
|
|
@@ -96,10 +96,9 @@
|
|
|
96
96
|
"typescript": "^6.0.3",
|
|
97
97
|
"vercel": "^54.4.0",
|
|
98
98
|
"vitest": "^4.1.7",
|
|
99
|
-
"@sentry/junior-
|
|
100
|
-
"@sentry/junior-
|
|
101
|
-
"@sentry/junior-
|
|
102
|
-
"@sentry/junior-scheduler": "0.128.0"
|
|
99
|
+
"@sentry/junior-memory": "0.129.0",
|
|
100
|
+
"@sentry/junior-github": "0.129.0",
|
|
101
|
+
"@sentry/junior-testing": "0.0.0"
|
|
103
102
|
},
|
|
104
103
|
"scripts": {
|
|
105
104
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
package/dist/chunk-FJEIX3AH.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getDb
|
|
3
|
-
} from "./chunk-B7FPRGUJ.js";
|
|
4
|
-
import {
|
|
5
|
-
juniorStats
|
|
6
|
-
} from "./chunk-SHMHHXD5.js";
|
|
7
|
-
|
|
8
|
-
// src/stats.ts
|
|
9
|
-
import { and, asc, gte, lte, sql } from "drizzle-orm";
|
|
10
|
-
function utcDate(nowMs) {
|
|
11
|
-
return new Date(nowMs).toISOString().slice(0, 10);
|
|
12
|
-
}
|
|
13
|
-
async function incrementStat(key, options = {}) {
|
|
14
|
-
const date = utcDate(options.nowMs ?? Date.now());
|
|
15
|
-
await getDb().insert(juniorStats).values({ ...key, date, count: 1 }).onConflictDoUpdate({
|
|
16
|
-
target: [
|
|
17
|
-
juniorStats.date,
|
|
18
|
-
juniorStats.namespace,
|
|
19
|
-
juniorStats.metric,
|
|
20
|
-
juniorStats.name
|
|
21
|
-
],
|
|
22
|
-
set: { count: sql`${juniorStats.count} + 1` }
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
async function readStats(start, end) {
|
|
26
|
-
return await getDb().select().from(juniorStats).where(and(gte(juniorStats.date, start), lte(juniorStats.date, end))).orderBy(
|
|
27
|
-
asc(juniorStats.date),
|
|
28
|
-
asc(juniorStats.namespace),
|
|
29
|
-
asc(juniorStats.metric),
|
|
30
|
-
asc(juniorStats.name)
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
incrementStat,
|
|
36
|
-
readStats
|
|
37
|
-
};
|