@kici-dev/engine 0.1.15 → 0.1.17

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 (102) hide show
  1. package/dist/approval/types.d.ts +56 -0
  2. package/dist/approval/types.js +42 -0
  3. package/dist/audit/access-log-policy.js +5 -1
  4. package/dist/audit/activity.js +1 -1
  5. package/dist/audit/retention-policy.js +9 -1
  6. package/dist/bundler/index.js +1 -1
  7. package/dist/bundler/rolldown-config.js +1 -1
  8. package/dist/env/environment-allowlist.js +1 -1
  9. package/dist/environment/index.js +1 -1
  10. package/dist/environment/scope-resolver.js +1 -1
  11. package/dist/environment/types.d.ts +8 -0
  12. package/dist/environment/types.js +1 -1
  13. package/dist/fanout/materialize.d.ts +67 -0
  14. package/dist/fanout/materialize.js +119 -0
  15. package/dist/index.d.ts +4 -2
  16. package/dist/index.js +10 -8
  17. package/dist/labels.js +1 -1
  18. package/dist/matrix/expand.d.ts +43 -0
  19. package/dist/matrix/expand.js +66 -0
  20. package/dist/matrix/format.d.ts +10 -0
  21. package/dist/matrix/format.js +19 -0
  22. package/dist/metrics/catalog-policy.js +8 -3
  23. package/dist/metrics/metric-catalog.generated.d.ts +1 -1
  24. package/dist/metrics/metric-catalog.generated.js +2 -2
  25. package/dist/protocol/analytics-events.js +1 -1
  26. package/dist/protocol/cluster-name.js +1 -1
  27. package/dist/protocol/dashboard-global-workflows.js +1 -1
  28. package/dist/protocol/dashboard-write-operations.js +1 -1
  29. package/dist/protocol/event-log-payload.js +1 -1
  30. package/dist/protocol/messages/access-log.d.ts +25 -5
  31. package/dist/protocol/messages/access-log.js +5 -1
  32. package/dist/protocol/messages/actor.js +1 -1
  33. package/dist/protocol/messages/auth.d.ts +1 -0
  34. package/dist/protocol/messages/auth.js +11 -2
  35. package/dist/protocol/messages/browser.js +1 -1
  36. package/dist/protocol/messages/capabilities.js +1 -1
  37. package/dist/protocol/messages/common.js +1 -1
  38. package/dist/protocol/messages/dashboard-global-workflows.js +1 -1
  39. package/dist/protocol/messages/dashboard.d.ts +1030 -50
  40. package/dist/protocol/messages/dashboard.js +377 -7
  41. package/dist/protocol/messages/event-log.js +1 -1
  42. package/dist/protocol/messages/execution-status.d.ts +13 -1
  43. package/dist/protocol/messages/execution-status.js +13 -3
  44. package/dist/protocol/messages/join.js +1 -1
  45. package/dist/protocol/messages/log-pull.js +1 -1
  46. package/dist/protocol/messages/observe.d.ts +1 -0
  47. package/dist/protocol/messages/oidc-token-relay.d.ts +31 -0
  48. package/dist/protocol/messages/oidc-token-relay.js +34 -0
  49. package/dist/protocol/messages/orchestrator-agent.d.ts +161 -0
  50. package/dist/protocol/messages/orchestrator-agent.js +117 -4
  51. package/dist/protocol/messages/peer.d.ts +76 -0
  52. package/dist/protocol/messages/peer.js +37 -2
  53. package/dist/protocol/messages/platform-orchestrator.d.ts +187 -10
  54. package/dist/protocol/messages/platform-orchestrator.js +13 -2
  55. package/dist/protocol/messages/run-events.js +1 -1
  56. package/dist/protocol/messages/scaler-event.js +1 -1
  57. package/dist/protocol/messages/source-registration.d.ts +7 -6
  58. package/dist/protocol/messages/source-registration.js +7 -6
  59. package/dist/protocol/version.js +1 -1
  60. package/dist/provenance/bundle.d.ts +54 -0
  61. package/dist/provenance/bundle.js +53 -0
  62. package/dist/provenance/dsse.d.ts +39 -0
  63. package/dist/provenance/dsse.js +53 -0
  64. package/dist/provenance/schema.d.ts +407 -0
  65. package/dist/provenance/schema.js +143 -0
  66. package/dist/provenance/verify.d.ts +71 -0
  67. package/dist/provenance/verify.js +135 -0
  68. package/dist/provider/changed-files-fetcher.js +1 -1
  69. package/dist/provider/check-run-conclusion.js +1 -1
  70. package/dist/provider/check-status-poster.js +1 -1
  71. package/dist/provider/clone-token-provider.js +1 -1
  72. package/dist/provider/contributor-resolver.js +1 -1
  73. package/dist/provider/index.js +1 -1
  74. package/dist/provider/lock-file-fetcher.js +1 -1
  75. package/dist/provider/lock-file-parse-error.js +3 -1
  76. package/dist/provider/repo-url-builder.js +1 -1
  77. package/dist/provider/types.d.ts +2 -2
  78. package/dist/provider/types.js +1 -1
  79. package/dist/provider/webhook-normalizer.js +1 -1
  80. package/dist/registration/registerable-trigger-type.js +1 -1
  81. package/dist/scaler/resource-types.js +1 -1
  82. package/dist/scaler/scaler-backend-type.js +1 -1
  83. package/dist/secrets/index.js +1 -1
  84. package/dist/secrets/types.js +1 -1
  85. package/dist/state-machine/index.js +1 -1
  86. package/dist/state-machine/machine.js +1 -1
  87. package/dist/state-machine/types.js +1 -1
  88. package/dist/trigger/decision-trace.js +1 -1
  89. package/dist/trigger/jsonpath-matcher.js +1 -1
  90. package/dist/trigger/matcher.js +1 -1
  91. package/dist/trigger/trigger-event-type.js +1 -1
  92. package/dist/trigger/types.d.ts +34 -1
  93. package/dist/trigger/types.js +14 -5
  94. package/dist/webhook/signature.js +1 -1
  95. package/dist/ws/close-codes.js +1 -1
  96. package/dist/ws/rate-limiter.js +3 -1
  97. package/dist/ws/ws-like.js +1 -1
  98. package/package.json +23 -1
  99. package/sbom.spdx.json +55 -5
  100. package/dist/protocol/messages/observe.js +0 -70
  101. package/dist/protocol/messages/test-run.js +0 -52
  102. /package/dist/{chunk-gOLHoazu.js → chunk-BTugEXQM.js} +0 -0
