@kici-dev/compiler 0.1.24 → 0.1.26

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 (126) hide show
  1. package/dist/auth/headless-detect.js +1 -1
  2. package/dist/cli-banner.js +1 -1
  3. package/dist/cli.d.ts +18 -0
  4. package/dist/cli.js +57 -6
  5. package/dist/commands/approve.js +2 -2
  6. package/dist/commands/check-mode.js +1 -1
  7. package/dist/commands/compile.js +1 -1
  8. package/dist/commands/diagnostics.js +1 -1
  9. package/dist/commands/docs.js +1 -1
  10. package/dist/commands/drain-worker.js +1 -1
  11. package/dist/commands/endpoints.js +1 -1
  12. package/dist/commands/fixture.js +2 -2
  13. package/dist/commands/held-run-client.d.ts +1 -1
  14. package/dist/commands/held-run-client.js +1 -1
  15. package/dist/commands/hook.js +1 -1
  16. package/dist/commands/index.d.ts +1 -1
  17. package/dist/commands/index.js +3 -3
  18. package/dist/commands/init.js +1 -1
  19. package/dist/commands/login.js +1 -1
  20. package/dist/commands/logout.js +1 -1
  21. package/dist/commands/orchestrators.js +1 -1
  22. package/dist/commands/org.js +1 -1
  23. package/dist/commands/pat.js +1 -1
  24. package/dist/commands/preview.js +1 -1
  25. package/dist/commands/reject.js +2 -2
  26. package/dist/commands/run-hold-watch.d.ts +10 -1
  27. package/dist/commands/run-hold-watch.js +13 -12
  28. package/dist/commands/run.d.ts +9 -0
  29. package/dist/commands/run.js +29 -6
  30. package/dist/commands/runs/cancel.js +1 -1
  31. package/dist/commands/runs/list.js +1 -1
  32. package/dist/commands/runs/logs.js +1 -1
  33. package/dist/commands/runs/rerun.js +1 -1
  34. package/dist/commands/runs/show.js +1 -1
  35. package/dist/commands/secrets-list.js +1 -1
  36. package/dist/commands/types.js +1 -1
  37. package/dist/commands/verify-attestation.js +8 -2
  38. package/dist/commands/watch.js +1 -1
  39. package/dist/commands/workflows.js +1 -1
  40. package/dist/errors/capability-gap.js +1 -1
  41. package/dist/errors/formatter.js +1 -1
  42. package/dist/errors/index.js +1 -1
  43. package/dist/execution/executor.d.ts +5 -6
  44. package/dist/execution/executor.js +6 -7
  45. package/dist/execution/index.js +1 -1
  46. package/dist/execution/sdk-alias.d.ts +4 -14
  47. package/dist/execution/sdk-alias.js +6 -45
  48. package/dist/execution/ts-loader.js +1 -1
  49. package/dist/fixtures/compiler.js +1 -1
  50. package/dist/fixtures/defaults/index.js +1 -1
  51. package/dist/fixtures/describe-event.d.ts +0 -4
  52. package/dist/fixtures/describe-event.js +35 -5
  53. package/dist/fixtures/picker.js +1 -1
  54. package/dist/format.js +1 -1
  55. package/dist/generators/secrets-dts.js +1 -1
  56. package/dist/hooks/detector.js +1 -1
  57. package/dist/hooks/index.js +1 -1
  58. package/dist/hooks/installer.js +1 -1
  59. package/dist/hooks/templates.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/llm-context/llms-architecture.txt +1 -1
  62. package/dist/llm-context/llms-cli.txt +230 -40
  63. package/dist/llm-context/llms-features.txt +24 -19
  64. package/dist/llm-context/llms-full.txt +256 -61
  65. package/dist/llm-context/llms-getting-started.txt +1 -1
  66. package/dist/llm-context/llms.txt +2 -2
  67. package/dist/local-executor/dag-scheduler.js +1 -1
  68. package/dist/local-executor/index.js +1 -1
  69. package/dist/local-executor/job-runner.js +1 -1
  70. package/dist/local-executor/materializer.js +1 -1
  71. package/dist/local-executor/output-streamer.js +1 -1
  72. package/dist/local-executor/payload-generator.js +1 -1
  73. package/dist/local-executor/picker.js +1 -1
  74. package/dist/local-executor/runs-on-display.js +1 -1
  75. package/dist/local-executor/secret-loader.js +1 -1
  76. package/dist/local-executor/to-event-payload.js +1 -1
  77. package/dist/local-executor/types.js +1 -1
  78. package/dist/local-executor/workflow-lock.js +0 -0
  79. package/dist/lockfile/generator.js +1 -1
  80. package/dist/lockfile/hash-files.js +1 -1
  81. package/dist/lockfile/hasher.js +1 -1
  82. package/dist/lockfile/index.js +1 -1
  83. package/dist/lockfile/purity-analyzer.js +3 -3
  84. package/dist/postinstall.js +1 -1
  85. package/dist/provenance-trust-root.js +1 -1
  86. package/dist/remote/config.js +1 -1
  87. package/dist/remote/dashboard-client.js +1 -1
  88. package/dist/remote/encryption.js +1 -1
  89. package/dist/remote/history.js +1 -1
  90. package/dist/remote/local-repo-identity.js +1 -1
  91. package/dist/remote/oauth.js +1 -1
  92. package/dist/remote/oidc-discovery.js +1 -1
  93. package/dist/remote/output/json.js +1 -1
  94. package/dist/remote/output/junit.js +1 -1
  95. package/dist/remote/output/streaming.js +1 -1
  96. package/dist/remote/output/summary.js +1 -1
  97. package/dist/remote/platform-client.d.ts +2 -0
  98. package/dist/remote/platform-client.js +1 -1
  99. package/dist/remote/prod-defaults.d.ts +1 -1
  100. package/dist/remote/prod-defaults.js +2 -2
  101. package/dist/remote/render.js +1 -1
  102. package/dist/remote/secret-upload.js +1 -1
  103. package/dist/remote/uploader.js +4 -4
  104. package/dist/{chunk-BTugEXQM.js → rolldown-runtime-ClRpJifh.js} +0 -1
  105. package/dist/templates/agents-md.js +1 -1
  106. package/dist/templates/index.js +1 -1
  107. package/dist/templates/package-json.js +2 -2
  108. package/dist/templates/tsconfig-json.js +1 -1
  109. package/dist/templates/workflows/hello-world.js +1 -1
  110. package/dist/templates/workflows/pr-checks.js +1 -1
  111. package/dist/test-runner/dry-run.js +1 -1
  112. package/dist/test-runner/event-types.js +1 -1
  113. package/dist/test-runner/git-detector.js +1 -1
  114. package/dist/test-runner/index.js +1 -1
  115. package/dist/test-runner/job-executor.js +1 -1
  116. package/dist/test-runner/output-formatter.js +1 -1
  117. package/dist/test-runner/payload-builder.js +1 -1
  118. package/dist/test-runner/rule-evaluator.js +1 -1
  119. package/dist/test-runner/secrets-file.js +1 -1
  120. package/dist/test-runner/step-context.js +1 -1
  121. package/dist/types.js +1 -1
  122. package/dist/validation/index.js +1 -1
  123. package/dist/validation/validator.js +1 -1
  124. package/package.json +4 -4
  125. package/sbom.spdx.json +35 -35
  126. package/dist/commands/held-run-resolve.js +0 -53
