@sentry/junior 0.317.0 → 0.319.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.
Files changed (95) hide show
  1. package/dist/adapter-8_S6Birm.js +1833 -0
  2. package/dist/{admin-CAugg87B.js → admin-EsbUON1j.js} +1 -1
  3. package/dist/{agent-runner-AjrEV6Qe.js → agent-CtzMl32d.js} +19953 -6727
  4. package/dist/{agent-status-BA5x3Xtp.js → agent-status-Bq_AIpyp.js} +105 -1
  5. package/dist/{agent-update-delivery-B_YIZcgf.js → agent-update-delivery-pAvsbuGL.js} +4 -5
  6. package/dist/api/schema.d.ts +85 -51
  7. package/dist/api/schema.js +4 -4
  8. package/dist/api.js +81 -94
  9. package/dist/{app-MoNAsVV5.d.ts → app-tACXxJPI.d.ts} +8 -13
  10. package/dist/app.d.ts +2 -2
  11. package/dist/app.js +246 -153
  12. package/dist/{change-record-BzJgLsv7.d.ts → change-record-K-KsqNhT.d.ts} +9 -5
  13. package/dist/{channel-access-j-YAVYK4.js → channel-access-DET5hzZM.js} +1 -1
  14. package/dist/{chat-core-engine-aH85nEHv.js → chat-core-engine-DpM3tMVi.js} +7 -7
  15. package/dist/cli/chat.d.ts +1 -1
  16. package/dist/cli/chat.js +38 -30
  17. package/dist/cli/check.js +5 -5
  18. package/dist/cli/main.js +2 -2
  19. package/dist/cli/plugins.d.ts +1 -1
  20. package/dist/cli/plugins.js +8 -8
  21. package/dist/cli/snapshot-create.js +5 -6
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +3 -4
  24. package/dist/{continue-in-slack-D-FZ8Fin.js → continue-in-slack-CFzDyxkH.js} +3 -2
  25. package/dist/{conversation-feed--9S0_PXL.js → conversation-feed-DEUdD7mb.js} +2 -106
  26. package/dist/{conversation-privacy-B1uXn5sf.js → conversation-privacy-C2vYK55O.js} +1 -1
  27. package/dist/{create-DoDIYgtZ.js → create-Ta3SEIB5.js} +124 -16
  28. package/dist/{credential-sync-BJOqGnjV.js → credential-sync-DyRqDmY4.js} +17 -20
  29. package/dist/{db-BFmyYZtJ.js → db-BCaNWl9p.js} +6536 -1920
  30. package/dist/{deployment-DXq9ZLU4.js → deployment-CfOew1Tm.js} +3 -3
  31. package/dist/{engine-context-CgQ7mlHt.js → engine-context-CiExoy1B.js} +181 -155
  32. package/dist/{html-B3VKTGbJ.js → html-Bb2Si1bR.js} +6 -8
  33. package/dist/instrumentation.js +7 -23
  34. package/dist/list-wwDcROh9.js +5007 -0
  35. package/dist/{logging--smS7XRK.js → logging-BRPTXAdf.js} +10 -81
  36. package/dist/{mailbox-turn-uSXhUFc9.js → markers-9QoqW5ov.js} +1875 -1458
  37. package/dist/nitro.d.ts +2 -2
  38. package/dist/nitro.js +7 -8
  39. package/dist/{oauth-callback-server-CE4soEIY.js → oauth-callback-server-vhL9b-PZ.js} +2 -2
  40. package/dist/{oauth-relay-C36gX1gH.js → oauth-relay-CH2v7WiB.js} +1 -1
  41. package/dist/{plugins-fBrz8PCV.d.ts → plugins-DhGXZjlu.d.ts} +1 -0
  42. package/dist/{profile-BQ-iBDsZ.js → profile-D9LdwmZi.js} +17 -19
  43. package/dist/{prompt-Dv7gkpD6.js → prompt-3TqxEOtc.js} +10 -10
  44. package/dist/{reports-WKHfGTsU.js → reports-K-tbtEyx.js} +2 -2
  45. package/dist/{resolve-tony4ibz.js → resolve-BBV2qf8A.js} +5 -5
  46. package/dist/{result-Bta_dlWa.js → result-5IdGJP4M.js} +24 -13
  47. package/dist/{runner-BstDRbD9.js → runner-BK_joPlM.js} +9 -18
  48. package/dist/{sandbox-egress-signals-oSJMJOnn.js → sandbox-egress-signals-DXgWXXmm.js} +1 -1
  49. package/dist/{schema-DfqrHACA.js → schema-zWGG6VC1.js} +13 -7
  50. package/dist/{service-account-CTV_jaNu.js → service-account-CateFyhw.js} +4 -5
  51. package/dist/{skills-BCEU41zM.js → skills-Ccjw8h2P.js} +10 -9
  52. package/dist/{slack-conversation-unfurl-DxVmhbGP.js → slack-conversation-unfurl-ZC_TSpc4.js} +7 -7
  53. package/dist/storage-C9U7R5rM.js +273 -0
  54. package/dist/{system-prompt-table-CiXy0eNR.js → system-prompt-table-YBTHIFlP.js} +26 -84
  55. package/dist/topic-B2EWKKBT.js +6 -0
  56. package/dist/{package-discovery-DD9vencX.js → topics-DxuKurCX.js} +21 -1
  57. package/dist/{types-C4iC-IMC.js → types-BNHkJrOP.js} +79 -59
  58. package/dist/{users-ByG5RCEJ.js → users-CCRAqYb_.js} +1 -1
  59. package/dist/{validation-8gjfR91V.js → validation-BCUpJa8K.js} +4 -4
  60. package/dist/{version-BeZhWWBE.js → version-BNm0JYj3.js} +1 -1
  61. package/dist/version.js +1 -1
  62. package/dist/{worker-BqMQQNRk.js → worker-BhgpZ7_b.js} +5 -5
  63. package/migrations/20261127002500_turn_discarded_usage/migration.sql +2 -0
  64. package/migrations/20261127002500_turn_discarded_usage/snapshot.json +73 -0
  65. package/migrations/20261127052408_space_name_nullable/migration.sql +5 -0
  66. package/migrations/20261127052408_space_name_nullable/snapshot.json +29 -0
  67. package/migrations/20261127060000_annotation_object_id_index/migration.sql +1 -0
  68. package/migrations/20261127060000_annotation_object_id_index/snapshot.json +69 -0
  69. package/migrations/20261127060001_annotation_subjects/migration.sql +78 -0
  70. package/migrations/20261127060001_annotation_subjects/snapshot.json +104 -0
  71. package/migrations/20261127060002_annotation_subject_index/migration.sql +1 -0
  72. package/migrations/20261127060002_annotation_subject_index/snapshot.json +70 -0
  73. package/migrations/20261127060003_annotation_title_url/migration.sql +84 -0
  74. package/migrations/20261127060003_annotation_title_url/snapshot.json +73 -0
  75. package/package.json +9 -7
  76. package/dist/catalog-runtime-DfSpJZdY.js +0 -6
  77. package/dist/child-message-DHjQLEd1.js +0 -19
  78. package/dist/config-CHQ8X251.js +0 -2422
  79. package/dist/conversation-turn-BUE_7xaN.js +0 -1157
  80. package/dist/job-runner-A1lCkybD.js +0 -1506
  81. package/dist/lineage-Bktb0UcV.js +0 -36
  82. package/dist/list-Bxvg5wXf.js +0 -12623
  83. package/dist/message-BNenhsmB.js +0 -154
  84. package/dist/model-input-BReSnwHp.js +0 -82
  85. package/dist/parent-result-Ck1rFYRQ.js +0 -310
  86. package/dist/registry-iXMT5Jmh.js +0 -3279
  87. package/dist/run-conversation-DL6ru7iW.js +0 -336
  88. package/dist/sender-actors-CPglLd5R.js +0 -83
  89. package/dist/spawn-frczVPIr.js +0 -48
  90. package/dist/task-runner-C9Yc2_ae.js +0 -1526
  91. package/dist/thread-context-CqZDKErp.js +0 -166
  92. package/dist/topic-CRYYBYp-.js +0 -7
  93. package/dist/topics-SRN7IVX-.js +0 -24
  94. package/dist/turn-membership-CENFf3kI.js +0 -856
  95. package/dist/turn-wake-BhloiI2h.js +0 -151
