@sentry/junior 0.278.0 → 0.280.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 (90) hide show
  1. package/dist/{actor-B4DYygOB.js → actor-6jsm_v96.js} +1 -1
  2. package/dist/{adapter-BXosqTMx.js → adapter-DVN3iwf9.js} +1 -1
  3. package/dist/{admin-Thn7NfOi.js → admin-Q_UI--9W.js} +1 -1
  4. package/dist/{agent-runner-DE-43MPb.js → agent-runner-_PYLv4Qo.js} +79 -39
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +7 -7
  7. package/dist/api.d.ts +3 -3
  8. package/dist/api.js +184 -418
  9. package/dist/{app-CHNS-AX2.d.ts → app-CL2zzzE0.d.ts} +5 -5
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +462 -80
  12. package/dist/{assistant-reply-pauL6qyn.js → assistant-reply-DbebsAxi.js} +1 -1
  13. package/dist/{automation-DphoTRYl.js → automation-CPqRFjIa.js} +2 -2
  14. package/dist/{background-compaction-queue-CAL4A2y7.js → background-compaction-queue-B9lmh8Ml.js} +3 -3
  15. package/dist/{briefs-4fyPJJEu.js → briefs-Dej7V0Bz.js} +11 -10
  16. package/dist/{catalog-runtime-BoOb5oUv.js → catalog-runtime-DpN0sWQ6.js} +2 -2
  17. package/dist/cli/chat.js +16 -16
  18. package/dist/cli/check.js +3 -3
  19. package/dist/cli/main.js +4 -4
  20. package/dist/cli/plugins.js +5 -5
  21. package/dist/cli/snapshot-create.js +4 -4
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +4 -4
  24. package/dist/{client-v_OVYuHZ.js → client-h2A2ZPzY.js} +7 -3
  25. package/dist/{config-o2jLRY5J.js → config-CusBFORe.js} +3 -3
  26. package/dist/{connections-RC4NXAx8.js → connections-C4h6mGha.js} +11 -11
  27. package/dist/{conversation-CZfyQvdm.js → conversation-DExTZw8B.js} +22 -7
  28. package/dist/conversation-pending-messages-Dgz6hrJs.js +173 -0
  29. package/dist/{conversation-privacy-C23M8KaD.js → conversation-privacy-2cm6OpNg.js} +1 -1
  30. package/dist/{credential-sync-Dd0WyNfF.js → credential-sync-DK06Jgt-.js} +17 -17
  31. package/dist/{db-BjLzDJCt.d.ts → db-Dsvk1Tp1.d.ts} +2 -2
  32. package/dist/{executor-CJfsD0VX.js → executor-Cmr0J8W3.js} +152 -7
  33. package/dist/instrumentation.d.ts +12 -0
  34. package/dist/instrumentation.js +56 -23
  35. package/dist/{logging-dFaXvBRK.js → logging-CGnh65_X.js} +2 -2
  36. package/dist/{media-DTAA8Qs_.js → media-Dq9_svfQ.js} +1 -1
  37. package/dist/{message-DSwxIZet.js → message-RpAnqHPY.js} +10 -10
  38. package/dist/nitro.d.ts +1 -1
  39. package/dist/nitro.js +18 -6
  40. package/dist/{oauth-callback-server-CDcuCp27.js → oauth-callback-server-BBnhVKuX.js} +2 -2
  41. package/dist/{oauth-relay-C6ZAyJgf.js → oauth-relay-D6xxVywK.js} +2 -2
  42. package/dist/{package-discovery-DJBompdd.js → package-discovery-DJhGdS4c.js} +1 -1
  43. package/dist/{plugins-DOm9Y6qI.js → plugins-HYh_JOdw.js} +1 -1
  44. package/dist/{projection-BTge9wrH.js → projection-C1MghKyI.js} +257 -137
  45. package/dist/{prompt-DDtCnlHP.js → prompt-BcHg-BMy.js} +2 -2
  46. package/dist/proxy-path-BHYoKZdq.js +15 -0
  47. package/dist/{queue-C37RbDVc.d.ts → queue-CZyYgPF0.d.ts} +1 -1
  48. package/dist/{registry-Cp6CNmtP.js → registry-DR7DjX9H.js} +4 -4
  49. package/dist/{reporting-window-DgHgwQB3.js → reporting-window-B-QP9zX1.js} +28 -2
  50. package/dist/{resolve-B_7h2cXx.js → resolve-0Ful4oDv.js} +4 -4
  51. package/dist/{result-5LBEfnLX.js → result-Dd9kCuQ-.js} +12 -12
  52. package/dist/{runner-C5-S4oq-.js → runner-yiY8gUUu.js} +11 -11
  53. package/dist/{sandbox-egress-signals-B4GehT1L.js → sandbox-egress-signals-BzQVHCMz.js} +1 -1
  54. package/dist/{schema-Tr484cCC.d.ts → schema-BkMmF552.d.ts} +1232 -222
  55. package/dist/{schema-B5fpczDw.js → schema-C5pEgfHc.js} +30 -70
  56. package/dist/sentry-BRTJqumy.js +51 -0
  57. package/dist/sentry-DrKC2NeM.d.ts +1 -0
  58. package/dist/sentry-route-name-BhwWnfqj.js +51 -0
  59. package/dist/{service-account-Cq_dLrZJ.js → service-account-Cu7HFLZQ.js} +3 -3
  60. package/dist/{service-account-BkEv20zf.js → service-account-PIMpWZHF.js} +3 -3
  61. package/dist/{session-stop-BsS4qFS2.js → session-stop-CDEMsNtv.js} +14 -15
  62. package/dist/{skills-M0BA0_s6.js → skills-B2xIoe0f.js} +5 -5
  63. package/dist/{spawn-BO3y7H4d.js → spawn-C0DySQRV.js} +3 -3
  64. package/dist/{stop-D5R82Wla.js → stop-Dj5-nrAo.js} +740 -285
  65. package/dist/{store-BGBzQWNf.js → store-Dlio-o6u.js} +6 -6
  66. package/dist/{store-CGJZTEVz.js → store-QzOfDwKA.js} +3 -3
  67. package/dist/{task-queue-UD27ei2U.js → task-queue-Cp1V_XW3.js} +4 -4
  68. package/dist/{task-runner-noxjOjkM.js → task-runner-CQkkUj3o.js} +23 -11
  69. package/dist/{thread-state-BSu6rM6p.js → thread-state-Bn87cfzE.js} +4 -4
  70. package/dist/{turn-failure-response-wahwyPrZ.js → turn-failure-response-CQebxByj.js} +8 -8
  71. package/dist/{turn-lifecycle-Bo4Trccw.js → turn-lifecycle-CJJsOhXB.js} +1 -1
  72. package/dist/{turn-session-routing-DnSaaEpn.js → turn-session-routing-bmG330Cf.js} +10 -11
  73. package/dist/{validation-B9-8iKyw.js → validation-D1wcf7hp.js} +2 -2
  74. package/dist/{version-C7HejFP2.js → version-BeHSXUK6.js} +1 -1
  75. package/dist/version.js +1 -1
  76. package/dist/{viewer-DLXajQZE.js → viewer-BZ0Hp5Nb.js} +6 -7
  77. package/dist/{work-DRGSlfia.js → work-BTcCIbWu.js} +12 -12
  78. package/dist/{worker-BGh5Dwc6.js → worker-D3fDK6zc.js} +7 -7
  79. package/migrations/0077_drop_agent_invocation_model_profile.sql +1 -0
  80. package/migrations/0078_plugin_conversation_index.sql +20 -0
  81. package/migrations/0079_conversation_event_author_index.sql +20 -0
  82. package/migrations/meta/0077_snapshot.json +4141 -0
  83. package/migrations/meta/0078_snapshot.json +4175 -0
  84. package/migrations/meta/0079_snapshot.json +4203 -0
  85. package/migrations/meta/_journal.json +21 -0
  86. package/package.json +4 -4
  87. package/dist/agent-invocations-D7c4BQGc.js +0 -182
  88. package/dist/common-Eu6sx09c.js +0 -107
  89. package/dist/rolldown-runtime-nwUcYXjP.js +0 -27
  90. package/dist/sentry-MDkYAVPV.js +0 -23