@@ -46,7 +46,7 @@ Configure deployment environments (staging, production, review/\*) with variable
46
46
 
47
47
  ### [Environment variables](https://docs.kici.dev/user/env-vars/)
48
48
 
49
- Reference for all `KICI_*` environment variables supported by the CLI. Covers authentication overrides (OIDC issuer, client ID, project ID), browser behavior (custom browser command, fixed callback port), development mode, and usage examples for CI/CD, self-hosted, and headless environments.
49
+ Reference for all `KICI_*` environment variables supported by the CLI. Covers authentication overrides (OIDC issuer, client ID, project ID), browser behavior (custom browser command, fixed callback port), development mode, and usage examples for CI/CD, alternate environments, and headless setups.
50
50
 
51
51
  ### [CLI authentication](https://docs.kici.dev/user/cli-auth/)
52
52
 
@@ -5694,19 +5694,31 @@ Source: https://docs.kici.dev/user/ai-agents/
5694
5694
 
5695
5695
  KiCI ships a hosted **MCP server** so a coding agent (Claude Code, or any MCP
5696
5696
  client) can drive your CI directly: trigger runs, read a structured result,
5697
- fetch the failing step's logs, cancel, and re-run — all under your own identity,
5698
- org-scoped, and audited. There are no per-tool tokens to configure: point the
5699
- agent at one URL with one credential and it's done.
5697
+ fetch the failing step's logs, cancel, and re-run — all under an agent identity
5698
+ you control, org-scoped, and audited. There are no per-tool tokens to configure:
5699
+ point the agent at one URL with one credential and it's done.
5700
5700
 
5701
5701
  The MCP exposes only what you can already do yourself through the `kici` CLI and
5702
5702
  the dashboard. It is not a new privileged surface — every tool maps to an
5703
5703
  existing user-facing operation and is gated by the same permissions your role
5704
5704
  grants.
5705
5705
 
5706
- ## 1. Mint an agent token
5706
+ ## 1. Mint an agent credential
5707
5707
 
5708
- The MCP accepts **only** an agent-kind personal access token (PAT). Mint one with
5709
- the `kici` CLI (log in first with `kici login`):
5708
+ The MCP accepts an **agent-kind credential** and only an agent-kind one. It
5709
+ can be either of two kinds:
5710
+
5711
+ - An **agent personal access token (PAT)** that you own — it acts as you, with
5712
+ your provenance. The token is `kici_pat_…`.
5713
+ - An **agent org API key** that belongs to your organization — a
5714
+ provenance-carrying service account, independent of any one person. The key is
5715
+ `kici_sk_…`.
5716
+
5717
+ Both drive the MCP identically. A non-agent token of either kind (a plain user
5718
+ PAT, a plain org API key) is refused at the door.
5719
+
5720
+ **Option A — an agent PAT.** Mint one with the `kici` CLI (log in first with
5721
+ `kici login`):
5710
5722
 
