@kici-dev/compiler 0.6.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/commands/compile.js +5 -1
  3. package/dist/commands/doctor.js +8 -2
  4. package/dist/commands/init.d.ts +9 -0
  5. package/dist/commands/init.js +77 -12
  6. package/dist/commands/local.d.ts +9 -2
  7. package/dist/commands/local.js +14 -4
  8. package/dist/commands/preview.js +1 -1
  9. package/dist/commands/report/identity.d.ts +11 -0
  10. package/dist/commands/report/identity.js +7 -2
  11. package/dist/commands/run-routed.js +4 -0
  12. package/dist/commands/run.js +5 -2
  13. package/dist/commands/runs/logs.js +3 -2
  14. package/dist/commands/types.d.ts +6 -1
  15. package/dist/commands/types.js +2 -1
  16. package/dist/execution/executor.js +7 -1
  17. package/dist/llm-context/llms-architecture.txt +73 -87
  18. package/dist/llm-context/llms-cli-remote.txt +53 -8
  19. package/dist/llm-context/llms-cli.txt +71 -36
  20. package/dist/llm-context/llms-features-execution.txt +52 -6
  21. package/dist/llm-context/llms-features.txt +137 -6
  22. package/dist/llm-context/llms-full.txt +558 -180
  23. package/dist/llm-context/llms-getting-started.txt +5 -5
  24. package/dist/llm-context/llms-patterns.txt +81 -5
  25. package/dist/llm-context/llms-providers.txt +6 -2
  26. package/dist/llm-context/llms-sdk-runtime.txt +33 -18
  27. package/dist/llm-context/llms-sdk.txt +47 -7
  28. package/dist/llm-context/llms.txt +8 -8
  29. package/dist/local-plane/orchestrator-process.d.ts +0 -8
  30. package/dist/local-plane/orchestrator-process.js +6 -14
  31. package/dist/local-plane/paths.d.ts +1 -0
  32. package/dist/local-plane/paths.js +1 -0
  33. package/dist/local-plane/plane-log.d.ts +27 -0
  34. package/dist/local-plane/plane-log.js +39 -0
  35. package/dist/local-plane/plane-manager.js +2 -2
  36. package/dist/local-plane/plane-trigger.d.ts +28 -0
  37. package/dist/local-plane/plane-trigger.js +57 -2
  38. package/dist/local-plane/postgres.js +9 -6
  39. package/dist/local-plane/run-follow.js +2 -1
  40. package/dist/lockfile/generator.js +25 -9
  41. package/dist/lockfile/hasher.d.ts +5 -13
  42. package/dist/lockfile/hasher.js +1 -15
  43. package/dist/lockfile/workspace-siblings.d.ts +46 -0
  44. package/dist/lockfile/workspace-siblings.js +197 -0
  45. package/dist/remote/output/streaming.d.ts +12 -0
  46. package/dist/remote/output/streaming.js +20 -1
  47. package/dist/remote/platform-client.d.ts +2 -0
  48. package/dist/templates/package-json.d.ts +9 -7
  49. package/dist/templates/package-json.js +11 -9
  50. package/dist/test-runner/job-executor.js +1 -1
  51. package/dist/test-runner/rule-evaluator.js +1 -1
  52. package/dist/types.d.ts +6 -1
  53. package/package.json +7 -9
  54. package/sbom.spdx.json +123 -123
  55. package/dist/postinstall.d.ts +0 -9
  56. package/dist/postinstall.js +0 -62
  57. package/hack/postinstall.mjs +0 -105
@@ -7,11 +7,14 @@
7
7
  * The compiler is invoked via npx (not installed as a dependency).
8
8
  */
9
9
  /**
10
- * The npm version range the scaffold pins `@kici-dev/sdk` to.
10
+ * The npm version spec the scaffold pins `@kici-dev/sdk` to.
11
11
  *
12
- * @param devMode - When true, a prerelease-compatible range (`>=0.0.1-0`) so
13
- * npm resolves Verdaccio's prerelease builds (e.g. 0.0.1-2856). Semver
14
- * `^0.0.1` does NOT match prereleases, causing 404s on Verdaccio.
12
+ * @param devMode - When true, the `latest` dist-tag, so npm resolves whatever
13
+ * build the dev registry (Verdaccio) currently publishes. Dev builds are
14
+ * prereleases such as `0.8.0-9726`, and no semver range reaches them: a
15
+ * prerelease only satisfies a comparator with the same major.minor.patch, so
16
+ * `^0.0.1` misses every one and `>=0.0.1-0` misses every one past 0.0.1.
17
+ * A dist-tag is resolved by name, never by range, so it follows the counter.
15
18
  */
