@kici-dev/compiler 0.1.13 → 0.1.14

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 (53) hide show
  1. package/dist/cli.js +22 -20
  2. package/dist/commands/cancel.js +1 -1
  3. package/dist/commands/compile.js +1 -1
  4. package/dist/commands/docs.js +1 -1
  5. package/dist/commands/drain-worker.js +1 -1
  6. package/dist/commands/endpoints.js +1 -1
  7. package/dist/commands/fixture.js +3 -3
  8. package/dist/commands/hook.js +1 -1
  9. package/dist/commands/index.js +6 -6
  10. package/dist/commands/init.js +9 -7
  11. package/dist/commands/login.js +1 -1
  12. package/dist/commands/run.js +7 -7
  13. package/dist/commands/secrets-list.js +1 -1
  14. package/dist/commands/status.js +4 -4
  15. package/dist/commands/test.js +2 -2
  16. package/dist/commands/types.js +1 -1
  17. package/dist/commands/watch.js +1 -1
  18. package/dist/commands/workflows.js +3 -3
  19. package/dist/execution/executor.js +6 -3
  20. package/dist/execution/sdk-alias.js +1 -1
  21. package/dist/execution/ts-loader.d.ts +2 -0
  22. package/dist/execution/ts-loader.js +13 -0
  23. package/dist/fixtures/compiler.d.ts +7 -5
  24. package/dist/fixtures/compiler.js +10 -6
  25. package/dist/llm-context/llms-full.txt +83 -51
  26. package/dist/llm-context/llms.txt +37 -37
  27. package/dist/local-executor/index.js +2 -2
  28. package/dist/local-executor/job-runner.js +4 -1
  29. package/dist/local-executor/output-streamer.js +1 -1
  30. package/dist/local-executor/picker.js +1 -1
  31. package/dist/local-executor/workflow-lock.js +0 -0
  32. package/dist/lockfile/generator.js +3 -3
  33. package/dist/lockfile/hasher.js +1 -1
  34. package/dist/remote/client.js +1 -1
  35. package/dist/remote/encryption.d.ts +1 -1
  36. package/dist/remote/encryption.js +1 -1
  37. package/dist/remote/history.js +2 -2
  38. package/dist/remote/oauth.js +1 -1
  39. package/dist/remote/oidc-discovery.js +1 -1
  40. package/dist/remote/output/streaming.js +1 -1
  41. package/dist/remote/output/summary.js +1 -1
  42. package/dist/remote/uploader.js +1 -1
  43. package/dist/templates/index.js +1 -1
  44. package/dist/templates/package-json.js +1 -1
  45. package/dist/test-runner/dry-run.js +1 -1
  46. package/dist/test-runner/index.js +4 -4
  47. package/dist/test-runner/job-executor.js +1 -1
  48. package/dist/test-runner/output-formatter.js +1 -1
  49. package/dist/test-runner/payload-builder.js +2 -2
  50. package/dist/test-runner/rule-evaluator.js +1 -1
  51. package/dist/test-runner/step-context.js +1 -1
  52. package/package.json +4 -4
  53. package/sbom.spdx.json +1328 -8436
@@ -1,4 +1,4 @@
1
- import { deriveSharedSecret } from '@kici-dev/shared';
1
+ import { deriveSharedSecret } from '@kici-dev/core';
2
2
  export { deriveSharedSecret };
