@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.
- package/dist/cli.js +2 -2
- package/dist/commands/compile.js +5 -1
- package/dist/commands/doctor.js +8 -2
- package/dist/commands/init.d.ts +9 -0
- package/dist/commands/init.js +77 -12
- package/dist/commands/local.d.ts +9 -2
- package/dist/commands/local.js +14 -4
- package/dist/commands/preview.js +1 -1
- package/dist/commands/report/identity.d.ts +11 -0
- package/dist/commands/report/identity.js +7 -2
- package/dist/commands/run-routed.js +4 -0
- package/dist/commands/run.js +5 -2
- package/dist/commands/runs/logs.js +3 -2
- package/dist/commands/types.d.ts +6 -1
- package/dist/commands/types.js +2 -1
- package/dist/execution/executor.js +7 -1
- package/dist/llm-context/llms-architecture.txt +73 -87
- package/dist/llm-context/llms-cli-remote.txt +53 -8
- package/dist/llm-context/llms-cli.txt +71 -36
- package/dist/llm-context/llms-features-execution.txt +52 -6
- package/dist/llm-context/llms-features.txt +137 -6
- package/dist/llm-context/llms-full.txt +558 -180
- package/dist/llm-context/llms-getting-started.txt +5 -5
- package/dist/llm-context/llms-patterns.txt +81 -5
- package/dist/llm-context/llms-providers.txt +6 -2
- package/dist/llm-context/llms-sdk-runtime.txt +33 -18
- package/dist/llm-context/llms-sdk.txt +47 -7
- package/dist/llm-context/llms.txt +8 -8
- package/dist/local-plane/orchestrator-process.d.ts +0 -8
- package/dist/local-plane/orchestrator-process.js +6 -14
- package/dist/local-plane/paths.d.ts +1 -0
- package/dist/local-plane/paths.js +1 -0
- package/dist/local-plane/plane-log.d.ts +27 -0
- package/dist/local-plane/plane-log.js +39 -0
- package/dist/local-plane/plane-manager.js +2 -2
- package/dist/local-plane/plane-trigger.d.ts +28 -0
- package/dist/local-plane/plane-trigger.js +57 -2
- package/dist/local-plane/postgres.js +9 -6
- package/dist/local-plane/run-follow.js +2 -1
- package/dist/lockfile/generator.js +25 -9
- package/dist/lockfile/hasher.d.ts +5 -13
- package/dist/lockfile/hasher.js +1 -15
- package/dist/lockfile/workspace-siblings.d.ts +46 -0
- package/dist/lockfile/workspace-siblings.js +197 -0
- package/dist/remote/output/streaming.d.ts +12 -0
- package/dist/remote/output/streaming.js +20 -1
- package/dist/remote/platform-client.d.ts +2 -0
- package/dist/templates/package-json.d.ts +9 -7
- package/dist/templates/package-json.js +11 -9
- package/dist/test-runner/job-executor.js +1 -1
- package/dist/test-runner/rule-evaluator.js +1 -1
- package/dist/types.d.ts +6 -1
- package/package.json +7 -9
- package/sbom.spdx.json +123 -123
- package/dist/postinstall.d.ts +0 -9
- package/dist/postinstall.js +0 -62
- 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
|
|
10
|
+
* The npm version spec the scaffold pins `@kici-dev/sdk` to.
|
|
11
11
|
*
|
|
12
|
-
* @param devMode - When true,
|
|
13
|
-
*
|
|
14
|
-
*
|
|
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,
|
|
28
|
-
*
|
|
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.
|
|
3
|
+
const sdkVersion = "0.8.0";
|
|
4
4
|
/**
|
|
5
|
-
* The npm version
|
|
5
|
+
* The npm version spec the scaffold pins `@kici-dev/sdk` to.
|
|
6
6
|
*
|
|
7
|
-
* @param devMode - When true,
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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 ? "
|
|
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,
|
|
25
|
-
*
|
|
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:
|
|
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.
|
|
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.
|
|
66
|
-
"@kici-dev/core": "0.
|
|
67
|
-
"@kici-dev/engine": "0.
|
|
68
|
-
"@kici-dev/orchestrator": "0.
|
|
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.
|
|
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
|
}
|