16
19
  export declare function sdkDependencyRange(devMode?: boolean): string;
17
20
  /**
@@ -24,9 +27,8 @@ export declare const TYPESCRIPT_RANGE = "^6.0.3";
24
27
  /**
25
28
  * Generate package.json content for .kici/ directory
26
29
  *
27
- * @param devMode - When true, uses a prerelease-compatible version range
28
- * (`>=0.0.1-0`) so npm resolves Verdaccio's prerelease builds (e.g. 0.0.1-2856).
29
- * Semver `^0.0.1` does NOT match prereleases, causing 404s on Verdaccio.
30
+ * @param devMode - When true, pins the SDK to the `latest` dist-tag so npm
31
+ * resolves the dev registry's newest prerelease build (see sdkDependencyRange).
30
32
  * @returns JSON string with proper formatting (2-space indent, trailing newline)
31
33
  */
32
34
  export declare function generatePackageJson(devMode?: boolean): string;
@@ -1,15 +1,18 @@
1
1
  import "../rolldown-runtime-ClRpJifh.js";
2
2
  //#region src/templates/package-json.ts
3
- const sdkVersion = "0.6.1";
3
+ const sdkVersion = "0.8.0";
4
4
  /**
5
- * The npm version range the scaffold pins `@kici-dev/sdk` to.
5
+ * The npm version spec the scaffold pins `@kici-dev/sdk` to.
6
6
  *
7
- * @param devMode - When true, a prerelease-compatible range (`>=0.0.1-0`) so
8
- * npm resolves Verdaccio's prerelease builds (e.g. 0.0.1-2856). Semver
9
- * `^0.0.1` does NOT match prereleases, causing 404s on Verdaccio.
7
+ * @param devMode - When true, the `latest` dist-tag, so npm resolves whatever
8
+ * build the dev registry (Verdaccio) currently publishes. Dev builds are
9
+ * prereleases such as `0.8.0-9726`, and no semver range reaches them: a
10
+ * prerelease only satisfies a comparator with the same major.minor.patch, so
11
+ * `^0.0.1` misses every one and `>=0.0.1-0` misses every one past 0.0.1.
12
+ * A dist-tag is resolved by name, never by range, so it follows the counter.
10
13
  */
11
14
  function sdkDependencyRange(devMode = false) {
12
- return devMode ? ">=0.0.1-0" : `^${sdkVersion}`;
15
+ return devMode ? "latest" : `^${sdkVersion}`;
13
16
  }
14
17
  /**
15
18
  * The TypeScript range scaffolded into a `.kici` workspace. Pinned to the major
@@ -21,9 +24,8 @@ const TYPESCRIPT_RANGE = "^6.0.3";
21
24
  /**
22
25
  * Generate package.json content for .kici/ directory
23
26
  *
24
- * @param devMode - When true, uses a prerelease-compatible version range
25
- * (`>=0.0.1-0`) so npm resolves Verdaccio's prerelease builds (e.g. 0.0.1-2856).
26
- * Semver `^0.0.1` does NOT match prereleases, causing 404s on Verdaccio.
27
+ * @param devMode - When true, pins the SDK to the `latest` dist-tag so npm
28
+ * resolves the dev registry's newest prerelease build (see sdkDependencyRange).
27
29
  * @returns JSON string with proper formatting (2-space indent, trailing newline)
28
30
  */