@@ -0,0 +1,104 @@
1
+ {
2
+ "type": "diff",
3
+ "version": "10",
4
+ "dialect": "postgres",
5
+ "id": "66414dd3-69b3-4341-aa2e-e40525f1a6ea",
6
+ "prevIds": ["798b04e0-3f09-46d8-8a21-aefeaa9921f9"],
7
+ "footprints": [
8
+ {
9
+ "statementType": "add_column",
10
+ "statementTarget": [
11
+ "column",
12
+ "public",
13
+ "junior_conversation_annotations",
14
+ "subject_kind"
15
+ ],
16
+ "writes": [
17
+ "s|col|public.junior_conversation_annotations.subject_kind",
18
+ "n|col|public.junior_conversation_annotations.subject_kind",
19
+ "e|col|public.junior_conversation_annotations.subject_kind"
20
+ ],
21
+ "reads": ["n|tbl|public.junior_conversation_annotations", "n|sch|public"]
22
+ },
23
+ {
24
+ "statementType": "add_column",
25
+ "statementTarget": [
26
+ "column",
27
+ "public",
28
+ "junior_conversation_annotations",
29
+ "subject_id"
30
+ ],
31
+ "writes": [
32
+ "s|col|public.junior_conversation_annotations.subject_id",
33
+ "n|col|public.junior_conversation_annotations.subject_id",
34
+ "e|col|public.junior_conversation_annotations.subject_id"
35
+ ],
36
+ "reads": ["n|tbl|public.junior_conversation_annotations", "n|sch|public"]
37
+ },
38
+ {
39
+ "statementType": "add_column",
40
+ "statementTarget": [
41
+ "column",
42
+ "public",
43
+ "junior_conversation_annotations",
44
+ "action"
45
+ ],
46
+ "writes": [
47
+ "s|col|public.junior_conversation_annotations.action",
48
+ "n|col|public.junior_conversation_annotations.action",
49
+ "e|col|public.junior_conversation_annotations.action"
50
+ ],
51
+ "reads": ["n|tbl|public.junior_conversation_annotations", "n|sch|public"]
52
+ }
53
+ ],
54
+ "deltas": [
55
+ {
56
+ "op": "create",
57
+ "row": {
58
+ "schema": "public",
59
+ "table": "junior_conversation_annotations",
60
+ "name": "subject_kind",
61
+ "type": "text",
62
+ "typeSchema": null,
63
+ "notNull": false,
64
+ "dimensions": 0,
65
+ "default": null,
66
+ "generated": null,
67
+ "identity": null,
68
+ "entityType": "columns"
69
+ }
70
+ },
71
+ {
72
+ "op": "create",
73
+ "row": {
74
+ "schema": "public",
75
+ "table": "junior_conversation_annotations",
76
+ "name": "subject_id",
77
+ "type": "text",
78
+ "typeSchema": null,
79
+ "notNull": false,
80
+ "dimensions": 0,
81
+ "default": null,
82
+ "generated": null,
83
+ "identity": null,
84
+ "entityType": "columns"
85
+ }
86
+ },
87
+ {
88
+ "op": "create",
89
+ "row": {
90
+ "schema": "public",
91
+ "table": "junior_conversation_annotations",
92
+ "name": "action",
93
+ "type": "text",
94
+ "typeSchema": null,
95
+ "notNull": false,
96
+ "dimensions": 0,
97
+ "default": null,
98
+ "generated": null,
99
+ "identity": null,
100
+ "entityType": "columns"
101
+ }
102
+ }
103
+ ]
104
+ }
@@ -0,0 +1 @@
1
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS "junior_conversation_annotations_subject_idx" ON "junior_conversation_annotations" ("subject_kind","subject_id","created_at") WHERE "subject_kind" is not null;
@@ -0,0 +1,70 @@
1
+ {
2
+ "type": "diff",
3
+ "version": "10",
4
+ "dialect": "postgres",
5
+ "id": "89760bcd-1994-47e8-84ba-0c99d5b9f3b4",
6
+ "prevIds": ["66414dd3-69b3-4341-aa2e-e40525f1a6ea"],
7
+ "footprints": [
8
+ {
9
+ "statementType": "create_index",
10
+ "statementTarget": [
11
+ "index",
12
+ "public",
13
+ "junior_conversation_annotations",
14
+ "junior_conversation_annotations_subject_idx"
15
+ ],
16
+ "writes": [
17
+ "s|idx|public.junior_conversation_annotations_subject_idx",
18
+ "n|idx|public.junior_conversation_annotations_subject_idx",
19
+ "e|idx|public.junior_conversation_annotations_subject_idx",
20
+ "n|rel|public.junior_conversation_annotations_subject_idx"
21
+ ],
22
+ "reads": [
23
+ "n|tbl|public.junior_conversation_annotations",
24
+ "n|sch|public",
25
+ "n|col|public.junior_conversation_annotations.subject_kind",
26
+ "n|col|public.junior_conversation_annotations.subject_id",
27
+ "n|col|public.junior_conversation_annotations.created_at"
28
+ ]
29
+ }
30
+ ],
31
+ "deltas": [
32
+ {
33
+ "op": "create",
34
+ "row": {
35
+ "schema": "public",
36
+ "table": "junior_conversation_annotations",
37
+ "name": "junior_conversation_annotations_subject_idx",
38
+ "nameExplicit": true,
39
+ "columns": [
40
+ {
41
+ "value": "subject_kind",
42
+ "isExpression": false,
43
+ "asc": true,
44
+ "nullsFirst": false,
45
+ "opclass": null
46
+ },
47
+ {
48
+ "value": "subject_id",
49
+ "isExpression": false,
50
+ "asc": true,
51
+ "nullsFirst": false,
52
+ "opclass": null
53
+ },
54
+ {
55
+ "value": "created_at",
56
+ "isExpression": false,
57
+ "asc": true,
58
+ "nullsFirst": false,
59
+ "opclass": null
60
+ }
61
+ ],
62
+ "isUnique": false,
63
+ "where": "\"subject_kind\" is not null",
64
+ "with": "",
65
+ "method": "btree",
66
+ "entityType": "indexes"
67
+ }
68
+ }
69
+ ]
70
+ }
@@ -0,0 +1,84 @@
1
+ ALTER TABLE "junior_conversation_annotations" ADD COLUMN "title" text;--> statement-breakpoint
2
+ ALTER TABLE "junior_conversation_annotations" ADD COLUMN "url" text;--> statement-breakpoint
3
+ -- New code writes no link in the JSON, so the subject of an object without
4
+ -- a provider id comes from the `url` column. An old worker's row still has
5
+ -- the link only in its JSON.
6
+ CREATE OR REPLACE FUNCTION "junior_conversation_annotations_legacy_subject"()
7
+ RETURNS trigger
8
+ LANGUAGE plpgsql
9
+ AS $function$
10
+ DECLARE
11
+ object_type text := NEW."annotation_json"->>'objectType';
12
+ url text := coalesce(NEW."url", NEW."annotation_json"->>'url');
13
+ github_ref text := CASE
14
+ WHEN NEW."plugin" = 'github' AND NEW."key" ~ '^[^#]+#[0-9]+$' THEN NEW."key"
15
+ END;
16
+ github_pull_request boolean := github_ref IS NOT NULL AND (
17
+ object_type = 'code_change'
18
+ OR (object_type IS NULL AND url ~ '^https://github\.com/[^/]+/[^/]+/pull/[0-9]+')
19
+ );
20
+ kind text;
21
+ id text;
22
+ BEGIN
23
+ IF NEW."plugin" = 'junior' AND object_type = 'automation' THEN
24
+ kind := 'automation';
25
+ id := NEW."key";
26
+ ELSIF github_pull_request THEN
27
+ SELECT c."provider_id" INTO id
28
+ FROM "junior_code_changes" c
29
+ JOIN "junior_code_repositories" r ON r."id" = c."repository_id"
30
+ WHERE c."provider" = 'github'
31
+ AND lower(r."name") = lower(split_part(github_ref, '#', 1))
32
+ AND c."number" = split_part(github_ref, '#', 2)::integer
33
+ LIMIT 1;
34
+ kind := CASE WHEN id IS NOT NULL THEN 'github:pull_request' END;
35
+ ELSIF github_ref IS NOT NULL THEN
36
+ id := NEW."annotation_json"->>'objectId';
37
+ kind := CASE WHEN id IS NOT NULL THEN 'github:issue' END;
38
+ ELSIF NEW."plugin" = 'google' AND object_type = 'calendar_event' THEN
39
+ kind := 'google:calendar_event';
40
+ id := NEW."key";
41
+ ELSIF NEW."plugin" = 'vercel' AND object_type = 'deployment' THEN
42
+ kind := 'vercel:deployment';
43
+ id := NEW."key";
44
+ ELSIF NEW."plugin" = 'linear' AND object_type = 'task' THEN
45
+ kind := 'linear:issue';
46
+ id := NEW."key";
47
+ END IF;
48
+ IF NEW."subject_kind" IS NULL THEN
49
+ NEW."subject_kind" := coalesce(kind, 'link');
50
+ NEW."subject_id" := CASE WHEN kind IS NOT NULL THEN id ELSE coalesce(url, NEW."key") END;
51
+ END IF;
52
+ IF NEW."action" IS NULL THEN
53
+ NEW."action" := 'changed';
54
+ END IF;
55
+ RETURN NEW;
56
+ END;
57
+ $function$;--> statement-breakpoint
58
+ -- An Annotation stores the title and the link of its object in columns,
59
+ -- and no other fact of it: a card reads the object live. Old workers still
60
+ -- write the title, the link, and the other facts in the JSON while this
61
+ -- release rolls out, so a trigger moves the title and the link to their
62
+ -- columns and drops the rest. A link that a person attached keeps no title.
63
+ -- Triggers run in name order, so this one runs after
64
+ -- `junior_conversation_annotations_legacy_subject`, which reads the old
65
+ -- JSON. The backfill below fires it for every saved Annotation.
66
+ CREATE OR REPLACE FUNCTION "junior_conversation_annotations_stored_fields"()
67
+ RETURNS trigger
68
+ LANGUAGE plpgsql
69
+ AS $function$
70
+ BEGIN
71
+ IF NEW."kind" = 'object' THEN
72
+ NEW."title" := coalesce(NEW."annotation_json"->>'title', NEW."title");
73
+ END IF;
74
+ NEW."url" := coalesce(NEW."annotation_json"->>'url', NEW."url");
75
+ NEW."annotation_json" := NEW."annotation_json" - ARRAY[
76
+ 'title', 'url', 'label', 'status', 'description', 'facts',
77
+ 'sourceUpdatedAt', 'warning', 'trigger', 'displayType'
78
+ ];
79
+ RETURN NEW;
80
+ END;
81
+ $function$;--> statement-breakpoint
82
+ CREATE TRIGGER "junior_conversation_annotations_stored_fields" BEFORE INSERT OR UPDATE ON "junior_conversation_annotations" FOR EACH ROW WHEN (NEW."annotation_json" ?| ARRAY['title', 'url', 'label', 'status', 'description', 'facts', 'sourceUpdatedAt', 'warning', 'trigger', 'displayType']) EXECUTE FUNCTION "junior_conversation_annotations_stored_fields"();--> statement-breakpoint
83
+ -- junior:bounded-backfill: every saved Annotation needs its title and link in the columns before search and cards read them, so the update runs once over the Annotation table. Each Conversation has only the few objects that it created or changed, and the update writes each row once.
84
+ UPDATE "junior_conversation_annotations" SET "annotation_json" = "annotation_json" WHERE "annotation_json" ?| ARRAY['title', 'url', 'label', 'status', 'description', 'facts', 'sourceUpdatedAt', 'warning', 'trigger', 'displayType'];
@@ -0,0 +1,73 @@
1
+ {
2
+ "type": "diff",
3
+ "version": "10",
4
+ "dialect": "postgres",
5
+ "id": "8a318893-4b46-4fb3-9e04-6361efea0a02",
6
+ "prevIds": ["89760bcd-1994-47e8-84ba-0c99d5b9f3b4"],
7
+ "footprints": [
8
+ {
9
+ "statementType": "add_column",
10
+ "statementTarget": [
11
+ "column",
12
+ "public",
13
+ "junior_conversation_annotations",
14
+ "title"
15
+ ],
16
+ "writes": [
17
+ "s|col|public.junior_conversation_annotations.title",
18
+ "n|col|public.junior_conversation_annotations.title",
19
+ "e|col|public.junior_conversation_annotations.title"
20
+ ],
21
+ "reads": ["n|tbl|public.junior_conversation_annotations", "n|sch|public"]
22
+ },
23
+ {
24
+ "statementType": "add_column",
25
+ "statementTarget": [
26
+ "column",
27
+ "public",
28
+ "junior_conversation_annotations",
29
+ "url"
30
+ ],
31
+ "writes": [
32
+ "s|col|public.junior_conversation_annotations.url",
33
+ "n|col|public.junior_conversation_annotations.url",
34
+ "e|col|public.junior_conversation_annotations.url"
35
+ ],
36
+ "reads": ["n|tbl|public.junior_conversation_annotations", "n|sch|public"]
37
+ }
38
+ ],
39
+ "deltas": [
40
+ {
41
+ "op": "create",
42
+ "row": {
43
+ "schema": "public",
44
+ "table": "junior_conversation_annotations",
45
+ "name": "title",
46
+ "type": "text",
47
+ "typeSchema": null,
48
+ "notNull": false,
49
+ "dimensions": 0,
50
+ "default": null,
51
+ "generated": null,
52
+ "identity": null,
53
+ "entityType": "columns"
54
+ }
55
+ },
56
+ {
57
+ "op": "create",
58
+ "row": {
59
+ "schema": "public",
60
+ "table": "junior_conversation_annotations",
61
+ "name": "url",
62
+ "type": "text",
63
+ "typeSchema": null,
64
+ "notNull": false,
65
+ "dimensions": 0,
66
+ "default": null,
67
+ "generated": null,
68
+ "identity": null,
69
+ "entityType": "columns"
70
+ }
71
+ }
72
+ ]
73
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.317.0",
3
+ "version": "0.319.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -64,8 +64,9 @@
64
64
  "@logtape/logtape": "^2.1.1",
65
65
  "@modelcontextprotocol/sdk": "1.32.0",
66
66
  "@neondatabase/serverless": "^1.1.0",
67
- "@sentry/api": "2.16.0",
68
- "@sentry/junior-plugin-api": "0.317.0",
67
+ "@sentry/api": "3.2.0",
68
+ "@sentry/http": "1.0.0",
69
+ "@sentry/junior-plugin-api": "0.319.0",
69
70
  "@sentry/nitro": "11.16.0",
70
71
  "@sentry/node": "11.16.0",
71
72
  "@sentry/server-utils": "11.16.0",
@@ -88,7 +89,6 @@
88
89
  "hono": "^4.13.11",
89
90
  "jiti": "^2.7.0",
90
91
  "jose": "^6.2.3",
91
- "just-bash": "3.0.1",
92
92
  "mdast-util-from-markdown": "^2.1.0",
93
93
  "mdast-util-gfm": "^3.1.0",
94
94
  "micromark-extension-gfm": "^3.0.0",
@@ -97,6 +97,7 @@
97
97
  "parse5": "^7.3.0",
98
98
  "pg": "^8.16.3",
99
99
  "sharp": "^0.35.3",
100
+ "shell-quote": "1.12.0",
100
101
  "undici": "7.30.1",
101
102
  "web-push": "^3.6.7",
102
103
  "yaml": "^2.9.0",
@@ -109,9 +110,10 @@
109
110
  "@emnapi/core": "^1.10.0",
110
111
  "@emnapi/runtime": "^1.10.0",
111
112
  "@hono/node-server": "2.1.3",
112
- "@sentry/junior-github": "0.317.0",
113
- "@sentry/junior-notion": "0.317.0",
114
- "@sentry/junior-sentry": "0.317.0",
113
+ "@sentry/junior-github": "0.319.0",
114
+ "@sentry/junior-linear": "0.319.0",
115
+ "@sentry/junior-notion": "0.319.0",
116
+ "@sentry/junior-sentry": "0.319.0",
115
117
  "@sentry/junior-testing": "0.0.0",
116
118
  "@types/node": "^24.19.2",
117
119
  "@types/pg": "^8.15.6",
@@ -1,6 +0,0 @@
1
- import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { t as createPluginCatalogRuntime } from "./registry-iXMT5Jmh.js";
3
- // src/chat/plugins/catalog-runtime.ts
4
- var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
5
- const pluginCatalogRuntime = createPluginCatalogRuntime();
6
- export { pluginCatalogRuntime as n, catalog_runtime_exports as t };
@@ -1,19 +0,0 @@
1
- // src/chat/child-agents/child-message.ts
2
- /** Mailbox metadata that stores who sent one child reply or result. */
3
- function childMessageSenderMetadata(sender) {
4
- return { sender };
5
- }
6
- /**
7
- * List the child replies and results among the ids that reached one
8
- * mailbox, oldest first, with the sender fields that the mailbox keeps.
9
- */
10
- function listChildMessages(inboundMessageIds, messageSenders) {
11
- return inboundMessageIds.flatMap((inboundMessageId) => {
12
- const sender = messageSenders[inboundMessageId];
13
- return sender ? [{
14
- inboundMessageId,
15
- sender
16
- }] : [];
17
- });
18
- }
19
- export { listChildMessages as n, childMessageSenderMetadata as t };