@sentry/junior 0.177.0 → 0.179.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-IYHCN7CO.js → agent-hooks-32IDCLMW.js} +12 -12
- package/dist/api/conversations/archive.d.ts +5 -2
- package/dist/api/conversations/list.d.ts +0 -1
- package/dist/api/conversations/membership.d.ts +14 -0
- package/dist/api/conversations/projection.d.ts +2 -1
- package/dist/api/locations/detail.d.ts +1 -1
- package/dist/api/people/shared.d.ts +2 -2
- package/dist/api/schema/conversation.d.ts +4 -4
- package/dist/api/schema/location.d.ts +1 -1
- package/dist/api/schema/person.d.ts +1 -1
- package/dist/api/schema.js +1 -1
- package/dist/api.js +399 -287
- package/dist/app.js +573 -198
- package/dist/{catalog-runtime-2TD4CXSB.js → catalog-runtime-FBVA6WAQ.js} +5 -5
- package/dist/chat/agent/sandbox.d.ts +2 -0
- package/dist/chat/conversations/sql/participants.d.ts +1 -0
- package/dist/chat/conversations/store.d.ts +0 -1
- package/dist/chat/sandbox/errors.d.ts +4 -0
- package/dist/chat/sandbox/noninteractive-command.d.ts +1 -0
- package/dist/chat/sandbox/prepare-workspace.d.ts +27 -3
- package/dist/chat/sandbox/sandbox.d.ts +2 -0
- package/dist/chat/sandbox/session.d.ts +2 -0
- package/dist/chat/sandbox/snapshot/builder-sandbox.d.ts +5 -0
- package/dist/chat/sandbox/snapshot/install.d.ts +2 -2
- package/dist/chat/sandbox/snapshot/span.d.ts +3 -0
- package/dist/chat/sandbox/snapshot/store.d.ts +20 -17
- package/dist/chat/sandbox/snapshot/waiting-error.d.ts +15 -0
- package/dist/chat/sandbox/snapshot/workspace.d.ts +17 -0
- package/dist/chat/scheduled-tasks/personal.d.ts +5 -8
- package/dist/chat/scheduled-tasks/runs.d.ts +49 -0
- package/dist/chat/scheduled-tasks/schedule-intent.d.ts +1 -1
- package/dist/chat/scheduled-tasks/tasks.d.ts +27 -0
- package/dist/chat/scheduled-tasks/tool-support.d.ts +0 -4
- package/dist/chat/scheduled-tasks/tools/create.d.ts +1 -1
- package/dist/chat/scheduled-tasks/tools/update.d.ts +1 -1
- package/dist/chat/scheduled-tasks/types.d.ts +127 -78
- package/dist/chat/services/workspace-snapshot-wait.d.ts +27 -0
- package/dist/chat/workspaces/types.d.ts +1 -0
- package/dist/{chunk-CAWBLVBY.js → chunk-2HIPYNQI.js} +6 -6
- package/dist/{chunk-ZCYABD7N.js → chunk-3AFVR5UC.js} +5 -5
- package/dist/{chunk-PA7QDS7P.js → chunk-3I7XE3PA.js} +204 -100
- package/dist/{chunk-VGDOEKO2.js → chunk-3TM3FYLQ.js} +1 -1
- package/dist/{chunk-6NZRKJWU.js → chunk-4GWXAILB.js} +1 -1
- package/dist/{chunk-LFZODSAY.js → chunk-5IRROPA5.js} +4 -4
- package/dist/{chunk-N4YEVOEC.js → chunk-B6ECUSVX.js} +45 -276
- package/dist/{chunk-4TWDRU64.js → chunk-CJLBLELR.js} +5 -5
- package/dist/{chunk-3FWXQZJJ.js → chunk-FAS6AIMF.js} +1 -1
- package/dist/{chunk-I7PKGMKI.js → chunk-FIDMHAO6.js} +6 -6
- package/dist/{chunk-4SVAFAI2.js → chunk-FTGD2FBP.js} +1 -1
- package/dist/{chunk-LVL5NG5G.js → chunk-G2CAC4CV.js} +19 -19
- package/dist/{chunk-DLTP6TUJ.js → chunk-GENV6KF2.js} +2 -2
- package/dist/{chunk-FVVYHML7.js → chunk-GPLAT6H7.js} +6 -6
- package/dist/{chunk-7CVYXUOJ.js → chunk-HQNE5APD.js} +1 -1
- package/dist/{chunk-Q362TECJ.js → chunk-JMJNFEDC.js} +331 -2
- package/dist/{chunk-AFOFVEXP.js → chunk-JT4WMD3C.js} +124 -13
- package/dist/{chunk-7ZFESKJ2.js → chunk-KJLHIHFF.js} +9 -9
- package/dist/{chunk-QLLOX7JY.js → chunk-Q5B3WTGG.js} +8 -8
- package/dist/{chunk-DGGIKWYQ.js → chunk-R5NWWYIS.js} +1 -1
- package/dist/{chunk-WCQUKX74.js → chunk-R6U7N4FS.js} +14 -5
- package/dist/{chunk-WYO2HXY5.js → chunk-RTRBYSF3.js} +1 -1
- package/dist/{chunk-2IMQLZHS.js → chunk-RZRYOLCE.js} +1144 -136
- package/dist/{chunk-7B6NW4P7.js → chunk-SLGGOASN.js} +1 -1
- package/dist/{chunk-SNPQGTHJ.js → chunk-TIEKUH4Q.js} +1 -1
- package/dist/{chunk-ELEAIRTG.js → chunk-TKB25A3L.js} +2 -2
- package/dist/{chunk-UB5YB2ED.js → chunk-U4TKB6F6.js} +6 -6
- package/dist/{chunk-ORMJY4RG.js → chunk-UT6X7XN7.js} +1 -1
- package/dist/{chunk-LPMLAJYR.js → chunk-VP4OVRDD.js} +11 -17
- package/dist/{chunk-7PZDAXIK.js → chunk-XSPSCWLH.js} +1 -1
- package/dist/chunk-XZY6G5YZ.js +1088 -0
- package/dist/{chunk-J2EWL6GJ.js → chunk-YFNAMRGE.js} +1 -1
- package/dist/{chunk-6KGMMVHF.js → chunk-ZQMG3CL5.js} +2 -2
- package/dist/cli/chat.js +31 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +10 -10
- package/dist/cli/upgrade.js +7 -7
- package/dist/db/schema/conversation-participants.d.ts +17 -0
- package/dist/db/schema/conversations.d.ts +629 -1
- package/dist/db/schema/scheduled-tasks.d.ts +29 -5
- package/dist/db/schema/snapshots.d.ts +1 -1
- package/dist/db/schema.d.ts +46 -5
- package/dist/{db-A3CB76US.js → db-EJAV7JL6.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-64QMI3IB.js → oauth-callback-server-GAVSUBTQ.js} +23 -23
- package/dist/{runner-EIAE2BGD.js → runner-34JL64JF.js} +15 -15
- package/dist/{skills-ZADWFKDG.js → skills-U545HALM.js} +6 -6
- package/dist/spawn-I2S4IDUQ.js +37 -0
- package/dist/{validation-4I6AF4CV.js → validation-EVXVGA44.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-BS6BZ66U.js → work-QOAUPDBU.js} +18 -18
- package/dist/worker-5GX2IKLZ.js +24 -0
- package/migrations/0033_workspace_snapshot_active_build.sql +1 -0
- package/migrations/0034_strong_randall.sql +31 -0
- package/migrations/meta/0033_snapshot.json +2914 -0
- package/migrations/meta/0034_snapshot.json +3038 -0
- package/migrations/meta/_journal.json +15 -1
- package/package.json +4 -4
- package/dist/chat/scheduled-tasks/store.d.ts +0 -78
- package/dist/chunk-4TRHPYTL.js +0 -1944
- package/dist/spawn-DVUOUFFC.js +0 -37
- package/dist/worker-RS5PWTCE.js +0 -24
|
@@ -232,6 +232,20 @@
|
|
|
232
232
|
"when": 1786954953911,
|
|
233
233
|
"tag": "0032_workspace_snapshots_table",
|
|
234
234
|
"breakpoints": true
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"idx": 33,
|
|
238
|
+
"version": "7",
|
|
239
|
+
"when": 1787069019525,
|
|
240
|
+
"tag": "0033_workspace_snapshot_active_build",
|
|
241
|
+
"breakpoints": true
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"idx": 34,
|
|
245
|
+
"version": "7",
|
|
246
|
+
"when": 1787335675201,
|
|
247
|
+
"tag": "0034_strong_randall",
|
|
248
|
+
"breakpoints": true
|
|
235
249
|
}
|
|
236
250
|
]
|
|
237
|
-
}
|
|
251
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.179.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.179.0"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@hono/node-server": "1.19.14",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"vercel": "^54.4.0",
|
|
105
105
|
"vitest": "^4.1.7",
|
|
106
106
|
"@sentry/junior-testing": "0.0.0",
|
|
107
|
-
"@sentry/junior-github": "0.
|
|
108
|
-
"@sentry/junior-memory": "0.
|
|
107
|
+
"@sentry/junior-github": "0.179.0",
|
|
108
|
+
"@sentry/junior-memory": "0.179.0"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { type PluginReadState, type PluginState } from "@sentry/junior-plugin-api";
|
|
2
|
-
import type { PgDatabase } from "drizzle-orm/pg-core";
|
|
3
|
-
import type { PgQueryResultHKT } from "drizzle-orm/pg-core/session";
|
|
4
|
-
import * as schedulerSqlSchema from "@/db/schema/scheduled-tasks";
|
|
5
|
-
import { type ScheduledRun, type ScheduledTask } from "./types";
|
|
6
|
-
export type SchedulerDb = PgDatabase<PgQueryResultHKT, typeof schedulerSqlSchema>;
|
|
7
|
-
export interface SchedulerStore {
|
|
8
|
-
claimDueRun(args: {
|
|
9
|
-
nowMs: number;
|
|
10
|
-
}): Promise<ScheduledRun | undefined>;
|
|
11
|
-
createTask(task: ScheduledTask): Promise<ScheduledTask>;
|
|
12
|
-
getRun(runId: string): Promise<ScheduledRun | undefined>;
|
|
13
|
-
getTask(taskId: string): Promise<ScheduledTask | undefined>;
|
|
14
|
-
listIncompleteRuns(): Promise<ScheduledRun[]>;
|
|
15
|
-
listIncompleteRunsForTasks(tasks: ScheduledTask[]): Promise<ScheduledRun[]>;
|
|
16
|
-
listTasks(): Promise<ScheduledTask[]>;
|
|
17
|
-
listTasksCreatedBy(input: ListTasksCreatedByInput): Promise<ScheduledTask[]>;
|
|
18
|
-
listTasksForTeam(teamId: string): Promise<ScheduledTask[]>;
|
|
19
|
-
markRunBlocked(args: {
|
|
20
|
-
completedAtMs: number;
|
|
21
|
-
errorMessage: string;
|
|
22
|
-
runId: string;
|
|
23
|
-
startedAtMs?: number;
|
|
24
|
-
}): Promise<ScheduledRun | undefined>;
|
|
25
|
-
markRunCompleted(args: {
|
|
26
|
-
completedAtMs: number;
|
|
27
|
-
resultMessageTs?: string;
|
|
28
|
-
runId: string;
|
|
29
|
-
startedAtMs: number;
|
|
30
|
-
}): Promise<ScheduledRun | undefined>;
|
|
31
|
-
markRunFailed(args: {
|
|
32
|
-
completedAtMs: number;
|
|
33
|
-
errorMessage: string;
|
|
34
|
-
startedAtMs?: number;
|
|
35
|
-
runId: string;
|
|
36
|
-
}): Promise<ScheduledRun | undefined>;
|
|
37
|
-
markRunSkipped(args: {
|
|
38
|
-
completedAtMs: number;
|
|
39
|
-
errorMessage: string;
|
|
40
|
-
runId: string;
|
|
41
|
-
}): Promise<ScheduledRun | undefined>;
|
|
42
|
-
markRunDispatched(args: {
|
|
43
|
-
claimedAtMs: number;
|
|
44
|
-
dispatchId: string;
|
|
45
|
-
nowMs: number;
|
|
46
|
-
runId: string;
|
|
47
|
-
}): Promise<ScheduledRun | undefined>;
|
|
48
|
-
saveTask(task: ScheduledTask): Promise<void>;
|
|
49
|
-
updateTaskAfterRun(args: {
|
|
50
|
-
errorMessage?: string;
|
|
51
|
-
nowMs: number;
|
|
52
|
-
run: ScheduledRun;
|
|
53
|
-
status: "blocked" | "completed" | "failed";
|
|
54
|
-
}): Promise<void>;
|
|
55
|
-
}
|
|
56
|
-
export interface ListTasksCreatedByInput {
|
|
57
|
-
before?: {
|
|
58
|
-
createdAtMs: number;
|
|
59
|
-
id: string;
|
|
60
|
-
};
|
|
61
|
-
identityIds: string[];
|
|
62
|
-
limit: number;
|
|
63
|
-
query?: string;
|
|
64
|
-
}
|
|
65
|
-
export interface SchedulerOperationalStore {
|
|
66
|
-
listIncompleteRunsForTasks(tasks: ScheduledTask[]): Promise<ScheduledRun[]>;
|
|
67
|
-
listTasks(): Promise<ScheduledTask[]>;
|
|
68
|
-
}
|
|
69
|
-
/** Create a scheduler store backed by this plugin's durable state namespace. */
|
|
70
|
-
export declare function createSchedulerStore(state: PluginState): SchedulerStore;
|
|
71
|
-
/** Create a read-only scheduler store for operational reporting. */
|
|
72
|
-
export declare function createSchedulerOperationalStore(state: PluginReadState): SchedulerOperationalStore;
|
|
73
|
-
/** List scheduled tasks whose current Slack destination is public. */
|
|
74
|
-
export declare function listPublicScheduledTasksForTeams(db: SchedulerDb, teamIds: string[], limit: number): Promise<ScheduledTask[]>;
|
|
75
|
-
/** Create a scheduler store backed by the plugin SQL database. */
|
|
76
|
-
export declare function createSchedulerSqlStore(db: SchedulerDb): SchedulerStore;
|
|
77
|
-
/** Create a read-only scheduler operational store backed by SQL. */
|
|
78
|
-
export declare function createSchedulerOperationalSqlStore(db: SchedulerDb): SchedulerOperationalStore;
|