29
31
  function generatePackageJson(devMode = false) {
@@ -6,8 +6,8 @@ import { localRunsOnString } from "./runs-on-display.js";
6
6
  import { pathToFileURL } from "node:url";
7
7
  import path from "node:path";
8
8
  import pc from "picocolors";
9
- import { setJobOutputsMap, setStepOutputsMap, setStepRefMap } from "@kici-dev/sdk";
10
9
  import { logger } from "@kici-dev/core";
10
+ import { setJobOutputsMap, setStepOutputsMap, setStepRefMap } from "@kici-dev/sdk/internal";
11
11
  //#region src/test-runner/job-executor.ts
12
12
  /**
13
13
  * Resolve SDK output setter functions from the workflow's module instance.
@@ -1,7 +1,7 @@
1
1
  import "../rolldown-runtime-ClRpJifh.js";
2
2
  import { formatter } from "./output-formatter.js";
3
- import { createRuleContext as createRuleContext$1, evaluateRules } from "@kici-dev/sdk";
4
3
  import { initZx } from "@kici-dev/core";
4
+ import { createRuleContext as createRuleContext$1, evaluateRules } from "@kici-dev/sdk/internal";
5
5
  //#region src/test-runner/rule-evaluator.ts
6
6
  initZx();
7
7
  /**
package/dist/types.d.ts CHANGED
@@ -28,7 +28,7 @@ export interface LockApproval {
28
28
  readonly when: 'always' | 'drift';
29
29
  }
30
30
  /** Schema version - re-exported from engine as single source of truth */
31
- export declare const SCHEMA_VERSION: 39;
31
+ export declare const SCHEMA_VERSION: 41;
32
32
  /** Lock compatibility-window floor - re-exported from engine as single source of truth */
33
33
  export declare const BREAKING_FLOOR: 30;
34
34
  /**
@@ -570,6 +570,11 @@ export interface LockDynamicJobFn {
570
570
  readonly needs?: readonly (string | LockNeedsEntry | LockNeedsGroupEntry)[];
571
571
  /** True when this dynamic entry was authored as dynamicJob(group, { needs, generate }). */
572
572
  readonly resultAware?: boolean;
573
+ /**
574
+ * Named git credentials the generator declares, inherited by every job it
575
+ * generates. Mirrors the engine `LockDynamicJobFn.gitCredentials`.
576
+ */
577
+ readonly gitCredentials?: Readonly<Record<string, Readonly<Record<string, string>>>>;
573
578
  }
574
579
  /** Job or dynamic job generator */
575
580
  export type LockJobOrFactory = LockJob | LockDynamicJobFn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kici-dev/compiler",
3
- "version": "0.6.1",
3
+ "version": "0.8.0",
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
  "ci",
@@ -33,7 +33,6 @@
33
33
  "files": [
34
34
  "dist",
35
35
  "!dist/**/*.map",
36
- "hack/postinstall.mjs",
37
36
  "sbom.spdx.json"
38
37
  ],
39
38
  "main": "dist/index.js",
@@ -62,24 +61,23 @@
62
61
  "yaml": "^2.9.0",
63
62
  "zod": "^4.4.3",
64
63
  "zx": "^8.8.5",
65
- "@kici-dev/agent": "0.6.1",
66
- "@kici-dev/core": "0.6.1",
67
- "@kici-dev/engine": "0.6.1",
68
- "@kici-dev/orchestrator": "0.6.1"
64
+ "@kici-dev/agent": "0.8.0",
65
+ "@kici-dev/core": "0.8.0",
66
+ "@kici-dev/engine": "0.8.0",
67
+ "@kici-dev/orchestrator": "0.8.0"
69
68
  },
70
69
  "devDependencies": {
71
70
  "@types/archiver": "^8.0.0",
72
71
  "jszip": "^3.10.1"
73
72
  },
74
73
  "peerDependencies": {
75
- "@kici-dev/sdk": "0.6.1"
74
+ "@kici-dev/sdk": "0.8.0"
76
75
  },
77
76
  "scripts": {
78
77
  "build": "node ../../scripts/build-ts.mjs && tsgo --emitDeclarationOnly",
79
78
  "postbuild": "zx hack/postbuild.mjs",
80
79
  "typecheck": "tsgo --noEmit",
81
80
  "test": "vitest run",
82
- "test:watch": "vitest",
83
- "postinstall": "node hack/postinstall.mjs"
81
+ "test:watch": "vitest"
84
82
  }
85
83
  }