@sentry/junior 0.128.1 → 0.130.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-IWQNFJMS.js → agent-hooks-LJHLLMFC.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.js +309 -27
- package/dist/{catalog-runtime-KLSYFS4A.js → catalog-runtime-45AHWLJL.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/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-AAMF2IRC.js → chunk-224V72RX.js} +1308 -804
- package/dist/{chunk-54KP2EAH.js → chunk-2V7BQAJ6.js} +12 -12
- package/dist/{chunk-J3YIO3LE.js → chunk-4AF3XOZI.js} +3 -3
- package/dist/{chunk-S2O64VXP.js → chunk-4X2MZ4FP.js} +6 -6
- package/dist/{chunk-5IR7SGRO.js → chunk-5I4SWLD7.js} +2 -2
- package/dist/{chunk-OIQCRZ67.js → chunk-5XDJRSU5.js} +4 -4
- package/dist/{chunk-MZ6ZOWMJ.js → chunk-7OO3LMEP.js} +1 -1
- package/dist/{chunk-Q5TMMCBV.js → chunk-A64VQ4N4.js} +1 -1
- package/dist/{chunk-R2LXTX4J.js → chunk-ATCTPG7J.js} +1 -1
- package/dist/{chunk-AFJF3RGU.js → chunk-BVKP37NE.js} +61 -13
- package/dist/{chunk-EHEACYJ6.js → chunk-DMS2RTEK.js} +1 -1
- package/dist/{chunk-H4HMCSOZ.js → chunk-EKZSU2RK.js} +5 -5
- package/dist/chunk-GXO3EXBM.js +1470 -0
- package/dist/{chunk-ETGUGGO2.js → chunk-H6GDE77O.js} +7 -7
- package/dist/{chunk-P7UUNWC4.js → chunk-HJHTRJKR.js} +4 -4
- package/dist/{chunk-TONH5NXR.js → chunk-J6B27DOC.js} +1 -1
- package/dist/{chunk-SHMHHXD5.js → chunk-KB2M27DL.js} +58 -0
- package/dist/{chunk-EOIA25WC.js → chunk-LYEXN7FN.js} +2 -2
- package/dist/{chunk-O3C5BJFD.js → chunk-PVHL3274.js} +1 -1
- package/dist/{chunk-O3YROBH4.js → chunk-RTJCNKQD.js} +1 -1
- package/dist/{chunk-LIJ4APSS.js → chunk-UDYVHDLH.js} +1 -1
- package/dist/{chunk-PLAMHS3D.js → chunk-XRROAXID.js} +2 -2
- package/dist/{chunk-MKM5552O.js → chunk-Z72XGIFF.js} +1 -2
- 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-VOU5QNLY.js → db-XE6DXA5Z.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-GS7FBYBC.js → oauth-callback-server-O42UXC7E.js} +17 -17
- package/dist/{runner-GSJSBI3J.js → runner-BSP3374N.js} +11 -11
- package/dist/{skills-DSHG54LM.js → skills-BNLHOZ75.js} +6 -6
- package/dist/{validation-25XWT6TA.js → validation-O7BF3JX6.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 +4 -5
- package/dist/chunk-REHOYCYS.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.130.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.130.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-github": "0.
|
|
100
|
-
"@sentry/junior-scheduler": "0.128.1",
|
|
99
|
+
"@sentry/junior-github": "0.130.0",
|
|
101
100
|
"@sentry/junior-testing": "0.0.0",
|
|
102
|
-
"@sentry/junior-memory": "0.
|
|
101
|
+
"@sentry/junior-memory": "0.130.0"
|
|
103
102
|
},
|
|
104
103
|
"scripts": {
|
|
105
104
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
package/dist/chunk-REHOYCYS.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getDb
|
|
3
|
-
} from "./chunk-J3YIO3LE.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
|
-
};
|