@@ -0,0 +1,66 @@
1
+ import "../chunk-BTugEXQM.js";
2
+ import fastCartesian from "fast-cartesian";
3
+ //#region src/matrix/expand.ts
4
+ /**
5
+ * Expand single-dimension matrix (array form) to MatrixValues array.
6
+ * Each value becomes {value: string}.
7
+ */
8
+ function expandSingleDimension(matrix) {
9
+ return matrix.map((value) => ({ value }));
10
+ }
11
+ /**
12
+ * Expand multi-dimensional matrix (object form) to MatrixValues array.
13
+ * Uses fast-cartesian to compute cartesian product of all dimensions.
14
+ * Dimension names are sorted for deterministic output.
15
+ */
16
+ function expandMultiDimension(matrix) {
17
+ const dimensions = Object.entries(matrix);
18
+ if (dimensions.length === 0) return [];
19
+ dimensions.sort((a, b) => a[0].localeCompare(b[0]));
20
+ const names = dimensions.map(([name]) => name);
21
+ return fastCartesian(dimensions.map(([, values]) => values)).map((combo) => {
22
+ const result = {};
23
+ names.forEach((name, idx) => {
24
+ result[name] = combo[idx];
25
+ });
26
+ return result;
27
+ });
28
+ }
29
+ /**
30
+ * Unified expand function that dispatches to single or multi-dimensional expansion.
31
+ */
32
+ function expandMatrix(matrix) {
33
+ if (Array.isArray(matrix)) return expandSingleDimension(matrix);
34
+ return expandMultiDimension(matrix);
35
+ }
36
+ /**
37
+ * Apply include/exclude modifications to expanded matrix combinations.
38
+ * Exclude first (remove matching), then include (add new).
39
+ *
40
+ * Exclude matches if ALL specified dimensions match.
41
+ * Include adds new combinations if they don't already exist.
42
+ */
43
+ function applyIncludeExclude(expanded, include, exclude) {
44
+ let result = [...expanded];
45
+ if (exclude && exclude.length > 0) result = result.filter((combo) => {
46
+ return !exclude.some((excl) => {
47
+ const exclEntries = Object.entries(excl);
48
+ if (exclEntries.length === 0) return false;
49
+ return exclEntries.every(([key, value]) => combo[key] === value);
50
+ });
51
+ });
52
+ if (include && include.length > 0) for (const incl of include) {
53
+ const inclKeys = Object.keys(incl);
54
+ if (inclKeys.length === 0) continue;
55
+ if (!result.some((combo) => {
56
+ const comboKeys = Object.keys(combo);
57
+ if (inclKeys.length !== comboKeys.length) return false;
58
+ return inclKeys.every((key) => combo[key] === incl[key]);
59
+ })) result.push(incl);
60
+ }
61
+ return result;
62
+ }
63
+ //#endregion
64
+ export { applyIncludeExclude, expandMatrix, expandMultiDimension, expandSingleDimension };
65
+
66
+ //# sourceMappingURL=expand.js.map
@@ -0,0 +1,10 @@
1
+ import type { MatrixValues } from './expand.js';
2
+ /**
3
+ * Format matrix values into a display string for the job name.
4
+ * Single-dimension: "node-18"
5
+ * Multi-dimensional: "linux, 18"
6
+ */
7
+ export declare function formatMatrixSuffix(matrixValues: MatrixValues): string;
8
+ /** Expanded child job name: `${baseName} (${suffix})`. MUST match the local executor. */
9
+ export declare function formatExpandedJobName(baseName: string, matrixValues: MatrixValues): string;
10
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1,19 @@
1
+ import "../chunk-BTugEXQM.js";
2
+ //#region src/matrix/format.ts
3
+ /**
4
+ * Format matrix values into a display string for the job name.
5
+ * Single-dimension: "node-18"
6
+ * Multi-dimensional: "linux, 18"
7
+ */
8
+ function formatMatrixSuffix(matrixValues) {
9
+ if ("value" in matrixValues && matrixValues.value !== void 0) return matrixValues.value;
10
+ return Object.values(matrixValues).filter((v) => v !== void 0).join(", ");
11
+ }
12
+ /** Expanded child job name: `${baseName} (${suffix})`. MUST match the local executor. */
13
+ function formatExpandedJobName(baseName, matrixValues) {
14
+ return `${baseName} (${formatMatrixSuffix(matrixValues)})`;
15
+ }
16
+ //#endregion
17
+ export { formatExpandedJobName, formatMatrixSuffix };
18
+
19
+ //# sourceMappingURL=format.js.map
@@ -1,4 +1,4 @@
1
- import "../chunk-gOLHoazu.js";
1
+ import "../chunk-BTugEXQM.js";
2
2
  import { MetricNames, MetricService } from "./metric-catalog.generated.js";
