@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.
Files changed (221) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +1 -6
  3. package/dist/assets/api-TJJVHrjC.json +118 -0
  4. package/dist/assets/descriptor-BTtjzN9L.json +1382 -0
  5. package/dist/assets/package-BpQF9kR8.json +74 -0
  6. package/dist/assets/package-Ceo2h27X.json +89 -0
  7. package/dist/assets/source_context-D0atuL28.json +20 -0
  8. package/dist/assets/type-BFqO8SCZ.json +202 -0
  9. package/dist/auth/headless-detect.d.ts +14 -0
  10. package/dist/auth/headless-detect.js +25 -0
  11. package/dist/chunk-gOLHoazu.js +4 -0
  12. package/dist/cli.d.ts +3 -0
  13. package/dist/cli.js +193 -0
  14. package/dist/commands/cancel.d.ts +22 -0
  15. package/dist/commands/cancel.js +124 -0
  16. package/dist/commands/compile.d.ts +17 -0
  17. package/dist/commands/compile.js +99 -0
  18. package/dist/commands/docs.d.ts +26 -0
  19. package/dist/commands/docs.js +60 -0
  20. package/dist/commands/drain-worker.d.ts +19 -0
  21. package/dist/commands/drain-worker.js +45 -0
  22. package/dist/commands/endpoints.d.ts +53 -0
  23. package/dist/commands/endpoints.js +185 -0
  24. package/dist/commands/fixture.d.ts +14 -0
  25. package/dist/commands/fixture.js +104 -0
  26. package/dist/commands/hook.d.ts +20 -0
  27. package/dist/commands/hook.js +97 -0
  28. package/dist/commands/index.d.ts +33 -0
  29. package/dist/commands/index.js +20 -0
  30. package/dist/commands/init.d.ts +35 -0
  31. package/dist/commands/init.js +393 -0
  32. package/dist/commands/login.d.ts +23 -0
  33. package/dist/commands/login.js +144 -0
  34. package/dist/commands/logout.d.ts +18 -0
  35. package/dist/commands/logout.js +55 -0
  36. package/dist/commands/org.d.ts +27 -0
  37. package/dist/commands/org.js +126 -0
  38. package/dist/commands/run.d.ts +21 -0
  39. package/dist/commands/run.js +562 -0
  40. package/dist/commands/secrets-list.d.ts +16 -0
  41. package/dist/commands/secrets-list.js +85 -0
  42. package/dist/commands/status.d.ts +30 -0
  43. package/dist/commands/status.js +210 -0
  44. package/dist/commands/test.d.ts +61 -0
  45. package/dist/commands/test.js +220 -0
  46. package/dist/commands/types.d.ts +18 -0
  47. package/dist/commands/types.js +74 -0
  48. package/dist/commands/watch.d.ts +14 -0
  49. package/dist/commands/watch.js +97 -0
  50. package/dist/commands/workflows.d.ts +28 -0
  51. package/dist/commands/workflows.js +154 -0
  52. package/dist/comment-created.json +30 -0
  53. package/dist/create-branch.json +17 -0
  54. package/dist/delete-branch.json +15 -0
  55. package/dist/dispatch.json +15 -0
  56. package/dist/errors/capability-gap.d.ts +50 -0
  57. package/dist/errors/capability-gap.js +54 -0
  58. package/dist/errors/codes.d.ts +25 -0
  59. package/dist/errors/formatter.d.ts +32 -0
  60. package/dist/errors/formatter.js +35 -0
  61. package/dist/errors/index.d.ts +5 -0
  62. package/dist/errors/index.js +4 -0
  63. package/dist/execution/executor.d.ts +61 -0
  64. package/dist/execution/executor.js +230 -0
  65. package/dist/execution/index.d.ts +4 -0
  66. package/dist/execution/index.js +3 -0
  67. package/dist/execution/sdk-alias.d.ts +33 -0
  68. package/dist/execution/sdk-alias.js +102 -0
  69. package/dist/fixtures/compiler.d.ts +47 -0
  70. package/dist/fixtures/compiler.js +177 -0
  71. package/dist/fixtures/defaults/comment-created.json +30 -0
  72. package/dist/fixtures/defaults/create-branch.json +17 -0
  73. package/dist/fixtures/defaults/delete-branch.json +15 -0
  74. package/dist/fixtures/defaults/dispatch.json +15 -0
  75. package/dist/fixtures/defaults/fork.json +19 -0
  76. package/dist/fixtures/defaults/index.d.ts +16 -0
  77. package/dist/fixtures/defaults/index.js +105 -0
  78. package/dist/fixtures/defaults/index.ts +145 -0
  79. package/dist/fixtures/defaults/pr-closed.json +28 -0
  80. package/dist/fixtures/defaults/pr-opened.json +27 -0
  81. package/dist/fixtures/defaults/pr-reopened.json +27 -0
  82. package/dist/fixtures/defaults/pr-synchronize.json +27 -0
  83. package/dist/fixtures/defaults/push.json +16 -0
  84. package/dist/fixtures/defaults/release-published.json +23 -0
  85. package/dist/fixtures/defaults/review-comment-created.json +36 -0
  86. package/dist/fixtures/defaults/review-submitted.json +35 -0
  87. package/dist/fixtures/defaults/star-created.json +15 -0
  88. package/dist/fixtures/defaults/status.json +26 -0
  89. package/dist/fixtures/defaults/tag-push.json +20 -0
  90. package/dist/fixtures/defaults/watch-started.json +15 -0
  91. package/dist/fixtures/defaults/workflow-run-completed.json +23 -0
  92. package/dist/fork.json +19 -0
  93. package/dist/format.d.ts +5 -0
  94. package/dist/format.js +20 -0
  95. package/dist/generators/secrets-dts.d.ts +29 -0
  96. package/dist/generators/secrets-dts.js +67 -0
  97. package/dist/hooks/detector.d.ts +39 -0
  98. package/dist/hooks/detector.js +133 -0
  99. package/dist/hooks/index.d.ts +6 -0
  100. package/dist/hooks/index.js +5 -0
  101. package/dist/hooks/installer.d.ts +24 -0
  102. package/dist/hooks/installer.js +328 -0
  103. package/dist/hooks/templates.d.ts +26 -0
  104. package/dist/hooks/templates.js +63 -0
  105. package/dist/index.d.ts +12 -0
  106. package/dist/index.js +12 -0
  107. package/dist/llm-context/llms-full.txt +9974 -0
  108. package/dist/llm-context/llms.txt +61 -0
  109. package/dist/local-executor/dag-scheduler.d.ts +44 -0
  110. package/dist/local-executor/dag-scheduler.js +183 -0
  111. package/dist/local-executor/index.d.ts +23 -0
  112. package/dist/local-executor/index.js +309 -0
  113. package/dist/local-executor/job-runner.d.ts +40 -0
  114. package/dist/local-executor/job-runner.js +307 -0
  115. package/dist/local-executor/output-streamer.d.ts +31 -0
  116. package/dist/local-executor/output-streamer.js +166 -0
  117. package/dist/local-executor/payload-generator.d.ts +16 -0
  118. package/dist/local-executor/payload-generator.js +138 -0
  119. package/dist/local-executor/picker.d.ts +33 -0
  120. package/dist/local-executor/picker.js +109 -0
  121. package/dist/local-executor/secret-loader.d.ts +18 -0
  122. package/dist/local-executor/secret-loader.js +105 -0
  123. package/dist/local-executor/types.d.ts +80 -0
  124. package/dist/local-executor/types.js +2 -0
  125. package/dist/local-executor/workflow-lock.d.ts +81 -0
  126. package/dist/local-executor/workflow-lock.js +0 -0
  127. package/dist/lockfile/generator.d.ts +39 -0
  128. package/dist/lockfile/generator.js +688 -0
  129. package/dist/lockfile/hash-files.d.ts +14 -0
  130. package/dist/lockfile/hash-files.js +50 -0
  131. package/dist/lockfile/hasher.d.ts +36 -0
  132. package/dist/lockfile/hasher.js +46 -0
  133. package/dist/lockfile/index.d.ts +3 -0
  134. package/dist/lockfile/index.js +4 -0
  135. package/dist/lockfile/purity-analyzer.d.ts +25 -0
  136. package/dist/lockfile/purity-analyzer.js +204 -0
  137. package/dist/package-F7UXSDHW.json +74 -0
  138. package/dist/postinstall.d.ts +9 -0
  139. package/dist/postinstall.js +60 -0
  140. package/dist/pr-closed.json +28 -0
  141. package/dist/pr-opened.json +27 -0
  142. package/dist/pr-reopened.json +27 -0
  143. package/dist/pr-synchronize.json +27 -0
  144. package/dist/push.json +16 -0
  145. package/dist/release-published.json +23 -0
  146. package/dist/remote/client.d.ts +204 -0
  147. package/dist/remote/client.js +203 -0
  148. package/dist/remote/config.d.ts +54 -0
  149. package/dist/remote/config.js +92 -0
  150. package/dist/remote/encryption.d.ts +35 -0
  151. package/dist/remote/encryption.js +87 -0
  152. package/dist/remote/history.d.ts +91 -0
  153. package/dist/remote/history.js +146 -0
  154. package/dist/remote/oauth.d.ts +65 -0
  155. package/dist/remote/oauth.js +302 -0
  156. package/dist/remote/observer.d.ts +81 -0
  157. package/dist/remote/observer.js +174 -0
  158. package/dist/remote/output/json.d.ts +13 -0
  159. package/dist/remote/output/json.js +36 -0
  160. package/dist/remote/output/junit.d.ts +18 -0
  161. package/dist/remote/output/junit.js +50 -0
  162. package/dist/remote/output/streaming.d.ts +57 -0
  163. package/dist/remote/output/streaming.js +124 -0
  164. package/dist/remote/output/summary.d.ts +39 -0
  165. package/dist/remote/output/summary.js +99 -0
  166. package/dist/remote/uploader.d.ts +87 -0
  167. package/dist/remote/uploader.js +197 -0
  168. package/dist/review-comment-created.json +36 -0
  169. package/dist/review-submitted.json +35 -0
  170. package/dist/star-created.json +15 -0
  171. package/dist/status.json +26 -0
  172. package/dist/tag-push.json +20 -0
  173. package/dist/templates/agents-md.d.ts +8 -0
  174. package/dist/templates/agents-md.js +130 -0
  175. package/dist/templates/index.d.ts +43 -0
  176. package/dist/templates/index.js +48 -0
  177. package/dist/templates/package-json.d.ts +18 -0
  178. package/dist/templates/package-json.js +34 -0
  179. package/dist/templates/tsconfig-json.d.ts +9 -0
  180. package/dist/templates/tsconfig-json.js +26 -0
  181. package/dist/templates/workflows/hello-world.d.ts +2 -0
  182. package/dist/templates/workflows/hello-world.js +16 -0
  183. package/dist/templates/workflows/hello-world.ts +21 -0
  184. package/dist/templates/workflows/pr-checks.d.ts +2 -0
  185. package/dist/templates/workflows/pr-checks.js +40 -0
  186. package/dist/templates/workflows/pr-checks.ts +57 -0
  187. package/dist/test-runner/dry-run.d.ts +12 -0
  188. package/dist/test-runner/dry-run.js +66 -0
  189. package/dist/test-runner/event-types.d.ts +86 -0
  190. package/dist/test-runner/event-types.js +330 -0
  191. package/dist/test-runner/git-detector.d.ts +15 -0
  192. package/dist/test-runner/git-detector.js +30 -0
  193. package/dist/test-runner/index.d.ts +13 -0
  194. package/dist/test-runner/index.js +11 -0
  195. package/dist/test-runner/job-executor.d.ts +48 -0
  196. package/dist/test-runner/job-executor.js +245 -0
  197. package/dist/test-runner/output-formatter.d.ts +47 -0
  198. package/dist/test-runner/output-formatter.js +92 -0
  199. package/dist/test-runner/payload-builder.d.ts +20 -0
  200. package/dist/test-runner/payload-builder.js +216 -0
  201. package/dist/test-runner/rule-evaluator.d.ts +14 -0
  202. package/dist/test-runner/rule-evaluator.js +31 -0
  203. package/dist/test-runner/secrets-file.d.ts +24 -0
  204. package/dist/test-runner/secrets-file.js +62 -0
  205. package/dist/test-runner/step-context.d.ts +15 -0
  206. package/dist/test-runner/step-context.js +140 -0
  207. package/dist/test-runner/summary.d.ts +7 -0
  208. package/dist/types.d.ts +525 -0
  209. package/dist/types.js +33 -0
  210. package/dist/validation/index.d.ts +3 -0
  211. package/dist/validation/index.js +3 -0
  212. package/dist/validation/validator.d.ts +26 -0
  213. package/dist/validation/validator.js +164 -0
  214. package/dist/watch-started.json +15 -0
  215. package/dist/workflow-run-completed.json +23 -0
  216. package/dist/workflows/hello-world.ts +21 -0
  217. package/dist/workflows/pr-checks.ts +57 -0
  218. package/hack/postinstall.mjs +105 -0
  219. package/package.json +60 -6
  220. package/sbom.spdx.json +10997 -0
  221. 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