@kici-dev/compiler 0.1.27 → 0.2.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 (153) hide show
  1. package/dist/auth/headless-detect.d.ts +14 -5
  2. package/dist/auth/headless-detect.js +50 -9
  3. package/dist/cli.js +120 -11
  4. package/dist/commands/compile.js +28 -4
  5. package/dist/commands/diagnostics.js +14 -2
  6. package/dist/commands/doctor.d.ts +64 -0
  7. package/dist/commands/doctor.js +413 -0
  8. package/dist/commands/endpoints.js +6 -0
  9. package/dist/commands/fixture.js +13 -0
  10. package/dist/commands/hook.js +3 -2
  11. package/dist/commands/index.d.ts +8 -0
  12. package/dist/commands/index.js +5 -1
  13. package/dist/commands/init-host-os.d.ts +34 -0
  14. package/dist/commands/init-host-os.js +44 -0
  15. package/dist/commands/init.d.ts +4 -0
  16. package/dist/commands/init.js +159 -36
  17. package/dist/commands/local.d.ts +28 -2
  18. package/dist/commands/local.js +74 -5
  19. package/dist/commands/login.js +1 -1
  20. package/dist/commands/notifications.d.ts +61 -0
  21. package/dist/commands/notifications.js +274 -0
  22. package/dist/commands/preview.js +8 -1
  23. package/dist/commands/run-routed.js +10 -1
  24. package/dist/commands/run.js +41 -12
  25. package/dist/commands/runs/artifacts/download.d.ts +24 -0
  26. package/dist/commands/runs/artifacts/download.js +154 -0
  27. package/dist/commands/runs/artifacts/list.d.ts +5 -0
  28. package/dist/commands/runs/artifacts/list.js +47 -0
  29. package/dist/commands/runs/cancel.js +2 -2
  30. package/dist/commands/runs/list.js +8 -2
  31. package/dist/commands/verify-attestation.d.ts +3 -1
  32. package/dist/commands/verify-attestation.js +18 -7
  33. package/dist/errors/formatter.d.ts +14 -1
  34. package/dist/errors/formatter.js +13 -3
  35. package/dist/errors/index.d.ts +2 -1
  36. package/dist/errors/index.js +3 -2
  37. package/dist/errors/source-location.d.ts +20 -0
  38. package/dist/errors/source-location.js +45 -0
  39. package/dist/execution/executor.js +25 -5
  40. package/dist/fixtures/defaults/index.js +2 -1
  41. package/dist/llm-context/llms-architecture.txt +48 -19
  42. package/dist/llm-context/llms-cli.txt +2461 -1582
  43. package/dist/llm-context/llms-features.txt +178 -106
  44. package/dist/llm-context/llms-full.txt +6124 -4423
  45. package/dist/llm-context/llms-getting-started.txt +306 -42
  46. package/dist/llm-context/llms-patterns.txt +13 -7
  47. package/dist/llm-context/llms-sdk-runtime.txt +2013 -0
  48. package/dist/llm-context/llms-sdk.txt +591 -2152
  49. package/dist/llm-context/llms.txt +30 -16
  50. package/dist/local-plane/orchestrator-process.d.ts +12 -7
  51. package/dist/local-plane/orchestrator-process.js +28 -14
  52. package/dist/local-plane/os-mismatch-hint.d.ts +16 -0
  53. package/dist/local-plane/os-mismatch-hint.js +34 -0
  54. package/dist/local-plane/plane-liveness.d.ts +68 -0
  55. package/dist/local-plane/plane-liveness.js +145 -0
  56. package/dist/local-plane/plane-manager.d.ts +60 -18
  57. package/dist/local-plane/plane-manager.js +210 -70
  58. package/dist/local-plane/plane-trigger.d.ts +13 -4
  59. package/dist/local-plane/plane-trigger.js +27 -14
  60. package/dist/local-plane/platform-attach.js +1 -5
  61. package/dist/local-plane/port-holder.d.ts +78 -0
  62. package/dist/local-plane/port-holder.js +227 -0
  63. package/dist/local-plane/postgres.d.ts +15 -3
  64. package/dist/local-plane/postgres.js +34 -12
  65. package/dist/local-plane/run-follow.d.ts +20 -0
  66. package/dist/local-plane/run-follow.js +51 -4
  67. package/dist/local-plane/scaler-config.d.ts +28 -14
  68. package/dist/local-plane/scaler-config.js +59 -41
  69. package/dist/local-plane/source-provider.js +4 -10
  70. package/dist/lockfile/generator.d.ts +14 -1
  71. package/dist/lockfile/generator.js +99 -33
  72. package/dist/lockfile/index.d.ts +3 -1
  73. package/dist/lockfile/index.js +3 -2
  74. package/dist/lockfile/purity-diagnostics.d.ts +31 -0
  75. package/dist/lockfile/purity-diagnostics.js +52 -0
  76. package/dist/postinstall.js +2 -1
  77. package/dist/remote/artifact-extract.d.ts +8 -0
  78. package/dist/remote/artifact-extract.js +58 -0
  79. package/dist/remote/config.d.ts +21 -3
  80. package/dist/remote/config.js +24 -5
  81. package/dist/remote/dashboard-client.d.ts +39 -2
  82. package/dist/remote/dashboard-client.js +47 -4
  83. package/dist/remote/fs-case.d.ts +21 -0
  84. package/dist/remote/fs-case.js +45 -0
  85. package/dist/remote/history.d.ts +9 -3
  86. package/dist/remote/history.js +79 -10
  87. package/dist/remote/local-repo-identity.d.ts +1 -1
  88. package/dist/remote/local-repo-identity.js +2 -1
  89. package/dist/remote/notifications-client.d.ts +149 -0
  90. package/dist/remote/notifications-client.js +103 -0
  91. package/dist/remote/oauth.d.ts +13 -0
  92. package/dist/remote/oauth.js +31 -5
  93. package/dist/remote/output/summary.js +76 -14
  94. package/dist/remote/render.js +30 -9
  95. package/dist/remote/uploader.js +5 -4
  96. package/dist/templates/agents-md.d.ts +1 -1
  97. package/dist/templates/agents-md.js +6 -6
  98. package/dist/templates/index.d.ts +1 -1
  99. package/dist/templates/index.js +2 -2
  100. package/dist/templates/package-json.d.ts +15 -0
  101. package/dist/templates/package-json.js +26 -5
  102. package/dist/test-runner/dry-run.d.ts +2 -1
  103. package/dist/test-runner/dry-run.js +18 -1
  104. package/dist/test-runner/event-types.d.ts +2 -0
  105. package/dist/test-runner/event-types.js +3 -0
  106. package/dist/test-runner/job-executor.d.ts +1 -0
  107. package/dist/test-runner/job-executor.js +81 -43
  108. package/dist/test-runner/output-formatter.d.ts +5 -2
  109. package/dist/test-runner/output-formatter.js +6 -4
  110. package/dist/test-runner/payload-builder.d.ts +7 -1
  111. package/dist/test-runner/payload-builder.js +11 -2
  112. package/dist/test-runner/rule-evaluator.d.ts +7 -3
  113. package/dist/test-runner/rule-evaluator.js +13 -12
  114. package/dist/test-runner/step-context.d.ts +23 -5
  115. package/dist/test-runner/step-context.js +28 -118
  116. package/dist/types.d.ts +21 -2
  117. package/dist/types.js +4 -2
  118. package/dist/validation/index.d.ts +2 -0
  119. package/dist/validation/index.js +2 -1
  120. package/dist/validation/typecheck.d.ts +28 -0
  121. package/dist/validation/typecheck.js +110 -0
  122. package/dist/validation/validator.d.ts +9 -4
  123. package/dist/validation/validator.js +38 -44
  124. package/package.json +12 -15
  125. package/sbom.spdx.json +1322 -1964
  126. package/dist/assets/api-TJJVHrjC.json +0 -118
  127. package/dist/assets/descriptor-BTtjzN9L.json +0 -1382
  128. package/dist/assets/package-BpQF9kR8.json +0 -74
  129. package/dist/assets/package-Ceo2h27X.json +0 -89
  130. package/dist/assets/source_context-D0atuL28.json +0 -20
  131. package/dist/assets/type-BFqO8SCZ.json +0 -202
  132. package/dist/commands/cancel.d.ts +0 -22
  133. package/dist/commands/detect-package-manager.d.ts +0 -42
  134. package/dist/commands/held-run-resolve.d.ts +0 -50
  135. package/dist/commands/status.d.ts +0 -34
  136. package/dist/commands/test.d.ts +0 -88
  137. package/dist/errors/codes.d.ts +0 -25
  138. package/dist/local-executor/dag-scheduler.d.ts +0 -44
  139. package/dist/local-executor/index.d.ts +0 -23
  140. package/dist/local-executor/job-runner.d.ts +0 -47
  141. package/dist/local-executor/materializer.d.ts +0 -44
  142. package/dist/local-executor/output-streamer.d.ts +0 -31
  143. package/dist/local-executor/payload-generator.d.ts +0 -16
  144. package/dist/local-executor/picker.d.ts +0 -33
  145. package/dist/local-executor/runs-on-display.d.ts +0 -9
  146. package/dist/local-executor/secret-loader.d.ts +0 -18
  147. package/dist/local-executor/to-event-payload.d.ts +0 -16
  148. package/dist/local-executor/types.d.ts +0 -93
  149. package/dist/local-executor/workflow-lock.d.ts +0 -82
  150. package/dist/package-F7UXSDHW.json +0 -74
  151. package/dist/remote/client.d.ts +0 -210
  152. package/dist/remote/observer.d.ts +0 -81
  153. package/dist/test-runner/summary.d.ts +0 -7