5711
5723
  ```bash
5712
5724
  kici pat create --agent --name "claude-code"
@@ -5716,17 +5728,38 @@ The `--name` value is the **agent label**. It is recorded on every action the
5716
5728
  agent takes, so your audit log shows exactly which agent did what (and on whose
5717
5729
  behalf). The token is printed once — save it now; it cannot be retrieved later.
5718
5730
 
5719
- An agent PAT inherits your permissions unchanged it carries provenance, not
5720
- extra authority. Powerful operator capabilities (secret rotation, agent and peer
5721
- management, draining) are intentionally **not** exposed here.
5731
+ **Option B an agent org API key.** Create one from the dashboard's
5732
+ **Settings API keys** tab: set the key's kind to **Agent** and give it an
5733
+ agent name (the agent label). The same key can also be minted with
5734
+ `kici-platform-admin user api-key create --org <id> --agent --agent-label <label>`.
5735
+ Reach for an org agent key when the agent should act as a shared service account
5736
+ rather than as a single user — for example, a long-lived CI bot that outlives any
5737
+ individual's membership.
5738
+
5739
+ Whichever you pick, the credential carries provenance, not extra authority. Its
5740
+ effective permissions are the matrix it was minted with, and that matrix can
5741
+ never exceed the permissions of the person who created it — so you can scope an
5742
+ agent credential **below** your own access (for example, read-only) and the agent
5743
+ is held to that smaller set. Powerful operator capabilities (secret rotation,
5744
+ agent and peer management, draining) are intentionally **not** exposed here. See
5745
+ [the agent safety model](https://docs.kici.dev/user/ai-agents/#6-the-agent-safety-model) for how scoping and
5746
+ confinement work.
5722
5747
 
5723
5748
  ## 2. Point your coding agent at the MCP server
5724
5749
 
5725
- Configure your MCP client with the KiCI MCP endpoint and the agent PAT as a
5726
- Bearer credential. The endpoint is the hosted Platform URL plus `/api/v1/mcp`.
5750
+ KiCI's hosted MCP server lives at one fixed URL:
5751
+
5752
+ ```
5753
+ https://api.kici.dev/api/v1/mcp
5754
+ ```
5755
+
5756
+ Configure your MCP client with that URL and your agent credential (the agent PAT
5757
+ or the agent org key) as a Bearer credential. For Claude Code:
5727
5758
 
5728
- For Claude Code, add a remote MCP server whose URL is your KiCI Platform's
5729
- `/api/v1/mcp` and whose `Authorization` header is `Bearer <your-agent-pat>`.
5759
+ ```bash
5760
+ claude mcp add --transport http kici https://api.kici.dev/api/v1/mcp \
5761
+ --header "Authorization: Bearer <your-agent-credential>"
5762
+ ```
5730
5763
 
5731
5764
  That's the entire setup. The agent can now call the tools below.
5732
5765
 
@@ -5739,45 +5772,185 @@ That's the entire setup. The agent can now call the tools below.
5739
5772
  graph, per-step statuses and exit codes, durations, and a derived failure
5740
5773
  category.
5741
5774
  - `get_step_logs` — the log lines for a specific step.
5742
- - `list_workflows` — your registered workflows.
5775
+ - `list_workflows` — your registered workflows, optionally filtered by
5776
+ `triggerType`, `repo`, or `stale` (only those not triggered within a duration
5777
+ like `30d`).
5778
+ - `list_orgs` — the organizations you belong to. Use it to discover the `orgId`
5779
+ to pass to the other tools when you're a member of more than one.
5780
+ - `list_secrets` — the secret scopes in your organization and the **key names**
5781
+ each holds. Secret values are never returned — only the names.
5782
+ - `list_orchestrators` — the connected orchestrator clusters your runs execute
5783
+ on (cluster name, routing keys, version, scaler backends, health).
5784
+ - `get_diagnostics` — your organization's execution metrics over the last 24
5785
+ hours (run count, success rate, average duration, queued and running jobs)
5786
+ plus per-orchestrator connection health.
5743
5787
 
5744
5788
  **Drive**
5745
5789
 
5746
5790
  - `trigger_run` — run a registered workflow ("run now").
5747
5791
  - `rerun_run` — re-run a completed run.
5748
5792
  - `cancel_run` — cancel an in-progress run.
5793
+ - `approve_run` — approve a held approval gate for a run (name the run, plus
5794
+ `job`/`step` to disambiguate when it has multiple holds).
5795
+ - `reject_run` — reject a held approval gate; a `reason` is required.
5796
+ - `cancel_runs_by_branch` — cancel all in-progress runs on a branch (bounded —
5797
+ up to 100 per call; a `truncated` flag tells the agent to re-invoke).
5798
+
5799
+ The tools cover the same developer operations you can drive yourself with the
5800
+ `kici` CLI. Operations that are purely local to your machine (scaffolding,
5801
+ compiling, running a workflow locally) or that mint credentials are
5802
+ intentionally not exposed — the agent works against your deployed CI, not your
5803
+ filesystem.
5749
5804
 
5750
5805
  If you belong to a single organization, the org is resolved automatically. If
5751
- you belong to several, pass an `orgId` argument to any tool.
5806
+ you belong to several, pass an `orgId` argument to any tool (use `list_orgs` to
5807
+ find it).
5808
+
5809
+ ### Limits and pagination
5810
+
5811
+ The MCP server applies a few bounds so an agent loop can't overwhelm the shared
5812
+ infrastructure. They are agent-visible — your agent gets a clear tool error and
5813
+ should back off or page, never a silent truncation:
5814
+
5815
+ - **Per-token request limits.** Each agent token has its own ceiling, refreshed
5816
+ every minute: **120 reads/minute** (listing and fetching runs, step logs, and
5817
+ workflows) and **20 run actions/minute** (cancel, re-run, trigger, approve,
5818
+ reject, cancel-by-branch). The two
5819
+ budgets are independent. An over-limit call returns a tool error telling the
5820
+ agent which kind of operation was throttled and how many seconds to wait
5821
+ before retrying.
5822
+ - **Paginated step logs.** `get_step_logs` returns log lines in pages. Pass a
5823
+ `limit` to bound a page (capped server-side) and follow the returned
5824
+ `nextCursor` (as `cursor` on the next call) to read more. A large step log is
5825
+ paged, never silently cut off — when `nextCursor` is null you've reached the
5826
+ end.
5827
+ - **Bounded run results.** `get_run` returns the structured run result, which is
5828
+ naturally bounded by workflow size. For a pathologically large run it returns a
5829
+ tool error directing the agent to inspect specific steps with `get_step_logs`
5830
+ instead.
5752
5831
 
5753
5832
  ## 4. Why the structured result is agent-safe
5754
5833
 
5755
- `get_run` and `get_step_logs` return a machine-first shape designed for an agent
5756
- to reason over without being misled by repository content. Every field that
5757
- comes from your repo, a contributor, or a process's output — workflow and job
5758
- names, refs, error messages, log lines, job outputs — is wrapped in an
5759
- `{ untrusted: true, value: … }` envelope. KiCI-generated values (ids, statuses,
5760
- exit codes, durations, the derived failure category) are left plain. An agent can
5761
- keep user-controlled content out of its instruction channel by refusing to act
5762
- on anything tagged `untrusted`.
5834
+ Every tool returns a machine-first shape designed for an agent to reason over
5835
+ without being misled by repository content. Each field that comes from your repo,
5836
+ a contributor, or a process's output — workflow and job names, refs, error
5837
+ messages, log lines, job outputs — is delivered **fenced** as untrusted data:
5838
+ wrapped in a per-response, randomly-named delimiter (`⟦u:<nonce>⟧…⟦/u:<nonce>⟧`),
5839
+ with the result prefixed by a notice that fenced text is data, never instructions.
5840
+ KiCI-generated values (ids, statuses, exit codes, durations, the derived failure
5841
+ category) are left plain. So an agent can keep user-controlled content out of its
5842
+ instruction channel by treating anything inside a fence as data only. See
5843
+ [Untrusted content and prompt injection](https://docs.kici.dev/user/ai-agents/#7-untrusted-content-and-prompt-injection)
5844
+ for the full model.
5763
5845
 
5764
5846
  Secret values are never returned — only the names of the secret keys a step
5765
5847
  accessed.
5766
5848
 
5767
5849
  ## 5. The audit guarantee
5768
5850
 
5769
- Because the MCP accepts only an agent-kind PAT, **every action that flows through
5770
- it is agent-attributed by construction** — there is no path that produces an
5771
- untagged, human-looking action. Each read and each drive operation is recorded in
5772
- your orchestrator's access log under your identity plus the agent label, so you
5773
- always have a complete trail of what your agent did.
5851
+ Because the MCP accepts only an agent-kind credential, **every action that flows
5852
+ through it is agent-attributed by construction** — there is no path that produces
5853
+ an untagged, human-looking action. Each read and each drive operation is recorded
5854
+ in your orchestrator's access log under the acting identity plus the agent label,
5855
+ so you always have a complete trail of what your agent did.
5774
5856
 
5775
5857
  Inspect that trail with `kici-admin access-log list --json` (or
5776
- `kici-admin access-log show <id>` for one entry). An agent-attributed row keeps
5777
- `actor_type` as `user` and `actor_id` as your own identity — the agent provenance
5778
- rides in the row's actor metadata as `agentLabel` (the `--name` you minted the
5779
- PAT with) and `agentPatId` (the token that acted). The label is also stored in a
5780
- dedicated `agent_label` column on every such row.
5858
+ `kici-admin access-log show <id>` for one entry). The acting identity depends on
5859
+ which credential you used:
5860
+
5861
+ - An **agent PAT** keeps `actor_type` as `user` and `actor_id` as your own
5862
+ identity the agent provenance rides in the actor metadata as `agentLabel`
5863
+ (the `--name` you minted the PAT with) and `agentPatId`.
5864
+ - An **agent org key** keeps `actor_type` as `api_key` and `actor_id` as the key
5865
+ — the same `agentLabel` provenance rides in its actor metadata.
5866
+
5867
+ Either way the label is stored in a dedicated `agent_label` column on every such
5868
+ row, so you can filter the access log down to just agent activity:
5869
+
5870
+ ```bash
5871
+ # Every action a specific agent took, by its label:
5872
+ kici-admin access-log list --agent-label "claude-code"
5873
+
5874
+ # Every agent-attributed action, across all agents:
5875
+ kici-admin access-log list --agent-only
5876
+ ```
5877
+
5878
+ In the dashboard, agent-driven activity is visually distinguished: the
5879
+ [Activity](https://docs.kici.dev/user/dashboard/activity-and-dlq/#activity) log renders an **agent badge**
5880
+ on every agent-attributed row, and a run's **Triggered by** shows the same badge
5881
+ when an agent triggered or cancelled it — so an agent's footprint is obvious at a
5882
+ glance, not buried in metadata.
5883
+
5884
+ ## 6. The agent safety model
5885
+
5886
+ KiCI treats a coding agent as a **least-privilege principal with its own token**,
5887
+ not as an unscoped extension of you. Three properties make the agent
5888
+ "confined and audited by construction":
5889
+
5890
+ **Least-privilege, capped at the creator.** An agent token is scoped when you
5891
+ mint it. Leave the scope open and it inherits your role; narrow it and the agent
5892
+ is held to that smaller set — its effective permissions are always the
5893
+ **minimum** of your role and the token's scope. A token can never grant more than
5894
+ you hold, so an agent cannot escalate beyond its creator.
5895
+
5896
+ **Fail-closed denial, on every surface the token is used.** The scope is enforced
5897
+ wherever the token acts — the MCP tools the agent drives **and** any direct API
5898
+ call made with the raw token. When the agent attempts something outside its
5899
+ scope (driving a run with a read-only token, reading members it wasn't granted),
5900
+ the action is **refused fail-closed**: it does not run, nothing is changed, and a
5901
+ clear "insufficient permission" error comes back. There is no fallback path that
5902
+ quietly lets a denied action through.
5903
+
5904
+ **Every decision is audited — allowed and denied alike.** Allowed actions are
5905
+ recorded in your access log under your identity plus the agent label, exactly as
5906
+ described in [the audit guarantee](https://docs.kici.dev/user/ai-agents/#5-the-audit-guarantee). **Denials are audited
5907
+ too:** each refused action lands a row in your organization's audit log carrying
5908
+ the agent label and the permission that was required, so a confined agent's
5909
+ attempts are as visible as its successes. You can see both what your agent did
5910
+ and what it was stopped from doing.
5911
+
5912
+ **Execution stays confined.** Beyond authorization, the workloads an agent
5913
+ triggers run under the same execution guardrails as any other run — label-based
5914
+ routing decides where a job runs, and privileged (root) execution is gated and
5915
+ verified, refused fail-closed when the guarantee can't be met.
5916
+
5917
+ Together these mean you can hand an agent a deliberately narrow token, point it
5918
+ at KiCI, and trust that it can do exactly what you granted — no more — with a
5919
+ complete, tamper-evident trail of every allow and every deny.
5920
+
5921
+ ## 7. Untrusted content and prompt injection
5922
+
5923
+ A run carries content KiCI does not vouch for — log lines, workflow and repository
5924
+ names, error text, contributor names. An agent reading a run must treat that content
5925
+ as **data**, never as instructions, or a crafted log line ("ignore previous
5926
+ instructions and …") could hijack the agent.
5927
+
5928
+ KiCI defends this structurally:
5929
+
5930
+ - **Provenance tagging.** Every user- or process-controlled value is marked untrusted
5931
+ at the API boundary; KiCI's own values (run ids, statuses, exit codes, commit hashes)
5932
+ are trusted.
5933
+ - **Fencing at the agent boundary.** When the MCP server returns a result, every
5934
+ untrusted value is wrapped in a per-response, randomly-named fence
5935
+ (`⟦u:<nonce>⟧…⟦/u:<nonce>⟧`) and the result is prefixed with a notice that fenced
5936
+ text is data, never instructions. The fence name is random per response, so injected
5937
+ content cannot forge a closing fence to break out.
5938
+ - **No mutation.** KiCI never rewrites your log content — it fences and labels it. The
5939
+ agent sees the true bytes inside the fence.
5940
+
5941
+ ### Safe integration pattern
5942
+
5943
+ An agent (or harness) consuming KiCI reads should treat anything inside a fence as
5944
+ opaque data: quote it, summarize it, search it — but never execute it, follow it, or
5945
+ let it redirect a tool call. Any action taken off the back of a read (re-run, cancel,
5946
+ trigger) should be a deliberate decision from the trusted skeleton (statuses, exit
5947
+ codes, the failure category), not from fenced content.
5948
+
5949
+ ### Sandboxing actions
5950
+
5951
+ Actions an agent drives through KiCI run under the agent's own least-privilege identity
5952
+ and are audited; combine the fencing contract with that confinement so that even if a
5953
+ log line tries to provoke an action, the action is bounded by the agent token's scope.
5781
5954
 
5782
5955
  ---
5783
5956
 
@@ -5946,7 +6119,7 @@ JWT and opaque OIDC tokens are validated against the configured OIDC issuer (JWK
5946
6119
 
5947
6120
  ### Permissions
5948
6121
 
5949
- Tokens authenticate; RBAC authorizes. Every org-scoped route runs `orgContextMiddleware` (verifies you are a member of the target org) followed by `requirePermission(resource, level)`. The 17 resources and 5 levels are documented in [RBAC](https://docs.kici.dev/architecture/security/rbac/#permission-model). User API keys carry their own permission matrix bounded above by the creator's effective permissions; PATs inherit the user's role permissions (or are capped further by their `scopes` field).
6122
+ Tokens authenticate; RBAC authorizes. Every org-scoped route runs `orgContextMiddleware` (verifies you are a member of the target org) followed by `requirePermission(resource, level)`. The 18 resources and 5 levels are documented in [RBAC](https://docs.kici.dev/architecture/security/rbac/#permission-model). User API keys carry their own permission matrix bounded above by the creator's effective permissions; PATs inherit the user's role permissions (or are capped further by their `scopes` field).
5950
6123
 
5951
6124
  ### Configurable surfaces
5952
6125
 
@@ -6306,6 +6479,8 @@ kici run remote [fixture] [options]
6306
6479
  | `--fail-on-drift` | `false` | In check mode, fail the run if any step reports drift (no effect without `--check`) |
6307
6480
  | `--approve-all, --yes` | `false` | Auto-approve every [approval gate](https://docs.kici.dev/user/approvals/) this run holds on (run-scoped; eligibility still enforced) |
6308
6481
 
6482
+ `--approve-all` works in `--json` / `--quiet` mode: the run still auto-approves each gate it holds on, and the auto-approve diagnostics are written to stderr so stdout stays a pure JSON (or summary-only) payload. Without `--approve-all`, a `--json` / `--quiet` run that hits a gate stays held and prints a one-line "run held; approve via the dashboard or `kici approve <run-id>`" notice to stderr per hold.
6483
+
6309
6484
  **Examples:**
6310
6485
 
6311
6486
  ```bash
