@rudderhq/cli 0.1.0-canary.31 → 0.1.0-canary.32

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/index.js CHANGED
@@ -1501,7 +1501,8 @@ var init_issue = __esm({
1501
1501
  approvalId: z13.string().uuid()
1502
1502
  });
1503
1503
  createIssueAttachmentMetadataSchema = z13.object({
1504
- issueCommentId: z13.string().uuid().optional().nullable()
1504
+ issueCommentId: z13.string().uuid().optional().nullable(),
1505
+ usage: z13.enum(["issue", "description_inline", "document_inline", "comment_inline", "comment_attachment"]).optional()
1505
1506
  });
1506
1507
  ISSUE_DOCUMENT_FORMATS = ["markdown"];
1507
1508
  issueDocumentFormatSchema = z13.enum(ISSUE_DOCUMENT_FORMATS);
@@ -2314,6 +2315,13 @@ var init_project_url_key = __esm({
2314
2315
  }
2315
2316
  });
2316
2317
 
2318
+ // ../packages/shared/src/messenger-preview.ts
2319
+ var init_messenger_preview = __esm({
2320
+ "../packages/shared/src/messenger-preview.ts"() {
2321
+ "use strict";
2322
+ }
2323
+ });
2324
+
2317
2325
  // ../packages/shared/src/organization-skill-reference.ts
2318
2326
  var RUDDER_BUNDLED_SKILL_SLUGS, RUDDER_BUNDLED_SKILL_KEYS;
