@kici-dev/compiler 0.1.24 → 0.1.25

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
@@ -1,53 +0,0 @@
1
- import "../chunk-BTugEXQM.js";
2
- //#region src/commands/held-run-resolve.ts
3
- /**
4
- * Resolve the held-run id matching the filter from a list of pending holds.
5
- *
6
- * - `--step` requires `--job` and matches a `step`-scoped hold whose step index
7
- * equals the given value.
8
- * - `--job` alone matches a `job`/`workflow`-scoped hold for that job.
9
- * - With no filter, the sole pending hold is used; ambiguity is an error.
10
- */
11
- function resolveHeldRunId(holds, filter) {
12
- const pending = holds.filter((h) => h.status === "pending");
13
- if (pending.length === 0) return {
14
- ok: false,
15
- error: "No pending approval holds found for this run."
16
- };
17
- if (filter.step !== void 0) {
18
- if (!filter.job) return {
19
- ok: false,
20
- error: "--step requires --job to identify the held step."
21
- };
22
- return pickSingle(pending.filter((h) => h.holdScope === "step" && h.jobId === filter.job && String(h.stepIndex ?? "") === filter.step), `step ${filter.step} of job '${filter.job}'`);
23
- }
24
- if (filter.job !== void 0) return pickSingle(pending.filter((h) => h.jobId === filter.job && h.holdScope !== "step"), `job '${filter.job}'`);
25
- if (pending.length > 1) return {
26
- ok: false,
27
- error: "Multiple pending holds for this run. Use --job <name> (and --step <index>) to choose one."
28
- };
29
- return {
30
- ok: true,
31
- heldRunId: pending[0].id,
32
- hold: pending[0]
33
- };
34
- }
35
- function pickSingle(matches, label) {
36
- if (matches.length === 0) return {
37
- ok: false,
38
- error: `No pending hold found for ${label}.`
39
- };
40
- if (matches.length > 1) return {
41
- ok: false,
42
- error: `Multiple pending holds match ${label}; cannot disambiguate.`
43
- };
44
- return {
45
- ok: true,
46
- heldRunId: matches[0].id,
47
- hold: matches[0]
48
- };
49
- }
50
- //#endregion
51
- export { resolveHeldRunId };
52
-
53
- //# sourceMappingURL=held-run-resolve.js.map