@@ -540,6 +540,27 @@
540
540
  "when": 1793812855460,
541
541
  "tag": "0076_conversation_auto_archive",
542
542
  "breakpoints": true
543
+ },
544
+ {
545
+ "idx": 77,
546
+ "version": "7",
547
+ "when": 1793840083445,
548
+ "tag": "0077_drop_agent_invocation_model_profile",
549
+ "breakpoints": true
550
+ },
551
+ {
552
+ "idx": 78,
553
+ "version": "7",
554
+ "when": 1793853487201,
555
+ "tag": "0078_plugin_conversation_index",
556
+ "breakpoints": true
557
+ },
558
+ {
559
+ "idx": 79,
560
+ "version": "7",
561
+ "when": 1793855917036,
562
+ "tag": "0079_conversation_event_author_index",
563
+ "breakpoints": true
543
564
  }
544
565
  ]
545
566
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.278.0",
3
+ "version": "0.280.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -91,7 +91,7 @@
91
91
  "sharp": "^0.35.3",
92
92
  "yaml": "^2.9.0",
93
93
  "zod": "^4.5.4",
94
- "@sentry/junior-plugin-api": "0.278.0"
94
+ "@sentry/junior-plugin-api": "0.280.0"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "bullmq": "^6.5.0",
@@ -126,9 +126,9 @@
126
126
  "typescript": "^7.0.2",