2319
2327
  var init_organization_skill_reference = __esm({
@@ -2511,6 +2519,7 @@ var init_src = __esm({
2511
2519
  init_agent_url_key();
2512
2520
  init_organization_url_key();
2513
2521
  init_project_url_key();
2522
+ init_messenger_preview();
2514
2523
  init_organization_skill_reference();
2515
2524
  init_project_mentions();
2516
2525
  init_config_schema();
@@ -5556,7 +5565,7 @@ var init_messenger_thread_user_states = __esm({
5556
5565
  });
5557
5566
 
5558
5567
  // ../packages/db/src/schema/issue_attachments.ts
5559
- import { pgTable as pgTable50, uuid as uuid48, timestamp as timestamp50, index as index45, uniqueIndex as uniqueIndex29 } from "drizzle-orm/pg-core";
5568
+ import { pgTable as pgTable50, uuid as uuid48, timestamp as timestamp50, index as index45, uniqueIndex as uniqueIndex29, text as text51 } from "drizzle-orm/pg-core";
5560
5569
  var issueAttachments;
5561
5570
  var init_issue_attachments = __esm({
5562
5571
  "../packages/db/src/schema/issue_attachments.ts"() {
@@ -5573,12 +5582,14 @@ var init_issue_attachments = __esm({
5573
5582
  issueId: uuid48("issue_id").notNull().references(() => issues.id, { onDelete: "cascade" }),
5574
5583
  assetId: uuid48("asset_id").notNull().references(() => assets.id, { onDelete: "cascade" }),
5575
5584
  issueCommentId: uuid48("issue_comment_id").references(() => issueComments.id, { onDelete: "set null" }),
5585
+ usage: text51("usage").notNull().default("issue"),
5576
5586
  createdAt: timestamp50("created_at", { withTimezone: true }).notNull().defaultNow(),
5577
5587
  updatedAt: timestamp50("updated_at", { withTimezone: true }).notNull().defaultNow()
5578
5588
  },
5579
5589
  (table) => ({
5580
5590
  companyIssueIdx: index45("issue_attachments_company_issue_idx").on(table.orgId, table.issueId),
5581
5591
  issueCommentIdx: index45("issue_attachments_issue_comment_idx").on(table.issueCommentId),
5592
+ usageIdx: index45("issue_attachments_usage_idx").on(table.usage),
5582
5593
  assetUq: uniqueIndex29("issue_attachments_asset_uq").on(table.assetId)
5583
5594
  })
5584
5595
  );
@@ -5586,7 +5597,7 @@ var init_issue_attachments = __esm({
5586
5597
  });
5587
5598
 
5588
5599
  // ../packages/db/src/schema/documents.ts
5589
- import { pgTable as pgTable51, uuid as uuid49, text as text51, integer as integer15, timestamp as timestamp51, index as index46 } from "drizzle-orm/pg-core";
5600
+ import { pgTable as pgTable51, uuid as uuid49, text as text52, integer as integer15, timestamp as timestamp51, index as index46 } from "drizzle-orm/pg-core";
5590
5601
  var documents;
5591
5602
  var init_documents = __esm({
5592
5603
  "../packages/db/src/schema/documents.ts"() {
@@ -5598,15 +5609,15 @@ var init_documents = __esm({
5598
5609
  {
5599
5610
  id: uuid49("id").primaryKey().defaultRandom(),
5600
5611
  orgId: uuid49("org_id").notNull().references(() => organizations.id),
5601
- title: text51("title"),
5602
- format: text51("format").notNull().default("markdown"),
5603
- latestBody: text51("latest_body").notNull(),
5612
+ title: text52("title"),
5613
+ format: text52("format").notNull().default("markdown"),
5614
+ latestBody: text52("latest_body").notNull(),
5604
5615
  latestRevisionId: uuid49("latest_revision_id"),
5605
5616
  latestRevisionNumber: integer15("latest_revision_number").notNull().default(1),
5606
5617
  createdByAgentId: uuid49("created_by_agent_id").references(() => agents.id, { onDelete: "set null" }),
5607
- createdByUserId: text51("created_by_user_id"),
5618
+ createdByUserId: text52("created_by_user_id"),
5608
5619
  updatedByAgentId: uuid49("updated_by_agent_id").references(() => agents.id, { onDelete: "set null" }),
5609
- updatedByUserId: text51("updated_by_user_id"),
5620
+ updatedByUserId: text52("updated_by_user_id"),
5610
5621
  createdAt: timestamp51("created_at", { withTimezone: true }).notNull().defaultNow(),
5611
5622
  updatedAt: timestamp51("updated_at", { withTimezone: true }).notNull().defaultNow()
5612
5623
  },
@@ -5619,7 +5630,7 @@ var init_documents = __esm({
5619
5630
  });
5620
5631
 
5621
5632
  // ../packages/db/src/schema/document_revisions.ts
5622
- import { pgTable as pgTable52, uuid as uuid50, text as text52, integer as integer16, timestamp as timestamp52, index as index47, uniqueIndex as uniqueIndex30 } from "drizzle-orm/pg-core";
5633
+ import { pgTable as pgTable52, uuid as uuid50, text as text53, integer as integer16, timestamp as timestamp52, index as index47, uniqueIndex as uniqueIndex30 } from "drizzle-orm/pg-core";
5623
5634
  var documentRevisions;
5624
5635
  var init_document_revisions = __esm({
5625
5636
  "../packages/db/src/schema/document_revisions.ts"() {
@@ -5634,10 +5645,10 @@ var init_document_revisions = __esm({
5634
5645
  orgId: uuid50("org_id").notNull().references(() => organizations.id),
5635
5646
  documentId: uuid50("document_id").notNull().references(() => documents.id, { onDelete: "cascade" }),
5636
5647
  revisionNumber: integer16("revision_number").notNull(),
5637
- body: text52("body").notNull(),
5638
- changeSummary: text52("change_summary"),
5648
+ body: text53("body").notNull(),
5649
+ changeSummary: text53("change_summary"),
5639
5650
  createdByAgentId: uuid50("created_by_agent_id").references(() => agents.id, { onDelete: "set null" }),
5640
- createdByUserId: text52("created_by_user_id"),
5651
+ createdByUserId: text53("created_by_user_id"),
5641
5652
  createdAt: timestamp52("created_at", { withTimezone: true }).notNull().defaultNow()
5642
5653
  },
5643
5654
  (table) => ({
@@ -5656,7 +5667,7 @@ var init_document_revisions = __esm({
5656
5667
  });
5657
5668
 
5658
5669
  // ../packages/db/src/schema/issue_documents.ts
5659
- import { pgTable as pgTable53, uuid as uuid51, text as text53, timestamp as timestamp53, index as index48, uniqueIndex as uniqueIndex31 } from "drizzle-orm/pg-core";
5670
+ import { pgTable as pgTable53, uuid as uuid51, text as text54, timestamp as timestamp53, index as index48, uniqueIndex as uniqueIndex31 } from "drizzle-orm/pg-core";
5660
5671
  var issueDocuments;
5661
5672
  var init_issue_documents = __esm({
5662
5673
  "../packages/db/src/schema/issue_documents.ts"() {
@@ -5671,7 +5682,7 @@ var init_issue_documents = __esm({
5671
5682
  orgId: uuid51("org_id").notNull().references(() => organizations.id),
5672
5683
  issueId: uuid51("issue_id").notNull().references(() => issues.id, { onDelete: "cascade" }),
5673
5684
  documentId: uuid51("document_id").notNull().references(() => documents.id, { onDelete: "cascade" }),
5674
- key: text53("key").notNull(),
5685
+ key: text54("key").notNull(),
5675
5686
  createdAt: timestamp53("created_at", { withTimezone: true }).notNull().defaultNow(),
5676
5687
  updatedAt: timestamp53("updated_at", { withTimezone: true }).notNull().defaultNow()
5677
5688
  },
@@ -5693,7 +5704,7 @@ var init_issue_documents = __esm({
5693
5704
  });
5694
5705
 
5695
5706
  // ../packages/db/src/schema/heartbeat_run_events.ts
5696
- import { pgTable as pgTable54, uuid as uuid52, text as text54, timestamp as timestamp54, integer as integer17, jsonb as jsonb24, index as index49, bigserial } from "drizzle-orm/pg-core";
5707
+ import { pgTable as pgTable54, uuid as uuid52, text as text55, timestamp as timestamp54, integer as integer17, jsonb as jsonb24, index as index49, bigserial } from "drizzle-orm/pg-core";
5697
5708
  var heartbeatRunEvents;
5698
5709
  var init_heartbeat_run_events = __esm({
5699
5710
  "../packages/db/src/schema/heartbeat_run_events.ts"() {
@@ -5709,11 +5720,11 @@ var init_heartbeat_run_events = __esm({
5709
5720
  runId: uuid52("run_id").notNull().references(() => heartbeatRuns.id),
5710
5721
  agentId: uuid52("agent_id").notNull().references(() => agents.id),
5711
5722
  seq: integer17("seq").notNull(),
5712
- eventType: text54("event_type").notNull(),
5713
- stream: text54("stream"),
5714
- level: text54("level"),
5715
- color: text54("color"),
5716
- message: text54("message"),
5723
+ eventType: text55("event_type").notNull(),
5724
+ stream: text55("stream"),
5725
+ level: text55("level"),
5726
+ color: text55("color"),
5727
+ message: text55("message"),
5717
5728
  payload: jsonb24("payload").$type(),
5718
5729
  createdAt: timestamp54("created_at", { withTimezone: true }).notNull().defaultNow()
5719
5730
  },
@@ -5727,7 +5738,7 @@ var init_heartbeat_run_events = __esm({
5727
5738
  });
5728
5739
 
5729
5740
  // ../packages/db/src/schema/cost_events.ts
5730
- import { pgTable as pgTable55, uuid as uuid53, text as text55, timestamp as timestamp55, integer as integer18, index as index50 } from "drizzle-orm/pg-core";
5741
+ import { pgTable as pgTable55, uuid as uuid53, text as text56, timestamp as timestamp55, integer as integer18, index as index50 } from "drizzle-orm/pg-core";
5731
5742
  var costEvents;
5732
5743
  var init_cost_events = __esm({
5733
5744
  "../packages/db/src/schema/cost_events.ts"() {
@@ -5748,11 +5759,11 @@ var init_cost_events = __esm({
5748
5759
  projectId: uuid53("project_id").references(() => projects.id),
5749
5760
  goalId: uuid53("goal_id").references(() => goals.id),
5750
5761
  heartbeatRunId: uuid53("heartbeat_run_id").references(() => heartbeatRuns.id),
5751
- billingCode: text55("billing_code"),
5752
- provider: text55("provider").notNull(),
5753
- biller: text55("biller").notNull().default("unknown"),
5754
- billingType: text55("billing_type").notNull().default("unknown"),
5755
- model: text55("model").notNull(),
5762
+ billingCode: text56("billing_code"),
5763
+ provider: text56("provider").notNull(),
5764
+ biller: text56("biller").notNull().default("unknown"),
5765
+ billingType: text56("billing_type").notNull().default("unknown"),
5766
+ model: text56("model").notNull(),
5756
5767
  inputTokens: integer18("input_tokens").notNull().default(0),
5757
5768
  cachedInputTokens: integer18("cached_input_tokens").notNull().default(0),
5758
5769
  outputTokens: integer18("output_tokens").notNull().default(0),
@@ -5787,7 +5798,7 @@ var init_cost_events = __esm({
5787
5798
  });
5788
5799
 
5789
5800
  // ../packages/db/src/schema/finance_events.ts
5790
- import { pgTable as pgTable56, uuid as uuid54, text as text56, timestamp as timestamp56, integer as integer19, index as index51, boolean as boolean10, jsonb as jsonb25 } from "drizzle-orm/pg-core";
5801
+ import { pgTable as pgTable56, uuid as uuid54, text as text57, timestamp as timestamp56, integer as integer19, index as index51, boolean as boolean10, jsonb as jsonb25 } from "drizzle-orm/pg-core";
5791
5802
  var financeEvents;
5792
5803
  var init_finance_events = __esm({
5793
5804
  "../packages/db/src/schema/finance_events.ts"() {
@@ -5810,22 +5821,22 @@ var init_finance_events = __esm({
5810
5821
  goalId: uuid54("goal_id").references(() => goals.id),
5811
5822
  heartbeatRunId: uuid54("heartbeat_run_id").references(() => heartbeatRuns.id),
5812
5823
  costEventId: uuid54("cost_event_id").references(() => costEvents.id),
5813
- billingCode: text56("billing_code"),
5814
- description: text56("description"),
5815
- eventKind: text56("event_kind").notNull(),
5816
- direction: text56("direction").notNull().default("debit"),
5817
- biller: text56("biller").notNull(),
5818
- provider: text56("provider"),
5819
- executionAgentRuntimeType: text56("execution_agent_runtime_type"),
5820
- pricingTier: text56("pricing_tier"),
5821
- region: text56("region"),
5822
- model: text56("model"),
5824
+ billingCode: text57("billing_code"),
5825
+ description: text57("description"),
5826
+ eventKind: text57("event_kind").notNull(),
5827
+ direction: text57("direction").notNull().default("debit"),
5828
+ biller: text57("biller").notNull(),
5829
+ provider: text57("provider"),
5830
+ executionAgentRuntimeType: text57("execution_agent_runtime_type"),
5831
+ pricingTier: text57("pricing_tier"),
5832
+ region: text57("region"),
5833
+ model: text57("model"),
5823
5834
  quantity: integer19("quantity"),
5824
- unit: text56("unit"),
5835
+ unit: text57("unit"),
5825
5836
  amountCents: integer19("amount_cents").notNull(),
5826
- currency: text56("currency").notNull().default("USD"),
5837
+ currency: text57("currency").notNull().default("USD"),
5827
5838
  estimated: boolean10("estimated").notNull().default(false),
5828
- externalInvoiceId: text56("external_invoice_id"),
5839
+ externalInvoiceId: text57("external_invoice_id"),
5829
5840
  metadataJson: jsonb25("metadata_json").$type(),
5830
5841
  occurredAt: timestamp56("occurred_at", { withTimezone: true }).notNull(),
5831
5842
  createdAt: timestamp56("created_at", { withTimezone: true }).notNull().defaultNow()
@@ -5861,7 +5872,7 @@ var init_finance_events = __esm({
5861
5872
  });
5862
5873
 
5863
5874
  // ../packages/db/src/schema/approval_comments.ts
5864
- import { pgTable as pgTable57, uuid as uuid55, text as text57, timestamp as timestamp57, index as index52 } from "drizzle-orm/pg-core";
5875
+ import { pgTable as pgTable57, uuid as uuid55, text as text58, timestamp as timestamp57, index as index52 } from "drizzle-orm/pg-core";
5865
5876
  var approvalComments;
5866
5877
  var init_approval_comments = __esm({
5867
5878
  "../packages/db/src/schema/approval_comments.ts"() {
@@ -5876,8 +5887,8 @@ var init_approval_comments = __esm({
5876
5887
  orgId: uuid55("org_id").notNull().references(() => organizations.id),
5877
5888
  approvalId: uuid55("approval_id").notNull().references(() => approvals.id),
5878
5889
  authorAgentId: uuid55("author_agent_id").references(() => agents.id),
5879
- authorUserId: text57("author_user_id"),
5880
- body: text57("body").notNull(),
5890
+ authorUserId: text58("author_user_id"),
5891
+ body: text58("body").notNull(),
5881
5892
  createdAt: timestamp57("created_at", { withTimezone: true }).notNull().defaultNow(),
5882
5893
  updatedAt: timestamp57("updated_at", { withTimezone: true }).notNull().defaultNow()
5883
5894
  },
@@ -5894,7 +5905,7 @@ var init_approval_comments = __esm({
5894
5905
  });
5895
5906
 
5896
5907
  // ../packages/db/src/schema/activity_log.ts
5897
- import { pgTable as pgTable58, uuid as uuid56, text as text58, timestamp as timestamp58, jsonb as jsonb26, index as index53 } from "drizzle-orm/pg-core";
5908
+ import { pgTable as pgTable58, uuid as uuid56, text as text59, timestamp as timestamp58, jsonb as jsonb26, index as index53 } from "drizzle-orm/pg-core";
5898
5909
  var activityLog;
5899
5910
  var init_activity_log = __esm({
5900
5911
  "../packages/db/src/schema/activity_log.ts"() {
@@ -5907,11 +5918,11 @@ var init_activity_log = __esm({
5907
5918
  {
5908
5919
  id: uuid56("id").primaryKey().defaultRandom(),
5909
5920
  orgId: uuid56("org_id").notNull().references(() => organizations.id),
5910
- actorType: text58("actor_type").notNull().default("system"),
5911
- actorId: text58("actor_id").notNull(),
5912
- action: text58("action").notNull(),
5913
- entityType: text58("entity_type").notNull(),
5914
- entityId: text58("entity_id").notNull(),
5921
+ actorType: text59("actor_type").notNull().default("system"),
5922
+ actorId: text59("actor_id").notNull(),
5923
+ action: text59("action").notNull(),
5924
+ entityType: text59("entity_type").notNull(),
5925
+ entityId: text59("entity_id").notNull(),
5915
5926
  agentId: uuid56("agent_id").references(() => agents.id),
5916
5927
  runId: uuid56("run_id").references(() => heartbeatRuns.id),
5917
5928
  details: jsonb26("details").$type(),
@@ -5927,7 +5938,7 @@ var init_activity_log = __esm({
5927
5938
  });
5928
5939
 
5929
5940
  // ../packages/db/src/schema/organization_secret_versions.ts
5930
- import { pgTable as pgTable59, uuid as uuid57, text as text59, timestamp as timestamp59, integer as integer20, jsonb as jsonb27, index as index54, uniqueIndex as uniqueIndex32 } from "drizzle-orm/pg-core";
5941
+ import { pgTable as pgTable59, uuid as uuid57, text as text60, timestamp as timestamp59, integer as integer20, jsonb as jsonb27, index as index54, uniqueIndex as uniqueIndex32 } from "drizzle-orm/pg-core";
5931
5942
  var organizationSecretVersions;
5932
5943
  var init_organization_secret_versions = __esm({
5933
5944
  "../packages/db/src/schema/organization_secret_versions.ts"() {
@@ -5941,9 +5952,9 @@ var init_organization_secret_versions = __esm({
5941
5952
  secretId: uuid57("secret_id").notNull().references(() => organizationSecrets.id, { onDelete: "cascade" }),
5942
5953
  version: integer20("version").notNull(),
5943
5954
  material: jsonb27("material").$type().notNull(),
5944
- valueSha256: text59("value_sha256").notNull(),
5955
+ valueSha256: text60("value_sha256").notNull(),
5945
5956
  createdByAgentId: uuid57("created_by_agent_id").references(() => agents.id, { onDelete: "set null" }),
5946
- createdByUserId: text59("created_by_user_id"),
5957
+ createdByUserId: text60("created_by_user_id"),
5947
5958
  createdAt: timestamp59("created_at", { withTimezone: true }).notNull().defaultNow(),
5948
5959
  revokedAt: timestamp59("revoked_at", { withTimezone: true })
5949
5960
  },
@@ -5960,7 +5971,7 @@ var init_organization_secret_versions = __esm({
5960
5971
  import {
5961
5972
  pgTable as pgTable60,
5962
5973
  uuid as uuid58,
5963
- text as text60,
5974
+ text as text61,
5964
5975
  timestamp as timestamp60,
5965
5976
  jsonb as jsonb28,
5966
5977
  index as index55,
@@ -5976,16 +5987,16 @@ var init_organization_skills = __esm({
5976
5987
  {
5977
5988
  id: uuid58("id").primaryKey().defaultRandom(),
5978
5989
  orgId: uuid58("org_id").notNull().references(() => organizations.id),
5979
- key: text60("key").notNull(),
5980
- slug: text60("slug").notNull(),
5981
- name: text60("name").notNull(),
5982
- description: text60("description"),
5983
- markdown: text60("markdown").notNull(),
5984
- sourceType: text60("source_type").notNull().default("local_path"),
5985
- sourceLocator: text60("source_locator"),
5986
- sourceRef: text60("source_ref"),
5987
- trustLevel: text60("trust_level").notNull().default("markdown_only"),
5988
- compatibility: text60("compatibility").notNull().default("compatible"),
5990
+ key: text61("key").notNull(),
5991
+ slug: text61("slug").notNull(),
5992
+ name: text61("name").notNull(),
5993
+ description: text61("description"),
5994
+ markdown: text61("markdown").notNull(),
5995
+ sourceType: text61("source_type").notNull().default("local_path"),
5996
+ sourceLocator: text61("source_locator"),
5997
+ sourceRef: text61("source_ref"),
5998
+ trustLevel: text61("trust_level").notNull().default("markdown_only"),
5999
+ compatibility: text61("compatibility").notNull().default("compatible"),
5989
6000
  fileInventory: jsonb28("file_inventory").$type().notNull().default([]),
5990
6001
  metadata: jsonb28("metadata").$type(),
5991
6002
  createdAt: timestamp60("created_at", { withTimezone: true }).notNull().defaultNow(),
@@ -6003,7 +6014,7 @@ var init_organization_skills = __esm({
6003
6014
  import {
6004
6015
  pgTable as pgTable61,
6005
6016
  uuid as uuid59,
6006
- text as text61,
6017
+ text as text62,
6007
6018
  integer as integer21,
6008
6019
  timestamp as timestamp61,
6009
6020
  jsonb as jsonb29,
@@ -6018,17 +6029,17 @@ var init_plugins = __esm({
6018
6029
  "plugins",
6019
6030
  {
6020
6031
  id: uuid59("id").primaryKey().defaultRandom(),
6021
- pluginKey: text61("plugin_key").notNull(),
6022
- packageName: text61("package_name").notNull(),
6023
- version: text61("version").notNull(),
6032
+ pluginKey: text62("plugin_key").notNull(),
6033
+ packageName: text62("package_name").notNull(),
6034
+ version: text62("version").notNull(),
6024
6035
  apiVersion: integer21("api_version").notNull().default(1),
6025
6036
  categories: jsonb29("categories").$type().notNull().default([]),
6026
6037
  manifestJson: jsonb29("manifest_json").$type().notNull(),
6027
- status: text61("status").$type().notNull().default("installed"),
6038
+ status: text62("status").$type().notNull().default("installed"),
6028
6039
  installOrder: integer21("install_order"),
6029
6040
  /** Resolved package path for local-path installs; used to find worker entrypoint. */
6030
- packagePath: text61("package_path"),
6031
- lastError: text61("last_error"),
6041
+ packagePath: text62("package_path"),
6042
+ lastError: text62("last_error"),
6032
6043
  installedAt: timestamp61("installed_at", { withTimezone: true }).notNull().defaultNow(),
6033
6044
  updatedAt: timestamp61("updated_at", { withTimezone: true }).notNull().defaultNow()
6034
6045
  },
@@ -6041,7 +6052,7 @@ var init_plugins = __esm({
6041
6052
  });
6042
6053
 
6043
6054
  // ../packages/db/src/schema/plugin_config.ts
6044
- import { pgTable as pgTable62, uuid as uuid60, text as text62, timestamp as timestamp62, jsonb as jsonb30, uniqueIndex as uniqueIndex35 } from "drizzle-orm/pg-core";
6055
+ import { pgTable as pgTable62, uuid as uuid60, text as text63, timestamp as timestamp62, jsonb as jsonb30, uniqueIndex as uniqueIndex35 } from "drizzle-orm/pg-core";
6045
6056
  var pluginConfig;
6046
6057
  var init_plugin_config = __esm({
6047
6058
  "../packages/db/src/schema/plugin_config.ts"() {
@@ -6053,7 +6064,7 @@ var init_plugin_config = __esm({
6053
6064
  id: uuid60("id").primaryKey().defaultRandom(),
6054
6065
  pluginId: uuid60("plugin_id").notNull().references(() => plugins.id, { onDelete: "cascade" }),
6055
6066
  configJson: jsonb30("config_json").$type().notNull().default({}),
6056
- lastError: text62("last_error"),
6067
+ lastError: text63("last_error"),
6057
6068
  createdAt: timestamp62("created_at", { withTimezone: true }).notNull().defaultNow(),
6058
6069
  updatedAt: timestamp62("updated_at", { withTimezone: true }).notNull().defaultNow()
6059
6070
  },
@@ -6065,7 +6076,7 @@ var init_plugin_config = __esm({
6065
6076
  });
6066
6077
 
6067
6078
  // ../packages/db/src/schema/plugin_organization_settings.ts
6068
- import { pgTable as pgTable63, uuid as uuid61, text as text63, timestamp as timestamp63, jsonb as jsonb31, index as index57, uniqueIndex as uniqueIndex36, boolean as boolean11 } from "drizzle-orm/pg-core";
6079
+ import { pgTable as pgTable63, uuid as uuid61, text as text64, timestamp as timestamp63, jsonb as jsonb31, index as index57, uniqueIndex as uniqueIndex36, boolean as boolean11 } from "drizzle-orm/pg-core";
6069
6080
  var pluginOrganizationSettings;
6070
6081
  var init_plugin_organization_settings = __esm({
6071
6082
  "../packages/db/src/schema/plugin_organization_settings.ts"() {
@@ -6080,7 +6091,7 @@ var init_plugin_organization_settings = __esm({
6080
6091
  pluginId: uuid61("plugin_id").notNull().references(() => plugins.id, { onDelete: "cascade" }),
6081
6092
  enabled: boolean11("enabled").notNull().default(true),
6082
6093
  settingsJson: jsonb31("settings_json").$type().notNull().default({}),
6083
- lastError: text63("last_error"),
6094
+ lastError: text64("last_error"),
6084
6095
  createdAt: timestamp63("created_at", { withTimezone: true }).notNull().defaultNow(),
6085
6096
  updatedAt: timestamp63("updated_at", { withTimezone: true }).notNull().defaultNow()
6086
6097
  },
@@ -6100,7 +6111,7 @@ var init_plugin_organization_settings = __esm({
6100
6111
  import {
6101
6112
  pgTable as pgTable64,
6102
6113
  uuid as uuid62,
6103
- text as text64,
6114
+ text as text65,
6104
6115
  timestamp as timestamp64,
6105
6116
  jsonb as jsonb32,
6106
6117
  index as index58,
@@ -6118,19 +6129,19 @@ var init_plugin_state = __esm({
6118
6129
  /** FK to the owning plugin. Cascades on delete. */
6119
6130
  pluginId: uuid62("plugin_id").notNull().references(() => plugins.id, { onDelete: "cascade" }),
6120
6131
  /** Granularity of the scope (e.g. `"instance"`, `"project"`, `"issue"`). */
6121
- scopeKind: text64("scope_kind").$type().notNull(),
6132
+ scopeKind: text65("scope_kind").$type().notNull(),
6122
6133
  /**
6123
6134
  * UUID or text identifier for the scoped object.
6124
6135
  * Null for `instance` scope (which has no associated entity).
6125
6136
  */
6126
- scopeId: text64("scope_id"),
6137
+ scopeId: text65("scope_id"),
6127
6138
  /**
6128
6139
  * Sub-namespace to avoid key collisions within a scope.
6129
6140
  * Defaults to `"default"` if the plugin does not specify one.
6130
6141
  */
6131
- namespace: text64("namespace").notNull().default("default"),
6142
+ namespace: text65("namespace").notNull().default("default"),
6132
6143
  /** The key identifying this state entry within the namespace. */
6133
- stateKey: text64("state_key").notNull(),
6144
+ stateKey: text65("state_key").notNull(),
6134
6145
  /** JSON-serializable value stored by the plugin. */
6135
6146
  valueJson: jsonb32("value_json").notNull(),
6136
6147
  /** Timestamp of the most recent write. */
@@ -6169,7 +6180,7 @@ var init_plugin_state = __esm({
6169
6180
  import {
6170
6181
  pgTable as pgTable65,
6171
6182
  uuid as uuid63,
6172
- text as text65,
6183
+ text as text66,
6173
6184
  timestamp as timestamp65,
6174
6185
  jsonb as jsonb33,
6175
6186
  index as index59,
@@ -6185,14 +6196,14 @@ var init_plugin_entities = __esm({
6185
6196
  {
6186
6197
  id: uuid63("id").primaryKey().defaultRandom(),
6187
6198
  pluginId: uuid63("plugin_id").notNull().references(() => plugins.id, { onDelete: "cascade" }),
6188
- entityType: text65("entity_type").notNull(),
6189
- scopeKind: text65("scope_kind").$type().notNull(),
6190
- scopeId: text65("scope_id"),
6199
+ entityType: text66("entity_type").notNull(),
6200
+ scopeKind: text66("scope_kind").$type().notNull(),
6201
+ scopeId: text66("scope_id"),
6191
6202
  // NULL for global scope (text to match plugin_state.scope_id)
6192
- externalId: text65("external_id"),
6203
+ externalId: text66("external_id"),
6193
6204
  // ID in the external system
6194
- title: text65("title"),
6195
- status: text65("status"),
6205
+ title: text66("title"),
6206
+ status: text66("status"),
6196
6207
  data: jsonb33("data").$type().notNull().default({}),
6197
6208
  createdAt: timestamp65("created_at", { withTimezone: true }).notNull().defaultNow(),
6198
6209
  updatedAt: timestamp65("updated_at", { withTimezone: true }).notNull().defaultNow()
@@ -6215,7 +6226,7 @@ var init_plugin_entities = __esm({
6215
6226
  import {
6216
6227
  pgTable as pgTable66,
6217
6228
  uuid as uuid64,
6218
- text as text66,
6229
+ text as text67,
6219
6230
  integer as integer22,
6220
6231
  timestamp as timestamp66,
6221
6232
  jsonb as jsonb34,
@@ -6234,11 +6245,11 @@ var init_plugin_jobs = __esm({
6234
6245
  /** FK to the owning plugin. Cascades on delete. */
6235
6246
  pluginId: uuid64("plugin_id").notNull().references(() => plugins.id, { onDelete: "cascade" }),
6236
6247
  /** Identifier matching the key in the plugin manifest's `jobs` array. */
6237
- jobKey: text66("job_key").notNull(),
6248
+ jobKey: text67("job_key").notNull(),
6238
6249
  /** Cron expression (e.g. `"0 * * * *"`) or interval string. */
6239
- schedule: text66("schedule").notNull(),
6250
+ schedule: text67("schedule").notNull(),
6240
6251
  /** Current scheduling state. */
6241
- status: text66("status").$type().notNull().default("active"),
6252
+ status: text67("status").$type().notNull().default("active"),
6242
6253
  /** Timestamp of the most recent successful execution. */
6243
6254
  lastRunAt: timestamp66("last_run_at", { withTimezone: true }),
6244
6255
  /** Pre-computed timestamp of the next scheduled execution. */
@@ -6261,13 +6272,13 @@ var init_plugin_jobs = __esm({
6261
6272
  /** Denormalized FK to the owning plugin for efficient querying. Cascades on delete. */
6262
6273
  pluginId: uuid64("plugin_id").notNull().references(() => plugins.id, { onDelete: "cascade" }),
6263
6274
  /** What caused this run to start (`"scheduled"` or `"manual"`). */
6264
- trigger: text66("trigger").$type().notNull(),
6275
+ trigger: text67("trigger").$type().notNull(),
6265
6276
  /** Current lifecycle state of this run. */
6266
- status: text66("status").$type().notNull().default("pending"),
6277
+ status: text67("status").$type().notNull().default("pending"),
6267
6278
  /** Wall-clock duration in milliseconds. Null until the run finishes. */
6268
6279
  durationMs: integer22("duration_ms"),
6269
6280
  /** Error message if `status === "failed"`. */
6270
- error: text66("error"),
6281
+ error: text67("error"),
6271
6282
  /** Ordered list of log lines emitted during this run. */
6272
6283
  logs: jsonb34("logs").$type().notNull().default([]),
6273
6284
  startedAt: timestamp66("started_at", { withTimezone: true }),
@@ -6287,7 +6298,7 @@ var init_plugin_jobs = __esm({
6287
6298
  import {
6288
6299
  pgTable as pgTable67,
6289
6300
  uuid as uuid65,
6290
- text as text67,
6301
+ text as text68,
6291
6302
  integer as integer23,
6292
6303
  timestamp as timestamp67,
6293
6304
  jsonb as jsonb35,
@@ -6305,15 +6316,15 @@ var init_plugin_webhooks = __esm({
6305
6316
  /** FK to the owning plugin. Cascades on delete. */
6306
6317
  pluginId: uuid65("plugin_id").notNull().references(() => plugins.id, { onDelete: "cascade" }),
6307
6318
  /** Identifier matching the key in the plugin manifest's `webhooks` array. */
6308
- webhookKey: text67("webhook_key").notNull(),
6319
+ webhookKey: text68("webhook_key").notNull(),
6309
6320
  /** Optional de-duplication ID provided by the external system. */
6310
- externalId: text67("external_id"),
6321
+ externalId: text68("external_id"),
6311
6322
  /** Current delivery state. */
6312
- status: text67("status").$type().notNull().default("pending"),
6323
+ status: text68("status").$type().notNull().default("pending"),
6313
6324
  /** Wall-clock processing duration in milliseconds. Null until delivery finishes. */
6314
6325
  durationMs: integer23("duration_ms"),
6315
6326
  /** Error message if `status === "failed"`. */
6316
- error: text67("error"),
6327
+ error: text68("error"),
6317
6328
  /** Raw JSON body of the inbound HTTP request. */
6318
6329
  payload: jsonb35("payload").$type().notNull(),
6319
6330
  /** Relevant HTTP headers from the inbound request (e.g. signature headers). */
@@ -6335,7 +6346,7 @@ var init_plugin_webhooks = __esm({
6335
6346
  import {
6336
6347
  pgTable as pgTable68,
6337
6348
  uuid as uuid66,
6338
- text as text68,
6349
+ text as text69,
6339
6350
  timestamp as timestamp68,
6340
6351
  jsonb as jsonb36,
6341
6352
  index as index62
@@ -6350,8 +6361,8 @@ var init_plugin_logs = __esm({
6350
6361
  {
6351
6362
  id: uuid66("id").primaryKey().defaultRandom(),
6352
6363
  pluginId: uuid66("plugin_id").notNull().references(() => plugins.id, { onDelete: "cascade" }),
6353
- level: text68("level").notNull().default("info"),
6354
- message: text68("message").notNull(),
6364
+ level: text69("level").notNull().default("info"),
6365
+ message: text69("message").notNull(),
6355
6366
  meta: jsonb36("meta").$type(),
6356
6367
  createdAt: timestamp68("created_at", { withTimezone: true }).notNull().defaultNow()
6357
6368
  },
@@ -10910,8 +10921,8 @@ function printClaudeStreamEvent(raw, debug) {
10910
10921
  const block = blockRaw;
10911
10922
  const blockType = typeof block.type === "string" ? block.type : "";
10912
10923
  if (blockType === "text") {
10913
- const text69 = typeof block.text === "string" ? block.text : "";
10914
- if (text69) console.log(pc10.green(`assistant: ${text69}`));
10924
+ const text70 = typeof block.text === "string" ? block.text : "";
10925
+ if (text70) console.log(pc10.green(`assistant: ${text70}`));
10915
10926
  } else if (blockType === "tool_use") {
10916
10927
  const name = typeof block.name === "string" ? block.name : "unknown";
10917
10928
  console.log(pc10.yellow(`tool_call: ${name}`));
@@ -11003,13 +11014,13 @@ function printItemStarted(item) {
11003
11014
  function printItemCompleted(item) {
11004
11015
  const itemType = asString(item.type);
11005
11016
  if (itemType === "agent_message") {
11006
- const text69 = asString(item.text);
11007
- if (text69) console.log(pc11.green(`assistant: ${text69}`));
11017
+ const text70 = asString(item.text);
11018
+ if (text70) console.log(pc11.green(`assistant: ${text70}`));
11008
11019
  return true;
11009
11020
  }
11010
11021
  if (itemType === "reasoning") {
11011
- const text69 = asString(item.text);
11012
- if (text69) console.log(pc11.gray(`thinking: ${text69}`));
11022
+ const text70 = asString(item.text);
11023
+ if (text70) console.log(pc11.gray(`thinking: ${text70}`));
11013
11024
  return true;
11014
11025
  }
11015
11026
  if (itemType === "tool_use") {
@@ -11059,9 +11070,9 @@ function printItemCompleted(item) {
11059
11070
  }
11060
11071
  if (itemType === "tool_result") {
11061
11072
  const isError = item.is_error === true || asString(item.status) === "error";
11062
- const text69 = asString(item.content) || asString(item.result) || asString(item.output);
11073
+ const text70 = asString(item.content) || asString(item.result) || asString(item.output);
11063
11074
  console.log((isError ? pc11.red : pc11.cyan)(`tool_result${isError ? " (error)" : ""}`));
11064
- if (text69) console.log((isError ? pc11.red : pc11.gray)(text69));
11075
+ if (text70) console.log((isError ? pc11.red : pc11.gray)(text70));
11065
11076
  return true;
11066
11077
  }
11067
11078
  return false;
@@ -11180,8 +11191,8 @@ function stringifyUnknown(value) {
11180
11191
  }
11181
11192
  function printUserMessage(messageRaw) {
11182
11193
  if (typeof messageRaw === "string") {
11183
- const text69 = messageRaw.trim();
11184
- if (text69) console.log(pc12.gray(`user: ${text69}`));
11194
+ const text70 = messageRaw.trim();
11195
+ if (text70) console.log(pc12.gray(`user: ${text70}`));
11185
11196
  return;
11186
11197
  }
11187
11198
  const message = asRecord2(messageRaw);
@@ -11194,14 +11205,14 @@ function printUserMessage(messageRaw) {
11194
11205
  if (!part) continue;
11195
11206
  const type = asString2(part.type).trim();
11196
11207
  if (type !== "output_text" && type !== "text") continue;
11197
- const text69 = asString2(part.text).trim();
11198
- if (text69) console.log(pc12.gray(`user: ${text69}`));
11208
+ const text70 = asString2(part.text).trim();
11209
+ if (text70) console.log(pc12.gray(`user: ${text70}`));
11199
11210
  }
11200
11211
  }
11201
11212
  function printAssistantMessage(messageRaw) {
11202
11213
  if (typeof messageRaw === "string") {
11203
- const text69 = messageRaw.trim();
11204
- if (text69) console.log(pc12.green(`assistant: ${text69}`));
11214
+ const text70 = messageRaw.trim();
11215
+ if (text70) console.log(pc12.green(`assistant: ${text70}`));
11205
11216
  return;
11206
11217
  }
11207
11218
  const message = asRecord2(messageRaw);
@@ -11214,13 +11225,13 @@ function printAssistantMessage(messageRaw) {
11214
11225
  if (!part) continue;
11215
11226
  const type = asString2(part.type).trim();
11216
11227
  if (type === "output_text" || type === "text") {
11217
- const text69 = asString2(part.text).trim();
11218
- if (text69) console.log(pc12.green(`assistant: ${text69}`));
11228
+ const text70 = asString2(part.text).trim();
11229
+ if (text70) console.log(pc12.green(`assistant: ${text70}`));
11219
11230
  continue;
11220
11231
  }
11221
11232
  if (type === "thinking") {
11222
- const text69 = asString2(part.text).trim();
11223
- if (text69) console.log(pc12.gray(`thinking: ${text69}`));
11233
+ const text70 = asString2(part.text).trim();
11234
+ if (text70) console.log(pc12.gray(`thinking: ${text70}`));
11224
11235
  continue;
11225
11236
  }
11226
11237
  if (type === "tool_call") {
@@ -11340,8 +11351,8 @@ function printCursorStreamEvent(raw, _debug) {
11340
11351
  return;
11341
11352
  }
11342
11353
  if (type === "thinking") {
11343
- const text69 = asString2(parsed.text).trim() || asString2(asRecord2(parsed.delta)?.text).trim();
11344
- if (text69) console.log(pc12.gray(`thinking: ${text69}`));
11354
+ const text70 = asString2(parsed.text).trim() || asString2(asRecord2(parsed.delta)?.text).trim();
11355
+ if (text70) console.log(pc12.gray(`thinking: ${text70}`));
11345
11356
  return;
11346
11357
  }
11347
11358
  if (type === "tool_call") {
@@ -11379,8 +11390,8 @@ function printCursorStreamEvent(raw, _debug) {
11379
11390
  }
11380
11391
  if (type === "text") {
11381
11392
  const part = asRecord2(parsed.part);
11382
- const text69 = asString2(part?.text);
11383
- if (text69) console.log(pc12.green(`assistant: ${text69}`));
11393
+ const text70 = asString2(part?.text);
11394
+ if (text70) console.log(pc12.green(`assistant: ${text70}`));
11384
11395
  return;
11385
11396
  }
11386
11397
  if (type === "tool_use") {
@@ -11443,8 +11454,8 @@ function errorText2(value) {
11443
11454
  }
11444
11455
  function printTextMessage(prefix, colorize, messageRaw) {
11445
11456
  if (typeof messageRaw === "string") {
11446
- const text69 = messageRaw.trim();
11447
- if (text69) console.log(colorize(`${prefix}: ${text69}`));
11457
+ const text70 = messageRaw.trim();
11458
+ if (text70) console.log(colorize(`${prefix}: ${text70}`));
11448
11459
  return;
11449
11460
  }
11450
11461
  const message = asRecord3(messageRaw);
@@ -11457,13 +11468,13 @@ function printTextMessage(prefix, colorize, messageRaw) {
11457
11468
  if (!part) continue;
11458
11469
  const type = asString3(part.type).trim();
11459
11470
  if (type === "output_text" || type === "text" || type === "content") {
11460
- const text69 = asString3(part.text).trim() || asString3(part.content).trim();
11461
- if (text69) console.log(colorize(`${prefix}: ${text69}`));
11471
+ const text70 = asString3(part.text).trim() || asString3(part.content).trim();
11472
+ if (text70) console.log(colorize(`${prefix}: ${text70}`));
11462
11473
  continue;
11463
11474
  }
11464
11475
  if (type === "thinking") {
11465
- const text69 = asString3(part.text).trim();
11466
- if (text69) console.log(pc13.gray(`thinking: ${text69}`));
11476
+ const text70 = asString3(part.text).trim();
11477
+ if (text70) console.log(pc13.gray(`thinking: ${text70}`));
11467
11478
  continue;
11468
11479
  }
11469
11480
  if (type === "tool_call") {
@@ -11515,8 +11526,8 @@ function printGeminiStreamEvent(raw, _debug) {
11515
11526
  return;
11516
11527
  }
11517
11528
  if (subtype === "error") {
11518
- const text69 = errorText2(parsed.error ?? parsed.message ?? parsed.detail);
11519
- if (text69) console.log(pc13.red(`error: ${text69}`));
11529
+ const text70 = errorText2(parsed.error ?? parsed.message ?? parsed.detail);
11530
+ if (text70) console.log(pc13.red(`error: ${text70}`));
11520
11531
  return;
11521
11532
  }
11522
11533
  console.log(pc13.blue(`system: ${subtype || "event"}`));
@@ -11531,8 +11542,8 @@ function printGeminiStreamEvent(raw, _debug) {
11531
11542
  return;
11532
11543
  }
11533
11544
  if (type === "thinking") {
11534
- const text69 = asString3(parsed.text).trim() || asString3(asRecord3(parsed.delta)?.text).trim();
11535
- if (text69) console.log(pc13.gray(`thinking: ${text69}`));
11545
+ const text70 = asString3(parsed.text).trim() || asString3(asRecord3(parsed.delta)?.text).trim();
11546
+ if (text70) console.log(pc13.gray(`thinking: ${text70}`));
11536
11547
  return;
11537
11548
  }
11538
11549
  if (type === "tool_call") {
@@ -11568,8 +11579,8 @@ function printGeminiStreamEvent(raw, _debug) {
11568
11579
  return;
11569
11580
  }
11570
11581
  if (type === "error") {
11571
- const text69 = errorText2(parsed.error ?? parsed.message ?? parsed.detail);
11572
- if (text69) console.log(pc13.red(`error: ${text69}`));
11582
+ const text70 = errorText2(parsed.error ?? parsed.message ?? parsed.detail);
11583
+ if (text70) console.log(pc13.red(`error: ${text70}`));
11573
11584
  return;
11574
11585
  }
11575
11586
  console.log(line);
@@ -11577,9 +11588,9 @@ function printGeminiStreamEvent(raw, _debug) {
11577
11588
 
11578
11589
  // ../packages/agent-runtimes/opencode-local/src/cli/format-event.ts
11579
11590
  import pc14 from "picocolors";
11580
- function safeJsonParse(text69) {
11591
+ function safeJsonParse(text70) {
11581
11592
  try {
11582
- return JSON.parse(text69);
11593
+ return JSON.parse(text70);
11583
11594
  } catch {
11584
11595
  return null;
11585
11596
  }
@@ -11623,14 +11634,14 @@ function printOpenCodeStreamEvent(raw, _debug) {
11623
11634
  }
11624
11635
  if (type === "text") {
11625
11636
  const part = asRecord4(parsed.part);
11626
- const text69 = asString4(part?.text).trim();
11627
- if (text69) console.log(pc14.green(`assistant: ${text69}`));
11637
+ const text70 = asString4(part?.text).trim();
11638
+ if (text70) console.log(pc14.green(`assistant: ${text70}`));
11628
11639
  return;
11629
11640
  }
11630
11641
  if (type === "reasoning") {
11631
11642
  const part = asRecord4(parsed.part);
11632
- const text69 = asString4(part?.text).trim();
11633
- if (text69) console.log(pc14.gray(`thinking: ${text69}`));
11643
+ const text70 = asString4(part?.text).trim();
11644
+ if (text70) console.log(pc14.gray(`thinking: ${text70}`));
11634
11645
  return;
11635
11646
  }
11636
11647
  if (type === "tool_use") {
@@ -11678,9 +11689,9 @@ function printOpenCodeStreamEvent(raw, _debug) {
11678
11689
 
11679
11690
  // ../packages/agent-runtimes/pi-local/src/cli/format-event.ts
11680
11691
  import pc15 from "picocolors";
11681
- function safeJsonParse2(text69) {
11692
+ function safeJsonParse2(text70) {
11682
11693
  try {
11683
- return JSON.parse(text69);
11694
+ return JSON.parse(text70);
11684
11695
  } catch {
11685
11696
  return null;
11686
11697
  }
@@ -11722,9 +11733,9 @@ function printPiStreamEvent(raw, _debug) {
11722
11733
  const message = asRecord5(parsed.message);
11723
11734
  if (message) {
11724
11735
  const content = message.content;
11725
- const text69 = extractTextContent(content);
11726
- if (text69) {
11727
- console.log(pc15.green(`assistant: ${text69}`));
11736
+ const text70 = extractTextContent(content);
11737
+ if (text70) {
11738
+ console.log(pc15.green(`assistant: ${text70}`));
11728
11739
  }
11729
11740
  }
11730
11741
  return;
@@ -12293,11 +12304,11 @@ var RudderApiClient = class {
12293
12304
  if (response.status === 204) {
12294
12305
  return null;
12295
12306
  }
12296
- const text69 = await response.text();
12297
- if (!text69.trim()) {
12307
+ const text70 = await response.text();
12308
+ if (!text70.trim()) {
12298
12309
  return null;
12299
12310
  }
12300
- return safeParseJson(text69);
12311
+ return safeParseJson(text70);
12301
12312
  }
12302
12313
  };
12303
12314
  function shouldAttachRunId(method) {
@@ -12312,16 +12323,16 @@ function buildUrl(apiBase, path23) {
12312
12323
  if (query) url.search = query;
12313
12324
  return url.toString();
12314
12325
  }
12315
- function safeParseJson(text69) {
12326
+ function safeParseJson(text70) {
12316
12327
  try {
12317
- return JSON.parse(text69);
12328
+ return JSON.parse(text70);
12318
12329
  } catch {
12319
- return text69;
12330
+ return text70;
12320
12331
  }
12321
12332
  }
12322
12333
  async function toApiError(response) {
12323
- const text69 = await response.text();
12324
- const parsed = safeParseJson(text69);
12334
+ const text70 = await response.text();
12335
+ const parsed = safeParseJson(text70);
12325
12336
  if (typeof parsed === "object" && parsed !== null && !Array.isArray(parsed)) {
12326
12337
  const body = parsed;
12327
12338
  const message = typeof body.error === "string" && body.error.trim() || typeof body.message === "string" && body.message.trim() || `Request failed with status ${response.status}`;
@@ -14964,8 +14975,8 @@ function filterIssueRows(rows, match) {
14964
14975
  if (!match?.trim()) return rows;
14965
14976
  const needle = match.trim().toLowerCase();
14966
14977
  return rows.filter((row) => {
14967
- const text69 = [row.identifier, row.title, row.description].filter((part) => Boolean(part)).join("\n").toLowerCase();
14968
- return text69.includes(needle);
14978
+ const text70 = [row.identifier, row.title, row.description].filter((part) => Boolean(part)).join("\n").toLowerCase();
14979
+ return text70.includes(needle);
14969
14980
  });
14970
14981
  }
14971
14982
 
@@ -18621,9 +18632,9 @@ import { LangfuseClient } from "@langfuse/client";
18621
18632
 
18622
18633
  // ../packages/run-intelligence-core/src/trace.ts
18623
18634
  function truncate(value, maxLength = 180) {
18624
- const text69 = value.trim();
18625
- if (!text69) return "";
18626
- return text69.length > maxLength ? `${text69.slice(0, maxLength - 1)}\u2026` : text69;
18635
+ const text70 = value.trim();
18636
+ if (!text70) return "";
18637
+ return text70.length > maxLength ? `${text70.slice(0, maxLength - 1)}\u2026` : text70;
18627
18638
  }
18628
18639
  function firstMeaningfulLine(value) {
18629
18640
  for (const line of value.split(/\r?\n/)) {
@@ -19427,9 +19438,9 @@ function extractPromptText(body) {
19427
19438
  const nested = asString6(prompt.prompt) ?? asString6(prompt.text);
19428
19439
  if (nested) return nested;
19429
19440
  }
19430
- const text69 = body.text;
19431
- if (text69 && typeof text69 === "object" && !Array.isArray(text69)) {
19432
- const nested = asString6(text69.content) ?? asString6(text69.text);
19441
+ const text70 = body.text;
19442
+ if (text70 && typeof text70 === "object" && !Array.isArray(text70)) {
19443
+ const nested = asString6(text70.content) ?? asString6(text70.text);
19433
19444
  if (nested) return nested;
19434
19445
  }
19435
19446
  return null;