@kici-dev/compiler 0.0.0 → 0.1.2
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/LICENSE +202 -0
- package/README.md +1 -6
- package/dist/assets/api-TJJVHrjC.json +118 -0
- package/dist/assets/descriptor-BTtjzN9L.json +1382 -0
- package/dist/assets/package-BpQF9kR8.json +74 -0
- package/dist/assets/package-Ceo2h27X.json +89 -0
- package/dist/assets/source_context-D0atuL28.json +20 -0
- package/dist/assets/type-BFqO8SCZ.json +202 -0
- package/dist/auth/headless-detect.d.ts +14 -0
- package/dist/auth/headless-detect.js +25 -0
- package/dist/chunk-gOLHoazu.js +4 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +193 -0
- package/dist/commands/cancel.d.ts +22 -0
- package/dist/commands/cancel.js +124 -0
- package/dist/commands/compile.d.ts +17 -0
- package/dist/commands/compile.js +99 -0
- package/dist/commands/docs.d.ts +26 -0
- package/dist/commands/docs.js +60 -0
- package/dist/commands/drain-worker.d.ts +19 -0
- package/dist/commands/drain-worker.js +45 -0
- package/dist/commands/endpoints.d.ts +53 -0
- package/dist/commands/endpoints.js +185 -0
- package/dist/commands/fixture.d.ts +14 -0
- package/dist/commands/fixture.js +104 -0
- package/dist/commands/hook.d.ts +20 -0
- package/dist/commands/hook.js +97 -0
- package/dist/commands/index.d.ts +33 -0
- package/dist/commands/index.js +20 -0
- package/dist/commands/init.d.ts +35 -0
- package/dist/commands/init.js +393 -0
- package/dist/commands/login.d.ts +23 -0
- package/dist/commands/login.js +144 -0
- package/dist/commands/logout.d.ts +18 -0
- package/dist/commands/logout.js +55 -0
- package/dist/commands/org.d.ts +27 -0
- package/dist/commands/org.js +126 -0
- package/dist/commands/run.d.ts +21 -0
- package/dist/commands/run.js +562 -0
- package/dist/commands/secrets-list.d.ts +16 -0
- package/dist/commands/secrets-list.js +85 -0
- package/dist/commands/status.d.ts +30 -0
- package/dist/commands/status.js +210 -0
- package/dist/commands/test.d.ts +61 -0
- package/dist/commands/test.js +220 -0
- package/dist/commands/types.d.ts +18 -0
- package/dist/commands/types.js +74 -0
- package/dist/commands/watch.d.ts +14 -0
- package/dist/commands/watch.js +97 -0
- package/dist/commands/workflows.d.ts +28 -0
- package/dist/commands/workflows.js +154 -0
- package/dist/comment-created.json +30 -0
- package/dist/create-branch.json +17 -0
- package/dist/delete-branch.json +15 -0
- package/dist/dispatch.json +15 -0
- package/dist/errors/capability-gap.d.ts +50 -0
- package/dist/errors/capability-gap.js +54 -0
- package/dist/errors/codes.d.ts +25 -0
- package/dist/errors/formatter.d.ts +32 -0
- package/dist/errors/formatter.js +35 -0
- package/dist/errors/index.d.ts +5 -0
- package/dist/errors/index.js +4 -0
- package/dist/execution/executor.d.ts +61 -0
- package/dist/execution/executor.js +230 -0
- package/dist/execution/index.d.ts +4 -0
- package/dist/execution/index.js +3 -0
- package/dist/execution/sdk-alias.d.ts +33 -0
- package/dist/execution/sdk-alias.js +102 -0
- package/dist/fixtures/compiler.d.ts +47 -0
- package/dist/fixtures/compiler.js +177 -0
- package/dist/fixtures/defaults/comment-created.json +30 -0
- package/dist/fixtures/defaults/create-branch.json +17 -0
- package/dist/fixtures/defaults/delete-branch.json +15 -0
- package/dist/fixtures/defaults/dispatch.json +15 -0
- package/dist/fixtures/defaults/fork.json +19 -0
- package/dist/fixtures/defaults/index.d.ts +16 -0
- package/dist/fixtures/defaults/index.js +105 -0
- package/dist/fixtures/defaults/index.ts +145 -0
- package/dist/fixtures/defaults/pr-closed.json +28 -0
- package/dist/fixtures/defaults/pr-opened.json +27 -0
- package/dist/fixtures/defaults/pr-reopened.json +27 -0
- package/dist/fixtures/defaults/pr-synchronize.json +27 -0
- package/dist/fixtures/defaults/push.json +16 -0
- package/dist/fixtures/defaults/release-published.json +23 -0
- package/dist/fixtures/defaults/review-comment-created.json +36 -0
- package/dist/fixtures/defaults/review-submitted.json +35 -0
- package/dist/fixtures/defaults/star-created.json +15 -0
- package/dist/fixtures/defaults/status.json +26 -0
- package/dist/fixtures/defaults/tag-push.json +20 -0
- package/dist/fixtures/defaults/watch-started.json +15 -0
- package/dist/fixtures/defaults/workflow-run-completed.json +23 -0
- package/dist/fork.json +19 -0
- package/dist/format.d.ts +5 -0
- package/dist/format.js +20 -0
- package/dist/generators/secrets-dts.d.ts +29 -0
- package/dist/generators/secrets-dts.js +67 -0
- package/dist/hooks/detector.d.ts +39 -0
- package/dist/hooks/detector.js +133 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.js +5 -0
- package/dist/hooks/installer.d.ts +24 -0
- package/dist/hooks/installer.js +328 -0
- package/dist/hooks/templates.d.ts +26 -0
- package/dist/hooks/templates.js +63 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +12 -0
- package/dist/llm-context/llms-full.txt +9974 -0
- package/dist/llm-context/llms.txt +61 -0
- package/dist/local-executor/dag-scheduler.d.ts +44 -0
- package/dist/local-executor/dag-scheduler.js +183 -0
- package/dist/local-executor/index.d.ts +23 -0
- package/dist/local-executor/index.js +309 -0
- package/dist/local-executor/job-runner.d.ts +40 -0
- package/dist/local-executor/job-runner.js +307 -0
- package/dist/local-executor/output-streamer.d.ts +31 -0
- package/dist/local-executor/output-streamer.js +166 -0
- package/dist/local-executor/payload-generator.d.ts +16 -0
- package/dist/local-executor/payload-generator.js +138 -0
- package/dist/local-executor/picker.d.ts +33 -0
- package/dist/local-executor/picker.js +109 -0
- package/dist/local-executor/secret-loader.d.ts +18 -0
- package/dist/local-executor/secret-loader.js +105 -0
- package/dist/local-executor/types.d.ts +80 -0
- package/dist/local-executor/types.js +2 -0
- package/dist/local-executor/workflow-lock.d.ts +81 -0
- package/dist/local-executor/workflow-lock.js +0 -0
- package/dist/lockfile/generator.d.ts +39 -0
- package/dist/lockfile/generator.js +688 -0
- package/dist/lockfile/hash-files.d.ts +14 -0
- package/dist/lockfile/hash-files.js +50 -0
- package/dist/lockfile/hasher.d.ts +36 -0
- package/dist/lockfile/hasher.js +46 -0
- package/dist/lockfile/index.d.ts +3 -0
- package/dist/lockfile/index.js +4 -0
- package/dist/lockfile/purity-analyzer.d.ts +25 -0
- package/dist/lockfile/purity-analyzer.js +204 -0
- package/dist/package-F7UXSDHW.json +74 -0
- package/dist/postinstall.d.ts +9 -0
- package/dist/postinstall.js +60 -0
- package/dist/pr-closed.json +28 -0
- package/dist/pr-opened.json +27 -0
- package/dist/pr-reopened.json +27 -0
- package/dist/pr-synchronize.json +27 -0
- package/dist/push.json +16 -0
- package/dist/release-published.json +23 -0
- package/dist/remote/client.d.ts +204 -0
- package/dist/remote/client.js +203 -0
- package/dist/remote/config.d.ts +54 -0
- package/dist/remote/config.js +92 -0
- package/dist/remote/encryption.d.ts +35 -0
- package/dist/remote/encryption.js +87 -0
- package/dist/remote/history.d.ts +91 -0
- package/dist/remote/history.js +146 -0
- package/dist/remote/oauth.d.ts +65 -0
- package/dist/remote/oauth.js +302 -0
- package/dist/remote/observer.d.ts +81 -0
- package/dist/remote/observer.js +174 -0
- package/dist/remote/output/json.d.ts +13 -0
- package/dist/remote/output/json.js +36 -0
- package/dist/remote/output/junit.d.ts +18 -0
- package/dist/remote/output/junit.js +50 -0
- package/dist/remote/output/streaming.d.ts +57 -0
- package/dist/remote/output/streaming.js +124 -0
- package/dist/remote/output/summary.d.ts +39 -0
- package/dist/remote/output/summary.js +99 -0
- package/dist/remote/uploader.d.ts +87 -0
- package/dist/remote/uploader.js +197 -0
- package/dist/review-comment-created.json +36 -0
- package/dist/review-submitted.json +35 -0
- package/dist/star-created.json +15 -0
- package/dist/status.json +26 -0
- package/dist/tag-push.json +20 -0
- package/dist/templates/agents-md.d.ts +8 -0
- package/dist/templates/agents-md.js +130 -0
- package/dist/templates/index.d.ts +43 -0
- package/dist/templates/index.js +48 -0
- package/dist/templates/package-json.d.ts +18 -0
- package/dist/templates/package-json.js +34 -0
- package/dist/templates/tsconfig-json.d.ts +9 -0
- package/dist/templates/tsconfig-json.js +26 -0
- package/dist/templates/workflows/hello-world.d.ts +2 -0
- package/dist/templates/workflows/hello-world.js +16 -0
- package/dist/templates/workflows/hello-world.ts +21 -0
- package/dist/templates/workflows/pr-checks.d.ts +2 -0
- package/dist/templates/workflows/pr-checks.js +40 -0
- package/dist/templates/workflows/pr-checks.ts +57 -0
- package/dist/test-runner/dry-run.d.ts +12 -0
- package/dist/test-runner/dry-run.js +66 -0
- package/dist/test-runner/event-types.d.ts +86 -0
- package/dist/test-runner/event-types.js +330 -0
- package/dist/test-runner/git-detector.d.ts +15 -0
- package/dist/test-runner/git-detector.js +30 -0
- package/dist/test-runner/index.d.ts +13 -0
- package/dist/test-runner/index.js +11 -0
- package/dist/test-runner/job-executor.d.ts +48 -0
- package/dist/test-runner/job-executor.js +245 -0
- package/dist/test-runner/output-formatter.d.ts +47 -0
- package/dist/test-runner/output-formatter.js +92 -0
- package/dist/test-runner/payload-builder.d.ts +20 -0
- package/dist/test-runner/payload-builder.js +216 -0
- package/dist/test-runner/rule-evaluator.d.ts +14 -0
- package/dist/test-runner/rule-evaluator.js +31 -0
- package/dist/test-runner/secrets-file.d.ts +24 -0
- package/dist/test-runner/secrets-file.js +62 -0
- package/dist/test-runner/step-context.d.ts +15 -0
- package/dist/test-runner/step-context.js +140 -0
- package/dist/test-runner/summary.d.ts +7 -0
- package/dist/types.d.ts +525 -0
- package/dist/types.js +33 -0
- package/dist/validation/index.d.ts +3 -0
- package/dist/validation/index.js +3 -0
- package/dist/validation/validator.d.ts +26 -0
- package/dist/validation/validator.js +164 -0
- package/dist/watch-started.json +15 -0
- package/dist/workflow-run-completed.json +23 -0
- package/dist/workflows/hello-world.ts +21 -0
- package/dist/workflows/pr-checks.ts +57 -0
- package/hack/postinstall.mjs +105 -0
- package/package.json +60 -6
- package/sbom.spdx.json +10997 -0
- package/index.js +0 -3
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import "../chunk-gOLHoazu.js";
|
|
2
|
+
import { getDefaultFixture } from "../fixtures/defaults/index.js";
|
|
3
|
+
import { detectRepoFromGit } from "../test-runner/git-detector.js";
|
|
4
|
+
import { parseEventArg } from "../test-runner/event-types.js";
|
|
5
|
+
import pc from "picocolors";
|
|
6
|
+
import { writeFile } from "node:fs/promises";
|
|
7
|
+
import { logger } from "@kici-dev/shared";
|
|
8
|
+
//#region src/commands/fixture.ts
|
|
9
|
+
/**
|
|
10
|
+
* Fixture generation command
|
|
11
|
+
*
|
|
12
|
+
* Generates JSON fixture templates for all supported event types,
|
|
13
|
+
* including internal events (schedule, lifecycle, generic_webhook, kici_event).
|
|
14
|
+
*/
|
|
15
|
+
/** Internal event types that don't have GitHub webhook fixture files */
|
|
16
|
+
const INTERNAL_EVENT_TYPES = new Set([
|
|
17
|
+
"kici_event",
|
|
18
|
+
"workflow_complete",
|
|
19
|
+
"job_complete",
|
|
20
|
+
"generic_webhook",
|
|
21
|
+
"schedule",
|
|
22
|
+
"lifecycle"
|
|
23
|
+
]);
|
|
24
|
+
/**
|
|
25
|
+
* Generate a fixture template for an internal event type.
|
|
26
|
+
*/
|
|
27
|
+
function generateInternalFixture(eventType) {
|
|
28
|
+
switch (eventType.type) {
|
|
29
|
+
case "schedule": return {
|
|
30
|
+
cronExpression: "cronExpression" in eventType && eventType.cronExpression ? eventType.cronExpression : "0 0 * * *",
|
|
31
|
+
timezone: "timezone" in eventType && eventType.timezone ? eventType.timezone : "UTC"
|
|
32
|
+
};
|
|
33
|
+
case "lifecycle": return {
|
|
34
|
+
lifecycleEvent: "lifecycleEvent" in eventType ? eventType.lifecycleEvent : "workflow_complete",
|
|
35
|
+
workflowName: "ci",
|
|
36
|
+
status: "success",
|
|
37
|
+
sourceRepo: "owner/repo"
|
|
38
|
+
};
|
|
39
|
+
case "kici_event": return {
|
|
40
|
+
eventName: "eventName" in eventType ? eventType.eventName : "test-event",
|
|
41
|
+
payload: { message: "Example payload" }
|
|
42
|
+
};
|
|
43
|
+
case "workflow_complete": return {
|
|
44
|
+
workflowName: "workflowName" in eventType ? eventType.workflowName : "ci",
|
|
45
|
+
status: "status" in eventType ? eventType.status : "success",
|
|
46
|
+
sourceRepo: "owner/repo"
|
|
47
|
+
};
|
|
48
|
+
case "job_complete": return {
|
|
49
|
+
workflowName: "workflowName" in eventType ? eventType.workflowName : "ci",
|
|
50
|
+
jobName: "jobName" in eventType ? eventType.jobName : "build",
|
|
51
|
+
status: "status" in eventType ? eventType.status : "success",
|
|
52
|
+
sourceRepo: "owner/repo"
|
|
53
|
+
};
|
|
54
|
+
case "generic_webhook": return {
|
|
55
|
+
source: "source" in eventType && eventType.source ? eventType.source : "external-service",
|
|
56
|
+
event: "invoice.paid",
|
|
57
|
+
payload: {
|
|
58
|
+
id: "evt_123",
|
|
59
|
+
type: "invoice.paid",
|
|
60
|
+
data: { object: {
|
|
61
|
+
id: "in_123",
|
|
62
|
+
amount_paid: 2e3,
|
|
63
|
+
currency: "usd"
|
|
64
|
+
} }
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
default: return {};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Generate fixture template for event type
|
|
72
|
+
*/
|
|
73
|
+
async function fixtureCommand(event, options) {
|
|
74
|
+
try {
|
|
75
|
+
const eventType = parseEventArg(event);
|
|
76
|
+
let result;
|
|
77
|
+
if (INTERNAL_EVENT_TYPES.has(eventType.type)) result = generateInternalFixture(eventType);
|
|
78
|
+
else {
|
|
79
|
+
const fixture = getDefaultFixture(event);
|
|
80
|
+
const repoInfo = await detectRepoFromGit();
|
|
81
|
+
result = repoInfo && typeof fixture === "object" && fixture !== null ? {
|
|
82
|
+
...fixture,
|
|
83
|
+
repository: {
|
|
84
|
+
...fixture.repository,
|
|
85
|
+
owner: { login: repoInfo.owner },
|
|
86
|
+
name: repoInfo.name,
|
|
87
|
+
full_name: `${repoInfo.owner}/${repoInfo.name}`
|
|
88
|
+
}
|
|
89
|
+
} : fixture;
|
|
90
|
+
}
|
|
91
|
+
const json = JSON.stringify(result, null, 2);
|
|
92
|
+
if (options.output) {
|
|
93
|
+
await writeFile(options.output, json, "utf-8");
|
|
94
|
+
logger.info(pc.green(`Fixture written to ${options.output}`));
|
|
95
|
+
} else logger.info(json);
|
|
96
|
+
} catch (error) {
|
|
97
|
+
if (error instanceof Error) logger.error(pc.red(`Error: ${error.message}`));
|
|
98
|
+
throw error;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
export { fixtureCommand };
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=fixture.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* kici hook command
|
|
3
|
+
*
|
|
4
|
+
* Install and manage pre-commit hooks for kici compile.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Options for hook install command
|
|
8
|
+
*/
|
|
9
|
+
export interface HookInstallOptions {
|
|
10
|
+
/** Force raw git hook (ignore detected tools) */
|
|
11
|
+
git?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Install pre-commit hook for kici compile.
|
|
15
|
+
*
|
|
16
|
+
* @param options - Command options
|
|
17
|
+
* @returns true on success, false on error
|
|
18
|
+
*/
|
|
19
|
+
export declare function hookInstallCommand(options?: HookInstallOptions): Promise<boolean>;
|
|
20
|
+
//# sourceMappingURL=hook.d.ts.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import "../chunk-gOLHoazu.js";
|
|
2
|
+
import { detectHookTools, findGitDir } from "../hooks/detector.js";
|
|
3
|
+
import { installHook } from "../hooks/installer.js";
|
|
4
|
+
import "../hooks/index.js";
|
|
5
|
+
import pc from "picocolors";
|
|
6
|
+
import { readFile } from "node:fs/promises";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import { logger, toErrorMessage } from "@kici-dev/shared";
|
|
9
|
+
import { select } from "@inquirer/prompts";
|
|
10
|
+
//#region src/commands/hook.ts
|
|
11
|
+
/**
|
|
12
|
+
* kici hook command
|
|
13
|
+
*
|
|
14
|
+
* Install and manage pre-commit hooks for kici compile.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Install pre-commit hook for kici compile.
|
|
18
|
+
*
|
|
19
|
+
* @param options - Command options
|
|
20
|
+
* @returns true on success, false on error
|
|
21
|
+
*/
|
|
22
|
+
async function hookInstallCommand(options = {}) {
|
|
23
|
+
if (!await findGitDir()) {
|
|
24
|
+
logger.error(pc.red("Error: Not in a git repository."));
|
|
25
|
+
logger.error(pc.gray("Run this command from within a git repository."));
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
try {
|
|
29
|
+
let selectedTool;
|
|
30
|
+
if (options.git) selectedTool = "git";
|
|
31
|
+
else {
|
|
32
|
+
const tools = await detectHookTools();
|
|
33
|
+
if (tools.length === 0) if (process.stdout.isTTY && process.env.CI !== "true") {
|
|
34
|
+
const choice = await select({
|
|
35
|
+
message: "No pre-commit tool detected. How would you like to install the hook?",
|
|
36
|
+
choices: [{
|
|
37
|
+
name: "Raw git hook (.git/hooks/pre-commit)",
|
|
38
|
+
value: "git"
|
|
39
|
+
}, {
|
|
40
|
+
name: "Skip installation",
|
|
41
|
+
value: "skip"
|
|
42
|
+
}]
|
|
43
|
+
});
|
|
44
|
+
if (choice === "skip") {
|
|
45
|
+
logger.info(pc.yellow("Hook installation skipped."));
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
selectedTool = choice;
|
|
49
|
+
} else {
|
|
50
|
+
logger.info(pc.yellow("No pre-commit tool detected. Use --git to install raw git hook."));
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
else if (tools.length === 1) {
|
|
54
|
+
selectedTool = tools[0].name;
|
|
55
|
+
logger.info(pc.gray(`Detected ${selectedTool}, installing hook...`));
|
|
56
|
+
} else if (process.stdout.isTTY && process.env.CI !== "true") selectedTool = await select({
|
|
57
|
+
message: "Multiple pre-commit tools detected. Which would you like to use?",
|
|
58
|
+
choices: tools.map((t) => ({
|
|
59
|
+
name: t.name,
|
|
60
|
+
value: t.name
|
|
61
|
+
}))
|
|
62
|
+
});
|
|
63
|
+
else {
|
|
64
|
+
selectedTool = tools[0].name;
|
|
65
|
+
logger.info(pc.gray(`Using ${selectedTool} (highest priority)`));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const useVerdaccio = await detectVerdaccioNpmrc();
|
|
69
|
+
const result = await installHook(selectedTool, { useVerdaccio });
|
|
70
|
+
if (result.success) {
|
|
71
|
+
if (result.action === "skipped") logger.info(pc.yellow(`Already installed: ${result.message}`));
|
|
72
|
+
else logger.info(pc.green(`Hook installed: ${result.message}`));
|
|
73
|
+
return true;
|
|
74
|
+
} else {
|
|
75
|
+
logger.error(pc.red(`Error: ${result.message}`));
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
} catch (error) {
|
|
79
|
+
const message = toErrorMessage(error);
|
|
80
|
+
logger.error(pc.red(`Error: ${message}`));
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Detect if local Verdaccio is configured by checking for .kici/.npmrc
|
|
86
|
+
*/
|
|
87
|
+
async function detectVerdaccioNpmrc() {
|
|
88
|
+
try {
|
|
89
|
+
return (await readFile(path.resolve(".kici", ".npmrc"), "utf-8")).includes("verdaccio");
|
|
90
|
+
} catch {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { hookInstallCommand };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=hook.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { compileCommand } from './compile.js';
|
|
2
|
+
export type { CompileOptions } from './compile.js';
|
|
3
|
+
export { watchCommand } from './watch.js';
|
|
4
|
+
export { fixtureCommand } from './fixture.js';
|
|
5
|
+
export type { FixtureOptions } from './fixture.js';
|
|
6
|
+
export { testCommand, testDryRun } from './test.js';
|
|
7
|
+
export type { TestOptions, RemoteRunOptions, RemoteRunResult } from './test.js';
|
|
8
|
+
export { runLocalCommand, runRemoteCommand } from './run.js';
|
|
9
|
+
export { initCommand } from './init.js';
|
|
10
|
+
export type { InitOptions } from './init.js';
|
|
11
|
+
export { hookInstallCommand } from './hook.js';
|
|
12
|
+
export type { HookInstallOptions } from './hook.js';
|
|
13
|
+
export { loginCommand } from './login.js';
|
|
14
|
+
export type { LoginOptions } from './login.js';
|
|
15
|
+
export { secretsListCommand } from './secrets-list.js';
|
|
16
|
+
export type { SecretsListOptions } from './secrets-list.js';
|
|
17
|
+
export { statusCommand } from './status.js';
|
|
18
|
+
export type { StatusOptions } from './status.js';
|
|
19
|
+
export { typesCommand } from './types.js';
|
|
20
|
+
export type { TypesOptions } from './types.js';
|
|
21
|
+
export { endpointsCommand } from './endpoints.js';
|
|
22
|
+
export type { EndpointsOptions } from './endpoints.js';
|
|
23
|
+
export { orgListCommand, orgUseCommand, orgCurrentCommand } from './org.js';
|
|
24
|
+
export { logoutCommand } from './logout.js';
|
|
25
|
+
export { cancelCommand } from './cancel.js';
|
|
26
|
+
export type { CancelOptions } from './cancel.js';
|
|
27
|
+
export { workflowsListCommand } from './workflows.js';
|
|
28
|
+
export type { WorkflowsListOptions } from './workflows.js';
|
|
29
|
+
export { drainWorkerCommand } from './drain-worker.js';
|
|
30
|
+
export type { DrainWorkerOptions } from './drain-worker.js';
|
|
31
|
+
export { docsCommand, docsLlmCommand } from './docs.js';
|
|
32
|
+
export type { DocsOptions, DocsLlmOptions } from './docs.js';
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "../chunk-gOLHoazu.js";
|
|
2
|
+
import { compileCommand } from "./compile.js";
|
|
3
|
+
import { watchCommand } from "./watch.js";
|
|
4
|
+
import { fixtureCommand } from "./fixture.js";
|
|
5
|
+
import { testCommand, testDryRun } from "./test.js";
|
|
6
|
+
import { runLocalCommand, runRemoteCommand } from "./run.js";
|
|
7
|
+
import { initCommand } from "./init.js";
|
|
8
|
+
import { hookInstallCommand } from "./hook.js";
|
|
9
|
+
import { loginCommand } from "./login.js";
|
|
10
|
+
import { secretsListCommand } from "./secrets-list.js";
|
|
11
|
+
import { statusCommand } from "./status.js";
|
|
12
|
+
import { typesCommand } from "./types.js";
|
|
13
|
+
import { endpointsCommand } from "./endpoints.js";
|
|
14
|
+
import { orgCurrentCommand, orgListCommand, orgUseCommand } from "./org.js";
|
|
15
|
+
import { logoutCommand } from "./logout.js";
|
|
16
|
+
import { cancelCommand } from "./cancel.js";
|
|
17
|
+
import { workflowsListCommand } from "./workflows.js";
|
|
18
|
+
import { drainWorkerCommand } from "./drain-worker.js";
|
|
19
|
+
import { docsCommand, docsLlmCommand } from "./docs.js";
|
|
20
|
+
export { cancelCommand, compileCommand, docsCommand, docsLlmCommand, drainWorkerCommand, endpointsCommand, fixtureCommand, hookInstallCommand, initCommand, loginCommand, logoutCommand, orgCurrentCommand, orgListCommand, orgUseCommand, runLocalCommand, runRemoteCommand, secretsListCommand, statusCommand, testCommand, testDryRun, typesCommand, watchCommand, workflowsListCommand };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* kici init command
|
|
3
|
+
*
|
|
4
|
+
* Creates .kici/ directory structure with workflow templates.
|
|
5
|
+
* Supports TypeScript mode (with package.json/node_modules) and MJS mode (pure JS).
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Options for init command
|
|
9
|
+
*/
|
|
10
|
+
export interface InitOptions {
|
|
11
|
+
/** Overwrite existing .kici/ directory */
|
|
12
|
+
force?: boolean;
|
|
13
|
+
/** Skip npm install step */
|
|
14
|
+
skipInstall?: boolean;
|
|
15
|
+
/** JavaScript-only mode (no TypeScript, no dependencies) */
|
|
16
|
+
mjs?: boolean;
|
|
17
|
+
/** Write .npmrc pointing @kici-dev scope to local Verdaccio */
|
|
18
|
+
useVerdaccioLocal?: boolean;
|
|
19
|
+
/** Private registry URL to scaffold a `registries:` entry for. */
|
|
20
|
+
privateRegistry?: string;
|
|
21
|
+
/** Optional npm scope (e.g. `@my-org`) the private registry serves. */
|
|
22
|
+
privateRegistryScope?: string;
|
|
23
|
+
/** Qualified secret reference (`env:NAME`) the private registry token comes from. */
|
|
24
|
+
privateRegistrySecret?: string;
|
|
25
|
+
/** Skip writing the .kici/AGENTS.md LLM-authoring context file. Default: write it. */
|
|
26
|
+
noAgentsMd?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Initialize .kici/ directory with workflow templates
|
|
30
|
+
*
|
|
31
|
+
* @param options - Configuration options for initialization
|
|
32
|
+
* @returns true on success, false on error
|
|
33
|
+
*/
|
|
34
|
+
export declare function initCommand(options?: InitOptions): Promise<boolean>;
|
|
35
|
+
//# sourceMappingURL=init.d.ts.map
|