127
127
  "vercel": "^54.4.0",
128
128
  "vitest": "^4.1.12",
129
- "@sentry/junior-github": "0.278.0",
129
+ "@sentry/junior-github": "0.280.0",
130
130
  "@sentry/junior-testing": "0.0.0",
131
- "@sentry/junior-memory": "0.278.0"
131
+ "@sentry/junior-memory": "0.280.0"
132
132
  },
133
133
  "scripts": {
134
134
  "build": "tsdown",
@@ -1,182 +0,0 @@
1
- import { z } from "zod";
2
- import { getTableColumns, sql } from "drizzle-orm";
3
- import { boolean, index, integer, jsonb, pgTable, primaryKey, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
4
- // src/db/schema/timestamps.ts
5
- const timestamptz = (name) => timestamp(name, { withTimezone: true });
6
- // src/db/schema/destinations.ts
7
- const juniorDestinationKindSchema = z.enum([
8
- "channel",
9
- "dm",
10
- "group",
11
- "local_conversation",
12
- "thread",
13
- "web_session"
14
- ]);
15
- const juniorDestinations = pgTable("junior_destinations", {
16
- id: text("id").primaryKey(),
17
- provider: text("provider").notNull(),
18
- providerTenantId: text("provider_tenant_id").notNull().default(""),
19
- providerDestinationId: text("provider_destination_id").notNull(),
20
- kind: text("kind").$type().notNull(),
21
- parentDestinationId: text("parent_destination_id"),
22
- displayName: text("display_name"),
23
- visibility: text("visibility").$type().notNull().default("unknown"),
24
- metadata: jsonb("metadata_json"),
25
- createdAt: timestamptz("created_at").notNull(),
26
- updatedAt: timestamptz("updated_at").notNull()
27
- }, (table) => [uniqueIndex("junior_destinations_provider_destination_uidx").on(table.provider, table.providerTenantId, table.providerDestinationId), index("junior_destinations_provider_kind_idx").on(table.provider, table.kind)]);
28
- const juniorUsers = pgTable("junior_users", {
29
- id: text("id").primaryKey(),
30
- primaryEmail: text("primary_email").notNull(),
31
- primaryEmailNormalized: text("primary_email_normalized").notNull(),
32
- displayName: text("display_name"),
33
- timezone: text("timezone"),
34
- /** Text the user saved to change how Junior replies to them. */
35
- customization: text("customization"),
36
- /** Junior-wide admin role. Only the `junior admin` CLI changes it. */
37
- isAdmin: boolean("is_admin").notNull().default(false),
38
- /** Auto-archive this user's conversations when their work is done. */
39
- autoArchiveDefault: boolean("auto_archive_default").notNull().default(false),
40
- /** Hours done work and the conversation stay quiet before auto-archive. */
41
- autoArchiveGraceHours: integer("auto_archive_grace_hours").notNull().default(24),
42
- createdAt: timestamptz("created_at").notNull(),
43
- updatedAt: timestamptz("updated_at").notNull()
44
- }, (table) => [uniqueIndex("junior_users_primary_email_normalized_uidx").on(table.primaryEmailNormalized)]);
45
- // src/db/schema/identities.ts
46
- const juniorIdentities = pgTable("junior_identities", {
47
- id: text("id").primaryKey(),
48
- kind: text("kind").$type().notNull(),
49
- provider: text("provider").notNull(),
50
- providerTenantId: text("provider_tenant_id").notNull().default(""),
51
- providerSubjectId: text("provider_subject_id").notNull(),
52
- displayName: text("display_name"),
53
- handle: text("handle"),
54
- email: text("email"),
55
- avatarUrl: text("avatar_url"),
56
- metadata: jsonb("metadata_json"),
57
- createdAt: timestamptz("created_at").notNull(),
58
- updatedAt: timestamptz("updated_at").notNull(),
59
- userId: text("user_id").references(() => juniorUsers.id),
60
- emailNormalized: text("email_normalized"),
61
- emailVerified: boolean("email_verified").notNull().default(false),
62
- signedInAt: timestamptz("signed_in_at")
63
- }, (table) => [
64
- uniqueIndex("junior_identities_provider_subject_uidx").on(table.provider, table.providerTenantId, table.providerSubjectId),
65
- index("junior_identities_user_idx").on(table.userId),
66
- index("junior_identities_verified_email_idx").on(table.emailNormalized).where(sql`${table.emailVerified} = true AND ${table.emailNormalized} IS NOT NULL`),
67
- index("junior_identities_kind_provider_idx").on(table.kind, table.provider)
68
- ]);
69
- // src/db/schema/conversations.ts
70
- const juniorConversations = pgTable("junior_conversations", {
71
- conversationId: text("conversation_id").primaryKey(),
72
- schemaVersion: integer("schema_version").notNull().default(1),
73
- source: text("source").$type(),
74
- /** Structured session Source locator; set-once on the conversation root. */
75
- sessionSource: jsonb("source_json").$type(),
76
- /** Complete Location associated with this Conversation. */
77
- location: jsonb("location_json").$type(),
78
- destinationId: text("destination_id").references(() => juniorDestinations.id),
79
- destination: jsonb("destination_json").$type(),
80
- actorIdentityId: text("actor_identity_id").references(() => juniorIdentities.id),
81
- creatorIdentityId: text("creator_identity_id").references(() => juniorIdentities.id),
82
- credentialSubjectIdentityId: text("credential_subject_identity_id").references(() => juniorIdentities.id),
83
- actor: jsonb("actor_json").$type(),
84
- channelName: text("channel_name"),
85
- title: text("title"),
86
- createdAt: timestamptz("created_at").notNull(),
87
- lastActivityAt: timestamptz("last_activity_at").notNull(),
88
- updatedAt: timestamptz("updated_at").notNull(),
89
- executionUpdatedAt: timestamptz("execution_updated_at"),
90
- executionStatus: text("execution_status").$type().notNull(),
91
- runId: text("run_id"),
92
- lastCheckpointAt: timestamptz("last_checkpoint_at"),
93
- lastEnqueuedAt: timestamptz("last_enqueued_at"),
94
- parentConversationId: text("parent_conversation_id").references(() => juniorConversations.conversationId),
95
- forkedFromConversationId: text("forked_from_conversation_id").references(() => juniorConversations.conversationId, { onDelete: "set null" }),
96
- quickQuestionAt: timestamptz("quick_question_at"),
97
- rootConversationId: text("root_conversation_id").references(() => juniorConversations.conversationId),
98
- transcriptPurgedAt: timestamptz("transcript_purged_at"),
99
- /** Latest session stop. Automated input received before it is dropped. */
100
- stoppedAt: timestamptz("stopped_at"),
101
- durationMs: integer("duration_ms").notNull().default(0),
102
- usage: jsonb("usage_json").$type(),
103
- executionDurationMs: integer("execution_duration_ms").notNull().default(0),
104
- executionUsage: jsonb("execution_usage_json").$type(),
105
- metricRunId: text("metric_run_id"),
106
- detailVersion: integer("detail_version").notNull().default(0),
107
- legacyArchivedAt: timestamptz("archived_at")
108
- }, (table) => [
109
- index("junior_conversations_last_activity_idx").on(table.lastActivityAt.desc(), table.conversationId),
110
- index("junior_conversations_active_idx").using("btree", sql`coalesce(${table.executionUpdatedAt}, ${table.updatedAt})`, table.conversationId).where(sql`${table.executionStatus} <> 'idle'`),
111
- index("junior_conversations_destination_activity_idx").on(table.destinationId, table.lastActivityAt.desc()),
112
- index("junior_conversations_actor_activity_idx").on(table.actorIdentityId, table.lastActivityAt.desc()),
113
- index("junior_conversations_parent_idx").on(table.parentConversationId),
114
- index("junior_conversations_forked_from_idx").on(table.forkedFromConversationId),
115
- index("junior_conversations_root_idx").on(table.rootConversationId)
116
- ]);
117
- /** Select runtime conversation fields without reading the legacy archive column. */
118
- function conversationReadColumns() {
119
- const { legacyArchivedAt, ...columns } = getTableColumns(juniorConversations);
120
- return columns;
121
- }
122
- // src/db/schema/agent-invocations.ts
123
- const AGENT_INVOCATION_STATUSES = [
124
- "pending",
125
- "running",
126
- "paused",
127
- "blocked",
128
- "completed",
129
- "failed",
130
- "stopped"
131
- ];
132
- const AGENT_INVOCATION_MAILBOX_STATUSES = ["pending", "appended"];
133
- /**
134
- * Parent mailbox append state. Only terminal invocations have a value.
135
- * `replaced` means the child still had open work, so a later agent invocation
136
- * on the same child sends the result instead. `skipped` means a stop ended
137
- * the work, so the result is never used. `steered` means the agent invocation
138
- * that was running read the input as a steering message, so its result covers
139
- * this one.
140
- */
141
- const AGENT_INVOCATION_PARENT_MAILBOX_STATUSES = [
142
- "pending",
143
- "appended",
144
- "replaced",
145
- "skipped",
146
- "steered"
147
- ];
148
- const juniorAgentBindings = pgTable("junior_agent_bindings", {
149
- parentConversationId: text("parent_conversation_id").notNull().references(() => juniorConversations.conversationId),
150
- name: text("name").notNull(),
151
- childConversationId: text("child_conversation_id").notNull().references(() => juniorConversations.conversationId)
152
- }, (table) => [primaryKey({ columns: [table.parentConversationId, table.name] }), uniqueIndex("junior_agent_bindings_child_idx").on(table.childConversationId)]);
153
- const juniorAgentInvocations = pgTable("junior_agent_invocations", {
154
- invocationId: text("invocation_id").primaryKey(),
155
- parentConversationId: text("parent_conversation_id").notNull().references(() => juniorConversations.conversationId),
156
- childConversationId: text("child_conversation_id").notNull().references(() => juniorConversations.conversationId),
157
- agentName: text("agent_name"),
158
- input: text("input").notNull(),
159
- title: text("title"),
160
- actor: jsonb("actor_json").$type().notNull(),
161
- credentialContext: jsonb("credential_context_json").$type(),
162
- source: jsonb("source_json").$type().notNull(),
163
- destination: jsonb("destination_json").$type().notNull(),
164
- destinationVisibility: text("destination_visibility").$type(),
165
- agentType: text("agent_type").$type(),
166
- modelProfile: text("model_profile"),
167
- reasoningLevel: text("reasoning_level").$type(),
168
- parentToolCallId: text("parent_tool_call_id"),
169
- status: text("status").$type().notNull(),
170
- mailboxStatus: text("mailbox_status").$type().notNull(),
171
- parentMailboxStatus: text("parent_mailbox_status").$type(),
172
- result: text("result"),
173
- errorMessage: text("error_message"),
174
- createdAt: timestamptz("created_at").notNull(),
175
- updatedAt: timestamptz("updated_at").notNull(),
176
- terminalAt: timestamptz("terminal_at")
177
- }, (table) => [
178
- index("junior_agent_invocations_child_idx").on(table.childConversationId),
179
- index("junior_agent_invocations_mailbox_idx").on(table.mailboxStatus, table.createdAt),
180
- index("junior_agent_invocations_parent_mailbox_idx").on(table.parentMailboxStatus, table.terminalAt)
181
- ]);
182
- export { juniorAgentInvocations as a, juniorIdentities as c, juniorDestinations as d, timestamptz as f, juniorAgentBindings as i, juniorUsers as l, AGENT_INVOCATION_PARENT_MAILBOX_STATUSES as n, conversationReadColumns as o, AGENT_INVOCATION_STATUSES as r, juniorConversations as s, AGENT_INVOCATION_MAILBOX_STATUSES as t, juniorDestinationKindSchema as u };
@@ -1,107 +0,0 @@
1
- import { z } from "zod";
2
- // src/reporting-schema.ts
3
- const healthReportSchema = z.object({
4
- status: z.literal("ok"),
5
- service: z.string(),
6
- timestamp: z.string()
7
- }).strict();
8
- const pluginSchema = z.object({
9
- configKeys: z.array(z.string()),
10
- description: z.string(),
11
- displayName: z.string(),
12
- name: z.string()
13
- }).strict();
14
- const pluginsSchema = z.array(pluginSchema);
15
- const skillReportSchema = z.object({
16
- name: z.string(),
17
- pluginProvider: z.string().optional()
18
- }).strict();
19
- const skillReportsSchema = z.array(skillReportSchema);
20
- const pluginPackageContentItemReportSchema = z.object({
21
- dir: z.string(),
22
- hasMigrationsDir: z.boolean(),
23
- hasSkillsDir: z.boolean(),
24
- packageName: z.string()
25
- }).strict();
26
- const pluginPackageContentReportSchema = z.object({
27
- packageNames: z.array(z.string()),
28
- packages: z.array(pluginPackageContentItemReportSchema),
29
- manifestRoots: z.array(z.string()),
30
- skillRoots: z.array(z.string()),
31
- tracingIncludes: z.array(z.string())
32
- }).strict();
33
- const runtimeInfoReportSchema = z.object({
34
- cwd: z.string(),
35
- homeDir: z.string(),
36
- descriptionText: z.string().optional(),
37
- providers: z.array(z.string()),
38
- skills: z.array(skillReportSchema),
39
- packagedContent: pluginPackageContentReportSchema
40
- }).strict();
41
- const pluginOperationalToneSchema = z.enum([
42
- "danger",
43
- "good",
44
- "neutral",
45
- "warning"
46
- ]);
47
- const pluginOperationalMetricSchema = z.object({
48
- label: z.string(),
49
- tone: pluginOperationalToneSchema.optional(),
50
- value: z.string()
51
- }).strict();
52
- const pluginOperationalFieldSchema = z.object({
53
- key: z.string(),
54
- label: z.string()
55
- }).strict();
56
- const pluginOperationalRecordSchema = z.object({
57
- id: z.string(),
58
- tone: pluginOperationalToneSchema.optional(),
59
- values: z.record(z.string(), z.string())
60
- }).strict();
61
- const pluginOperationalRecordSetSchema = z.object({
62
- fields: z.array(pluginOperationalFieldSchema).optional(),
63
- emptyText: z.string().optional(),
64
- records: z.array(pluginOperationalRecordSchema).optional(),
65
- title: z.string()
66
- }).strict();
67
- const pluginOperationalBarChartWidgetSchema = z.object({
68
- categories: z.array(z.object({
69
- id: z.string().min(1),
70
- label: z.string().min(1),
71
- values: z.record(z.string(), z.number().finite())
72
- }).strict()).max(100),
73
- description: z.string().optional(),
74
- emptyText: z.string().optional(),
75
- id: z.string().min(1),
76
- series: z.array(z.object({
77
- format: z.literal("usd").optional(),
78
- key: z.string().min(1),
79
- label: z.string().min(1),
80
- tone: pluginOperationalToneSchema.optional()
81
- }).strict()).min(1).max(8),
82
- timeRangeDays: z.array(z.union([
83
- z.literal(1),
84
- z.literal(7),
85
- z.literal(30),
86
- z.literal(90)
87
- ])).min(1).max(4).optional(),
88
- title: z.string().min(1),
89
- type: z.literal("bar_chart")
90
- }).strict();
91
- const pluginOperationalReportSchema = z.object({
92
- generatedAt: z.string().optional(),
93
- metrics: z.array(pluginOperationalMetricSchema).optional(),
94
- recordSets: z.array(pluginOperationalRecordSetSchema).optional(),
95
- title: z.string().optional(),
96
- pluginName: z.string(),
97
- widgets: z.array(pluginOperationalBarChartWidgetSchema).max(12).optional()
98
- }).strict();
99
- const pluginOperationalReportFeedSchema = z.object({
100
- generatedAt: z.string(),
101
- reports: z.array(pluginOperationalReportSchema),
102
- source: z.literal("plugins")
103
- }).strict();
104
- // src/api/schema/common.ts
105
- /** Stable error body returned by Junior-owned REST endpoints. */
106
- const apiErrorSchema = z.object({ error: z.string().min(1) }).strict();
107
- export { pluginPackageContentItemReportSchema as a, pluginsSchema as c, skillReportsSchema as d, pluginOperationalReportSchema as i, runtimeInfoReportSchema as l, healthReportSchema as n, pluginPackageContentReportSchema as o, pluginOperationalReportFeedSchema as r, pluginSchema as s, apiErrorSchema as t, skillReportSchema as u };
@@ -1,27 +0,0 @@
1
- import "node:module";
2
- // \0rolldown/runtime.js
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __exportAll = (all, no_symbols) => {
8
- let target = {};
9
- for (var name in all) __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true
12
- });
13
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
14
- return target;
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18
- key = keys[i];
19
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
20
- get: ((k) => from[k]).bind(null, key),
21
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
22
- });
23
- }
24
- return to;
25
- };
26
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
- export { __reExport as n, __exportAll as t };
@@ -1,23 +0,0 @@
1
- import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { captureException, captureMessage, continueTrace, flush, getActiveSpan, getClient, getGlobalScope, getTraceData, init, logger, setTag, setUser, spanToJSON, startInactiveSpan, startSpan, withActiveSpan, withScope } from "@sentry/node";
3
- // src/chat/sentry.ts
4
- var sentry_exports = /* @__PURE__ */ __exportAll({
5
- captureException: () => captureException,
6
- captureMessage: () => captureMessage,
7
- continueTrace: () => continueTrace,
8
- flush: () => flush,
9
- getActiveSpan: () => getActiveSpan,
10
- getClient: () => getClient,
11
- getGlobalScope: () => getGlobalScope,
12
- getTraceData: () => getTraceData,
13
- init: () => init,
14
- logger: () => logger,
15
- setTag: () => setTag,
16
- setUser: () => setUser,
17
- spanToJSON: () => spanToJSON,
18
- startInactiveSpan: () => startInactiveSpan,
19
- startSpan: () => startSpan,
20
- withActiveSpan: () => withActiveSpan,
21
- withScope: () => withScope
22
- });
23
- export { withScope as _, getClient as a, init as c, setTag as d, setUser as f, withActiveSpan as g, startSpan as h, getActiveSpan as i, logger as l, startInactiveSpan as m, captureMessage as n, getGlobalScope as o, spanToJSON as p, continueTrace as r, getTraceData as s, captureException as t, sentry_exports as u };