@bike4mind/cli 5.1.0 → 5.2.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 (32) hide show
  1. package/dist/{AgentHistoryStore-DrZ47hqO.mjs → AgentHistoryStore-dVWBO__c.mjs} +378 -17
  2. package/dist/{ApiClient-B8VxyNEM.mjs → ApiClient-ByJM2OpM.mjs} +3 -3
  3. package/dist/{BubblewrapRuntime-DotKnqtu.mjs → BubblewrapRuntime-BQICHr_L.mjs} +2 -2
  4. package/dist/ConfigStore-9rudXRh5.mjs +2 -0
  5. package/dist/{ConfigStore-DfuE49PH.mjs → ConfigStore-BnhyywYB.mjs} +1 -1
  6. package/dist/{Logger-D6QD3c7G.mjs → Logger-DqWiTWp3.mjs} +222 -90
  7. package/dist/{SandboxOrchestrator-Cm9L1TRR.mjs → SandboxOrchestrator-B-6_ssTd.mjs} +1 -1
  8. package/dist/{SandboxRuntimeAdapter-HEkl0-qG.mjs → SandboxRuntimeAdapter-CJhDJVwo.mjs} +2 -2
  9. package/dist/{SandboxRuntimeAdapter-DF9hg5Xl.mjs → SandboxRuntimeAdapter-DdF8pI-i.mjs} +1 -1
  10. package/dist/{SeatbeltRuntime-CYsIp616.mjs → SeatbeltRuntime-oPrQ1VGL.mjs} +2 -2
  11. package/dist/{WorkItemsClient-sUftLgOz.mjs → WorkItemsClient-BRvm9GFY.mjs} +1 -1
  12. package/dist/{buildToolSearch-Bb-DPCb0.mjs → buildToolSearch-BLpr9m1F.mjs} +2 -2
  13. package/dist/commands/acpCommand.mjs +5 -5
  14. package/dist/commands/apiCommand.mjs +1 -1
  15. package/dist/commands/doctorCommand.mjs +2 -2
  16. package/dist/commands/envCommand.mjs +1 -1
  17. package/dist/commands/headlessCommand.mjs +6 -6
  18. package/dist/commands/mcpCommand.mjs +3 -3
  19. package/dist/commands/mirrorCommand.mjs +2 -2
  20. package/dist/commands/modelsCommand.mjs +4 -4
  21. package/dist/commands/pluginCommand.mjs +1 -1
  22. package/dist/commands/skillsCommand.mjs +3 -3
  23. package/dist/commands/updateCommand.mjs +2 -2
  24. package/dist/{dist-De8Q0ivE.mjs → dist-DQHccCo7.mjs} +23 -295
  25. package/dist/{fit-BsHUrxwe.mjs → fit-hHSF95FV.mjs} +3 -3
  26. package/dist/index.mjs +9 -9
  27. package/dist/{modelServers-Ca1l2hMC.mjs → modelServers-BmmJuF8X.mjs} +1 -1
  28. package/dist/{package-hEkaJgsy.mjs → package-CZ2nssWx.mjs} +1 -1
  29. package/dist/{serve-CiSddein.mjs → serve-BDv7yCLB.mjs} +163 -7
  30. package/dist/{updateChecker-dZqiMftm.mjs → updateChecker-DoKgSiYX.mjs} +1 -1
  31. package/package.json +11 -11
  32. package/dist/ConfigStore-1lUx9qD8.mjs +0 -2