3
3
  //#region src/metrics/catalog-policy.ts
4
4
  /**
@@ -138,7 +138,11 @@ const METRIC_LABEL_POLICY = {
138
138
  machinePool: { maxUniqueValues: 50 }
139
139
  },
140
140
  kici_orch_install_secrets_decisions_total: {
141
- decision: { values: ["pass", "reject"] },
141
+ decision: { values: [
142
+ "pass",
143
+ "reject",
144
+ "hold"
145
+ ] },
142
146
  reason: { values: [
143
147
  "ok",
144
148
  "malformed_ref",
@@ -148,7 +152,8 @@ const METRIC_LABEL_POLICY = {
148
152
  "env_not_found",
149
153
  "protection_rule_block",
150
154
  "missing_token",
151
- "missing_install_env"
155
+ "missing_install_env",
156
+ "held"
152
157
  ] }
153
158
  },
154
159
  kici_orch_install_secrets_npm_registry_used_total: {
@@ -431,7 +431,7 @@ export declare const MetricDescription: {
431
431
  readonly KICI_ORCH_EXECUTIONS_TOTAL: "Total number of execution runs";
432
432
  readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "Total number of GitHub check run API calls";
433
433
  readonly KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "Dispatches where registry tokens were stripped because the contributor tier was not `trusted`";
434
- readonly KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "Total install-secrets resolution decisions (pass / reject + reason)";
434
+ readonly KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "Total install-secrets resolution decisions (pass / reject / hold + reason)";
435
435
  readonly KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "Total registry / installEnv entries successfully resolved per channel / provider / scope";
436
436
  readonly KICI_ORCH_INSTALL_SECRETS_TOKEN_RESOLUTION_DURATION_SECONDS: "Duration of per-environment secret resolution during install-secrets evaluation";
437
437
  readonly KICI_ORCH_JOB_CONSECUTIVE_FAILURES: "Consecutive failures for each scheduled job since its last success";
@@ -1,4 +1,4 @@
1
- import "../chunk-gOLHoazu.js";
1
+ import "../chunk-BTugEXQM.js";
2
2
  //#region src/metrics/metric-catalog.generated.ts
3
3
  const MetricNames = {
4
4
  KICI_AGENT_CLONE_DURATION_SECONDS: "kici_agent_clone_duration_seconds",
@@ -440,7 +440,7 @@ const MetricDescription = {
440
440
  KICI_ORCH_EXECUTIONS_TOTAL: "Total number of execution runs",
441
441
  KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: "Total number of GitHub check run API calls",
442
442
  KICI_ORCH_INSTALL_SECRETS_CONTRIBUTOR_STRIPPED_TOTAL: "Dispatches where registry tokens were stripped because the contributor tier was not `trusted`",
443
- KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "Total install-secrets resolution decisions (pass / reject + reason)",
443
+ KICI_ORCH_INSTALL_SECRETS_DECISIONS_TOTAL: "Total install-secrets resolution decisions (pass / reject / hold + reason)",
444
444
  KICI_ORCH_INSTALL_SECRETS_NPM_REGISTRY_USED_TOTAL: "Total registry / installEnv entries successfully resolved per channel / provider / scope",
445
445
  KICI_ORCH_INSTALL_SECRETS_TOKEN_RESOLUTION_DURATION_SECONDS: "Duration of per-environment secret resolution during install-secrets evaluation",
446
446
  KICI_ORCH_JOB_CONSECUTIVE_FAILURES: "Consecutive failures for each scheduled job since its last success",
@@ -1,4 +1,4 @@
1
- import "../chunk-gOLHoazu.js";
1
+ import "../chunk-BTugEXQM.js";
2
2
  import { z } from "zod";
3
3
  //#region src/protocol/analytics-events.ts
4
4
  const AnalyticsEvent = z.enum([
@@ -1,4 +1,4 @@
1
- import "../chunk-gOLHoazu.js";
1
+ import "../chunk-BTugEXQM.js";
2
2
  import { z } from "zod";
3
3
  //#region src/protocol/cluster-name.ts
4
4
  /**
@@ -1,3 +1,3 @@
1
- import "../chunk-gOLHoazu.js";
1
+ import "../chunk-BTugEXQM.js";
2
2
  import { globalWorkflowSettingsSchema, globalWorkflowsGetRequestSchema, globalWorkflowsGetResponseSchema, globalWorkflowsUpdateRequestSchema, globalWorkflowsUpdateResponseSchema, repoPatternEntrySchema } from "./messages/dashboard-global-workflows.js";
3
3
  export { globalWorkflowSettingsSchema, globalWorkflowsGetRequestSchema, globalWorkflowsGetResponseSchema, globalWorkflowsUpdateRequestSchema, globalWorkflowsUpdateResponseSchema, repoPatternEntrySchema };
@@ -1,4 +1,4 @@
1
- import "../chunk-gOLHoazu.js";
1
+ import "../chunk-BTugEXQM.js";
2
2
  import { z } from "zod";
3
3
  //#region src/protocol/dashboard-write-operations.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import "../chunk-gOLHoazu.js";
1
+ import "../chunk-BTugEXQM.js";
2
2
  //#region src/protocol/event-log-payload.ts
3
3
  /**
4
4
  * Constants for the chunked event-log payload streaming transport.
@@ -29,8 +29,8 @@ export type AccessLogOutcome = z.infer<typeof AccessLogOutcome>;
29
29
  export declare const AccessLogTargetType: z.ZodEnum<{
30
30
  run: "run";
31
31
  job: "job";
32
- step: "step";
33
32
  payload: "payload";
33
+ step: "step";
34
34
  event_log: "event_log";
35
35
  event_log_payload: "event_log_payload";
36
36
  secret_scope: "secret_scope";
@@ -63,9 +63,11 @@ export declare const AccessLogAction: z.ZodEnum<{
63
63
  "run.payload.read": "run.payload.read";
64
64
  "run.orch_logs.read": "run.orch_logs.read";
65
65
  "step.logs.read": "step.logs.read";
66
+ "attestations.read": "attestations.read";
66
67
  "run.cancel": "run.cancel";
67
68
  "run.rerun": "run.rerun";
68
69
  "run.manual_schedule": "run.manual_schedule";
70
+ "run.trigger": "run.trigger";
69
71
  "job.cancel": "job.cancel";
70
72
  "event_log.list.read": "event_log.list.read";
71
73
  "event_log.detail.read": "event_log.detail.read";
@@ -94,6 +96,8 @@ export declare const AccessLogAction: z.ZodEnum<{
94
96
  "held_run.list.read": "held_run.list.read";
95
97
  "held_run.approve": "held_run.approve";
96
98
  "held_run.reject": "held_run.reject";
99
+ "held_run.request": "held_run.request";
100
+ "held_run.expire": "held_run.expire";
97
101
  "registration.list.read": "registration.list.read";
98
102
  "diagnostics.read": "diagnostics.read";
99
103
  "scaler.capacity.read": "scaler.capacity.read";
@@ -147,9 +151,11 @@ export declare const accessLogItemSchema: z.ZodObject<{
147
151
  "run.payload.read": "run.payload.read";
148
152
  "run.orch_logs.read": "run.orch_logs.read";
149
153
  "step.logs.read": "step.logs.read";
154
+ "attestations.read": "attestations.read";
150
155
  "run.cancel": "run.cancel";
151
156
  "run.rerun": "run.rerun";
152
157
  "run.manual_schedule": "run.manual_schedule";
158
+ "run.trigger": "run.trigger";
153
159
  "job.cancel": "job.cancel";
154
160
  "event_log.list.read": "event_log.list.read";
155
161
  "event_log.detail.read": "event_log.detail.read";
@@ -178,6 +184,8 @@ export declare const accessLogItemSchema: z.ZodObject<{
178
184
  "held_run.list.read": "held_run.list.read";
179
185
  "held_run.approve": "held_run.approve";
180
186
  "held_run.reject": "held_run.reject";
187
+ "held_run.request": "held_run.request";
188
+ "held_run.expire": "held_run.expire";
181
189
  "registration.list.read": "registration.list.read";
182
190
  "diagnostics.read": "diagnostics.read";
183
191
  "scaler.capacity.read": "scaler.capacity.read";
@@ -198,8 +206,8 @@ export declare const accessLogItemSchema: z.ZodObject<{
198
206
  targetType: z.ZodNullable<z.ZodEnum<{
199
207
  run: "run";
200
208
  job: "job";
201
- step: "step";
202
209
  payload: "payload";
210
+ step: "step";
203
211
  event_log: "event_log";
204
212
  event_log_payload: "event_log_payload";
205
213
  secret_scope: "secret_scope";
@@ -253,9 +261,11 @@ export declare const accessLogFilterSchema: z.ZodObject<{
253
261
  "run.payload.read": "run.payload.read";
254
262
  "run.orch_logs.read": "run.orch_logs.read";
255
263
  "step.logs.read": "step.logs.read";
264
+ "attestations.read": "attestations.read";
256
265
  "run.cancel": "run.cancel";
257
266
  "run.rerun": "run.rerun";
258
267
  "run.manual_schedule": "run.manual_schedule";
268
+ "run.trigger": "run.trigger";
259
269
  "job.cancel": "job.cancel";
260
270
  "event_log.list.read": "event_log.list.read";
261
271
  "event_log.detail.read": "event_log.detail.read";
@@ -284,6 +294,8 @@ export declare const accessLogFilterSchema: z.ZodObject<{
284
294
  "held_run.list.read": "held_run.list.read";
285
295
  "held_run.approve": "held_run.approve";
286
296
  "held_run.reject": "held_run.reject";
297
+ "held_run.request": "held_run.request";
298
+ "held_run.expire": "held_run.expire";
287
299
  "registration.list.read": "registration.list.read";
288
300
  "diagnostics.read": "diagnostics.read";
289
301
  "scaler.capacity.read": "scaler.capacity.read";
@@ -314,8 +326,8 @@ export declare const accessLogFilterSchema: z.ZodObject<{
314
326
  targetType: z.ZodOptional<z.ZodEnum<{
315
327
  run: "run";
316
328
  job: "job";
317
- step: "step";
318
329
  payload: "payload";
330
+ step: "step";
319
331
  event_log: "event_log";
320
332
  event_log_payload: "event_log_payload";
321
333
  secret_scope: "secret_scope";
@@ -381,9 +393,11 @@ export declare const dashboardAccessLogListRequestSchema: z.ZodObject<{
381
393
  "run.payload.read": "run.payload.read";
382
394
  "run.orch_logs.read": "run.orch_logs.read";
383
395
  "step.logs.read": "step.logs.read";
396
+ "attestations.read": "attestations.read";
384
397
  "run.cancel": "run.cancel";
385
398
  "run.rerun": "run.rerun";
386
399
  "run.manual_schedule": "run.manual_schedule";
400
+ "run.trigger": "run.trigger";
387
401
  "job.cancel": "job.cancel";
388
402
  "event_log.list.read": "event_log.list.read";
389
403
  "event_log.detail.read": "event_log.detail.read";
@@ -412,6 +426,8 @@ export declare const dashboardAccessLogListRequestSchema: z.ZodObject<{
412
426
  "held_run.list.read": "held_run.list.read";
413
427
  "held_run.approve": "held_run.approve";
414
428
  "held_run.reject": "held_run.reject";
429
+ "held_run.request": "held_run.request";
430
+ "held_run.expire": "held_run.expire";
415
431
  "registration.list.read": "registration.list.read";
416
432
  "diagnostics.read": "diagnostics.read";
417
433
  "scaler.capacity.read": "scaler.capacity.read";
@@ -442,8 +458,8 @@ export declare const dashboardAccessLogListRequestSchema: z.ZodObject<{
442
458
  targetType: z.ZodOptional<z.ZodEnum<{
443
459
  run: "run";
444
460
  job: "job";
445
- step: "step";
446
461
  payload: "payload";
462
+ step: "step";
447
463
  event_log: "event_log";
448
464
  event_log_payload: "event_log_payload";
449
465
  secret_scope: "secret_scope";
@@ -497,9 +513,11 @@ export declare const dashboardAccessLogListResponseSchema: z.ZodObject<{
497
513
  "run.payload.read": "run.payload.read";
498
514
  "run.orch_logs.read": "run.orch_logs.read";
499
515
  "step.logs.read": "step.logs.read";
516
+ "attestations.read": "attestations.read";
500
517
  "run.cancel": "run.cancel";
501
518
  "run.rerun": "run.rerun";
502
519
  "run.manual_schedule": "run.manual_schedule";
520
+ "run.trigger": "run.trigger";
503
521
  "job.cancel": "job.cancel";
504
522
  "event_log.list.read": "event_log.list.read";
505
523
  "event_log.detail.read": "event_log.detail.read";
@@ -528,6 +546,8 @@ export declare const dashboardAccessLogListResponseSchema: z.ZodObject<{
528
546
  "held_run.list.read": "held_run.list.read";
529
547
  "held_run.approve": "held_run.approve";
530
548
  "held_run.reject": "held_run.reject";
549
+ "held_run.request": "held_run.request";
550
+ "held_run.expire": "held_run.expire";
531
551
  "registration.list.read": "registration.list.read";
532
552
  "diagnostics.read": "diagnostics.read";
533
553
  "scaler.capacity.read": "scaler.capacity.read";
@@ -548,8 +568,8 @@ export declare const dashboardAccessLogListResponseSchema: z.ZodObject<{
548
568
  targetType: z.ZodNullable<z.ZodEnum<{
549
569
  run: "run";
550
570
  job: "job";
551
- step: "step";
552
571
  payload: "payload";
572
+ step: "step";
553
573
  event_log: "event_log";
554
574
  event_log_payload: "event_log_payload";
555
575
  secret_scope: "secret_scope";
@@ -1,4 +1,4 @@
1
- import "../../chunk-gOLHoazu.js";
1
+ import "../../chunk-BTugEXQM.js";
2
2
  import { ActorType, actorPrincipalSchema } from "./actor.js";
3
3
  import { z } from "zod";
4
4
  //#region src/protocol/messages/access-log.ts
@@ -58,9 +58,11 @@ const AccessLogAction = z.enum([
58
58
  "run.payload.read",
59
59
  "run.orch_logs.read",
60
60
  "step.logs.read",
61
+ "attestations.read",
61
62
  "run.cancel",
62
63
  "run.rerun",
63
64
  "run.manual_schedule",
65
+ "run.trigger",
64
66
  "job.cancel",
65
67
  "event_log.list.read",
66
68
  "event_log.detail.read",
@@ -89,6 +91,8 @@ const AccessLogAction = z.enum([
89
91
  "held_run.list.read",
90
92
  "held_run.approve",
91
93
  "held_run.reject",
94
+ "held_run.request",
95
+ "held_run.expire",
92
96
  "registration.list.read",
93
97
  "registration.disable",
94
98
  "registration.delete",
@@ -1,4 +1,4 @@
1
- import "../../chunk-gOLHoazu.js";
1
+ import "../../chunk-BTugEXQM.js";
2
2
  import { z } from "zod";
3
3
  //#region src/protocol/messages/actor.ts
4
4
  /**
@@ -42,6 +42,7 @@ export declare const authSuccessSchema: z.ZodObject<{
42
42
  type: z.ZodLiteral<"auth.success">;
43
43
  connectionId: z.ZodString;
44
44
  orgPublicAlias: z.ZodOptional<z.ZodString>;
45
+ orgId: z.ZodOptional<z.ZodString>;
45
46
  }, z.core.$strip>;
46
47
  /** Auth failure response sent by Platform to orchestrator when authentication fails. */