3
3
  /**
4
4
  * Generate an ephemeral X25519 keypair.
@@ -1,6 +1,6 @@
1
1
  import "../chunk-gOLHoazu.js";
2
2
  import fs from "node:fs/promises";
3
- import { deriveSharedSecret } from "@kici-dev/shared";
3
+ import { deriveSharedSecret } from "@kici-dev/core";
4
4
  import crypto from "node:crypto";
5
5
  //#region src/remote/encryption.ts
6
6
  /**
@@ -1,10 +1,10 @@
1
1
  import "../chunk-gOLHoazu.js";
2
- import { getConfigDir } from "./config.js";
3
2
  import { formatRelativeTime } from "../format.js";
3
+ import { getConfigDir } from "./config.js";
4
4
  import pc from "picocolors";
5
5
  import fs from "node:fs/promises";
6
6
  import path from "node:path";
7
- import { formatDuration } from "@kici-dev/shared";
7
+ import { formatDuration } from "@kici-dev/core";
8
8
  import picomatch from "picomatch";
9
9
  //#region src/remote/history.ts
10
10
  /**
@@ -1,8 +1,8 @@
1
1
  import "../chunk-gOLHoazu.js";
2
2
  import { discoverOidcEndpoints } from "./oidc-discovery.js";
3
3
  import pc from "picocolors";
4
+ import { toErrorMessage } from "@kici-dev/core";
4
5
  import { exec } from "node:child_process";
5
- import { toErrorMessage } from "@kici-dev/shared";
6
6
  import { createHash, randomBytes } from "node:crypto";
7
7
  import { createServer } from "node:http";
8
8
  import open from "open";
@@ -1,5 +1,5 @@
1
1
  import "../chunk-gOLHoazu.js";
2
- import { toErrorMessage } from "@kici-dev/shared";
2
+ import { toErrorMessage } from "@kici-dev/core";
3
3
  //#region src/remote/oidc-discovery.ts
4
4
  const cache = /* @__PURE__ */ new Map();
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import "../../chunk-gOLHoazu.js";
2
2
  import pc from "picocolors";
3
- import { formatDuration } from "@kici-dev/shared";
3
+ import { formatDuration } from "@kici-dev/core";
4
4
  //#region src/remote/output/streaming.ts
