spur-board 0.139.1 → 0.141.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.
@@ -1,4 +1,4 @@
1
- import { _ as renderJsonError, c as tokenRequestStatusSchema, ct as ERRORS, dt as errorEnvelopeSchema, o as tokenRequestResultSchema, pt as successEnvelopeSchema, ut as errorContextSchema } from "./chunk-Cs93EYpr.mjs";
1
+ import { _ as renderJsonError, c as tokenRequestStatusSchema, dt as errorContextSchema, ft as errorEnvelopeSchema, lt as ERRORS, mt as successEnvelopeSchema, o as tokenRequestResultSchema } from "./chunk-cNszIZ1p.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { z } from "zod";
4
4
  import { request } from "node:http";
@@ -1,5 +1,5 @@
1
- import { Et as plainHttpAllowed, d as buildCatalogSnapshot, p as OPERATIONS, wt as configSchema } from "./chunk-Cs93EYpr.mjs";
2
- import { o as CliError, t as fetchCatalogVersion } from "./chunk-B4uktrzm.mjs";
1
+ import { Dt as plainHttpAllowed, Tt as configSchema, d as buildCatalogSnapshot, p as OPERATIONS } from "./chunk-cNszIZ1p.mjs";
2
+ import { o as CliError, t as fetchCatalogVersion } from "./chunk-BbsLyYl1.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { closeSync, constants, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, realpathSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { homedir } from "node:os";
@@ -564,6 +564,7 @@ const projectSchema = z.strictObject({
564
564
  repos: z.array(repoSlugSchema.describe("A repository as owner/name.")).min(1).describe("GitHub repositories as owner/name whose PRs the board polls for this project, one source each. A done task is archived only after every listed repository has a complete poll since its last change."),
565
565
  reposWithoutCi: z.array(repoSlugSchema.describe("A repository from repos as owner/name, in any letter case.")).default([]).describe("Repos from repos that run no CI checks, in any letter case. In a listed repo, a PR whose check list on head is empty passes the Dev gate check condition instead of waiting in Dev. A list of only skipped checks still waits, and red or pending checks still count. A listed repo whose branch protection requires checks that have not reported yet also passes, so list only repos that run no checks. Without this key, a PR with no checks waits in Dev."),
566
566
  checksGate: z.enum(CHECKS_GATE_COLUMNS, { error: (issue) => typeof issue.input === "string" ? `checksGate ${JSON.stringify(issue.input)} is not allowed: use one of ${CHECKS_GATE_COLUMNS.join(", ")}` : `checksGate must be one of ${CHECKS_GATE_COLUMNS.join(", ")}` }).default("dev").describe("The column whose exit requires green checks on the PR head: dev (the default), review, product-review or external-review, and the column must be enabled. Running checks, or no checks yet, hold a task only at the exit of this column. Red checks return the task to Dev from any column; a task whose turn is taken returns right after that turn's submit. A task enters ready-to-merge only with green checks. With dev, a cancelled check is red at once. With another column, a cancelled check counts as running until two complete GitHub polls after the one that saw it, about two GitHub poll intervals, and then counts as red; a new run in that window replaces it, and a source whose polls stay incomplete keeps it running. The daemon reads the key at start, so a change takes effect after a restart."),
567
+ approvalWatch: z.array(z.string({ error: "approvalWatch entries must be strings" }).regex(/^[^/\s]+\/?$/, { error: (issue) => `approvalWatch entry ${JSON.stringify(issue.input)} is not allowed: use one top-level directory or root file name, such as back/ or package.json, without spaces or an inner /` }).refine((entry) => ![".", ".."].includes(entry.replace(/\/$/, "")), { error: (issue) => `approvalWatch entry ${JSON.stringify(issue.input)} is not allowed: name a top-level directory or root file, not . or ..` }).describe("One top-level directory (back/) or root file (package.json) of the repository. The trailing / is optional: back/ and back each match a directory or a file named back. Case-sensitive."), { error: "approvalWatch must be a list of top-level directories or root files" }).min(1, { error: "approvalWatch must list at least one entry; leave the key out to watch everything" }).optional().describe("Top-level directories and root files whose change after an approval the board points out. For each approval of an open PR given on an older commit than the head, board status and board task list every top-level entry changed by the commits after it in changedAfter, and the entries that match this list in watchedAfter. Without the key every changed top-level entry counts as watched. A hint only: no gate, move or turn reads it. The daemon reads the key at start, so a change takes effect after a restart."),
567
568
  link: z.strictObject({
568
569
  sources: z.array(z.enum(LINK_SOURCES).describe("One place a PR can name its task: closing, branch or title.")).min(1).superRefine((sources, ctx) => {
569
570
  sources.forEach((source, i) => {
@@ -603,6 +604,20 @@ const projectSchema = z.strictObject({
603
604
  submitConfirmMs: durationMs(18e4, "How long the board waits to confirm a turn submit it accepted pending (no PR linked yet, or GitHub not confirming the head) before handing the turn back to its executor with the reason")
604
605
  }).prefault({}).describe("How the board moves tasks between columns. The board records the mode it last ran with. The daemon reads the mode at start, so a change takes effect after a restart; a switch from shadow to on copies the shadow column of each task into its column, and a switch back to shadow closes the open turns and starts the shadow column from the column again.")
605
606
  }).superRefine((project, ctx) => {
607
+ const watched = /* @__PURE__ */ new Map();
608
+ project.approvalWatch?.forEach((entry, j) => {
609
+ const name = entry.replace(/\/$/, "");
610
+ const first = watched.get(name);
611
+ if (first === void 0) {
612
+ watched.set(name, entry);
613
+ return;
614
+ }
615
+ ctx.addIssue({
616
+ code: "custom",
617
+ path: ["approvalWatch", j],
618
+ message: `Duplicate approvalWatch entry ${JSON.stringify(entry)}: ${JSON.stringify(first)} already names it`
619
+ });
620
+ });
606
621
  const repos = new Set(project.repos.map((repo) => repo.toLowerCase()));
607
622
  project.reposWithoutCi.forEach((repo, j) => {
608
623
  if (repos.has(repo.toLowerCase())) return;
@@ -1891,6 +1906,28 @@ const prReviewRuleSchema = z.strictObject({
1891
1906
  reviewDecision: z.enum(REVIEW_DECISIONS).nullable().describe("GitHub's review verdict on the head; null when GitHub gives none or a new one."),
1892
1907
  rule: reviewRuleSchema.nullable().describe("Null when the token could not read the rule; the head then has no decision from the read.")
1893
1908
  }).describe("The pull request's review verdict and its base branch's review rule.");
1909
+ /** Why the commits after an approval were not counted. */
1910
+ const APPROVAL_NOT_COUNTED = [
1911
+ "history_rewritten",
1912
+ "rate_limit",
1913
+ "pr_too_large"
1914
+ ];
1915
+ const approvalPairShape = {
1916
+ approvedSha: commitShaSchema.describe("Commit the approval was given on."),
1917
+ headSha: commitShaSchema.describe("Head commit of the pull request the pair was read for.")
1918
+ };
1919
+ /**
1920
+ * What changed between an approval's commit and the head, from a read of the PR's commits. It
1921
+ * travels beside the PR facts, never inside them, and never feeds a gate.
1922
+ */
1923
+ const prApprovalPairSchema = z.union([z.strictObject({
1924
+ ...approvalPairShape,
1925
+ commitsAfter: z.int().min(0).describe("Single-parent commits after the approval up to the head; merges left out."),
1926
+ changed: z.array(z.string().regex(/^[^/]+\/?$/, "Expected a top-level entry name").describe("A top-level entry: name/ for a directory, a bare name for a file.")).describe("Top-level entries those commits changed, sorted, once each.")
1927
+ }), z.strictObject({
1928
+ ...approvalPairShape,
1929
+ notCounted: z.enum(APPROVAL_NOT_COUNTED).describe("history_rewritten: the approved commit is not in the head history; rate_limit: the read waited for GitHub budget; pr_too_large: more than 100 commits.")
1930
+ })]).describe("The commits and top-level entries after one approval, or why they were not counted.");
1894
1931
  /**
1895
1932
  * Whether a comment or review came from outside: not by `agentLogin` in any letter case and not
1896
1933
  * by a bot. A deleted account counts as external.
@@ -2008,7 +2045,8 @@ const batchItemSchema = z.discriminatedUnion("kind", [
2008
2045
  kind: z.literal("pr").describe("Pull request facts."),
2009
2046
  facts: prFactsSchema,
2010
2047
  continuation: z.strictObject({ resume: sourceCursorSchema.nullable().describe("Opaque position to read further back from; null at the start of the PR.") }).nullable().optional().describe("Comment history core holds for the next poll (A10): omitted says nothing, null drops it, an object holds facts.feedback with resume."),
2011
- reviewRule: prReviewRuleSchema.optional().describe("GitHub's review verdict and the base branch's review rule from this full read, sent only for a project whose External Review sets approvalRule github-rules; omitted says nothing new.")
2048
+ reviewRule: prReviewRuleSchema.optional().describe("GitHub's review verdict and the base branch's review rule from this full read, sent only for a project whose External Review sets approvalRule github-rules; omitted says nothing new."),
2049
+ approvalPairs: z.array(prApprovalPairSchema).optional().describe("What changed after each approval not on the head, for a requested open PR; omitted says nothing new. A hint for status views, never a gate input.")
2012
2050
  }),
2013
2051
  z.strictObject({
2014
2052
  kind: z.literal("ticket").describe("Ticket facts."),
@@ -2985,6 +3023,17 @@ const latestSubmissionSchema = z.strictObject({
2985
3023
  voided: z.boolean().describe("Whether this submission has been voided for gate purposes.")
2986
3024
  }).describe("Latest accepted submission by row order, including pending and voided submissions.").nullable().optional().describe("Latest submission; null when none, absent on older servers.");
2987
3025
  const summaryCount = (what) => z.int().min(0).describe(what);
3026
+ const topLevelEntries = (what) => z.array(z.string().describe("A top-level entry: name/ for a directory, a bare name for a file.")).optional().describe(what);
3027
+ /** One latest approval of an open pull request and what changed after it. */
3028
+ const approvalViewSchema = z.strictObject({
3029
+ author: prFactsSchema.shape.reviews.element.shape.reviewer,
3030
+ sha: commitShaSchema.describe("Commit the approval was given on."),
3031
+ onHead: z.boolean().describe("Whether the approval was given on the current head."),
3032
+ commitsAfter: summaryCount("Single-parent commits after the approval up to the head; merges, base-branch merges included, are left out. Absent when not counted or not read yet.").optional(),
3033
+ changedAfter: topLevelEntries("Every top-level entry those commits changed, sorted. Absent when not counted or not read yet."),
3034
+ watchedAfter: topLevelEntries("The part of changedAfter that matches the project's approvalWatch; all of changedAfter without the key. Absent when not counted or not read yet."),
3035
+ notCounted: z.enum(APPROVAL_NOT_COUNTED).optional().describe("Why the commits were not counted: history_rewritten (the approved commit is not in the head history), rate_limit (waiting for GitHub budget) or pr_too_large (more than 100 commits). Absent when counted or not read yet.")
3036
+ }).describe("A latest approval. commitsAfter, changedAfter and watchedAfter come together; notCounted replaces them; none of them means not read yet. A hint, never a gate.");
2988
3037
  const prSummarySchema = z.strictObject({
2989
3038
  repo: prFactsSchema.shape.repo,
2990
3039
  number: prFactsSchema.shape.number,
@@ -3004,7 +3053,8 @@ const prSummarySchema = z.strictObject({
3004
3053
  }).describe("Latest recorded reviews on the current head, without gate filtering."),
3005
3054
  draft: prFactsSchema.shape.draft,
3006
3055
  factAt: z.iso.datetime().describe("Snapshot observation time, ISO 8601 UTC."),
3007
- unconfirmed: z.boolean().describe("Observation is stale or its supporting source is blind or missing.")
3056
+ unconfirmed: z.boolean().describe("Observation is stale or its supporting source is blind or missing."),
3057
+ approvals: z.array(approvalViewSchema).optional().describe("Latest approvals in review order with what changed after each; present only for an open pull request with at least one approval.")
3008
3058
  }).describe("Compact observed pull request facts.");
3009
3059
  // ../contracts/src/ops/schemas.ts
3010
3060
  /**
@@ -3125,7 +3175,8 @@ const linkViewSchema = z.strictObject({
3125
3175
  "other",
3126
3176
  "orchestrator"
3127
3177
  ]).nullable().describe("Session role; null for a pull request or ticket."),
3128
- state: z.enum(PR_STATES).optional().describe("Pull request state as last observed; absent for a session or ticket and for a pull request not observed yet. Only task.get sets it.")
3178
+ state: z.enum(PR_STATES).optional().describe("Pull request state as last observed; absent for a session or ticket and for a pull request not observed yet. Only task.get sets it."),
3179
+ approvals: z.array(approvalViewSchema).optional().describe("Latest approvals of an open pull request with what changed after each, as in status.get prSummary; absent for a session or ticket and for a pull request with no approval. Only task.get sets it.")
3129
3180
  }).describe("An effective link to a task.");
3130
3181
  const detailOnly = "Present only with detail.";
3131
3182
  const count = (what) => z.int().min(0).describe(what);
@@ -3188,40 +3239,6 @@ const statusItemSchema = itemViewSchema.extend({
3188
3239
  unconfirmed: z.boolean().describe("Whether a supporting fact is stale or its source is blind."),
3189
3240
  factAt: z.iso.datetime().nullable().describe("Time of the supporting fact, when known.")
3190
3241
  }).describe("An actionable item with its freshness mark.");
3191
- /** Roles `schema.get` can filter the catalog for. */
3192
- const SCHEMA_ROLES = [
3193
- "operator",
3194
- "worker",
3195
- "orchestrator"
3196
- ];
3197
- const jsonSchemaPayload = (what) => z.record(z.string(), z.unknown()).describe(`JSON Schema of the ${what}.`);
3198
- const schemaGetOutputSchema = z.strictObject({
3199
- version: z.string().regex(/^[0-9a-f]{64}$/).describe("Catalog version: sha256 hex of ops.snapshot.json; examples use a placeholder."),
3200
- operations: z.array(z.strictObject({
3201
- id: z.string().describe("Operation ID, e.g. task.get."),
3202
- kind: z.enum(OPERATION_KINDS).describe("query reads; mutation changes state."),
3203
- description: z.string().describe("What the operation does."),
3204
- grants: z.union([z.literal("any"), z.array(grantRuleSchema).min(1)]).describe("Who may call it: any identified caller, or the listed rules."),
3205
- errors: z.array(z.string()).describe("Error codes the operation can return."),
3206
- explicitKeyModes: z.array(z.string()).optional().describe("Modes requiring a caller-chosen idempotency key, including for operators."),
3207
- cli: z.strictObject({
3208
- command: z.string().describe("CLI command after `board`."),
3209
- defaultMode: z.string().optional().describe("Input mode used when no mode flag is supplied."),
3210
- args: z.array(z.string()).describe("Input fields given as positional arguments."),
3211
- modes: z.array(cliModeSchema).min(1).nullable().describe("Flags that pick a branch of a union input; null for a plain input."),
3212
- key: z.literal("--key").nullable().describe("Idempotency key flag; null for a query.")
3213
- }).describe("CLI binding."),
3214
- mcp: z.strictObject({
3215
- name: z.string().describe("MCP tool name."),
3216
- key: z.literal("idempotencyKey").nullable().describe("Idempotency key argument; null for a query."),
3217
- whenToUse: z.string().min(1).describe("When this MCP tool is appropriate."),
3218
- whenNotToUse: z.string().min(1).describe("When to use a neighboring tool instead."),
3219
- destructive: z.boolean().describe("MCP destructiveHint: false only for a mutation that writes only new rows.")
3220
- }).describe("MCP binding."),
3221
- inputSchema: jsonSchemaPayload("input"),
3222
- outputSchema: jsonSchemaPayload("output")
3223
- }).describe("One operation.")).describe("Operations the caller may use.")
3224
- }).describe("The operation catalog.");
3225
3242
  // ../contracts/src/ops/source-view-schema.ts
3226
3243
  /** The stored colour of a repository's default-branch head, as status.get shows it. */
3227
3244
  const defaultBranchViewSchema = z.strictObject({
@@ -3645,6 +3662,41 @@ taskHistoryOutputSchema.extend({ events: z.array(taskHistoryEventSchema.extend({
3645
3662
  via: z.string().min(1).optional()
3646
3663
  })) });
3647
3664
  ({ ...turnWriteOperations });
3665
+ // ../contracts/src/ops/schema-get-schema.ts
3666
+ /** Roles `schema.get` can filter the catalog for. */
3667
+ const SCHEMA_ROLES = [
3668
+ "operator",
3669
+ "worker",
3670
+ "orchestrator"
3671
+ ];
3672
+ const jsonSchemaPayload = (what) => z.record(z.string(), z.unknown()).describe(`JSON Schema of the ${what}.`);
3673
+ const schemaGetOutputSchema = z.strictObject({
3674
+ version: z.string().regex(/^[0-9a-f]{64}$/).describe("Catalog version: sha256 hex of ops.snapshot.json; examples use a placeholder."),
3675
+ operations: z.array(z.strictObject({
3676
+ id: z.string().describe("Operation ID, e.g. task.get."),
3677
+ kind: z.enum(OPERATION_KINDS).describe("query reads; mutation changes state."),
3678
+ description: z.string().describe("What the operation does."),
3679
+ grants: z.union([z.literal("any"), z.array(grantRuleSchema).min(1)]).describe("Who may call it: any identified caller, or the listed rules."),
3680
+ errors: z.array(z.string()).describe("Error codes the operation can return."),
3681
+ explicitKeyModes: z.array(z.string()).optional().describe("Modes requiring a caller-chosen idempotency key, including for operators."),
3682
+ cli: z.strictObject({
3683
+ command: z.string().describe("CLI command after `board`."),
3684
+ defaultMode: z.string().optional().describe("Input mode used when no mode flag is supplied."),
3685
+ args: z.array(z.string()).describe("Input fields given as positional arguments."),
3686
+ modes: z.array(cliModeSchema).min(1).nullable().describe("Flags that pick a branch of a union input; null for a plain input."),
3687
+ key: z.literal("--key").nullable().describe("Idempotency key flag; null for a query.")
3688
+ }).describe("CLI binding."),
3689
+ mcp: z.strictObject({
3690
+ name: z.string().describe("MCP tool name."),
3691
+ key: z.literal("idempotencyKey").nullable().describe("Idempotency key argument; null for a query."),
3692
+ whenToUse: z.string().min(1).describe("When this MCP tool is appropriate."),
3693
+ whenNotToUse: z.string().min(1).describe("When to use a neighboring tool instead."),
3694
+ destructive: z.boolean().describe("MCP destructiveHint: false only for a mutation that writes only new rows.")
3695
+ }).describe("MCP binding."),
3696
+ inputSchema: jsonSchemaPayload("input"),
3697
+ outputSchema: jsonSchemaPayload("output")
3698
+ }).describe("One operation.")).describe("Operations the caller may use.")
3699
+ }).describe("The operation catalog.");
3648
3700
  // ../contracts/src/ops/catalog.ts
3649
3701
  /** Longest free text an input takes: comments, questions, answers and reasons. */
3650
3702
  const TEXT_MAX = 2e4;
@@ -5698,4 +5750,4 @@ const remoteDoctorReportSchema = z.object({
5698
5750
  function assertNever(value) {
5699
5751
  throw new Error(`Unexpected value: ${JSON.stringify(value)}`);
5700
5752
  }
5701
- export { sessionFactsSchema as $, eventPayloadSchemas as A, COLUMNS as At, sourceCursorSchema as B, messageRefSchema as C, configBindings as Ct, sortSkillFiles as D, readyMirrorOf as Dt, skillReloadFilesSchema as E, plainHttpAllowed as Et, defaultBranchFactSchema as F, SLACK_BOT_SCOPES as Ft, SESSION_HEALTH_STATES as G, PR_STATES as H, entityRefSchema as I, TASK_HOLDS as It, parseRingMarker as J, SESSION_STATUSES as K, mirrorSourceId as L, TODO_GROUP_COLUMN_IDS as Lt, MIRROR_FAILURES as M, COLUMN_IDS as Mt, MIRROR_FAILURE_CODES as N, DISPATCHER_MODES as Nt, EVENT_KINDS as O, requiredSecretKeys as Ot, batchSchema as P, ITEM_KINDS as Pt, ringMarker as Q, prSourceId as R, VIAS as Rt, interactionRefSchema as S, columnTurnTimings as St, skillReloadFileSchema as T, defaultAddressee as Tt, REVIEW_DECISIONS as U, trackerSourceId as V, REVIEW_STATES as W, prRefSchema as X, prFactsSchema as Y, prReviewRuleSchema as Z, renderJsonError as _, DEFAULT_SLACK_COMMAND as _t, requestHashOf as a, errorCodeOf as at, conversationRefSchema as b, approvalRuleOf as bt, tokenRequestStatusSchema as c, ERRORS as ct, buildCatalogSnapshot as d, errorEnvelopeSchema as dt, ticketFactsSchema as et, roleCanUseOperation as f, ok as ft, renderHttpProblem as g, DEFAULT_SLACK_APP_NAME as gt, turnHandedSchema as h, DEFAULT_LINK as ht, TOKEN_REQUEST_LIMITS as i, encodeActorId as it, AdapterError as j, COLUMN_GROUPS as jt, GATE_REASONS as k, resolveWebOrigin as kt, BOARD_TICK_MS as l, err as lt, defaultBranchViewSchema as m, DEFAULT_HTTP_PORT as mt, doctorReportSchema as n, REF_NUMBER as nt, tokenRequestResultSchema as o, parseActorId as ot, OPERATIONS as p, successEnvelopeSchema as pt, isExternalAuthor as q, remoteDoctorReportSchema as r, actorIdSchema as rt, tokenRequestSchema as s, parseRef as st, assertNever as t, JIRA_PROJECT_KEY as tt, SYSTEMD_SERVICE_SETTINGS as u, errorContextSchema as ut, renderMcpError as v, DEFAULT_STAND_PORT_RANGE as vt, userIdSchema as w, configSchema as wt, inboundEventSchema as x, boardWideSpurProject as xt, SPACE_IDS as y, RESERVED_PROJECT as yt, sessionTransitionSchema as z, isTodoGroupColumn as zt };
5753
+ export { ringMarker as $, eventPayloadSchemas as A, resolveWebOrigin as At, sourceCursorSchema as B, isTodoGroupColumn as Bt, messageRefSchema as C, columnTurnTimings as Ct, sortSkillFiles as D, plainHttpAllowed as Dt, skillReloadFilesSchema as E, defaultAddressee as Et, defaultBranchFactSchema as F, ITEM_KINDS as Ft, SESSION_HEALTH_STATES as G, PR_STATES as H, entityRefSchema as I, SLACK_BOT_SCOPES as It, parseRingMarker as J, SESSION_STATUSES as K, mirrorSourceId as L, TASK_HOLDS as Lt, MIRROR_FAILURES as M, COLUMN_GROUPS as Mt, MIRROR_FAILURE_CODES as N, COLUMN_IDS as Nt, EVENT_KINDS as O, readyMirrorOf as Ot, batchSchema as P, DISPATCHER_MODES as Pt, prReviewRuleSchema as Q, prSourceId as R, TODO_GROUP_COLUMN_IDS as Rt, interactionRefSchema as S, boardWideSpurProject as St, skillReloadFileSchema as T, configSchema as Tt, REVIEW_DECISIONS as U, trackerSourceId as V, REVIEW_STATES as W, prFactsSchema as X, prApprovalPairSchema as Y, prRefSchema as Z, renderJsonError as _, DEFAULT_SLACK_APP_NAME as _t, requestHashOf as a, encodeActorId as at, conversationRefSchema as b, RESERVED_PROJECT as bt, tokenRequestStatusSchema as c, parseRef as ct, buildCatalogSnapshot as d, errorContextSchema as dt, sessionFactsSchema as et, roleCanUseOperation as f, errorEnvelopeSchema as ft, renderHttpProblem as g, DEFAULT_LINK as gt, turnHandedSchema as h, DEFAULT_HTTP_PORT as ht, TOKEN_REQUEST_LIMITS as i, actorIdSchema as it, AdapterError as j, COLUMNS as jt, GATE_REASONS as k, requiredSecretKeys as kt, BOARD_TICK_MS as l, ERRORS as lt, defaultBranchViewSchema as m, successEnvelopeSchema as mt, doctorReportSchema as n, JIRA_PROJECT_KEY as nt, tokenRequestResultSchema as o, errorCodeOf as ot, OPERATIONS as p, ok as pt, isExternalAuthor as q, remoteDoctorReportSchema as r, REF_NUMBER as rt, tokenRequestSchema as s, parseActorId as st, assertNever as t, ticketFactsSchema as tt, SYSTEMD_SERVICE_SETTINGS as u, err as ut, renderMcpError as v, DEFAULT_SLACK_COMMAND as vt, userIdSchema as w, configBindings as wt, inboundEventSchema as x, approvalRuleOf as xt, SPACE_IDS as y, DEFAULT_STAND_PORT_RANGE as yt, sessionTransitionSchema as z, VIAS as zt };
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { D as sortSkillFiles, Ft as SLACK_BOT_SCOPES, Ot as requiredSecretKeys, T as skillReloadFileSchema, a as requestHashOf, ct as ERRORS, f as roleCanUseOperation, kt as resolveWebOrigin, p as OPERATIONS, pt as successEnvelopeSchema, r as remoteDoctorReportSchema, rt as actorIdSchema, u as SYSTEMD_SERVICE_SETTINGS, vt as DEFAULT_STAND_PORT_RANGE, wt as configSchema } from "./chunk-Cs93EYpr.mjs";
1
+ import { At as resolveWebOrigin, D as sortSkillFiles, It as SLACK_BOT_SCOPES, T as skillReloadFileSchema, Tt as configSchema, a as requestHashOf, f as roleCanUseOperation, it as actorIdSchema, kt as requiredSecretKeys, lt as ERRORS, mt as successEnvelopeSchema, p as OPERATIONS, r as remoteDoctorReportSchema, u as SYSTEMD_SERVICE_SETTINGS, yt as DEFAULT_STAND_PORT_RANGE } from "./chunk-cNszIZ1p.mjs";
2
2
  import { t as apiBaseUrl } from "./chunk-Bzb7aI8R.mjs";
3
- import { a as requestTokenEnrollment, c as renderCliError, i as requestSkillReload, l as escapeTerminalControls, n as fetchTokenStatus, o as CliError, r as requestOperation, s as errorExitCode } from "./chunk-B4uktrzm.mjs";
4
- import { a as memoryVerdictCache, c as loadClientConfig, d as resolveDaemonAddress, f as tokenInFolder, i as fileVerdictCache, l as loadEnrollmentConfig, n as cliPackageVersion, o as configFile, s as dataDirectory, t as checkCatalog, u as readConfiguredPort } from "./chunk-qI6H7ZXu.mjs";
3
+ import { a as requestTokenEnrollment, c as renderCliError, i as requestSkillReload, l as escapeTerminalControls, n as fetchTokenStatus, o as CliError, r as requestOperation, s as errorExitCode } from "./chunk-BbsLyYl1.mjs";
4
+ import { a as memoryVerdictCache, c as loadClientConfig, d as resolveDaemonAddress, f as tokenInFolder, i as fileVerdictCache, l as loadEnrollmentConfig, n as cliPackageVersion, o as configFile, s as dataDirectory, t as checkCatalog, u as readConfiguredPort } from "./chunk-H35ORvxg.mjs";
5
5
  import { createHash, randomBytes, randomUUID } from "node:crypto";
6
6
  import { accessSync, chmodSync, closeSync, constants, cpSync, existsSync, ftruncateSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
7
7
  import { homedir, hostname, tmpdir, userInfo } from "node:os";
package/dist/client.mjs CHANGED
@@ -1 +1 @@
1
- export { t as fetchCatalogVersion, n as fetchTokenStatus, r as requestOperation, i as requestSkillReload, a as requestTokenEnrollment } from "./chunk-B4uktrzm.mjs";
1
+ export { t as fetchCatalogVersion, n as fetchTokenStatus, r as requestOperation, i as requestSkillReload, a as requestTokenEnrollment } from "./chunk-BbsLyYl1.mjs";