47
48
  export declare const authFailureSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import "../../chunk-gOLHoazu.js";
1
+ import "../../chunk-BTugEXQM.js";
2
2
  import { orchCapabilitiesSchema } from "./capabilities.js";
3
3
  import { z } from "zod";
4
4
  //#region src/protocol/messages/auth.ts
@@ -23,7 +23,16 @@ const authSuccessSchema = z.object({
23
23
  * that don't yet supply it; when absent, the orchestrator skips
24
24
  * `details_url` (preserving today's behaviour).
25
25
  */
26
- orgPublicAlias: z.string().optional()
26
+ orgPublicAlias: z.string().optional(),
27
+ /**
28
+ * Canonical org id (`org_<…>`) of the authenticated orchestrator's owning
29
+ * org. The orchestrator auto-provisions a `remote_sources` anchor
30
+ * (`remote:<orgId>`) from this so `kici run remote` relayed through the
31
+ * Platform resolves the real tenant. Optional for back-compat with Platforms
32
+ * that don't yet supply it; when absent, the orchestrator skips
33
+ * remote-source provisioning.
34
+ */
35
+ orgId: z.string().optional()
27
36
  });
28
37
  /** Auth failure response sent by Platform to orchestrator when authentication fails. */
29
38
  const authFailureSchema = z.object({
@@ -1,4 +1,4 @@
1
- import "../../chunk-gOLHoazu.js";
1
+ import "../../chunk-BTugEXQM.js";
2
2
  import { browserJobContextSchema, browserRunEventSchema } from "./run-events.js";
3
3
  import { browserEventLogPayloadChunkSchema } from "./dashboard.js";
4
4
  import { z } from "zod";
@@ -1,4 +1,4 @@
1
- import "../../chunk-gOLHoazu.js";
1
+ import "../../chunk-BTugEXQM.js";
2
2
  import { dashboardWritePolicyMap } from "../dashboard-write-operations.js";
3
3
  import { z } from "zod";
4
4
  //#region src/protocol/messages/capabilities.ts
@@ -1,4 +1,4 @@
1
- import "../../chunk-gOLHoazu.js";
1
+ import "../../chunk-BTugEXQM.js";
2
2
  import { z } from "zod";
3
3
  //#region src/protocol/messages/common.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import "../../chunk-gOLHoazu.js";
1
+ import "../../chunk-BTugEXQM.js";
2
2
  import { actorPrincipalSchema } from "./actor.js";
3
3
  import { z } from "zod";
4
4
  //#region src/protocol/messages/dashboard-global-workflows.ts