@@ -355,6 +355,15 @@ var ForbiddenError = class extends HTTPError {
355
355
  * (`isTerminalToolError`, `@bike4mind/llm-adapters`): it ends the turn instead of going back to the model.
356
356
  */
357
357
  var AiAccessRefusedError = class extends ForbiddenError {};
358
+ /** 502: an upstream we depend on failed. The caller's request was well-formed. */
359
+ var BadGatewayError = class extends HTTPError {
360
+ additionalInfo;
361
+ constructor(message, additionalInfo) {
362
+ super(502, message, additionalInfo);
363
+ this.additionalInfo = additionalInfo;
364
+ this.name = "BadGatewayError";
365
+ }
366
+ };
358
367
  function isZodError(err) {
359
368
  return Boolean(err && (err instanceof ZodError || err.name === "ZodError"));
360
369
  }
@@ -2859,6 +2868,11 @@ const ADMIN_AUDIT_CATALOGUE = {
2859
2868
  severity: "notice",
2860
2869
  write: "strict"
2861
2870
  },
2871
+ "org.slack_channel_app_read.updated": {
2872
+ category: "org",
2873
+ severity: "notice",
2874
+ write: "strict"
2875
+ },
2862
2876
  "org.member.added": {
2863
2877
  category: "org",
2864
2878
  severity: "notice",
@@ -3602,6 +3616,11 @@ const ADMIN_AUDIT_CATALOGUE = {
3602
3616
  severity: "notice",
3603
3617
  write: "strict"
3604
3618
  },
3619
+ "ops.dlq.fix.attached": {
3620
+ category: "support",
3621
+ severity: "notice",
3622
+ write: "strict"
3623
+ },
3605
3624
  "ops.agent_executions.cleaned_up": {
3606
3625
  category: "support",
3607
3626
  severity: "notice",
@@ -3752,6 +3771,16 @@ const ADMIN_AUDIT_CATALOGUE = {
3752
3771
  severity: "notice",
3753
3772
  write: "bestEffort"
3754
3773
  },
3774
+ "settings.feature_release.created": {
3775
+ category: "settings",
3776
+ severity: "info",
3777
+ write: "bestEffort"
3778
+ },
3779
+ "settings.feature_release.deleted": {
3780
+ category: "settings",
3781
+ severity: "notice",
3782
+ write: "bestEffort"
3783
+ },
3755
3784
  "settings.business_link.created": {
3756
3785
  category: "settings",
3757
3786
  severity: "info",
@@ -5101,51 +5130,6 @@ const CALLABLE_FUNCTION_DATA_LIMITS = {
5101
5130
  /** The runtime's data cache, and so the most `CallableFunctionDataTotalMaxMb` can allow. */
5102
5131
  cacheMb: 9216
5103
5132
  };
5104
- /** An `owner/name` GitHub repository; also used by the worker's repository check. */
5105
- const SECOPS_TRIAGE_REPO_PATTERN = /^[\w.-]+\/[\w.-]+$/;
5106
- const MAX_ISSUES_MESSAGE = "Max issues per scan must be between 1 and 100";
5107
- /**
5108
- * Configuration schema for the SecOps Triage feature.
5109
- *
5110
- * Controls automatic GitHub issue creation for critical/high ZAP scan findings.
5111
- * Triggered via SQS fan-out from the web-owasp-ingest endpoint after each scan.
5112
- *
5113
- * Setting name: 'secopsTriageConfig'
5114
- */
5115
- const SecopsTriageConfigSchema = z$1.object({
5116
- /** Master kill switch */
5117
- enabled: z$1.boolean().default(false),
5118
- /** GitHub repository to create issues in (e.g. 'owner/repo') */
5119
- githubRepo: z$1.string().default(""),
5120
- /** Minimum ZAP severity level that triggers issue creation */
5121
- severityThreshold: z$1.enum(["critical", "high"]).default("high"),
5122
- /** Map ZAP severity levels to GitHub issue priority labels */
5123
- severityToPriority: z$1.object({
5124
- critical: z$1.enum(["P0", "P1"]).default("P0"),
5125
- high: z$1.enum(["P0", "P1"]).default("P1")
5126
- }).default({
5127
- critical: "P0",
5128
- high: "P1"
5129
- }),
5130
- /** Maximum number of issues to create per scan (sorted by severity, highest first) */
5131
- maxIssuesPerScan: z$1.number({ error: MAX_ISSUES_MESSAGE }).min(1, MAX_ISSUES_MESSAGE).max(100, MAX_ISSUES_MESSAGE).default(20),
5132
- /** Slack workspace ID to use for posting (must match an active workspace in Admin -> Slack Workspaces). Falls back to first active workspace if not set. */
5133
- slackWorkspaceId: z$1.string().optional(),
5134
- /** Slack channel ID to post triage summary to (optional) */
5135
- slackChannelId: z$1.string().optional(),
5136
- /** Enable LLM enrichment: per-finding remediation guidance + overall health assessment */
5137
- llmEnrichment: z$1.boolean().default(false),
5138
- /** LLM model ID to use for enrichment (e.g. 'claude-3-5-haiku-20241022') */
5139
- modelId: z$1.string().optional(),
5140
- /** Log actions without creating real GitHub issues or posting to Slack */
5141
- dryRun: z$1.boolean().default(false)
5142
- }).refine((data) => !data.llmEnrichment || !!data.modelId, {
5143
- message: "A model must be selected when LLM enrichment is enabled",
5144
- path: ["modelId"]
5145
- }).refine((data) => !data.enabled || SECOPS_TRIAGE_REPO_PATTERN.test(data.githubRepo), {
5146
- message: "A repository in owner/name form is required when SecOps triage is enabled",
5147
- path: ["githubRepo"]
5148
- });
5149
5133
  const MODAL_MEDIA_HOST_SUFFIXES = [".amazonaws.com", ".cloudfront.net"];
5150
5134
  const MODAL_MEDIA_URL_MAX_LENGTH = 2048;
5151
5135
  const MODAL_MEDIA_URL_HINT = "Upload the file, or paste an https URL on amazonaws.com or cloudfront.net";
@@ -5802,6 +5786,7 @@ z$1.enum([
5802
5786
  "EnableDataLakeDrivePoll",
5803
5787
  "EnableDataLakeGitHub",
5804
5788
  "EnableDataLakeGitHubReconcile",
5789
+ "EnableLakeFollow",
5805
5790
  "EnforceLakeAdmission",
5806
5791
  "EnforceLakeOriginOnIngest",
5807
5792
  "EnableBriefcase",
@@ -6181,7 +6166,6 @@ z$1.enum([
6181
6166
  "ContextVerbatimWindowFraction",
6182
6167
  "CorpusRetrievalMinInlineTokensPerDoc",
6183
6168
  "sreAgentConfig",
6184
- "secopsTriageConfig",
6185
6169
  "apiRateLimitFreePerMin",
6186
6170
  "apiRateLimitBasicPerMin",
6187
6171
  "apiRateLimitProPerMin",
@@ -9251,6 +9235,16 @@ const settingsMap = {
9251
9235
  order: 96,
9252
9236
  dependsOn: "EnableDataLakeGitHub"
9253
9237
  }),
9238
+ EnableLakeFollow: makeBooleanSetting({
9239
+ key: "EnableLakeFollow",
9240
+ name: "Data Lakes: Follow public lakes",
9241
+ defaultValue: false,
9242
+ description: "When on, a public lake appears in a user's lake list and ambient chat retrieval only if they own it, were given access, hold its tag, or follow it. Off by default: every public lake is listed and searched for everyone.",
9243
+ category: "Experimental",
9244
+ group: API_SERVICE_GROUPS.EXPERIMENTAL.id,
9245
+ order: 96,
9246
+ dependsOn: "EnableDataLakes"
9247
+ }),
9254
9248
  EnforceLakeAdmission: makeBooleanSetting({
9255
9249
  key: "EnforceLakeAdmission",
9256
9250
  name: "Data Lakes: Enforce the admission contract",
@@ -13892,16 +13886,6 @@ const settingsMap = {
13892
13886
  order: 121,
13893
13887
  schema: ContextTelemetryAlertsSchema
13894
13888
  }),
13895
- secopsTriageConfig: makeObjectSetting({
13896
- key: "secopsTriageConfig",
13897
- name: "SecOps Triage Config",
13898
- hideFromSettingsList: true,
13899
- defaultValue: SecopsTriageConfigSchema.parse({}),
13900
- description: "Configuration for SecOps triage: files a GitHub issue for each critical or high finding reported by a security scan through the system GitHub connection, and closes it when the finding is gone. Disabled by default.",
13901
- category: "SecOps",
13902
- order: 131,
13903
- schema: SecopsTriageConfigSchema
13904
- }),
13905
13889
  overwatchRollupSync: makeObjectSetting({
13906
13890
  key: "overwatchRollupSync",
13907
13891
  name: "Overwatch Rollup Sync Lock",
@@ -15120,7 +15104,8 @@ z$1.object({
15120
15104
  const COMPLETION_RUN_ROLES = ["root", "worker"];
15121
15105
  /**
15122
15106
  * What a run-attributed request was for, so spend can be split by category. `tool` is a paid tool call
15123
- * (image, video, music, speech, sound) a run's session made, charged by its own route.
15107
+ * (image, video, music, speech, sound) a run's session made, charged by its own route. `approval` is
15108
+ * Desktop's approval judge, a side call that rates one tool call (apps/desktop permissions/approvalJudge.ts).
15124
15109
  */
15125
15110
  const COMPLETION_RUN_PURPOSES = [
15126
15111
  "turn",
@@ -15129,7 +15114,8 @@ const COMPLETION_RUN_PURPOSES = [
15129
15114
  "suggestion",
15130
15115
  "explore",
15131
15116
  "review",
15132
- "tool"
15117
+ "tool",
15118
+ "approval"
15133
15119
  ];
15134
15120
  /**
15135
15121
  * Which product surface generated the provider call.
@@ -15174,7 +15160,9 @@ const UsageEventRates = z$1.object({
15174
15160
  cacheRead: z$1.number().optional(),
15175
15161
  cacheWrite: z$1.number().optional(),
15176
15162
  /** Stamped only on a row that wrote with the 1-hour TTL. */
15177
- cacheWrite1h: z$1.number().optional()
15163
+ cacheWrite1h: z$1.number().optional(),
15164
+ /** The off-peak factor (ModelInfo.offPeak) already applied to every rate above; absent for an unscheduled model. */
15165
+ offPeakMultiplier: z$1.number().optional()
15178
15166
  });
15179
15167
  /** One provider request of a multi-turn completion, with the tier it was priced on. */
15180
15168
  const UsageEventTurn = z$1.object({
@@ -15183,7 +15171,10 @@ const UsageEventTurn = z$1.object({
15183
15171
  cacheReadTokens: z$1.number().optional(),
15184
15172
  cacheWriteTokens: z$1.number().optional(),
15185
15173
  cacheWrite1hTokens: z$1.number().optional(),
15186
- tierKey: z$1.number()
15174
+ tierKey: z$1.number(),
15175
+ /** Epoch ms the request was sent and its usage arrived (TurnUsage), which decide its off-peak multiplier. */
15176
+ startedAt: z$1.number().optional(),
15177
+ finishedAt: z$1.number().optional()
15187
15178
  });
15188
15179
  /**
15189
15180
  * What funded the credits a usage event spent. `unknown` covers legacy-backfill lots and
@@ -15342,9 +15333,10 @@ const AttributedUsageEvent = z$1.object({
15342
15333
  /** The ModelPrice row in force; set only when priceSource is 'catalog'. */
15343
15334
  priceRowId: z$1.string().optional(),
15344
15335
  /**
15345
- * Rates of the tier applied. A multi-turn row whose turns hit different tiers carries the
15346
- * tier of its largest turn; turnUsage has each turn's own tierKey, but not that tier's rates,
15347
- * so only a single-tier text charge is recomputable from its own fields. Provider-basis chat
15336
+ * Rates of the tier applied, after any off-peak discount (rates.offPeakMultiplier). A multi-turn
15337
+ * row whose turns hit different tiers or sides of an off-peak boundary carries the rates of its
15338
+ * largest turn; turnUsage has each turn's own tierKey and timestamps, but not that turn's rates,
15339
+ * so only a single-tier, single-period text charge is recomputable from its own fields. Provider-basis chat
15348
15340
  * rows use providerInputTokens/providerOutputTokens plus the cache buckets. Local-estimate chat
15349
15341
  * rows use input * (inputTokens - cachedInputTokens) + cacheRead * cachedInputTokens
15350
15342
  * + output * outputTokens. Operational and CLI rows use disjoint input/cache buckets instead:
@@ -25597,8 +25589,8 @@ const CreateSessionRequestSchema = z$1.object({
25597
25589
  tags: z$1.array(SessionTagSchema).optional(),
25598
25590
  lastUsedModel: z$1.string().nullish()
25599
25591
  });
25600
- /** Query for GET /api/v1/sessions/{id}/quests: the pagination convention, nothing more. */
25601
- const ListSessionQuestsQuerySchema = PaginationQuerySchema;
25592
+ /** Query for GET /api/v1/sessions/{id}/quests: the pagination convention plus the listing order. */
25593
+ const ListSessionQuestsQuerySchema = PaginationQuerySchema.extend({ order: z$1.enum(["asc", "desc"]).default("asc").describe("Listing order: `asc` is oldest first (the default), `desc` is newest first. A cursor only continues the order it was issued for.") });
25602
25594
  /** An approval a tool is waiting on before it runs (confirm or cancel in the product UI). */
25603
25595
  const SessionQuestPendingActionSchema = z$1.object({
25604
25596
  tool: z$1.string().describe("The tool awaiting approval."),
@@ -26597,7 +26589,8 @@ z$2.object({ data: z$2.array(z$2.object(passthroughShape({
26597
26589
  canRebuild: true,
26598
26590
  canManageSettings: true,
26599
26591
  canManageMemory: true,
26600
- retrievable: true
26592
+ retrievable: true,
26593
+ accessReason: true
26601
26594
  }))) });
26602
26595
  /** One detected corpus problem as the findings routes return it. */
26603
26596
  const lakeFindingResponseSchema = z$2.object(passthroughShape({
@@ -27133,7 +27126,7 @@ const PublicModelSchema = z$1.object({
27133
27126
  deprecation_date: z$1.string().nullable().describe("`YYYY-MM-DD`; null when no retirement is scheduled."),
27134
27127
  replaced_by: z$1.string().nullable().describe("The id of the recommended successor, when there is one."),
27135
27128
  image: PublicImageCapabilitiesSchema.nullable().describe("Size rules and supported parameters. Present on image models only; null for every other type."),
27136
- credits_per_1m_tokens: PublicModelCreditsPer1MTokensSchema.nullable().describe("What a call is billed, in credits per 1M tokens, at the base context tier. Use it to compare models by cost. Null on non-text models and on any model with no published price; never 0 for an unpriced model.")
27129
+ credits_per_1m_tokens: PublicModelCreditsPer1MTokensSchema.nullable().describe("What a call is billed, in credits per 1M tokens, at the base context tier and the list rate. Use it to compare models by cost. A model with off-peak pricing lists its peak rate here and bills less outside its peak hours. Null on non-text models and on any model with no published price; never 0 for an unpriced model.")
27137
27130
  });
27138
27131
  const ListModelsResponseSchema = paginatedResponseSchema(PublicModelSchema);
27139
27132
  const ClientConfigServerSchema = z$1.object({
@@ -27931,6 +27924,8 @@ const ArtifactResourceSchema = z$1.object({
27931
27924
  "organization",
27932
27925
  "public"
27933
27926
  ]),
27927
+ published: z$1.boolean().describe("Whether you have a published page for this artifact. Only your own pages count, never another owner's."),
27928
+ published_url: z$1.string().nullable().describe("The absolute URL of your published page for this artifact, or `null` when `published` is false."),
27934
27929
  created_at: z$1.string().describe("ISO 8601 timestamp."),
27935
27930
  updated_at: z$1.string().describe("ISO 8601 timestamp."),
27936
27931
  content: z$1.string().nullable().describe("The current version's content. `null` in a list (fetch the artifact by id for it), and in an update response to a caller who may edit the artifact but not read it, unless that update sent content.")
@@ -31393,6 +31388,10 @@ defineEndpoint({
31393
31388
  500: {
31394
31389
  description: "The fetch failed, or an unexpected server error.",
31395
31390
  schema: ApiErrorSchema
31391
+ },
31392
+ 502: {
31393
+ description: "The page-reading service could not be reached. Nothing is charged; retry later.",
31394
+ schema: ApiErrorSchema
31396
31395
  }
31397
31396
  },
31398
31397
  emitsRateLimitHeaders: true,
@@ -33394,7 +33393,7 @@ defineEndpoint({
33394
33393
  tags: ["Models"],
33395
33394
  auth: "apiKeyOrJwt",
33396
33395
  scopes: ["ai:chat", "ai:generate"],
33397
- queryParams: PaginationQuerySchema,
33396
+ queryParams: PaginationQuerySchema.extend({ organization_id: z$1.string().regex(/^[0-9a-f]{24}$/, "organization_id must be an organization id").optional().describe("List the models a call billed to this organization can use (its model policy applies). Omitted: the organization a call with no `organization_id` bills. You must be a member.") }),
33398
33397
  emitsRateLimitHeaders: true,
33399
33398
  responses: {
33400
33399
  200: {
@@ -33486,6 +33485,14 @@ defineEndpoint({
33486
33485
  next_cursor: null
33487
33486
  }
33488
33487
  },
33488
+ 400: {
33489
+ description: "The organization-billed API key's organization no longer exists, or its holder left it.",
33490
+ schema: ApiErrorSchema
33491
+ },
33492
+ 403: {
33493
+ description: "The caller cannot bill the named `organization_id`, or an organization-billed API key named another one (`errorCode: \"billing_organization_mismatch\"`).",
33494
+ schema: ApiErrorSchema
33495
+ },
33489
33496
  422: {
33490
33497
  description: "`limit` is out of range, or `cursor` is malformed or was issued by a different endpoint. A cursor is opaque: pass back exactly the `next_cursor` you were given.",
33491
33498
  schema: ApiErrorSchema
@@ -34808,6 +34815,8 @@ const ARTIFACT_EXAMPLE = {
34808
34815
  session_id: "<sessionId>",
34809
34816
  project_id: null,
34810
34817
  visibility: "private",
34818
+ published: false,
34819
+ published_url: null,
34811
34820
  created_at: "2026-10-01T12:00:00.000Z",
34812
34821
  updated_at: "2026-10-02T09:30:00.000Z",
34813
34822
  content: "graph TD; A[Sign up] --> B[Verify email]"
@@ -35547,7 +35556,7 @@ defineEndpoint({
35547
35556
  path: "/api/v1/sessions/{id}/quests",
35548
35557
  operationId: "listSessionQuests",
35549
35558
  summary: "List a session's quests",
35550
- description: "Lists the turns (quests) of a session's conversation, oldest first: what was sent, the visible reply, its status and the credits it cost. Works for a session you own or one shared with you. Cursor-paginated (see the pagination convention): pass `next_cursor` back as `cursor` until it is `null`. Re-read a non-terminal turn with `GET /api/v1/quests/{id}`. While a tool awaits approval the turn carries `pendingAction` (owner only). Deleted turns are not listed. A session that does not exist, was deleted, or is not visible to you is `404`. An API key needs `notebooks:read` or `notebooks:write`.",
35559
+ description: "Lists the turns (quests) of a session's conversation, oldest first by default (`order=desc` for newest first): what was sent, the visible reply, its status and the credits it cost. Works for a session you own or one shared with you. Cursor-paginated (see the pagination convention): pass `next_cursor` back as `cursor` until it is `null`. Re-read a non-terminal turn with `GET /api/v1/quests/{id}`. While a tool awaits approval the turn carries `pendingAction` (owner only). Deleted turns are not listed. A session that does not exist, was deleted, or is not visible to you is `404`. An API key needs `notebooks:read` or `notebooks:write`.",
35551
35560
  tags: ["Sessions"],
35552
35561
  auth: "apiKeyOrJwt",
35553
35562
  scopes: ["notebooks:read", "notebooks:write"],
@@ -35556,7 +35565,7 @@ defineEndpoint({
35556
35565
  emitsRateLimitHeaders: true,
35557
35566
  responses: {
35558
35567
  200: {
35559
- description: "One page of quests, oldest first.",
35568
+ description: "One page of quests, in the requested `order` (oldest first by default).",
35560
35569
  schema: ListSessionQuestsResponseSchema
35561
35570
  },
35562
35571
  403: {
@@ -35568,7 +35577,7 @@ defineEndpoint({
35568
35577
  schema: ApiErrorSchema
35569
35578
  },
35570
35579
  422: {
35571
- description: "`limit` is out of range, or `cursor` is malformed or was issued by a different endpoint. A cursor is opaque: pass back exactly the `next_cursor` you were given.",
35580
+ description: "`limit` or `order` is out of range, or `cursor` is malformed, was issued by a different endpoint, or was issued for the other `order`. A cursor is opaque: pass back exactly the `next_cursor` you were given, with the same `order`.",
35572
35581
  schema: ApiErrorSchema
35573
35582
  },
35574
35583
  429: {
@@ -41288,7 +41297,23 @@ z$1.object({
41288
41297
  sentTimestamp: z$1.string().nullable().optional(),
41289
41298
  retentionSeconds: z$1.number().nullable().optional(),
41290
41299
  consumerVersion: z$1.string(),
41291
- fixVerification: z$1.literal("unavailable"),
41300
+ failedCommit: z$1.string().optional(),
41301
+ runningCommit: z$1.string().optional(),
41302
+ commitRelation: z$1.enum([
41303
+ "same-commit",
41304
+ "different-commit",
41305
+ "unknown"
41306
+ ]).optional(),
41307
+ failureSignature: z$1.string().optional(),
41308
+ fixPr: z$1.object({
41309
+ repository: z$1.string(),
41310
+ pullNumber: z$1.number().int().positive()
41311
+ }).nullable().optional(),
41312
+ fixVerification: z$1.enum([
41313
+ "unavailable",
41314
+ "unverified",
41315
+ "verified"
41316
+ ]),
41292
41317
  entityContext: z$1.enum(["present-id-withheld", "unavailable"]),
41293
41318
  owner: z$1.string().nullable(),
41294
41319
  expiry: z$1.object({
@@ -41329,6 +41354,125 @@ z$1.object({
41329
41354
  assessmentId: z$1.string().regex(/^[a-f0-9]{24}$/i, "Not a valid assessment id")
41330
41355
  });
41331
41356
  /**
41357
+ * The deterministic case brief the admin Detections page shows beside a shadow detection (see
41358
+ * ./shadowDetection.ts): a conclusion, the plain-English reasons behind it, and what to do. Built
41359
+ * server-side by packages/server-utils/src/security/detectionCaseBrief/caseBrief.ts from the facts
41360
+ * below; nothing here acts on an account.
41361
+ */
41362
+ const DETECTION_CASE_ACCOUNT_STATUSES = [
41363
+ "active",
41364
+ "suspended",
41365
+ "deleted",
41366
+ "missing"
41367
+ ];
41368
+ /** Shape flags read from an account's address and username; each is a farming marker on its own. */
41369
+ const detectionCaseShapeSchema = z$1.object({
41370
+ /** A plus tag that looks random (canonicalEmail isRandomLookingTag). */
41371
+ randomPlusTag: z$1.boolean(),
41372
+ /** A Gmail local part dotted so heavily that it reads as a variant of another mailbox. */
41373
+ dottedGmail: z$1.boolean(),
41374
+ disposableDomain: z$1.boolean(),
41375
+ /** A per-user subdomain of a privacy relay (x@me.alias.example), which mints addresses at will. */
41376
+ aliasDomain: z$1.boolean(),
41377
+ /** A name followed by a hex counter (signupRiskScore looksGeneratedLocalPart). */
41378
+ generatedLocalPart: z$1.boolean(),
41379
+ /** A username holding a run of 5+ neighbouring keys on one keyboard row (asdfg, lkjhg). */
41380
+ keyboardMashUsername: z$1.boolean()
41381
+ });
41382
+ /** One account a listed detection (or its burst peers) names, with the facts its brief reads. */
41383
+ const detectionCaseAccountSchema = z$1.object({
41384
+ userId: z$1.string(),
41385
+ status: z$1.enum(DETECTION_CASE_ACCOUNT_STATUSES),
41386
+ /** Local part masked (`ab***@example.test`); null with no address. The user page shows the full one. */
41387
+ maskedEmail: z$1.string().nullable(),
41388
+ username: z$1.string().nullable(),
41389
+ signedUpAt: z$1.date().nullable(),
41390
+ /** Credits spent in the last 30 days, from usage events. Never derived from the balance. */
41391
+ spent30d: z$1.number(),
41392
+ /** The signup grant (signup plus unlock credits); null when the account has no grant record. */
41393
+ grantCredits: z$1.number().nullable(),
41394
+ /** Current balance; context only, since a held grant leaves it at 0 without any spend. */
41395
+ balance: z$1.number().nullable(),
41396
+ activeApiKeys: z$1.number().int(),
41397
+ shape: detectionCaseShapeSchema
41398
+ });
41399
+ const detectionCaseReasonSchema = z$1.object({
41400
+ key: z$1.enum([
41401
+ "single_account",
41402
+ "shared_device",
41403
+ "common_device",
41404
+ "no_shared_device",
41405
+ "ip_only_match",
41406
+ "shared_carrier_network",
41407
+ "disposable_domain",
41408
+ "alias_domain",
41409
+ "random_plus_tags",
41410
+ "dotted_gmail",
41411
+ "keyboard_mash_username",
41412
+ "generated_local_part",
41413
+ "sibling_drained_grant",
41414
+ "same_name",
41415
+ "same_first_name",
41416
+ "distinct_names",
41417
+ "no_farming_markers",
41418
+ "little_spend",
41419
+ "significant_spend",
41420
+ "close_signups"
41421
+ ]),
41422
+ text: z$1.string()
41423
+ });
41424
+ const detectionCaseActionSchema = z$1.discriminatedUnion("kind", [
41425
+ z$1.object({
41426
+ kind: z$1.literal("suspend"),
41427
+ userIds: z$1.array(z$1.string()).min(1)
41428
+ }),
41429
+ z$1.object({
41430
+ kind: z$1.literal("block_domain"),
41431
+ domain: z$1.string(),
41432
+ userIds: z$1.array(z$1.string()).min(1)
41433
+ }),
41434
+ z$1.object({ kind: z$1.literal("none") })
41435
+ ]);
41436
+ /** An account's place in one case: whether the detection names it or it is a burst peer. */
41437
+ const detectionCaseMemberSchema = z$1.object({
41438
+ userId: z$1.string(),
41439
+ role: z$1.enum(["named", "peer"]),
41440
+ /** Minutes to the nearest other account's signup in this case; null when either time is unknown. */
41441
+ gapMinutes: z$1.number().nullable(),
41442
+ sharesDevice: z$1.boolean()
41443
+ });
41444
+ const briefBase = {
41445
+ /** One line for the table row. */
41446
+ headline: z$1.string(),
41447
+ reasons: z$1.array(detectionCaseReasonSchema),
41448
+ members: z$1.array(detectionCaseMemberSchema)
41449
+ };
41450
+ const detectionCaseBriefSchema = z$1.discriminatedUnion("conclusion", [
41451
+ z$1.object({
41452
+ ...briefBase,
41453
+ conclusion: z$1.literal("likely_abuse"),
41454
+ recommendedVerdict: z$1.literal("confirmed_abuse"),
41455
+ recommendedAction: detectionCaseActionSchema
41456
+ }),
41457
+ z$1.object({
41458
+ ...briefBase,
41459
+ conclusion: z$1.literal("likely_legitimate"),
41460
+ recommendedVerdict: z$1.literal("legitimate_human"),
41461
+ recommendedAction: z$1.object({ kind: z$1.literal("none") })
41462
+ }),
41463
+ z$1.object({
41464
+ ...briefBase,
41465
+ conclusion: z$1.literal("needs_review"),
41466
+ /** No verdict is suggested: the evidence does not point either way. */
41467
+ recommendedVerdict: z$1.null(),
41468
+ recommendedAction: z$1.object({ kind: z$1.literal("none") })
41469
+ })
41470
+ ]);
41471
+ const detectionCaseBriefEntrySchema = z$1.object({
41472
+ detectionId: z$1.string(),
41473
+ brief: detectionCaseBriefSchema
41474
+ });
41475
+ /**
41332
41476
  * Shadow detections: what an abuse detector WOULD have done to an actor, recorded next to its alert
41333
41477
  * without acting, so admins can grade each one and measure detection errors before any automated
41334
41478
  * containment is switched on. Recording never changes access, credits, API keys or
@@ -41498,7 +41642,11 @@ z$1.object({
41498
41642
  accounts: z$1.array(shadowDetectionAccountSchema),
41499
41643
  burstPeers: z$1.array(shadowDetectionBurstPeersSchema),
41500
41644
  /** Everyone who recorded a verdict on the listed detections, so the page can name them. */
41501
- reviewers: z$1.array(shadowDetectionReviewerSchema)
41645
+ reviewers: z$1.array(shadowDetectionReviewerSchema),
41646
+ /** The facts each case brief reads, one entry per account in `accounts`. */
41647
+ caseAccounts: z$1.array(detectionCaseAccountSchema),
41648
+ /** One deterministic case brief per listed detection (./detectionCaseBrief.ts). */
41649
+ briefs: z$1.array(detectionCaseBriefEntrySchema)
41502
41650
  });
41503
41651
  z$1.object({
41504
41652
  detector: z$1.enum(SHADOW_DETECTORS).optional(),
@@ -43996,22 +44144,6 @@ const VIEW_REGISTRY = [
43996
44144
  ],
43997
44145
  requiresAdmin: true
43998
44146
  },
43999
- {
44000
- id: "admin.secops_triage",
44001
- section: "admin",
44002
- label: "Security scan issue filing",
44003
- description: "Security page, Scans view: GitHub issue filing status, recent filing runs and its settings (dry run, repository, Slack)",
44004
- navigationType: "tab",
44005
- target: "51",
44006
- keywords: [
44007
- "secops",
44008
- "security triage",
44009
- "security alerts",
44010
- "vulnerabilities",
44011
- "security issues"
44012
- ],
44013
- requiresAdmin: true
44014
- },
44015
44147
  {
44016
44148
  id: "admin.audit_log",
44017
44149
  section: "admin",
@@ -45521,4 +45653,4 @@ const logger = class Logger {
45521
45653
  }.getInstance();
45522
45654
  logger.setVerbose(process.env.B4M_VERBOSE === "1");
45523
45655
  //#endregion
45524
- export { RESEARCH_ITEM_RULE_ACTIONS as $, ttsBase64ResponseSchema as $t, DEFAULT_TTS_PROVIDER as A, isPlaceholderImageSigningSecret as At, LOW_CONFIDENCE_COMPLETION_MODES as B, planProgress as Bt, CREDIT_DEDUCT_TRANSACTION_TYPES as C, getQuestErrorCode as Ct, CreateArtifactRequestSchema as D, isEnforceCreditsLocked as Dt, CompletionReasoningEffortSchema as E, isEarlyStop as Et, EMBEDDING_MODEL_IDS as F, isUserInitiatedAbort as Ft, NotFoundError as G, secureParameters as Gt, MODEL_INFO_FIELD_GROUP_OF as H, reasoningChannelOf as Ht, ExpectedToolError as I, joinReplySlots as It, PROMPT_TEXT_MAX as J, splitEquals as Jt, OllamaEmbeddingModel as K, servableEmbeddingDimensions as Kt, ImageJobSchema as L, normalizeDomainEntry as Lt, DecisionTextPartSchema as M, isRetryableError as Mt, DecisionsRequestSchema as N, isSupportedEmbeddingModel as Nt, CreateImageJobResponseSchema as O, isExpectedToolError as Ot, EMBEDDING_MODEL_CATALOG as P, isSupportedFabFileMimeType as Pt, RESEARCH_FEED_URL_MAX_CHARS as Q, tokenEstimateMultiplier as Qt, ImageModels as R, obfuscateApiKey as Rt, CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS as S, getMcpProviderMetadata as St, ChatModels as T, hasDeliverablePinnedArtifact as Tt, McpServerName as U, replacePromptVariables as Ut, MODEL_DECLINED_MESSAGE as V, questReplyText as Vt, ModelBackend as W, resolveSettingDefinition as Wt, RESEARCH_COST_CEILING_MICRO_USD_LIMIT as X, stripToolArtifactMarkup as Xt, PermissionDeniedError as Y, stripDeliveredArtifactBlocks as Yt, RESEARCH_DROP_REASONS as Z, supportedVoiceGenerationVendor as Zt, AudioMimeType as _, escapeThinkMarkers as _t, htmlFirstH1 as a, ACTOR_COLOR_SLOTS as an, SLUG_OWNED_BY_OTHER as at, BriefcasePromptIdSchema as b, generatedAudioResponseSchema as bt, AGENT_QUEST_MANIFEST as c, actorKindMarker as cn, VisibilitySchema as ct, ARTIFACT_REMOVED_PLACEHOLDER as d, selfClaimedActorKindSchema as dn, assertAuthOriginMatchesApiKey as dt, ttsRequestSchema as en, RESEARCH_MIN_RELEVANCE_DEFAULT as et, AdminAiStoredConfigSchema as f, frontmatterHasSourceStamp as fn, buildPromptContext as ft, ArtifactTypeSchema as g, WEBSITE_URL as gn, createThinkMarkerEscaper as gt, ApiKeyType as h, APP_NAME as hn, createReasoningWithholder as ht, htmlErrorTitle as i, withholdsReasoning as in, SEARCH_RESULT_CARDS_LANGUAGE as it, DEGENERATE_FINISH_REASON as j, isProviderRefusalStopReason as jt, DATA_LAKE_PROPOSAL_STATUSES as k, isPlaceholderApiKey as kt, AGENT_QUEST_MCP_URI as l, actorKindSchema as ln, VoyageAIEmbeddingModel as lt, ApiKeyScope as m, splitSkillMdFrontmatter as mn, createMutex as mt, SESSION_ID_PATTERN as n, visibleReplyText as nn, RESEARCH_SOURCES as nt, escapeArtifactBodyJson as o, DELEGATION_PAYLOAD_SCHEMA_NAME as on, SupportedFabFileMimeTypes as ot, AiAccessRefusedError as p, readSkillMdSourceUrl as pn, completionsSupportsToolSearch as pt, OpenAIEmbeddingModel as q, signImageUrl as qt, isValidSessionId as r, withRetry as rn, RESEARCH_UNLISTED_SOURCES as rt, AGENT_QUEST_ID as s, actorColorIndex as sn, UnprocessableEntityError as st, logger as t, ttsResponseTooLargeSchema as tn, RESEARCH_SCHEDULE_CADENCES as tt, ARTIFACT_DELIVERED_PLACEHOLDER as u, delegationPayloadSchema as un, WORK_ITEM_STATUSES as ut, BRIEFCASE_CATALOG_QUERIES as v, filterToolArtifactMarkup as vt, CUSTOM_MCP_DATA_NOTICE as w, googleMapsSearchUrl as wt, CONFIDENCE_GATE_MODES as x, getEmbeddingModelCapabilities as xt, BedrockEmbeddingModel as y, fromCliTodos as yt, LOCATION_MAP_LANGUAGE as z, planLeaves as zt };
45656
+ export { RESEARCH_FEED_URL_MAX_CHARS as $, tokenEstimateMultiplier as $t, DATA_LAKE_PROPOSAL_STATUSES as A, isPlaceholderApiKey as At, LOCATION_MAP_LANGUAGE as B, planLeaves as Bt, CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS as C, getMcpProviderMetadata as Ct, CompletionReasoningEffortSchema as D, isEarlyStop as Dt, ChatModels as E, hasDeliverablePinnedArtifact as Et, EMBEDDING_MODEL_CATALOG as F, isSupportedFabFileMimeType as Ft, ModelBackend as G, resolveSettingDefinition as Gt, MODEL_DECLINED_MESSAGE as H, questReplyText as Ht, EMBEDDING_MODEL_IDS as I, isUserInitiatedAbort as It, OpenAIEmbeddingModel as J, signImageUrl as Jt, NotFoundError as K, secureParameters as Kt, ExpectedToolError as L, joinReplySlots as Lt, DEGENERATE_FINISH_REASON as M, isProviderRefusalStopReason as Mt, DecisionTextPartSchema as N, isRetryableError as Nt, CreateArtifactRequestSchema as O, isEnforceCreditsLocked as Ot, DecisionsRequestSchema as P, isSupportedEmbeddingModel as Pt, RESEARCH_DROP_REASONS as Q, supportedVoiceGenerationVendor as Qt, ImageJobSchema as R, normalizeDomainEntry as Rt, CONFIDENCE_GATE_MODES as S, getEmbeddingModelCapabilities as St, CUSTOM_MCP_DATA_NOTICE as T, googleMapsSearchUrl as Tt, MODEL_INFO_FIELD_GROUP_OF as U, reasoningChannelOf as Ut, LOW_CONFIDENCE_COMPLETION_MODES as V, planProgress as Vt, McpServerName as W, replacePromptVariables as Wt, PermissionDeniedError as X, stripDeliveredArtifactBlocks as Xt, PROMPT_TEXT_MAX as Y, splitEquals as Yt, RESEARCH_COST_CEILING_MICRO_USD_LIMIT as Z, stripToolArtifactMarkup as Zt, AudioMimeType as _, WEBSITE_URL as _n, createThinkMarkerEscaper as _t, htmlFirstH1 as a, withholdsReasoning as an, SEARCH_RESULT_CARDS_LANGUAGE as at, BedrockEmbeddingModel as b, fromCliTodos as bt, AGENT_QUEST_MANIFEST as c, actorColorIndex as cn, UnprocessableEntityError as ct, ARTIFACT_REMOVED_PLACEHOLDER as d, delegationPayloadSchema as dn, WORK_ITEM_STATUSES as dt, ttsBase64ResponseSchema as en, RESEARCH_ITEM_RULE_ACTIONS as et, AdminAiStoredConfigSchema as f, selfClaimedActorKindSchema as fn, assertAuthOriginMatchesApiKey as ft, ArtifactTypeSchema as g, APP_NAME as gn, createReasoningWithholder as gt, ApiKeyType as h, splitSkillMdFrontmatter as hn, createMutex as ht, htmlErrorTitle as i, withRetry as in, RESEARCH_UNLISTED_SOURCES as it, DEFAULT_TTS_PROVIDER as j, isPlaceholderImageSigningSecret as jt, CreateImageJobResponseSchema as k, isExpectedToolError as kt, AGENT_QUEST_MCP_URI as l, actorKindMarker as ln, VisibilitySchema as lt, ApiKeyScope as m, readSkillMdSourceUrl as mn, completionsSupportsToolSearch as mt, SESSION_ID_PATTERN as n, ttsResponseTooLargeSchema as nn, RESEARCH_SCHEDULE_CADENCES as nt, escapeArtifactBodyJson as o, ACTOR_COLOR_SLOTS as on, SLUG_OWNED_BY_OTHER as ot, AiAccessRefusedError as p, frontmatterHasSourceStamp as pn, buildPromptContext as pt, OllamaEmbeddingModel as q, servableEmbeddingDimensions as qt, isValidSessionId as r, visibleReplyText as rn, RESEARCH_SOURCES as rt, AGENT_QUEST_ID as s, DELEGATION_PAYLOAD_SCHEMA_NAME as sn, SupportedFabFileMimeTypes as st, logger as t, ttsRequestSchema as tn, RESEARCH_MIN_RELEVANCE_DEFAULT as tt, ARTIFACT_DELIVERED_PLACEHOLDER as u, actorKindSchema as un, VoyageAIEmbeddingModel as ut, BRIEFCASE_CATALOG_QUERIES as v, escapeThinkMarkers as vt, CREDIT_DEDUCT_TRANSACTION_TYPES as w, getQuestErrorCode as wt, BriefcasePromptIdSchema as x, generatedAudioResponseSchema as xt, BadGatewayError as y, filterToolArtifactMarkup as yt, ImageModels as z, obfuscateApiKey as zt };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as DEFAULT_SANDBOX_CONFIG } from "./types-CxrzVXel.mjs";
3
- import { c as resolveSandboxPath } from "./SandboxRuntimeAdapter-HEkl0-qG.mjs";
3
+ import { c as resolveSandboxPath } from "./SandboxRuntimeAdapter-CJhDJVwo.mjs";
4
4
  import path from "path";
5
5
  //#region src/sandbox/SandboxOrchestrator.ts
6
6
  var SandboxOrchestrator = class {
@@ -178,11 +178,11 @@ async function createSandboxRuntime() {
178
178
  const platform = detectPlatform();
179
179
  if (!platform) return null;
180
180
  if (platform === "darwin") {
181
- const { SeatbeltRuntime } = await import("./SeatbeltRuntime-CYsIp616.mjs");
181
+ const { SeatbeltRuntime } = await import("./SeatbeltRuntime-oPrQ1VGL.mjs");
182
182
  const runtime = new SeatbeltRuntime();
183
183
  return runtime.isAvailable() ? runtime : null;
184
184
  }
185
- const { BubblewrapRuntime } = await import("./BubblewrapRuntime-DotKnqtu.mjs");
185
+ const { BubblewrapRuntime } = await import("./BubblewrapRuntime-BQICHr_L.mjs");
186
186
  const runtime = new BubblewrapRuntime();
187
187
  return runtime.isAvailable() ? runtime : null;
188
188
  }
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { t as assertProxyPort, n as createSandboxRuntime, r as detectPlatform, i as expandPath, a as getContainerSocketPaths, o as getProtectedWorkspacePaths, s as isBinaryAvailable, c as resolveSandboxPath } from "./SandboxRuntimeAdapter-HEkl0-qG.mjs";
2
+ export { t as assertProxyPort, n as createSandboxRuntime, r as detectPlatform, i as expandPath, a as getContainerSocketPaths, o as getProtectedWorkspacePaths, s as isBinaryAvailable, c as resolveSandboxPath } from "./SandboxRuntimeAdapter-CJhDJVwo.mjs";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as logger } from "./Logger-D6QD3c7G.mjs";
3
- import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-HEkl0-qG.mjs";
2
+ import { t as logger } from "./Logger-DqWiTWp3.mjs";
3
+ import { a as getContainerSocketPaths, c as resolveSandboxPath, o as getProtectedWorkspacePaths, s as isBinaryAvailable, t as assertProxyPort } from "./SandboxRuntimeAdapter-CJhDJVwo.mjs";
4
4
  import { mkdtempSync, writeFileSync } from "fs";
5
5
  import os from "os";
6
6
  import path from "path";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { Qt as tokenEstimateMultiplier } from "./Logger-D6QD3c7G.mjs";
2
+ import { $t as tokenEstimateMultiplier } from "./Logger-DqWiTWp3.mjs";
3
3
  import { get_encoding } from "tiktoken";
4
4
  //#region ../../b4m-core/utils/dist/calibratedTokenizer.mjs
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { F as generateCliTools, a as loadProjectContext, at as ReActAgent, ct as wrapTools, ft as getPlanModeFilePath, i as buildProjectAgentStore, it as DeferredToolRegistry, n as BackgroundAgentManager, nt as buildSystemPrompt, o as McpManager, ot as createToolSearchTool, r as SubagentOrchestrator, t as AgentHistoryStore } from "./AgentHistoryStore-DrZ47hqO.mjs";
3
- import { pt as completionsSupportsToolSearch, t as logger } from "./Logger-D6QD3c7G.mjs";
2
+ import { F as generateCliTools, a as loadProjectContext, at as ReActAgent, ct as wrapTools, ft as getPlanModeFilePath, i as buildProjectAgentStore, it as DeferredToolRegistry, n as BackgroundAgentManager, nt as buildSystemPrompt, o as McpManager, ot as createToolSearchTool, r as SubagentOrchestrator, t as AgentHistoryStore } from "./AgentHistoryStore-dVWBO__c.mjs";
3
+ import { mt as completionsSupportsToolSearch, t as logger } from "./Logger-DqWiTWp3.mjs";
4
4
  //#region src/llm/NotifyingLlmBackend.ts
5
5
  /**
6
6
  * LLM backend wrapper that injects background agent notifications
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { A as FallbackLlmBackend, D as createResumeAgentTool, E as createCoordinateTaskTool, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, S as createWriteTodosTool, U as NoLocalModelsError, Z as signInUncheckedHeadlessMessage, b as createFindDefinitionTool, c as checkSavedSignIn, f as buildLlmBackend, gt as CheckpointStore, k as createAgentDelegateTool, l as settleSignInRefresh, pt as CustomCommandStore, q as SIGN_IN_EXPIRED_HEADLESS, s as buildSandbox, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, x as createTodoStore } from "../AgentHistoryStore-DrZ47hqO.mjs";
3
- import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-DfuE49PH.mjs";
4
- import { mt as createMutex, t as logger } from "../Logger-D6QD3c7G.mjs";
2
+ import { A as FallbackLlmBackend, D as createResumeAgentTool, E as createCoordinateTaskTool, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, S as createWriteTodosTool, U as NoLocalModelsError, Z as signInUncheckedHeadlessMessage, b as createFindDefinitionTool, c as checkSavedSignIn, f as buildLlmBackend, gt as CheckpointStore, k as createAgentDelegateTool, l as settleSignInRefresh, pt as CustomCommandStore, q as SIGN_IN_EXPIRED_HEADLESS, s as buildSandbox, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, x as createTodoStore } from "../AgentHistoryStore-dVWBO__c.mjs";
3
+ import { c as ToolCatalog, t as ConfigStore, v as requireApiUrl } from "../ConfigStore-BnhyywYB.mjs";
4
+ import { ht as createMutex, t as logger } from "../Logger-DqWiTWp3.mjs";
5
5
  import { t as RemoteSkillSource } from "../RemoteSkillSource-HqoLRV56.mjs";
6
- import { t as ApiClient } from "../ApiClient-B8VxyNEM.mjs";
7
- import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "../buildToolSearch-Bb-DPCb0.mjs";
6
+ import { t as ApiClient } from "../ApiClient-ByJM2OpM.mjs";
7
+ import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "../buildToolSearch-BLpr9m1F.mjs";
8
8
  import { randomUUID } from "crypto";
9
9
  import { existsSync, realpathSync, statSync } from "fs";
10
10
  import { isAbsolute } from "path";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { T as parseApiUrl, t as ConfigStore, y as resolveApiEndpoint } from "../ConfigStore-DfuE49PH.mjs";
2
+ import { T as parseApiUrl, t as ConfigStore, y as resolveApiEndpoint } from "../ConfigStore-BnhyywYB.mjs";
3
3
  //#region src/commands/apiCommand.ts
4
4
  /**
5
5
  * External API config command (--api-url / --reset-api)
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as version } from "../package-hEkaJgsy.mjs";
3
- import { c as isNpmPrefixWritable, i as fetchLatestVersion, r as compareSemver } from "../updateChecker-dZqiMftm.mjs";
2
+ import { t as version } from "../package-CZ2nssWx.mjs";
3
+ import { c as isNpmPrefixWritable, i as fetchLatestVersion, r as compareSemver } from "../updateChecker-DoKgSiYX.mjs";
4
4
  import { t as checkRipgrep } from "../ripgrepCheck-BmkyTK2i.mjs";
5
5
  import { existsSync } from "fs";
6
6
  import { homedir } from "os";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as ConfigStore } from "../ConfigStore-DfuE49PH.mjs";
2
+ import { t as ConfigStore } from "../ConfigStore-BnhyywYB.mjs";
3
3
  //#region src/commands/envCommand.ts
4
4
  /**
5
5
  * Environment switching for the `--dev` / `--prod` launch flags.