@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.
- package/dist/cli.js +22 -20
- package/dist/commands/cancel.js +1 -1
- package/dist/commands/compile.js +1 -1
- package/dist/commands/docs.js +1 -1
- package/dist/commands/drain-worker.js +1 -1
- package/dist/commands/endpoints.js +1 -1
- package/dist/commands/fixture.js +3 -3
- package/dist/commands/hook.js +1 -1
- package/dist/commands/index.js +6 -6
- package/dist/commands/init.js +9 -7
- package/dist/commands/login.js +1 -1
- package/dist/commands/run.js +7 -7
- package/dist/commands/secrets-list.js +1 -1
- package/dist/commands/status.js +4 -4
- package/dist/commands/test.js +2 -2
- package/dist/commands/types.js +1 -1
- package/dist/commands/watch.js +1 -1
- package/dist/commands/workflows.js +3 -3
- package/dist/execution/executor.js +6 -3
- package/dist/execution/sdk-alias.js +1 -1
- package/dist/execution/ts-loader.d.ts +2 -0
- package/dist/execution/ts-loader.js +13 -0
- package/dist/fixtures/compiler.d.ts +7 -5
- package/dist/fixtures/compiler.js +10 -6
- package/dist/llm-context/llms-full.txt +83 -51
- package/dist/llm-context/llms.txt +37 -37
- package/dist/local-executor/index.js +2 -2
- package/dist/local-executor/job-runner.js +4 -1
- package/dist/local-executor/output-streamer.js +1 -1
- package/dist/local-executor/picker.js +1 -1
- package/dist/local-executor/workflow-lock.js +0 -0
- package/dist/lockfile/generator.js +3 -3
- package/dist/lockfile/hasher.js +1 -1
- package/dist/remote/client.js +1 -1
- package/dist/remote/encryption.d.ts +1 -1
- package/dist/remote/encryption.js +1 -1
- package/dist/remote/history.js +2 -2
- package/dist/remote/oauth.js +1 -1
- package/dist/remote/oidc-discovery.js +1 -1
- package/dist/remote/output/streaming.js +1 -1
- package/dist/remote/output/summary.js +1 -1
- package/dist/remote/uploader.js +1 -1
- package/dist/templates/index.js +1 -1
- package/dist/templates/package-json.js +1 -1
- package/dist/test-runner/dry-run.js +1 -1
- package/dist/test-runner/index.js +4 -4
- package/dist/test-runner/job-executor.js +1 -1
- package/dist/test-runner/output-formatter.js +1 -1
- package/dist/test-runner/payload-builder.js +2 -2
- package/dist/test-runner/rule-evaluator.js +1 -1
- package/dist/test-runner/step-context.js +1 -1
- package/package.json +4 -4
- package/sbom.spdx.json +1328 -8436
package/dist/remote/history.js
CHANGED
|
@@ -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/
|
|
7
|
+
import { formatDuration } from "@kici-dev/core";
|
|
8
8
|
import picomatch from "picomatch";
|
|
9
9
|
//#region src/remote/history.ts
|
|
10
10
|
/**
|
package/dist/remote/oauth.js
CHANGED
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import "../../chunk-gOLHoazu.js";
|
|
2
2
|
import pc from "picocolors";
|
|
3
|
-
import { formatDuration } from "@kici-dev/
|
|
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.
|
package/dist/remote/uploader.js
CHANGED
|
@@ -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";
|
package/dist/templates/index.js
CHANGED
|
@@ -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,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,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.
|
|
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/
|
|
62
|
-
"@kici-dev/
|
|
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.
|
|
65
|
+
"@kici-dev/sdk": "0.1.14"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/proper-lockfile": "^4.1.4"
|