@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
|
@@ -5,35 +5,35 @@ import {
|
|
|
5
5
|
enqueueAgentInvocation,
|
|
6
6
|
resolveAgentInvocationId,
|
|
7
7
|
routeAgentInvocationWork
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-POF7HORW.js";
|
|
9
|
+
import "./chunk-Y5RRKS67.js";
|
|
10
|
+
import "./chunk-O2SUZKWU.js";
|
|
11
11
|
import "./chunk-JAL3CH4G.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QHBHUCDS.js";
|
|
13
13
|
import "./chunk-DIB4GX3G.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-CWTWZKWH.js";
|
|
15
|
+
import "./chunk-6ZWRNC4D.js";
|
|
16
|
+
import "./chunk-WIUGVE66.js";
|
|
17
17
|
import "./chunk-3Y47VMHV.js";
|
|
18
18
|
import "./chunk-PDO5BLNM.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-62WK6FLT.js";
|
|
20
|
+
import "./chunk-HKWEMKK4.js";
|
|
21
|
+
import "./chunk-5GF7HQOP.js";
|
|
22
|
+
import "./chunk-CVHKLS7B.js";
|
|
23
|
+
import "./chunk-YURMXTZF.js";
|
|
24
|
+
import "./chunk-UC35XHGT.js";
|
|
25
25
|
import "./chunk-VFUK3X5B.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-FI5A2RF6.js";
|
|
27
|
+
import "./chunk-SIOO3CCL.js";
|
|
28
|
+
import "./chunk-KUYIW4BD.js";
|
|
29
|
+
import "./chunk-CGA4ERJ5.js";
|
|
30
|
+
import "./chunk-M63DETLL.js";
|
|
31
|
+
import "./chunk-6RRTVWAD.js";
|
|
32
32
|
import "./chunk-6GWA276C.js";
|
|
33
33
|
import "./chunk-OOUNJNMR.js";
|
|
34
34
|
import "./chunk-H4HBKISO.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-WCWPRFHZ.js";
|
|
36
|
+
import "./chunk-Y6DW6AVG.js";
|
|
37
37
|
import "./chunk-MLKGABMK.js";
|
|
38
38
|
export {
|
|
39
39
|
buildAgentInvocationInboundMessage,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
3
|
+
processConversationWork
|
|
4
|
+
} from "./chunk-M5QJJMFK.js";
|
|
5
|
+
import "./chunk-4TKPTFSO.js";
|
|
6
|
+
import "./chunk-Y5RRKS67.js";
|
|
7
|
+
import "./chunk-JAL3CH4G.js";
|
|
8
|
+
import "./chunk-3Y47VMHV.js";
|
|
9
|
+
import "./chunk-HKWEMKK4.js";
|
|
10
|
+
import "./chunk-5GF7HQOP.js";
|
|
11
|
+
import "./chunk-YURMXTZF.js";
|
|
12
|
+
import "./chunk-UC35XHGT.js";
|
|
13
|
+
import "./chunk-VFUK3X5B.js";
|
|
14
|
+
import "./chunk-FI5A2RF6.js";
|
|
15
|
+
import "./chunk-M63DETLL.js";
|
|
16
|
+
import "./chunk-6RRTVWAD.js";
|
|
17
|
+
import "./chunk-6GWA276C.js";
|
|
18
|
+
import "./chunk-WCWPRFHZ.js";
|
|
19
|
+
import "./chunk-Y6DW6AVG.js";
|
|
20
|
+
import "./chunk-MLKGABMK.js";
|
|
21
|
+
export {
|
|
22
|
+
CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
23
|
+
processConversationWork
|
|
24
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
CREATE TABLE "junior_snapshots" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"workspace_id" text NOT NULL,
|
|
4
|
+
"profile_hash" text NOT NULL,
|
|
5
|
+
"status" text NOT NULL,
|
|
6
|
+
"snapshot_id" text,
|
|
7
|
+
"build_duration_ms" integer,
|
|
8
|
+
"generated_at" timestamp with time zone,
|
|
9
|
+
"build_started_at" timestamp with time zone,
|
|
10
|
+
"build_phase" text,
|
|
11
|
+
"build_sandbox_name" text,
|
|
12
|
+
"build_command_id" text,
|
|
13
|
+
"build_error" text,
|
|
14
|
+
"created_at" timestamp with time zone NOT NULL,
|
|
15
|
+
"updated_at" timestamp with time zone NOT NULL,
|
|
16
|
+
CONSTRAINT "junior_snapshots_status_check" CHECK ("junior_snapshots"."status" in ('building', 'failed', 'ready')),
|
|
17
|
+
CONSTRAINT "junior_snapshots_build_phase_check" CHECK ("junior_snapshots"."build_phase" is null or "junior_snapshots"."build_phase" in ('created', 'dependencies_installed', 'repositories_prepared')),
|
|
18
|
+
CONSTRAINT "junior_snapshots_ready_fields_check" CHECK ("junior_snapshots"."status" <> 'ready' or ("junior_snapshots"."snapshot_id" is not null and "junior_snapshots"."build_duration_ms" is not null and "junior_snapshots"."generated_at" is not null)),
|
|
19
|
+
CONSTRAINT "junior_snapshots_build_fields_check" CHECK ("junior_snapshots"."status" = 'ready' or ("junior_snapshots"."build_started_at" is not null and "junior_snapshots"."build_phase" is not null)),
|
|
20
|
+
CONSTRAINT "junior_snapshots_build_duration_check" CHECK ("junior_snapshots"."build_duration_ms" is null or "junior_snapshots"."build_duration_ms" >= 0)
|
|
21
|
+
);
|
|
22
|
+
--> statement-breakpoint
|
|
23
|
+
ALTER TABLE "junior_snapshots" ADD CONSTRAINT "junior_snapshots_workspace_id_junior_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."junior_workspaces"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
24
|
+
CREATE UNIQUE INDEX "junior_snapshots_snapshot_id_uidx" ON "junior_snapshots" USING btree ("snapshot_id");--> statement-breakpoint
|
|
25
|
+
CREATE INDEX "junior_snapshots_workspace_idx" ON "junior_snapshots" USING btree ("workspace_id");--> statement-breakpoint
|
|
26
|
+
CREATE INDEX "junior_snapshots_workspace_profile_status_idx" ON "junior_snapshots" USING btree ("workspace_id","profile_hash","status");--> statement-breakpoint
|
|
27
|
+
CREATE INDEX "junior_snapshots_workspace_status_idx" ON "junior_snapshots" USING btree ("workspace_id","status");--> statement-breakpoint
|
|
28
|
+
-- Move legacy recipe-column snapshot facts into junior_snapshots before drop.
|
|
29
|
+
INSERT INTO "junior_snapshots" (
|
|
30
|
+
"id",
|
|
31
|
+
"workspace_id",
|
|
32
|
+
"profile_hash",
|
|
33
|
+
"status",
|
|
34
|
+
"snapshot_id",
|
|
35
|
+
"build_duration_ms",
|
|
36
|
+
"generated_at",
|
|
37
|
+
"build_started_at",
|
|
38
|
+
"build_phase",
|
|
39
|
+
"build_sandbox_name",
|
|
40
|
+
"build_command_id",
|
|
41
|
+
"build_error",
|
|
42
|
+
"created_at",
|
|
43
|
+
"updated_at"
|
|
44
|
+
)
|
|
45
|
+
SELECT
|
|
46
|
+
gen_random_uuid()::text,
|
|
47
|
+
"id",
|
|
48
|
+
"snapshot_profile_hash",
|
|
49
|
+
'ready',
|
|
50
|
+
"snapshot_id",
|
|
51
|
+
"snapshot_build_duration_ms",
|
|
52
|
+
"snapshot_generated_at",
|
|
53
|
+
NULL,
|
|
54
|
+
NULL,
|
|
55
|
+
NULL,
|
|
56
|
+
NULL,
|
|
57
|
+
NULL,
|
|
58
|
+
COALESCE("snapshot_generated_at", "updated_at", "created_at"),
|
|
59
|
+
COALESCE("snapshot_generated_at", "updated_at", "created_at")
|
|
60
|
+
FROM "junior_workspaces"
|
|
61
|
+
WHERE
|
|
62
|
+
"snapshot_id" IS NOT NULL
|
|
63
|
+
AND "snapshot_profile_hash" IS NOT NULL
|
|
64
|
+
AND "snapshot_generated_at" IS NOT NULL
|
|
65
|
+
AND "snapshot_build_duration_ms" IS NOT NULL;--> statement-breakpoint
|
|
66
|
+
ALTER TABLE "junior_workspaces" DROP COLUMN "snapshot_id";--> statement-breakpoint
|
|
67
|
+
ALTER TABLE "junior_workspaces" DROP COLUMN "snapshot_generated_at";--> statement-breakpoint
|
|
68
|
+
ALTER TABLE "junior_workspaces" DROP COLUMN "snapshot_build_duration_ms";--> statement-breakpoint
|
|
69
|
+
ALTER TABLE "junior_workspaces" DROP COLUMN "snapshot_profile_hash";
|