@@ -6534,7 +6709,7 @@ By default, `kici login` opens your browser for OIDC authentication using PKCE.
6534
6709
 
6535
6710
  After OAuth, the CLI exchanges the OIDC token for a personal access token (PAT) stored in the config directory (`~/.kici/config` by default, overridable with `KICI_CONFIG_DIR`).
6536
6711
 
6537
- `kici login` targets the hosted KiCI Platform by default. To authenticate against another environment (a self-hosted Platform, for example), pass `--platform-endpoint` / `--oidc-issuer` or set `KICI_PLATFORM_URL` / `KICI_OIDC_ISSUER`. Login persists the platform endpoint and OIDC issuer it authenticated against alongside the PAT, so a saved PAT always matches its endpoint. Because the config describes one environment at a time, **switching the endpoint resets the active organization and default clusters** — re-run `kici org use <name>` after switching environments.
6712
+ `kici login` targets the hosted KiCI Platform by default. To authenticate against another KiCI environment (staging, or a testing OIDC provider, for example), pass `--platform-endpoint` / `--oidc-issuer` or set `KICI_PLATFORM_URL` / `KICI_OIDC_ISSUER`. Login persists the platform endpoint and OIDC issuer it authenticated against alongside the PAT, so a saved PAT always matches its endpoint. Because the config describes one environment at a time, **switching the endpoint resets the active organization and default clusters** — re-run `kici org use <name>` after switching environments.
6538
6713
 
