@sentry/junior 0.170.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-IPUNCZPZ.js → agent-hooks-UXIRPATC.js} +15 -10
- package/dist/api.js +31 -30
- package/dist/app.js +32 -32
- package/dist/{catalog-runtime-E6XHWRPG.js → catalog-runtime-PQCGQUXA.js} +5 -5
- package/dist/chat/sandbox/snapshot/store.d.ts +28 -0
- package/dist/chat/workspaces/store.d.ts +1 -10
- package/dist/chat/workspaces/types.d.ts +14 -1
- package/dist/{chunk-B53NR3XY.js → chunk-2AYWP7PZ.js} +6 -270
- package/dist/{chunk-3SFZJVX5.js → chunk-3AX2WCFV.js} +2 -2
- package/dist/{chunk-T4SEUU7A.js → chunk-4TKPTFSO.js} +1 -1
- package/dist/{chunk-6W2UIZSA.js → chunk-5GF7HQOP.js} +70 -11
- package/dist/{chunk-KQCHIOME.js → chunk-5ML752HJ.js} +8 -8
- package/dist/{chunk-UD4BNNM2.js → chunk-5TZ2DKVU.js} +1 -1
- package/dist/{chunk-F3I6YFB4.js → chunk-62WK6FLT.js} +182 -68
- package/dist/{chunk-5EPG7PYS.js → chunk-6RRTVWAD.js} +1 -1
- package/dist/{chunk-YWX7D7BJ.js → chunk-AOAOBZJQ.js} +17 -17
- package/dist/chunk-CVHKLS7B.js +399 -0
- package/dist/{chunk-6GOKKLWF.js → chunk-CWTWZKWH.js} +6 -6
- package/dist/{chunk-NGL4XFT2.js → chunk-FI5A2RF6.js} +1 -1
- package/dist/{chunk-IX7VHMIJ.js → chunk-HKWEMKK4.js} +3 -3
- package/dist/{chunk-UHW5RAIB.js → chunk-HWXXFINO.js} +12 -12
- package/dist/{chunk-2XI6OLXA.js → chunk-IZSMYLCS.js} +9 -9
- package/dist/{chunk-47GJ7QRO.js → chunk-JNYIJHFF.js} +1 -1
- package/dist/{chunk-A22DGDXT.js → chunk-KUYIW4BD.js} +1 -1
- package/dist/{chunk-NFERKIUX.js → chunk-M5QJJMFK.js} +4 -4
- package/dist/{chunk-NESGW5HV.js → chunk-MFFU45QO.js} +1 -1
- package/dist/{chunk-TX553KXA.js → chunk-O2SUZKWU.js} +5 -5
- package/dist/{chunk-IF3OK4XO.js → chunk-POF7HORW.js} +6 -6
- package/dist/{chunk-FKOLWEMX.js → chunk-QHBHUCDS.js} +5 -5
- package/dist/{chunk-6E4WQV75.js → chunk-SIOO3CCL.js} +1 -1
- package/dist/{chunk-E7HKIHI5.js → chunk-UC35XHGT.js} +2 -2
- package/dist/{chunk-CA6JIB7S.js → chunk-UTG3IY2C.js} +21 -21
- package/dist/{chunk-IJTFG6AK.js → chunk-VGWC4KG2.js} +5 -9
- package/dist/{chunk-BW644E3V.js → chunk-WCWPRFHZ.js} +1 -1
- package/dist/{chunk-HZALSYOW.js → chunk-WIUGVE66.js} +5 -5
- package/dist/{chunk-4PSUCN4P.js → chunk-XHBYNJNZ.js} +1 -1
- package/dist/{chunk-7TVGQZOH.js → chunk-Y5RRKS67.js} +4 -4
- package/dist/{chunk-F4UM52UH.js → chunk-Y6DW6AVG.js} +1 -1
- package/dist/{chunk-74XMBKRI.js → chunk-YURMXTZF.js} +1 -1
- package/dist/cli/chat.js +30 -30
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +12 -11
- package/dist/cli/upgrade.js +7 -7
- 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-WMSEGSFM.js → db-EHCO5WGL.js} +7 -7
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-GBS47NTO.js → oauth-callback-server-O7CH6FOJ.js} +23 -23
- package/dist/{runner-V2A2Z7K3.js → runner-3D5AGGUD.js} +17 -13
- package/dist/{skills-Z35YXLUG.js → skills-6IW3DDW2.js} +6 -6
- package/dist/spawn-5LKOLABU.js +37 -0
- package/dist/{validation-EQCK4DA5.js → validation-RCLP4EU4.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-XIANCABO.js → work-L54N7O65.js} +18 -18
- 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/chunk-BVREIWBD.js +0 -131
- package/dist/spawn-AKPJBUS2.js +0 -37
- package/dist/worker-YALLEN2Z.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-
|
|
14
|
+
import "./chunk-CWTWZKWH.js";
|
|
15
15
|
import "./chunk-6ZWRNC4D.js";
|
|
16
|
-
import "./chunk-
|
|
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-
|
|
26
|
+
import "./chunk-FI5A2RF6.js";
|
|
27
|
+
import "./chunk-SIOO3CCL.js";
|
|
28
|
+
import "./chunk-KUYIW4BD.js";
|
|
29
29
|
import "./chunk-CGA4ERJ5.js";
|
|
30
30
|
import "./chunk-M63DETLL.js";
|
|
31
|
-
import "./chunk-
|
|
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";
|