5
5
  /**
6
6
  * Real-time log streaming output formatter for CLI observer.
@@ -1,6 +1,6 @@
1
1
  import "../../chunk-gOLHoazu.js";
2
2
  import pc from "picocolors";
3
- import { formatDuration } from "@kici-dev/shared";
3
+ import { formatDuration } from "@kici-dev/core";
4
4
  //#region src/remote/output/summary.ts
5
5
  /**
6
6
  * Completion summary output formatters.
@@ -2,8 +2,8 @@ import "../chunk-gOLHoazu.js";
2
2
  import { encryptTarball } from "./encryption.js";
3
3
  import fs from "node:fs/promises";
4
4
  import path from "node:path";
5
+ import { formatBytes, sha256, sha256File } from "@kici-dev/core";
5
6
  import { execSync } from "node:child_process";
6
- import { formatBytes, sha256, sha256File } from "@kici-dev/shared";
7
7
  import os from "node:os";
8
8
  import picomatch from "picomatch";
9
9
  import { create } from "tar";
@@ -1,9 +1,9 @@
1
1
  import "../chunk-gOLHoazu.js";
2
+ import { agentsMdTemplate } from "./agents-md.js";
2
3
  import { helloWorldWorkflow } from "./workflows/hello-world.js";
3
4
  import { prChecksWorkflow } from "./workflows/pr-checks.js";
4
5
  import { tsconfigTemplate } from "./tsconfig-json.js";
5
6
  import { generatePackageJson } from "./package-json.js";
6
- import { agentsMdTemplate } from "./agents-md.js";
7
7
  import path from "node:path";
8
8
  import { fileURLToPath } from "node:url";
9
9
  //#region src/templates/index.ts
@@ -1,6 +1,6 @@
1
1
  import "../chunk-gOLHoazu.js";
2
2
  //#region src/templates/package-json.ts
3
- const sdkVersion = "0.1.13";
3
+ const sdkVersion = "0.1.14";
4
4
  /**
5
5
  * Generate package.json content for .kici/ directory
6
6
  *
@@ -1,6 +1,6 @@
1
1
  import "../chunk-gOLHoazu.js";
2
2
  import pc from "picocolors";
3
- import { logger } from "@kici-dev/shared";
3
+ import { logger } from "@kici-dev/core";
4
4
  //#region src/test-runner/dry-run.ts
5
5
  /**
6
6
  * Display dry-run output showing what would execute.
@@ -1,11 +1,11 @@
1
1
  import "../chunk-gOLHoazu.js";
2
- import { getDefaultFixture, listAvailableEvents } from "../fixtures/defaults/index.js";
3
- import { detectRepoFromGit } from "./git-detector.js";
4
- import { parseEventArg, triggerSummary, triggerToEventArg } from "./event-types.js";
5
- import { buildEventPayload } from "./payload-builder.js";
6
2
  import { displayDryRun } from "./dry-run.js";
3
+ import { parseEventArg, triggerSummary, triggerToEventArg } from "./event-types.js";
4
+ import { detectRepoFromGit } from "./git-detector.js";
7
5
  import { formatter } from "./output-formatter.js";
8
6
  import { createStepContext } from "./step-context.js";
9
7
  import { createRuleContext, evaluateRules as evaluateRulesWithFormatting } from "./rule-evaluator.js";
10
8
  import { executeJob, executeWorkflow } from "./job-executor.js";
9
+ import { getDefaultFixture, listAvailableEvents } from "../fixtures/defaults/index.js";
10
+ import { buildEventPayload } from "./payload-builder.js";
11
11
  export { buildEventPayload, createRuleContext, createStepContext, detectRepoFromGit, displayDryRun, evaluateRulesWithFormatting as evaluateRules, executeJob, executeWorkflow, formatter, getDefaultFixture, listAvailableEvents, parseEventArg, triggerSummary, triggerToEventArg };
@@ -4,9 +4,9 @@ import { createStepContext } from "./step-context.js";
4
4
  import { createRuleContext, evaluateRules as evaluateRulesWithFormatting } from "./rule-evaluator.js";
5
5
  import pc from "picocolors";
6
6
  import path from "node:path";
7
- import { logger } from "@kici-dev/shared";
8
7
  import { pathToFileURL } from "node:url";
9
8
  import { setJobOutputsMap, setStepOutputsMap, setStepRefMap } from "@kici-dev/sdk";
9
+ import { logger } from "@kici-dev/core";
10
10
  //#region src/test-runner/job-executor.ts
11
11
  /**
12
12
  * Resolve SDK output setter functions from the workflow's module instance.
@@ -1,6 +1,6 @@
1
1
  import "../chunk-gOLHoazu.js";
2
2
  import pc from "picocolors";
3
- import { logger } from "@kici-dev/shared";
3
+ import { logger } from "@kici-dev/core";
4
4
  //#region src/test-runner/output-formatter.ts
5
5
  const JOB_COLORS = [
6
6
  pc.cyan,
@@ -1,7 +1,7 @@
1
1
  import "../chunk-gOLHoazu.js";
2
- import { getDefaultFixture } from "../fixtures/defaults/index.js";
3
- import { detectRepoFromGit } from "./git-detector.js";
4
2
  import { parseEventArg } from "./event-types.js";
3
+ import { detectRepoFromGit } from "./git-detector.js";
4
+ import { getDefaultFixture } from "../fixtures/defaults/index.js";
5
5
  import { readFile } from "node:fs/promises";
6
6
  //#region src/test-runner/payload-builder.ts
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import "../chunk-gOLHoazu.js";
2
2
  import { formatter } from "./output-formatter.js";
3
- import { initZx } from "@kici-dev/shared";
4
3
  import { evaluateRules } from "@kici-dev/sdk";
4
+ import { initZx } from "@kici-dev/core";
5
5
  import { $ } from "zx";
6
6
  //#region src/test-runner/rule-evaluator.ts
7
7
  initZx();
@@ -2,8 +2,8 @@ import "../chunk-gOLHoazu.js";
2
2
  import { formatter } from "./output-formatter.js";
3
3
  import { chmodSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
4
4
  import { join } from "node:path";
5
- import { initZx } from "@kici-dev/shared";
6
5
  import { createStepSecrets, resolveJobOutputs, resolveStepOutputs } from "@kici-dev/sdk";
6
+ import { initZx } from "@kici-dev/core";
7
7
  import { tmpdir } from "node:os";
8
8
  import { $ } from "zx";
9
9
  //#region src/test-runner/step-context.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kici-dev/compiler",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Compiler and CLI for KiCI workflows. Compiles `.kici/workflows/*.ts` to a `kici.lock.json` file consumed by the orchestrator and agents, and runs workflows locally or against a remote orchestrator.",
5
5
  "keywords": [
6
6
  "kici",
@@ -58,11 +58,11 @@
58
58
  "ws": "^8.20.0",
59
59
  "yaml": "^2.8.3",
60
60
  "zx": "^8.8.5",
61
- "@kici-dev/engine": "0.1.13",
62
- "@kici-dev/shared": "0.1.13"
61
+ "@kici-dev/core": "0.1.14",
62
+ "@kici-dev/engine": "0.1.14"
63
63
  },
64
64
  "peerDependencies": {
65
- "@kici-dev/sdk": "0.1.13"
65
+ "@kici-dev/sdk": "0.1.14"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/proper-lockfile": "^4.1.4"