6539
6714
  ```bash
6540
6715
  kici login [options]
@@ -6554,9 +6729,9 @@ kici login [options]
6554
6729
 
6555
6730
  | Variable | Default | Description |
6556
6731
  | --------------------- | -------------------------------------------- | ---------------------------------------------------------------------- |
6557
- | `KICI_PLATFORM_URL` | `https://api.kici.dev` | Platform API base URL (override for a self-hosted Platform) |
6558
- | `KICI_OIDC_ISSUER` | `https://auth.kici.dev/realms/kici-internal` | OIDC issuer URL (override for a self-hosted Platform) |
6559
- | `KICI_OIDC_CLIENT_ID` | `kici-cli` | OIDC client ID (override for a self-hosted Platform) |
6732
+ | `KICI_PLATFORM_URL` | `https://api.kici.dev` | Platform API base URL (override to target another KiCI environment) |
6733
+ | `KICI_OIDC_ISSUER` | `https://auth.kici.dev/realms/kici-internal` | OIDC issuer URL (override to target another KiCI environment) |
6734
+ | `KICI_OIDC_CLIENT_ID` | `kici-cli` | OIDC client ID (override to target another KiCI environment) |
6560
6735
  | `KICI_BROWSER_CMD` | uses `open` package | Custom browser command with `{url}` placeholder, or `none` to suppress |
6561
6736
  | `KICI_CALLBACK_PORT` | random | Fixed port for OAuth PKCE callback server |
6562
6737
  | `KICI_CONFIG_DIR` | `~/.kici` | Override config directory |
@@ -6573,7 +6748,7 @@ kici login --device
6573
6748
  # Legacy API key login
6574
6749
  kici login --token kici_sk_abc123...
6575
6750
 
6576
- # Log in against a self-hosted Platform
6751
+ # Log in against another KiCI environment (e.g. a testing instance)
6577
6752
  kici login --platform-endpoint https://platform.example.com \
6578
6753
  --oidc-issuer https://auth.example.com/realms/kici-internal
6579
6754
 
@@ -6662,7 +6837,7 @@ kici org current
6662
6837
  ### kici diagnostics
6663
6838
 
6664
6839
  Show the orchestrators, scalers, and agents serving your organization — the
6665
- terminal equivalent of the dashboard Diagnostics page. Reads the same
6840
+ terminal equivalent of the dashboard Infrastructure page. Reads the same
6666
6841
  org-scoped data the dashboard does, so it needs `kici login` and an active org
6667
6842
  (`kici org use <name>`).
6668
6843
 
@@ -7239,6 +7414,8 @@ kici admin drain-worker --url http://worker-2.internal:10143
7239
7414
 