@@ -1,74 +0,0 @@
1
- {
2
- "name": "winston",
3
- "description": "A logger for just about everything.",
4
- "version": "3.19.0",
5
- "author": "Charlie Robbins <charlie.robbins@gmail.com>",
6
- "maintainers": [
7
- "David Hyde <dabh@alumni.stanford.edu>"
8
- ],
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/winstonjs/winston.git"
12
- },
13
- "keywords": [
14
- "winston",
15
- "logger",
16
- "logging",
17
- "logs",
18
- "sysadmin",
19
- "bunyan",
20
- "pino",
21
- "loglevel",
22
- "tools",
23
- "json",
24
- "stream"
25
- ],
26
- "dependencies": {
27
- "@dabh/diagnostics": "^2.0.8",
28
- "@colors/colors": "^1.6.0",
29
- "async": "^3.2.3",
30
- "is-stream": "^2.0.0",
31
- "logform": "^2.7.0",
32
- "one-time": "^1.0.0",
33
- "readable-stream": "^3.4.0",
34
- "safe-stable-stringify": "^2.3.1",
35
- "stack-trace": "0.0.x",
36
- "triple-beam": "^1.3.0",
37
- "winston-transport": "^4.9.0"
38
- },
39
- "devDependencies": {
40
- "@babel/cli": "^7.23.9",
41
- "@babel/core": "^7.24.0",
42
- "@babel/preset-env": "^7.24.0",
43
- "@dabh/eslint-config-populist": "^4.4.0",
44
- "@types/node": "^20.11.24",
45
- "abstract-winston-transport": "^0.5.1",
46
- "assume": "^2.2.0",
47
- "cross-spawn-async": "^2.2.5",
48
- "eslint": "^8.57.0",
49
- "hock": "^1.4.1",
50
- "jest": "^29.7.0",
51
- "rimraf": "5.0.10",
52
- "split2": "^4.1.0",
53
- "std-mocks": "^2.0.0",
54
- "through2": "^4.0.2",
55
- "winston-compat": "^0.1.5"
56
- },
57
- "main": "./lib/winston.js",
58
- "browser": "./dist/winston",
59
- "types": "./index.d.ts",
60
- "scripts": {
61
- "lint": "eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",
62
- "test": "jest",
63
- "test:unit": "jest -c test/jest.config.unit.js",
64
- "test:integration": "jest -c test/jest.config.integration.js",
65
- "test:typescript": "npx --package typescript tsc --project test",
66
- "build": "babel lib -d dist",
67
- "prebuild": "rimraf dist",
68
- "prepublishOnly": "npm run build"
69
- },
70
- "engines": {
71
- "node": ">= 12.0.0"
72
- },
73
- "license": "MIT"
74
- }
@@ -1,89 +0,0 @@
1
- {
2
- "name": "@grpc/grpc-js",
3
- "version": "1.14.3",
4
- "description": "gRPC Library for Node - pure JS implementation",
5
- "homepage": "https://grpc.io/",
6
- "repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
7
- "main": "build/src/index.js",
8
- "engines": {
9
- "node": ">=12.10.0"
10
- },
11
- "keywords": [],
12
- "author": {
13
- "name": "Google Inc."
14
- },
15
- "types": "build/src/index.d.ts",
16
- "license": "Apache-2.0",
17
- "devDependencies": {
18
- "@grpc/proto-loader": "file:../proto-loader",
19
- "@types/gulp": "^4.0.17",
20
- "@types/gulp-mocha": "0.0.37",
21
- "@types/lodash": "^4.14.202",
22
- "@types/mocha": "^10.0.6",
23
- "@types/ncp": "^2.0.8",
24
- "@types/node": ">=20.11.20",
25
- "@types/pify": "^5.0.4",
26
- "@types/semver": "^7.5.8",
27
- "@typescript-eslint/eslint-plugin": "^7.1.0",
28
- "@typescript-eslint/parser": "^7.1.0",
29
- "@typescript-eslint/typescript-estree": "^7.1.0",
30
- "clang-format": "^1.8.0",
31
- "eslint": "^8.42.0",
32
- "eslint-config-prettier": "^8.8.0",
33
- "eslint-plugin-node": "^11.1.0",
34
- "eslint-plugin-prettier": "^4.2.1",
35
- "execa": "^2.0.3",
36
- "gulp": "^4.0.2",
37
- "gulp-mocha": "^6.0.0",
38
- "lodash": "^4.17.21",
39
- "madge": "^5.0.1",
40
- "mocha-jenkins-reporter": "^0.4.1",
41
- "ncp": "^2.0.0",
42
- "pify": "^4.0.1",
43
- "prettier": "^2.8.8",
44
- "rimraf": "^3.0.2",
45
- "semver": "^7.6.0",
46
- "ts-node": "^10.9.2",
47
- "typescript": "^5.3.3"
48
- },
49
- "contributors": [
50
- {
51
- "name": "Google Inc."
52
- }
53
- ],
54
- "scripts": {
55
- "build": "npm run compile",
56
- "clean": "rimraf ./build",
57
- "compile": "tsc -p .",
58
- "format": "clang-format -i -style=\"{Language: JavaScript, BasedOnStyle: Google, ColumnLimit: 80}\" src/*.ts test/*.ts",
59
- "lint": "eslint src/*.ts test/*.ts",
60
- "prepare": "npm run copy-protos && npm run generate-types && npm run generate-test-types && npm run compile",
61
- "test": "gulp test",
62
- "check": "npm run lint",
63
- "fix": "eslint --fix src/*.ts test/*.ts",
64
- "pretest": "npm run generate-types && npm run generate-test-types && npm run compile",
65
- "posttest": "npm run check && madge -c ./build/src",
66
- "generate-types": "proto-loader-gen-types --keepCase --longs String --enums String --defaults --oneofs --includeComments --includeDirs proto/ --include-dirs proto/ proto/xds/ proto/protoc-gen-validate/ -O src/generated/ --grpcLib ../index channelz.proto xds/service/orca/v3/orca.proto",
67
- "generate-test-types": "proto-loader-gen-types --keepCase --longs String --enums String --defaults --oneofs --includeComments --include-dirs test/fixtures/ -O test/generated/ --grpcLib ../../src/index test_service.proto echo_service.proto",
68
- "copy-protos": "node ./copy-protos"
69
- },
70
- "dependencies": {
71
- "@grpc/proto-loader": "^0.8.0",
72
- "@js-sdsl/ordered-map": "^4.4.2"
73
- },
74
- "files": [
75
- "src/**/*.ts",
76
- "build/src/**/*.{js,d.ts,js.map}",
77
- "proto/**/*.proto",
78
- "proto/**/LICENSE",
79
- "LICENSE",
80
- "deps/envoy-api/envoy/api/v2/**/*.proto",
81
- "deps/envoy-api/envoy/config/**/*.proto",
82
- "deps/envoy-api/envoy/service/**/*.proto",
83
- "deps/envoy-api/envoy/type/**/*.proto",
84
- "deps/udpa/udpa/**/*.proto",
85
- "deps/googleapis/google/api/*.proto",
86
- "deps/googleapis/google/rpc/*.proto",
87
- "deps/protoc-gen-validate/validate/**/*.proto"
88
- ]
89
- }
@@ -1,20 +0,0 @@
1
- {
2
- "nested": {
3
- "google": {
4
- "nested": {
5
- "protobuf": {
6
- "nested": {
7
- "SourceContext": {
8
- "fields": {
9
- "fileName": {
10
- "type": "string",
11
- "id": 1
12
- }
13
- }
14
- }
15
- }
16
- }
17
- }
18
- }
19
- }
20
- }
@@ -1,202 +0,0 @@
1
- {
2
- "nested": {
3
- "google": {
4
- "nested": {
5
- "protobuf": {
6
- "nested": {
7
- "Type": {
8
- "fields": {
9
- "name": {
10
- "type": "string",
11
- "id": 1
12
- },
13
- "fields": {
14
- "rule": "repeated",
15
- "type": "Field",
16
- "id": 2
17
- },
18
- "oneofs": {
19
- "rule": "repeated",
20
- "type": "string",
21
- "id": 3
22
- },
23
- "options": {
24
- "rule": "repeated",
25
- "type": "Option",
26
- "id": 4
27
- },
28
- "sourceContext": {
29
- "type": "SourceContext",
30
- "id": 5
31
- },
32
- "syntax": {
33
- "type": "Syntax",
34
- "id": 6
35
- }
36
- }
37
- },
38
- "Field": {
39
- "fields": {
40
- "kind": {
41
- "type": "Kind",
42
- "id": 1
43
- },
44
- "cardinality": {
45
- "type": "Cardinality",
46
- "id": 2
47
- },
48
- "number": {
49
- "type": "int32",
50
- "id": 3
51
- },
52
- "name": {
53
- "type": "string",
54
- "id": 4
55
- },
56
- "typeUrl": {
57
- "type": "string",
58
- "id": 6
59
- },
60
- "oneofIndex": {
61
- "type": "int32",
62
- "id": 7
63
- },
64
- "packed": {
65
- "type": "bool",
66
- "id": 8
67
- },
68
- "options": {
69
- "rule": "repeated",
70
- "type": "Option",
71
- "id": 9
72
- },
73
- "jsonName": {
74
- "type": "string",
75
- "id": 10
76
- },
77
- "defaultValue": {
78
- "type": "string",
79
- "id": 11
80
- }
81
- },
82
- "nested": {
83
- "Kind": {
84
- "values": {
85
- "TYPE_UNKNOWN": 0,
86
- "TYPE_DOUBLE": 1,
87
- "TYPE_FLOAT": 2,
88
- "TYPE_INT64": 3,
89
- "TYPE_UINT64": 4,
90
- "TYPE_INT32": 5,
91
- "TYPE_FIXED64": 6,
92
- "TYPE_FIXED32": 7,
93
- "TYPE_BOOL": 8,
94
- "TYPE_STRING": 9,
95
- "TYPE_GROUP": 10,
96
- "TYPE_MESSAGE": 11,
97
- "TYPE_BYTES": 12,
98
- "TYPE_UINT32": 13,
99
- "TYPE_ENUM": 14,
100
- "TYPE_SFIXED32": 15,
101
- "TYPE_SFIXED64": 16,
102
- "TYPE_SINT32": 17,
103
- "TYPE_SINT64": 18
104
- }
105
- },
106
- "Cardinality": {
107
- "values": {
108
- "CARDINALITY_UNKNOWN": 0,
109
- "CARDINALITY_OPTIONAL": 1,
110
- "CARDINALITY_REQUIRED": 2,
111
- "CARDINALITY_REPEATED": 3
112
- }
113
- }
114
- }
115
- },
116
- "Enum": {
117
- "fields": {
118
- "name": {
119
- "type": "string",
120
- "id": 1
121
- },
122
- "enumvalue": {
123
- "rule": "repeated",
124
- "type": "EnumValue",
125
- "id": 2
126
- },
127
- "options": {
128
- "rule": "repeated",
129
- "type": "Option",
130
- "id": 3
131
- },
132
- "sourceContext": {
133
- "type": "SourceContext",
134
- "id": 4
135
- },
136
- "syntax": {
137
- "type": "Syntax",
138
- "id": 5
139
- }
140
- }
141
- },
142
- "EnumValue": {
143
- "fields": {
144
- "name": {
145
- "type": "string",
146
- "id": 1
147
- },
148
- "number": {
149
- "type": "int32",
150
- "id": 2
151
- },
152
- "options": {
153
- "rule": "repeated",
154
- "type": "Option",
155
- "id": 3
156
- }
157
- }
158
- },
159
- "Option": {
160
- "fields": {
161
- "name": {
162
- "type": "string",
163
- "id": 1
164
- },
165
- "value": {
166
- "type": "Any",
167
- "id": 2
168
- }
169
- }
170
- },
171
- "Syntax": {
172
- "values": {
173
- "SYNTAX_PROTO2": 0,
174
- "SYNTAX_PROTO3": 1
175
- }
176
- },
177
- "Any": {
178
- "fields": {
179
- "type_url": {
180
- "type": "string",
181
- "id": 1
182
- },
183
- "value": {
184
- "type": "bytes",
185
- "id": 2
186
- }
187
- }
188
- },
189
- "SourceContext": {
190
- "fields": {
191
- "fileName": {
192
- "type": "string",
193
- "id": 1
194
- }
195
- }
196
- }
197
- }
198
- }
199
- }
200
- }
201
- }
202
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * kici cancel command
3
- *
4
- * Cancels a specific run by ID, or all in-progress runs on a branch.
5
- * Uses the Platform dashboard API (PAT auth) or orchestrator API (direct mode).
6
- */
7
- /** Options for the cancel command */
8
- export interface CancelOptions {
9
- /** Force cancel (SIGKILL, skip hooks) */
10
- force?: boolean;
11
- /** Cancel all in-progress runs on this branch */
12
- branch?: string;
13
- }
14
- /**
15
- * Cancel a run or all runs on a branch.
16
- *
17
- * @param runId - Run ID to cancel (optional if --branch is provided)
18
- * @param options - Cancel options
19
- * @returns true on success, false on error
20
- */
21
- export declare function cancelCommand(runId: string | undefined, options?: CancelOptions): Promise<boolean>;
22
- //# sourceMappingURL=cancel.d.ts.map
@@ -1,42 +0,0 @@
1
- /**
2
- * Package-manager detection for `kici init`.
3
- *
4
- * Determines which package manager (npm / pnpm / yarn) to use for the
5
- * dependency install step in a freshly initialized `.kici/` project, so the
6
- * generated lockfile matches the rest of the user's repository instead of
7
- * always producing an npm `package-lock.json`.
8
- */
9
- /** Supported package managers for the `kici init` dependency install step. */
10
- export declare enum PackageManager {
11
- Npm = "npm",
12
- Pnpm = "pnpm",
13
- Yarn = "yarn"
14
- }
15
- /** All package-manager identifiers, for flag validation. */
16
- export declare const PACKAGE_MANAGERS: readonly PackageManager[];
17
- /**
18
- * Parse a raw string into a {@link PackageManager}, or `null` when it does not
19
- * name a supported manager. Accepts bare names (`pnpm`) used by the flag and
20
- * the env-var tiers.
21
- */
22
- export declare function parsePackageManager(value: string): PackageManager | null;
23
- /** Map a detected manager to its install command argv (binary + args). */
24
- export declare function installCommand(pm: PackageManager): [string, 'install'];
25
- /**
26
- * Detect the package manager the user's project relies on.
27
- *
28
- * Priority order (first match wins):
29
- * 1. `packageManager` field in `<projectDir>/package.json` (Corepack
30
- * convention, e.g. `"packageManager": "pnpm@9.x"`). Only the name before
31
- * `@` is parsed; an unrecognized name falls through.
32
- * 2. A lockfile in the project root (`pnpm-lock.yaml` > `yarn.lock` >
33
- * `package-lock.json`).
34
- * 3. The `npm_config_user_agent` env var (set by `pnpm dlx` / `yarn dlx` /
35
- * `npx`); the leading `<name>/` segment names the manager.
36
- * 4. Default to npm when nothing matches, so we never guess wrong and emit a
37
- * lockfile the user did not ask for.
38
- *
39
- * @param projectDir - The project root to inspect (the cwd `kici init` runs in).
40
- */
41
- export declare function detectPackageManager(projectDir: string): Promise<PackageManager>;
42
- //# sourceMappingURL=detect-package-manager.d.ts.map
@@ -1,50 +0,0 @@
1
- /**
2
- * Shared held-run resolution for the `kici approve` / `kici reject` commands.
3
- *
4
- * Both commands first list the pending holds for a run, then resolve the one
5
- * the user named via `--job` / `--step` (or the sole pending hold when there is
6
- * exactly one and no filter is given). The resolution is a pure function so it
7
- * can be unit-tested without HTTP.
8
- */
9
- /** Hold scope, mirroring the engine `HoldScope` enum. */
10
- export type HeldRunScope = 'workflow' | 'job' | 'step';
11
- /** A pending-hold row as returned by `GET /orgs/:orgId/held-runs`. */
12
- export interface HeldRunSummary {
13
- id: string;
14
- runId: string;
15
- jobId?: string;
16
- holdScope?: HeldRunScope;
17
- stepIndex?: number | null;
18
- status: string;
19
- /** Computed drift payload for a `when: 'drift'` step hold; absent otherwise. */
20
- payload?: {
21
- summaryMarkdown: string;
22
- drift?: unknown;
23
- } | null;
24
- }
25
- /** Filters supplied on the command line. */
26
- export interface HeldRunFilter {
27
- /** Match a hold by its job name. */
28
- job?: string;
29
- /** Match a step-scoped hold by its step index (compared as a string). */
30
- step?: string;
31
- }
32
- /** Resolution result: either a held-run id or a user-facing error message. */
33
- export type ResolveResult = {
34
- ok: true;
35
- heldRunId: string;
36
- hold: HeldRunSummary;
37
- } | {
38
- ok: false;
39
- error: string;
40
- };
41
- /**
42
- * Resolve the held-run id matching the filter from a list of pending holds.
43
- *
44
- * - `--step` requires `--job` and matches a `step`-scoped hold whose step index
45
- * equals the given value.
46
- * - `--job` alone matches a `job`/`workflow`-scoped hold for that job.
47
- * - With no filter, the sole pending hold is used; ambiguity is an error.
48
- */
49
- export declare function resolveHeldRunId(holds: readonly HeldRunSummary[], filter: HeldRunFilter): ResolveResult;
50
- //# sourceMappingURL=held-run-resolve.d.ts.map
@@ -1,34 +0,0 @@
1
- /**
2
- * kici status command
3
- *
4
- * Shows the status and details of a test run, with optional log streaming.
5
- * Looks up local history first, then fetches from the orchestrator for
6
- * up-to-date status and logs.
7
- */
8
- /** Options for the status command */
9
- export interface StatusOptions {
10
- /** Stream full log replay to stdout */
11
- logs?: boolean;
12
- /** Filter logs to specific job */
13
- job?: string;
14
- /** Output raw JSON response */
15
- json?: boolean;
16
- }
17
- /**
18
- * Show status and details of a test run.
19
- *
20
- * Default mode: show run summary table from local history + orchestrator.
21
- * --logs: stream full logs from the orchestrator.
22
- * --job <name>: filter logs to a specific job.
23
- * --json: output raw JSON.
24
- *
25
- * @param runId - The run ID to inspect
26
- * @param options - Status display options
27
- * @returns true on success, false on error
28
- */
29
- export declare function statusCommand(runId: string, options?: StatusOptions): Promise<boolean>;
30
- /**
31
- * Display a run summary from remote status (+ local context).
32
- */
33
- export declare function displayRunSummary(remote: import('../remote/client.js').RunStatusResponse, local?: import('../remote/history.js').HistoryEntry): void;
34
- //# sourceMappingURL=status.d.ts.map
@@ -1,88 +0,0 @@
1
- import { type PayloadOptions } from '../test-runner/payload-builder.js';
2
- import { type CheckMode } from '@kici-dev/engine';
3
- /** Options for the kici test command (dry-run trigger preview) */
4
- export interface TestOptions extends PayloadOptions {
5
- /** Filter to specific workflow */
6
- workflow?: string;
7
- /** Filter to specific job */
8
- job?: string;
9
- /** Enable debug output */
10
- debug?: boolean;
11
- /** Path to .kici directory (defaults to .kici) */
12
- kiciDir?: string;
13
- /** Flat secret overrides: KEY=VALUE */
14
- secret?: string[];
15
- /** Context secret overrides: contextName.KEY=VALUE */
16
- context?: string[];
17
- }
18
- /** Options for the kici run remote command */
19
- export interface RemoteRunOptions extends TestOptions {
20
- /** Run all available fixtures */
21
- all?: boolean;
22
- /** Interactively pick fixtures to run (multi-select checkbox). */
23
- pick?: boolean;
24
- /** Run matching fixtures concurrently */
25
- parallel?: boolean;
26
- /** Fire and forget (print runIds, don't stream) */
27
- wait?: boolean;
28
- /** Suppress output except final result */
29
- quiet?: boolean;
30
- /** Output structured JSON result */
31
- json?: boolean;
32
- /** Output JUnit XML result */
33
- junit?: string;
34
- /** Override routing key for this run */
35
- routingKey?: string;
36
- /** Show recent run history */
37
- history?: boolean;
38
- /** --env KEY=VALUE flag values, uploaded as per-run secrets. */
39
- envFlags?: string[];
40
- /** Target organization id (overrides config.activeOrgId). */
41
- org?: string;
42
- /** Target orchestrator cluster name (overrides the per-org default). */
43
- orchestrator?: string;
44
- /**
45
- * Run mode resolved from --check / --fail-on-drift, threaded onto the dispatch
46
- * payload so the orchestrator runs the agent step loop in the requested mode.
47
- * Defaults to `apply`.
48
- */
49
- checkMode?: CheckMode;
50
- /** `--target <selector>` values (repeatable), AND-combined into host narrowing. */
51
- targets?: string[];
52
- /** `--target-allow-empty`: a target that zeroes a runsOnAll job skips it instead of failing. */
53
- targetAllowEmpty?: boolean;
54
- /**
55
- * `--approve-all` (alias `--yes`): auto-approve every approval gate this run
56
- * holds on (run-scoped only — the run id this invocation dispatched). The
57
- * operator must still be clause-eligible per hold; an ineligible hold blocks.
58
- */
59
- approveAll?: boolean;
60
- /** `--input KEY=VALUE` values (repeatable): typed workflow-dispatch inputs. */
61
- inputs?: string[];
62
- }
63
- /** Result of a single remote fixture run */
64
- export interface RemoteRunResult {
65
- fixtureId: string;
66
- runId: string;
67
- status: 'accepted' | 'rejected' | 'success' | 'failed' | 'cancelled' | 'error';
68
- reason?: string;
69
- observeUrl?: string;
70
- durationMs?: number;
71
- jobs?: Array<{
72
- name: string;
73
- status: string;
74
- durationMs?: number;
75
- }>;
76
- }
77
- /**
78
- * Main test command entry point.
79
- *
80
- * `kici test <event>` is now dry-run trigger preview only.
81
- * If the argument looks like a fixture name (not a known event type), prints a migration message.
82
- */
83
- export declare function testCommand(event: string | undefined, options: TestOptions): Promise<boolean>;
84
- /**
85
- * Local-only dry-run mode: compile workflows, match triggers, display what would execute.
86
- */
87
- export declare function testDryRun(event: string, options: TestOptions): Promise<boolean>;
88
- //# sourceMappingURL=test.d.ts.map
@@ -1,25 +0,0 @@
1
- /**
2
- * Compiler error codes.
3
- * Format: EXXX where X is a digit.
4
- *
5
- * E0XX - Configuration errors (file not found, invalid TypeScript)
6
- * E1XX - Validation errors (DAG cycles, missing deps, matrix limits)
7
- * E2XX - Lock file errors (serialization issues)
8
- */
9
- export declare const ErrorCodes: {
10
- readonly E001: "Config file not found";
11
- readonly E002: "Failed to compile TypeScript";
12
- readonly E003: "Failed to load config module";
13
- readonly E004: "Config does not export workflows";
14
- readonly E101: "Job depends on non-existent job";
15
- readonly E102: "Circular dependency detected";
16
- readonly E103: "Job depends on itself";
17
- readonly E104: "Static matrix exceeds 256 job limit";
18
- readonly E105: "Invalid trigger configuration";
19
- readonly E106: "Duplicate job name";
20
- readonly E107: "Duplicate workflow name";
21
- readonly E201: "Failed to write lock file";
22
- readonly E202: "Failed to serialize workflow";
23
- };
24
- export type ErrorCode = keyof typeof ErrorCodes;
25
- //# sourceMappingURL=codes.d.ts.map