7240
7415
  Verify a KiCI build-provenance attestation bundle offline. A bundle is the signed package a workflow step produces via `ctx.attestProvenance(...)`: a DSSE-wrapped SLSA in-toto statement, the ephemeral public key that signed it, and the KiCI identity token that anchors the build context. For the end-to-end attest → verify → view journey, see the [build provenance guide](https://docs.kici.dev/user/provenance/). Verification establishes the full chain — the identity token verifies against the trusted issuer's JWKS, the DSSE signature verifies against the bundled key, and the statement's build context must match the token's claims (a mismatch is a hard failure). When an `[artifact]` is given, its SHA-256 digest is also matched against the attestation subject.
7241
7416
 
7417
+ On success the output prints the **origin org** (the customer's public org id — the authoritative "who built this" the platform vouches for) and a **source marker**. A `kici run remote` attestation is flagged unmistakably: its `repository`/`ref`/`sha` are caller-supplied from a local working-tree overlay, not a triggered VCS commit, so a verifier must treat those coordinates as org-asserted rather than VCS-verified. A normal triggered run carries the ordinary `triggered` source marker. See the [build provenance guide](https://docs.kici.dev/user/provenance/) for the full trust model.
7418
+
7242
7419
  ```bash
7243
7420
  kici verify-attestation [artifact] --bundle <path-or-url> [--trust-root <url-or-file>] [options]
7244
7421
  ```
@@ -7295,6 +7472,17 @@ kici verify-attestation --bundle ./app.tgz.kici.json \
7295
7472
  --trust-root https://platform.example/issuer --json
7296
7473
  ```
7297
7474
 
7475
+ **Attestation origin marker.** On a PASS, the command surfaces when the identity
7476
+ token was minted relative to the build. A normal attestation prints no marker
7477
+ (the token was minted live). A **deferred** attestation prints an `ATTESTATION:
7478
+ deferred` line — the build facts were sealed at build time and the token was
7479
+ minted later, after a transient platform outage, bound to the frozen statement
7480
+ by its hash. An **offline-backfill** attestation prints an `ATTESTATION:
7481
+ offline-backfill` line — the run was ingested while the platform was down, so its
7482
+ run/job rows were backfilled before the token was minted. Both still verify
7483
+ (PASS); the marker discloses the temporal gap, and the organization id remains
7484
+ the authoritative anchor.
7485
+
7298
7486
  **Exit codes:**
7299
7487
 
7300
7488
  | Code | Meaning |
@@ -7888,6 +8076,8 @@ This mapping is honored by **both** `kici run local` and `kici run remote`:
7888
8076
  - For **`kici run local`** (see [`kici run local`](https://docs.kici.dev/user/cli-reference/#kici-run-local)), each named context is resolved from your local secret files (`.kici/.secrets`, `.env.local`, `secrets.yaml`, and `--env` flags).
7889
8077
  - For **`kici run remote`**, each named context maps to an orchestrator **environment**, and the orchestrator resolves that environment's secrets for the run. The target environment must be flagged `allowLocalExecution: true` — mapping a context to a missing or non-test environment rejects the run (see [Secret contexts for testing](https://docs.kici.dev/user/testing-guide/#secret-contexts-for-testing) below).
7890
8078
 
8079
+ **A fixture `secrets:` mapping is fail-closed; a job's bound `environment:` is not.** The reject above applies only to the fixture `secrets:` mapping — an explicit request for that environment's secrets. A job's own bound `environment:` (`job('deploy', { environment: 'production', … })`) is treated differently on a test run: if it resolves to a non-test or unconfigured environment it is **skipped with a warning**, not rejected, so a job that deploys to production in real runs stays locally testable for its non-secret logic. `kici run remote` prints a warning naming the skipped environment(s), and the dashboard run view shows the same notice. See [Skip-on-test](https://docs.kici.dev/user/environments/#multiple-environments-per-job) in the environments guide.
8080
+
7891
8081
  ### Async fixtures
7892
8082
 
7893
8083
  For dynamic fixture configuration, export an async function:
@@ -8835,7 +9025,7 @@ env: async (event) => {
8835
9025
 
8836
9026
  Source: https://docs.kici.dev/user/env-vars/
8837
9027
 
8838
- The KiCI CLI reads the following environment variables to customize its behavior. OAuth login (`kici login` without `--token`) defaults `KICI_PLATFORM_URL`, `KICI_OIDC_ISSUER`, and `KICI_OIDC_CLIENT_ID` to the hosted KiCI Platform, so `kici login` works with no configuration. Set them only to target a self-hosted Platform or a testing environment.
9028
+ The KiCI CLI reads the following environment variables to customize its behavior. OAuth login (`kici login` without `--token`) defaults `KICI_PLATFORM_URL`, `KICI_OIDC_ISSUER`, and `KICI_OIDC_CLIENT_ID` to the hosted KiCI Platform, so `kici login` works with no configuration. Set them only to target another KiCI environment (e.g. a testing instance) or a custom OIDC provider.
8839
9029
 
8840
9030
  ## Authentication
8841
9031
 
@@ -8870,9 +9060,9 @@ Authenticate with a pre-existing API key (no browser needed):
8870
9060
  kici login --token <<< "$KICI_API_KEY"
8871
9061
  ```
8872
9062
 
8873
- ### Self-hosted Platform or custom OIDC provider
9063
+ ### Targeting another environment or custom OIDC provider
8874
9064
 
8875
- `kici login` targets the hosted KiCI Platform by default. To point the CLI at a self-hosted Platform or a testing OIDC provider, override the defaults:
9065
+ `kici login` targets the hosted KiCI Platform by default. To point the CLI at another KiCI environment (e.g. a testing instance) or a custom OIDC provider, override the defaults:
8876
9066
 
8877
9067
  ```bash
8878
9068
  export KICI_OIDC_ISSUER=https://your-idp.example.com
@@ -9018,9 +9208,9 @@ job('deploy', {
9018
9208
 
9019
9209
  **Merge order — last wins.** All bound environments are resolved on every dispatch (webhook, scheduled, and test runs alike) and merged in array order. When the same secret or variable key is defined in more than one environment, the later entry in the array wins. With `environments: ['staging', 'my-testing']`, a key defined in both resolves to `my-testing`'s value; keys defined in only one are preserved. The longest-scope-path-wins rule still applies _within_ each environment.
9020
9210
 
9021
- **Protection rules combine all-must-pass.** A job must satisfy **every** bound environment's gates — adding an environment can never loosen access. Branch restrictions, trigger-type filters, and repo patterns must pass for all environments; the minimum trust tier is the most restrictive across them; required reviewers are the union of all environments' reviewers; the wait timer is the longest; and the hold expiry is the shortest. If a run is gated out, the rejection names which environment and which rule rejected it (visible via `kici status` and the run's rejection reason), so a mutually-exclusive set of rules surfaces as a clear failure rather than a silent perpetual rejection.
9211
+ **Protection rules combine all-must-pass.** A job must satisfy **every** bound environment's gates — adding an environment can never loosen access. Branch restrictions, trigger-type filters, and repo patterns must pass for all environments; the minimum trust tier is the most restrictive across them; required reviewers are the union of all environments' reviewers; the wait timer is the longest; and the hold expiry is the shortest. If a run is gated out, the rejection names which environment and which rule rejected it (visible via `kici runs show <run-id>` and the run's rejection reason), so a mutually-exclusive set of rules surfaces as a clear failure rather than a silent perpetual rejection.
9022
9212
 
9023
- **Skip-on-test.** On a test or local run (`kici run remote`, `kici run local`), any bound environment that disallows local execution is skipped — its variables and secrets are omitted from the merge and its gates are not evaluated. This makes the test-only-variables pattern work: with `environments: ['staging', 'my-testing']` where only `my-testing` allows local execution, a test run resolves just `my-testing`'s variables. If every bound environment disallows test runs, the job runs with no environment variables and a clear warning.
9213
+ **Skip-on-test (allow-and-warn).** On a test or local run (`kici run remote`, `kici run local`), a bound environment never rejects the run. Any bound environment that disallows local execution (`allowLocalExecution: false`) — or that is not configured is **skipped**: its variables and secrets are omitted from the merge and its gates are not evaluated. The run proceeds, and a user-visible warning naming the skipped environment(s) is shown both on the `kici run remote` CLI output and on the dashboard run view. This makes the test-only-variables pattern work: with `environments: ['staging', 'my-testing']` where only `my-testing` allows local execution, a test run resolves just `my-testing`'s variables and warns that `staging` was skipped. If every bound environment is skipped, the job runs with no environment variables. This is intentionally different from a fixture `secrets:` mapping, which is fail-closed — see the [testing guide](https://docs.kici.dev/user/testing-guide/).
9024
9214
 
9025
9215
  **Unconfigured environments contribute nothing at dispatch.** At dispatch time a bound environment name with no matching configured environment (and no matching glob environment) simply adds no variables, secrets, or protection rules — the job still runs, exactly as a single dynamic environment resolving to an as-yet-unconfigured name does today.
9026
9216
 
@@ -9071,19 +9261,24 @@ If no `concurrencyGroup` is specified, the environment name is used as the defau
9071
9261
 
9072
9262
  Inside a step, the `ctx` object provides:
9073
9263
 
9074
- | Property | Type | Description |
9075
- | ----------------- | ------------------------------------- | ---------------------------------------------------------------------------- |
9076
- | `ctx.environment` | `string \| undefined` | Resolved environment name (undefined for jobs without environment) |
9077
- | `ctx.env` | `Record<string, string \| undefined>` | Environment variables (merged from system, org, source, and job-level `env`) |
9078
- | `ctx.secrets` | `StepSecretsTyped` | Async accessor for bound secrets (get, expose, has, getMeta) |
9079
-
9080
- | Method | Returns | Description |
9081
- | ------------------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
9082
- | `await ctx.secrets.get(key)` | `string` | Retrieve a secret value. Throws `SecretNotFoundError` if not found. |
9083
- | `await ctx.secrets.expose(key)` | `void` | Inject a secret into the step's environment variables (`ctx.env`). Throws `SecretNotFoundError` if not found. |
9084
- | `ctx.secrets.has(key)` | `boolean` | Check if a secret key exists. Synchronous, never throws. |
9085
- | `ctx.secrets.getMeta(key)` | `SecretMeta \| undefined` | Retrieve metadata (value, backend name, scope path) for a resolved secret. Returns `undefined` if not found. |
9086
- | `ctx.setSecretOutput(key, val)` | `void` | Publish an encrypted secret output from this job, consumable by downstream jobs via `needs`. Never logged or stored in plaintext. |
9264
+ | Property | Type | Description |
9265
+ | ----------------- | ------------------------------------- | ----------------------------------------------------------------------------------------- |
9266
+ | `ctx.environment` | `string \| undefined` | Resolved environment name (undefined for jobs without environment) |
9267
+ | `ctx.env` | `Record<string, string \| undefined>` | Environment variables (merged from system, org, source, and job-level `env`) |
9268
+ | `ctx.secrets` | `StepSecretsTyped` | Async accessor for bound secrets (get, expose, has, getMeta, list, mountFile, exposeFile) |
9269
+
9270
+ | Method | Returns | Description |
9271
+ | -------------------------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
9272
+ | `await ctx.secrets.get(key)` | `string` | Retrieve a secret value. Throws `SecretNotFoundError` if not found. |
9273
+ | `await ctx.secrets.expose(key)` | `void` | Set the secret as an environment variable for this step visible via `ctx.env` and to child processes (`process.env`). Throws `SecretNotFoundError` if not found. |
9274
+ | `ctx.secrets.has(key)` | `boolean` | Check if a secret key exists. Synchronous, never throws. |
9275
+ | `ctx.secrets.getMeta(key)` | `SecretMeta \| undefined` | Retrieve metadata (value, backend name, scope path) for a resolved secret. Returns `undefined` if not found. |
9276
+ | `ctx.secrets.list()` | `string[]` | Every secret key available to the step, sorted alphabetically. Synchronous, never throws. |
9277
+ | `await ctx.secrets.mountFile(opts)` | `{ path }` | Materialise one or more secrets to a per-step tmpfile (auto-removed at step end). See [Secrets → Mounting secrets as files](https://docs.kici.dev/user/secrets/#mounting-secrets-as-files). |
9278
+ | `await ctx.secrets.exposeFile(envVar, opts)` | `{ path }` | `mountFile` plus `process.env[envVar] = path`; the env var is unset at step end. |
9279
+ | `ctx.setSecretOutput(key, val)` | `void` | Publish an encrypted secret output from this job, consumable by downstream jobs via `needs`. Never logged or stored in plaintext. |
9280
+
9281
+ The full secrets API — including `SecretFileOptions`, log masking, and the canonical `sops` example — is documented in [Secrets](https://docs.kici.dev/user/secrets/).
9087
9282
 
9088
9283
  ## Environment variable merge precedence
9089
9284
 
@@ -9210,7 +9405,7 @@ Each environment has four tabs:
9210
9405
 
9211
9406
  A job's bound deployment environments are shown as chips on the run detail page (in the job metadata panel) in the order the job declared them, and the distinct set across a run's jobs appears as compact chips on the run list. For a multi-environment job the chips read left-to-right in merge order — later environments override earlier ones on key collisions. A `(dynamic)` chip marks an environment whose name is computed at runtime; it resolves to the real name once the run starts. A job that binds a single environment shows one chip; a job that binds none shows no chip.
9212
9407
 
9213
- If a multi-environment binding is gated out, the run's failure banner names which environment and which rule rejected it (the same all-must-pass detail surfaced by `kici status`).
9408
+ If a multi-environment binding is gated out, the run's failure banner names which environment and which rule rejected it (the same all-must-pass detail surfaced by `kici runs show <run-id>`).
9214
9409
 
9215
9410
  ### Secrets management
9216
9411
 
@@ -12748,7 +12943,7 @@ flowchart LR
12748
12943
 
12749
12944
  **Why three tiers?** Trust boundaries. The Platform relay never sees customer code -- it only verifies webhook signatures and forwards payloads. The orchestrator matches triggers against the lock file without cloning repositories. Only the agent, running on customer infrastructure, clones code and executes steps.
12750
12945
 
12751
- This model also enables fully self-hosted deployment: all three tiers can run on customer infrastructure, with the Platform tier receiving webhooks directly from GitHub.
12946
+ This model also supports an independent deployment without the hosted Platform: the orchestrator and agent run on customer infrastructure, with the orchestrator receiving webhooks directly from GitHub instead of through the Platform relay.
12752
12947
 
12753
12948
  ## Component responsibilities
12754
12949
 
@@ -44,7 +44,7 @@ Configure deployment environments (staging, production, review/\*) with variable
44
44
 
45
45
  ### [Environment variables](https://docs.kici.dev/user/env-vars/)
46
46
 
47
- Reference for all `KICI_*` environment variables supported by the CLI. Covers authentication overrides (OIDC issuer, client ID, project ID), browser behavior (custom browser command, fixed callback port), development mode, and usage examples for CI/CD, self-hosted, and headless environments.
47
+ Reference for all `KICI_*` environment variables supported by the CLI. Covers authentication overrides (OIDC issuer, client ID, project ID), browser behavior (custom browser command, fixed callback port), development mode, and usage examples for CI/CD, alternate environments, and headless setups.
48
48
 
49
49
  ### [CLI authentication](https://docs.kici.dev/user/cli-auth/)
50
50
 
@@ -11,8 +11,8 @@ Each bundle below is a self-contained markdown file for one authoring task. Fetc
11
11
  - [getting-started](https://docs.kici.dev/llms-getting-started.txt) (25 KB) — Install the SDK, write your first workflow, compile and test locally
12
12
  - [patterns](https://docs.kici.dev/llms-patterns.txt) (49 KB) — Copy-paste workflow recipes: triggers, conditionals, matrix, scheduling, integrations
13
13
  - [sdk](https://docs.kici.dev/llms-sdk.txt) (190 KB) — Authoring API: workflow/job/step factories, triggers, rules, matrix, runtime, caching
14
- - [cli](https://docs.kici.dev/llms-cli.txt) (124 KB) — Running the CLI: compile, test, run local/remote, auth, hooks, lock-file drift
15
- - [features](https://docs.kici.dev/llms-features.txt) (124 KB) — Workflow features: concurrency, environments, secrets, approvals, provenance, events
14
+ - [cli](https://docs.kici.dev/llms-cli.txt) (136 KB) — Running the CLI: compile, test, run local/remote, auth, hooks, lock-file drift
15
+ - [features](https://docs.kici.dev/llms-features.txt) (126 KB) — Workflow features: concurrency, environments, secrets, approvals, provenance, events
16
16
  - [providers](https://docs.kici.dev/llms-providers.txt) (36 KB) — Connecting sources: GitHub App, universal-git (Forgejo/Gitea/GitLab), local file://
17
17
  - [architecture](https://docs.kici.dev/llms-architecture.txt) (87 KB) — How the runtime works: three-tier relay model, data flows, configuration
18
18
 
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  //#region src/local-executor/dag-scheduler.ts
3
3
  /**
4
4
  * Detect cycles using Kahn's algorithm.
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { discoverWorkflows, resolveKiciDir } from "../execution/executor.js";
3
3
  import "../execution/index.js";
4
4
  import { transformTriggers } from "../lockfile/generator.js";
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { ensureTsLoaderHook } from "../execution/ts-loader.js";
3
3
  import { formatter } from "../test-runner/output-formatter.js";
4
4
  import { createStepContext } from "../test-runner/step-context.js";
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { selectOverlayFiles } from "../remote/uploader.js";
3
3
  import path from "node:path";
4
4
  import fs from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import pc from "picocolors";
3
3
  import { logger } from "@kici-dev/core";
4
4
  //#region src/local-executor/output-streamer.ts
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { parseEventArg } from "../test-runner/event-types.js";
3
3
  import { buildEventPayload } from "../test-runner/payload-builder.js";
4
4
  import { execSync } from "node:child_process";
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { transformTriggers } from "../lockfile/generator.js";
3
3
  import { parseEventArg, triggerSummary, triggerToEventArg } from "../test-runner/event-types.js";
4
4
  import pc from "picocolors";
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  //#region src/local-executor/runs-on-display.ts
3
3
  /** Render one selector element (string label or RegExp) for the local display string. */
4
4
  function runsOnElementString(el) {
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { loadSecretsFile } from "../test-runner/secrets-file.js";
3
3
  import path from "node:path";
4
4
  import { readFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  //#region src/local-executor/to-event-payload.ts
3
3
  /**
4
4
  * Map a {@link SimulatedEvent} into the normalized SDK {@link EventPayload}
@@ -1,2 +1,2 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  export {};
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { SCHEMA_VERSION as SCHEMA_VERSION$1 } from "../types.js";
3
3
  import { computeContentHash } from "./hasher.js";
4
4
  import { resolveHashFiles } from "./hash-files.js";
@@ -1,4 +1,4 @@
1
- import "../chunk-BTugEXQM.js";
1
+ import "../rolldown-runtime-ClRpJifh.js";
2
2
  import path from "node:path";
3
3
  import { readFileSync } from "node:fs";
4
4
  import fg from "fast-glob";