@kici-dev/engine 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/approval/types.d.ts +3 -3
- package/dist/approval/types.js +3 -3
- package/dist/audit/access-log-policy.js +12 -11
- package/dist/audit/retention-policy.js +24 -22
- package/dist/context/host-match.d.ts +25 -0
- package/dist/{environment → context}/host-match.js +1 -1
- package/dist/context/index.d.ts +6 -0
- package/dist/context/index.js +5 -0
- package/dist/context/multi-context.d.ts +30 -0
- package/dist/context/multi-context.js +38 -0
- package/dist/context/scope-resolver.d.ts +46 -0
- package/dist/{environment → context}/scope-resolver.js +6 -6
- package/dist/context/scope-template.d.ts +18 -0
- package/dist/{environment → context}/scope-template.js +1 -1
- package/dist/context/types.d.ts +119 -0
- package/dist/{environment → context}/types.js +3 -3
- package/dist/dev-ops/operations.d.ts +1 -1
- package/dist/dev-ops/operations.js +1 -1
- package/dist/env/environment-allowlist.d.ts +23 -0
- package/dist/env/environment-allowlist.js +35 -1
- package/dist/fanout/materialize.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/metrics/metric-catalog.generated.d.ts +15 -10
- package/dist/metrics/metric-catalog.generated.js +18 -12
- package/dist/protocol/dashboard-api-errors.d.ts +12 -0
- package/dist/protocol/dashboard-api-errors.js +13 -0
- package/dist/protocol/dashboard-write-operations.d.ts +22 -22
- package/dist/protocol/dashboard-write-operations.js +52 -52
- package/dist/protocol/messages/access-log.d.ts +65 -60
- package/dist/protocol/messages/access-log.js +13 -12
- package/dist/protocol/messages/agent-run-result.d.ts +2 -2
- package/dist/protocol/messages/agent-run-result.js +1 -1
- package/dist/protocol/messages/auth.d.ts +7 -7
- package/dist/protocol/messages/capabilities.d.ts +7 -7
- package/dist/protocol/messages/dashboard.d.ts +235 -233
- package/dist/protocol/messages/dashboard.js +191 -191
- package/dist/protocol/messages/execution-status.d.ts +9 -9
- package/dist/protocol/messages/execution-status.js +8 -8
- package/dist/protocol/messages/platform-orchestrator.d.ts +75 -74
- package/dist/protocol/session-policy.d.ts +20 -0
- package/dist/protocol/session-policy.js +25 -0
- package/dist/trigger/types.d.ts +7 -6
- package/dist/trigger/types.js +2 -1
- package/package.json +15 -7
- package/sbom.spdx.json +5 -5
- package/dist/environment/index.js +0 -5
- package/dist/environment/multi-env.js +0 -38
|
@@ -11,8 +11,8 @@ export declare const STATE_REPLAY_MAX_RUNS = 500;
|
|
|
11
11
|
export declare const MAX_JOBS_PER_RUN = 1000;
|
|
12
12
|
/** Max number of `runsOn` / `secretsAccessed` label entries on a job/step. */
|
|
13
13
|
export declare const RUNS_ON_LABELS_MAX = 30;
|
|
14
|
-
/** Max number of bound
|
|
15
|
-
export declare const
|
|
14
|
+
/** Max number of bound context names on a job. */
|
|
15
|
+
export declare const CONTEXTS_MAX = 30;
|
|
16
16
|
/**
|
|
17
17
|
* Status values for execution runs (execution_runs table).
|
|
18
18
|
*
|
|
@@ -117,14 +117,14 @@ export type TimeoutReason = z.infer<typeof TimeoutReason>;
|
|
|
117
117
|
* (secret_resolution, install_secrets, lock_resolution,
|
|
118
118
|
* build_coordination).
|
|
119
119
|
* - `job`-scoped categories fail one job and leave siblings alone
|
|
120
|
-
* (
|
|
120
|
+
* (context_rules, dynamic_eval, no_agent, matrix_expansion).
|
|
121
121
|
*/
|
|
122
122
|
export declare const InitFailureCategory: z.ZodEnum<{
|
|
123
123
|
secret_resolution: "secret_resolution";
|
|
124
124
|
install_secrets: "install_secrets";
|
|
125
125
|
lock_resolution: "lock_resolution";
|
|
126
126
|
build_coordination: "build_coordination";
|
|
127
|
-
|
|
127
|
+
context_rules: "context_rules";
|
|
128
128
|
dynamic_eval: "dynamic_eval";
|
|
129
129
|
no_agent: "no_agent";
|
|
130
130
|
matrix_expansion: "matrix_expansion";
|
|
@@ -176,7 +176,7 @@ export declare const initFailureSchema: z.ZodObject<{
|
|
|
176
176
|
install_secrets: "install_secrets";
|
|
177
177
|
lock_resolution: "lock_resolution";
|
|
178
178
|
build_coordination: "build_coordination";
|
|
179
|
-
|
|
179
|
+
context_rules: "context_rules";
|
|
180
180
|
dynamic_eval: "dynamic_eval";
|
|
181
181
|
no_agent: "no_agent";
|
|
182
182
|
matrix_expansion: "matrix_expansion";
|
|
@@ -235,7 +235,7 @@ export declare const executionStatusSchema: z.ZodObject<{
|
|
|
235
235
|
install_secrets: "install_secrets";
|
|
236
236
|
lock_resolution: "lock_resolution";
|
|
237
237
|
build_coordination: "build_coordination";
|
|
238
|
-
|
|
238
|
+
context_rules: "context_rules";
|
|
239
239
|
dynamic_eval: "dynamic_eval";
|
|
240
240
|
no_agent: "no_agent";
|
|
241
241
|
matrix_expansion: "matrix_expansion";
|
|
@@ -299,7 +299,7 @@ export declare const jobStatusForwardSchema: z.ZodObject<{
|
|
|
299
299
|
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
300
|
orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
301
|
runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
302
|
-
|
|
302
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
303
303
|
logBytes: z.ZodOptional<z.ZodNumber>;
|
|
304
304
|
timestamp: z.ZodNumber;
|
|
305
305
|
initFailure: z.ZodOptional<z.ZodObject<{
|
|
@@ -312,7 +312,7 @@ export declare const jobStatusForwardSchema: z.ZodObject<{
|
|
|
312
312
|
install_secrets: "install_secrets";
|
|
313
313
|
lock_resolution: "lock_resolution";
|
|
314
314
|
build_coordination: "build_coordination";
|
|
315
|
-
|
|
315
|
+
context_rules: "context_rules";
|
|
316
316
|
dynamic_eval: "dynamic_eval";
|
|
317
317
|
no_agent: "no_agent";
|
|
318
318
|
matrix_expansion: "matrix_expansion";
|
|
@@ -362,7 +362,7 @@ export declare const stateReplaySchema: z.ZodObject<{
|
|
|
362
362
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
363
363
|
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
364
364
|
runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
365
|
-
|
|
365
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
366
366
|
}, z.core.$strip>>;
|
|
367
367
|
}, z.core.$strip>>;
|
|
368
368
|
timestamp: z.ZodNumber;
|
|
@@ -13,8 +13,8 @@ const STATE_REPLAY_MAX_RUNS = 500;
|
|
|
13
13
|
const MAX_JOBS_PER_RUN = 1e3;
|
|
14
14
|
/** Max number of `runsOn` / `secretsAccessed` label entries on a job/step. */
|
|
15
15
|
const RUNS_ON_LABELS_MAX = 30;
|
|
16
|
-
/** Max number of bound
|
|
17
|
-
const
|
|
16
|
+
/** Max number of bound context names on a job. */
|
|
17
|
+
const CONTEXTS_MAX = 30;
|
|
18
18
|
/**
|
|
19
19
|
* Status values for execution runs (execution_runs table).
|
|
20
20
|
*
|
|
@@ -113,14 +113,14 @@ const TimeoutReason = z.enum(["job_timeout", "workflow_timeout"]);
|
|
|
113
113
|
* (secret_resolution, install_secrets, lock_resolution,
|
|
114
114
|
* build_coordination).
|
|
115
115
|
* - `job`-scoped categories fail one job and leave siblings alone
|
|
116
|
-
* (
|
|
116
|
+
* (context_rules, dynamic_eval, no_agent, matrix_expansion).
|
|
117
117
|
*/
|
|
118
118
|
const InitFailureCategory = z.enum([
|
|
119
119
|
"secret_resolution",
|
|
120
120
|
"install_secrets",
|
|
121
121
|
"lock_resolution",
|
|
122
122
|
"build_coordination",
|
|
123
|
-
"
|
|
123
|
+
"context_rules",
|
|
124
124
|
"dynamic_eval",
|
|
125
125
|
"no_agent",
|
|
126
126
|
"matrix_expansion"
|
|
@@ -274,8 +274,8 @@ const jobStatusForwardSchema = z.object({
|
|
|
274
274
|
orchestratorId: z.string().max(128).nullable().optional(),
|
|
275
275
|
/** Labels used for agent routing. */
|
|
276
276
|
runsOnLabels: z.array(z.string().max(128)).max(30).optional(),
|
|
277
|
-
/** Ordered bound
|
|
278
|
-
|
|
277
|
+
/** Ordered bound context names for this job (multi-context jobs). */
|
|
278
|
+
contexts: z.array(z.string().max(128)).max(30).optional(),
|
|
279
279
|
/**
|
|
280
280
|
* Total raw log bytes accumulated across all steps of this job, summed by
|
|
281
281
|
* the orchestrator from per-step `logBytesStreamed` values reported by the
|
|
@@ -321,12 +321,12 @@ const stateReplaySchema = z.object({
|
|
|
321
321
|
errorMessage: z.string().max(STATUS_FREE_TEXT_MAX).nullable().optional(),
|
|
322
322
|
agentId: z.string().max(128).nullable().optional(),
|
|
323
323
|
runsOnLabels: z.array(z.string().max(128)).max(30).optional(),
|
|
324
|
-
|
|
324
|
+
contexts: z.array(z.string().max(128)).max(30).optional()
|
|
325
325
|
})).max(MAX_JOBS_PER_RUN)
|
|
326
326
|
})).max(500),
|
|
327
327
|
timestamp: z.number()
|
|
328
328
|
});
|
|
329
329
|
//#endregion
|
|
330
|
-
export { CacheOutcome, CacheRunEventType, CacheStepType,
|
|
330
|
+
export { CONTEXTS_MAX, CacheOutcome, CacheRunEventType, CacheStepType, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, InitFailureCategory, MAX_JOBS_PER_RUN, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, STATE_REPLAY_MAX_RUNS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, StepConcurrencyKind, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TimeoutReason, executionStatusSchema, initFailureSchema, jobStatusForwardSchema, stateReplaySchema, statusOptionsForLevel, stepStatusForwardSchema };
|
|
331
331
|
|
|
332
332
|
//# sourceMappingURL=execution-status.js.map
|
|
@@ -297,13 +297,13 @@ export declare const orchCapabilitiesUpdateSchema: z.ZodObject<{
|
|
|
297
297
|
"secrets.scope.delete": "secrets.scope.delete";
|
|
298
298
|
"variables.set": "variables.set";
|
|
299
299
|
"variables.delete": "variables.delete";
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
"
|
|
303
|
-
"
|
|
304
|
-
"
|
|
305
|
-
"
|
|
306
|
-
"
|
|
300
|
+
"contexts.create": "contexts.create";
|
|
301
|
+
"contexts.update": "contexts.update";
|
|
302
|
+
"contexts.test_access.set": "contexts.test_access.set";
|
|
303
|
+
"contexts.delete": "contexts.delete";
|
|
304
|
+
"contexts.bindings.set": "contexts.bindings.set";
|
|
305
|
+
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
306
|
+
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
307
307
|
"held_runs.approve": "held_runs.approve";
|
|
308
308
|
"held_runs.reject": "held_runs.reject";
|
|
309
309
|
"event_dlq.retry": "event_dlq.retry";
|
|
@@ -942,7 +942,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
942
942
|
runId: z.ZodString;
|
|
943
943
|
jobId: z.ZodString;
|
|
944
944
|
}, z.core.$strip>, z.ZodObject<{
|
|
945
|
-
type: z.ZodLiteral<"dashboard.
|
|
945
|
+
type: z.ZodLiteral<"dashboard.contexts.list">;
|
|
946
946
|
requestId: z.ZodString;
|
|
947
947
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
948
948
|
type: z.ZodLiteral<"user">;
|
|
@@ -973,7 +973,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
973
973
|
includeSecrets: z.ZodOptional<z.ZodBoolean>;
|
|
974
974
|
orgId: z.ZodOptional<z.ZodString>;
|
|
975
975
|
}, z.core.$strip>, z.ZodObject<{
|
|
976
|
-
type: z.ZodLiteral<"dashboard.
|
|
976
|
+
type: z.ZodLiteral<"dashboard.contexts.get">;
|
|
977
977
|
requestId: z.ZodString;
|
|
978
978
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
979
979
|
type: z.ZodLiteral<"user">;
|
|
@@ -1001,9 +1001,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1001
1001
|
type: z.ZodLiteral<"system">;
|
|
1002
1002
|
component: z.ZodString;
|
|
1003
1003
|
}, z.core.$strip>], "type">;
|
|
1004
|
-
|
|
1004
|
+
contextId: z.ZodString;
|
|
1005
1005
|
}, z.core.$strip>, z.ZodObject<{
|
|
1006
|
-
type: z.ZodLiteral<"dashboard.
|
|
1006
|
+
type: z.ZodLiteral<"dashboard.contexts.create">;
|
|
1007
1007
|
requestId: z.ZodString;
|
|
1008
1008
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1009
1009
|
type: z.ZodLiteral<"user">;
|
|
@@ -1032,7 +1032,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1032
1032
|
component: z.ZodString;
|
|
1033
1033
|
}, z.core.$strip>], "type">;
|
|
1034
1034
|
name: z.ZodString;
|
|
1035
|
-
|
|
1035
|
+
contextType: z.ZodEnum<{
|
|
1036
1036
|
fixed: "fixed";
|
|
1037
1037
|
glob: "glob";
|
|
1038
1038
|
}>;
|
|
@@ -1048,7 +1048,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1048
1048
|
holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
|
|
1049
1049
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1050
1050
|
}, z.core.$strip>, z.ZodObject<{
|
|
1051
|
-
type: z.ZodLiteral<"dashboard.
|
|
1051
|
+
type: z.ZodLiteral<"dashboard.contexts.update">;
|
|
1052
1052
|
requestId: z.ZodString;
|
|
1053
1053
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1054
1054
|
type: z.ZodLiteral<"user">;
|
|
@@ -1076,10 +1076,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1076
1076
|
type: z.ZodLiteral<"system">;
|
|
1077
1077
|
component: z.ZodString;
|
|
1078
1078
|
}, z.core.$strip>], "type">;
|
|
1079
|
-
|
|
1079
|
+
contextId: z.ZodString;
|
|
1080
1080
|
updates: z.ZodObject<{
|
|
1081
1081
|
name: z.ZodOptional<z.ZodString>;
|
|
1082
|
-
|
|
1082
|
+
contextType: z.ZodOptional<z.ZodEnum<{
|
|
1083
1083
|
fixed: "fixed";
|
|
1084
1084
|
glob: "glob";
|
|
1085
1085
|
}>>;
|
|
@@ -1096,7 +1096,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1096
1096
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1097
1097
|
}, z.core.$strip>;
|
|
1098
1098
|
}, z.core.$strip>, z.ZodObject<{
|
|
1099
|
-
type: z.ZodLiteral<"dashboard.
|
|
1099
|
+
type: z.ZodLiteral<"dashboard.contexts.test_access.set">;
|
|
1100
1100
|
requestId: z.ZodString;
|
|
1101
1101
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1102
1102
|
type: z.ZodLiteral<"user">;
|
|
@@ -1124,10 +1124,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1124
1124
|
type: z.ZodLiteral<"system">;
|
|
1125
1125
|
component: z.ZodString;
|
|
1126
1126
|
}, z.core.$strip>], "type">;
|
|
1127
|
-
|
|
1127
|
+
contextId: z.ZodString;
|
|
1128
1128
|
allowLocalExecution: z.ZodBoolean;
|
|
1129
1129
|
}, z.core.$strip>, z.ZodObject<{
|
|
1130
|
-
type: z.ZodLiteral<"dashboard.
|
|
1130
|
+
type: z.ZodLiteral<"dashboard.contexts.delete">;
|
|
1131
1131
|
requestId: z.ZodString;
|
|
1132
1132
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1133
1133
|
type: z.ZodLiteral<"user">;
|
|
@@ -1155,9 +1155,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1155
1155
|
type: z.ZodLiteral<"system">;
|
|
1156
1156
|
component: z.ZodString;
|
|
1157
1157
|
}, z.core.$strip>], "type">;
|
|
1158
|
-
|
|
1158
|
+
contextId: z.ZodString;
|
|
1159
1159
|
}, z.core.$strip>, z.ZodObject<{
|
|
1160
|
-
type: z.ZodLiteral<"dashboard.
|
|
1160
|
+
type: z.ZodLiteral<"dashboard.contexts.variables.list">;
|
|
1161
1161
|
requestId: z.ZodString;
|
|
1162
1162
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1163
1163
|
type: z.ZodLiteral<"user">;
|
|
@@ -1185,9 +1185,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1185
1185
|
type: z.ZodLiteral<"system">;
|
|
1186
1186
|
component: z.ZodString;
|
|
1187
1187
|
}, z.core.$strip>], "type">;
|
|
1188
|
-
|
|
1188
|
+
contextId: z.ZodString;
|
|
1189
1189
|
}, z.core.$strip>, z.ZodObject<{
|
|
1190
|
-
type: z.ZodLiteral<"dashboard.
|
|
1190
|
+
type: z.ZodLiteral<"dashboard.contexts.variables.set">;
|
|
1191
1191
|
requestId: z.ZodString;
|
|
1192
1192
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1193
1193
|
type: z.ZodLiteral<"user">;
|
|
@@ -1215,12 +1215,12 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1215
1215
|
type: z.ZodLiteral<"system">;
|
|
1216
1216
|
component: z.ZodString;
|
|
1217
1217
|
}, z.core.$strip>], "type">;
|
|
1218
|
-
|
|
1218
|
+
contextId: z.ZodString;
|
|
1219
1219
|
key: z.ZodString;
|
|
1220
1220
|
value: z.ZodString;
|
|
1221
1221
|
locked: z.ZodOptional<z.ZodBoolean>;
|
|
1222
1222
|
}, z.core.$strip>, z.ZodObject<{
|
|
1223
|
-
type: z.ZodLiteral<"dashboard.
|
|
1223
|
+
type: z.ZodLiteral<"dashboard.contexts.variables.delete">;
|
|
1224
1224
|
requestId: z.ZodString;
|
|
1225
1225
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1226
1226
|
type: z.ZodLiteral<"user">;
|
|
@@ -1248,10 +1248,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1248
1248
|
type: z.ZodLiteral<"system">;
|
|
1249
1249
|
component: z.ZodString;
|
|
1250
1250
|
}, z.core.$strip>], "type">;
|
|
1251
|
-
|
|
1251
|
+
contextId: z.ZodString;
|
|
1252
1252
|
key: z.ZodString;
|
|
1253
1253
|
}, z.core.$strip>, z.ZodObject<{
|
|
1254
|
-
type: z.ZodLiteral<"dashboard.
|
|
1254
|
+
type: z.ZodLiteral<"dashboard.contexts.source-overrides.list">;
|
|
1255
1255
|
requestId: z.ZodString;
|
|
1256
1256
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1257
1257
|
type: z.ZodLiteral<"user">;
|
|
@@ -1279,10 +1279,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1279
1279
|
type: z.ZodLiteral<"system">;
|
|
1280
1280
|
component: z.ZodString;
|
|
1281
1281
|
}, z.core.$strip>], "type">;
|
|
1282
|
-
|
|
1282
|
+
contextId: z.ZodString;
|
|
1283
1283
|
routingKey: z.ZodString;
|
|
1284
1284
|
}, z.core.$strip>, z.ZodObject<{
|
|
1285
|
-
type: z.ZodLiteral<"dashboard.
|
|
1285
|
+
type: z.ZodLiteral<"dashboard.contexts.source-overrides.set">;
|
|
1286
1286
|
requestId: z.ZodString;
|
|
1287
1287
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1288
1288
|
type: z.ZodLiteral<"user">;
|
|
@@ -1310,12 +1310,12 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1310
1310
|
type: z.ZodLiteral<"system">;
|
|
1311
1311
|
component: z.ZodString;
|
|
1312
1312
|
}, z.core.$strip>], "type">;
|
|
1313
|
-
|
|
1313
|
+
contextId: z.ZodString;
|
|
1314
1314
|
routingKey: z.ZodString;
|
|
1315
1315
|
key: z.ZodString;
|
|
1316
1316
|
value: z.ZodString;
|
|
1317
1317
|
}, z.core.$strip>, z.ZodObject<{
|
|
1318
|
-
type: z.ZodLiteral<"dashboard.
|
|
1318
|
+
type: z.ZodLiteral<"dashboard.contexts.source-overrides.delete">;
|
|
1319
1319
|
requestId: z.ZodString;
|
|
1320
1320
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1321
1321
|
type: z.ZodLiteral<"user">;
|
|
@@ -1343,11 +1343,11 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1343
1343
|
type: z.ZodLiteral<"system">;
|
|
1344
1344
|
component: z.ZodString;
|
|
1345
1345
|
}, z.core.$strip>], "type">;
|
|
1346
|
-
|
|
1346
|
+
contextId: z.ZodString;
|
|
1347
1347
|
routingKey: z.ZodString;
|
|
1348
1348
|
key: z.ZodString;
|
|
1349
1349
|
}, z.core.$strip>, z.ZodObject<{
|
|
1350
|
-
type: z.ZodLiteral<"dashboard.
|
|
1350
|
+
type: z.ZodLiteral<"dashboard.contexts.bindings.list">;
|
|
1351
1351
|
requestId: z.ZodString;
|
|
1352
1352
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1353
1353
|
type: z.ZodLiteral<"user">;
|
|
@@ -1375,9 +1375,9 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1375
1375
|
type: z.ZodLiteral<"system">;
|
|
1376
1376
|
component: z.ZodString;
|
|
1377
1377
|
}, z.core.$strip>], "type">;
|
|
1378
|
-
|
|
1378
|
+
contextId: z.ZodString;
|
|
1379
1379
|
}, z.core.$strip>, z.ZodObject<{
|
|
1380
|
-
type: z.ZodLiteral<"dashboard.
|
|
1380
|
+
type: z.ZodLiteral<"dashboard.contexts.bindings.set">;
|
|
1381
1381
|
requestId: z.ZodString;
|
|
1382
1382
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1383
1383
|
type: z.ZodLiteral<"user">;
|
|
@@ -1405,13 +1405,13 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1405
1405
|
type: z.ZodLiteral<"system">;
|
|
1406
1406
|
component: z.ZodString;
|
|
1407
1407
|
}, z.core.$strip>], "type">;
|
|
1408
|
-
|
|
1408
|
+
contextId: z.ZodString;
|
|
1409
1409
|
bindings: z.ZodArray<z.ZodObject<{
|
|
1410
1410
|
scopePattern: z.ZodString;
|
|
1411
1411
|
hostPattern: z.ZodString;
|
|
1412
1412
|
}, z.core.$strip>>;
|
|
1413
1413
|
}, z.core.$strip>, z.ZodObject<{
|
|
1414
|
-
type: z.ZodLiteral<"dashboard.
|
|
1414
|
+
type: z.ZodLiteral<"dashboard.contexts.secrets.list">;
|
|
1415
1415
|
requestId: z.ZodString;
|
|
1416
1416
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1417
1417
|
type: z.ZodLiteral<"user">;
|
|
@@ -1440,7 +1440,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1440
1440
|
component: z.ZodString;
|
|
1441
1441
|
}, z.core.$strip>], "type">;
|
|
1442
1442
|
}, z.core.$strip>, z.ZodObject<{
|
|
1443
|
-
type: z.ZodLiteral<"dashboard.
|
|
1443
|
+
type: z.ZodLiteral<"dashboard.contexts.secrets.set">;
|
|
1444
1444
|
requestId: z.ZodString;
|
|
1445
1445
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1446
1446
|
type: z.ZodLiteral<"user">;
|
|
@@ -1472,7 +1472,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1472
1472
|
key: z.ZodString;
|
|
1473
1473
|
value: z.ZodString;
|
|
1474
1474
|
}, z.core.$strip>, z.ZodObject<{
|
|
1475
|
-
type: z.ZodLiteral<"dashboard.
|
|
1475
|
+
type: z.ZodLiteral<"dashboard.contexts.secrets.delete">;
|
|
1476
1476
|
requestId: z.ZodString;
|
|
1477
1477
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1478
1478
|
type: z.ZodLiteral<"user">;
|
|
@@ -1503,7 +1503,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1503
1503
|
scope: z.ZodString;
|
|
1504
1504
|
key: z.ZodString;
|
|
1505
1505
|
}, z.core.$strip>, z.ZodObject<{
|
|
1506
|
-
type: z.ZodLiteral<"dashboard.
|
|
1506
|
+
type: z.ZodLiteral<"dashboard.contexts.secrets.scope.create">;
|
|
1507
1507
|
requestId: z.ZodString;
|
|
1508
1508
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1509
1509
|
type: z.ZodLiteral<"user">;
|
|
@@ -1533,7 +1533,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1533
1533
|
}, z.core.$strip>], "type">;
|
|
1534
1534
|
scope: z.ZodString;
|
|
1535
1535
|
}, z.core.$strip>, z.ZodObject<{
|
|
1536
|
-
type: z.ZodLiteral<"dashboard.
|
|
1536
|
+
type: z.ZodLiteral<"dashboard.contexts.secrets.scope.rename">;
|
|
1537
1537
|
requestId: z.ZodString;
|
|
1538
1538
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1539
1539
|
type: z.ZodLiteral<"user">;
|
|
@@ -1564,7 +1564,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1564
1564
|
oldScope: z.ZodString;
|
|
1565
1565
|
newScope: z.ZodString;
|
|
1566
1566
|
}, z.core.$strip>, z.ZodObject<{
|
|
1567
|
-
type: z.ZodLiteral<"dashboard.
|
|
1567
|
+
type: z.ZodLiteral<"dashboard.contexts.secrets.scope.delete">;
|
|
1568
1568
|
requestId: z.ZodString;
|
|
1569
1569
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1570
1570
|
type: z.ZodLiteral<"user">;
|
|
@@ -1594,7 +1594,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1594
1594
|
}, z.core.$strip>], "type">;
|
|
1595
1595
|
scope: z.ZodString;
|
|
1596
1596
|
}, z.core.$strip>, z.ZodObject<{
|
|
1597
|
-
type: z.ZodLiteral<"dashboard.
|
|
1597
|
+
type: z.ZodLiteral<"dashboard.contexts.history">;
|
|
1598
1598
|
requestId: z.ZodString;
|
|
1599
1599
|
actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1600
1600
|
type: z.ZodLiteral<"user">;
|
|
@@ -1622,7 +1622,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1622
1622
|
type: z.ZodLiteral<"system">;
|
|
1623
1623
|
component: z.ZodString;
|
|
1624
1624
|
}, z.core.$strip>], "type">;
|
|
1625
|
-
|
|
1625
|
+
contextId: z.ZodString;
|
|
1626
1626
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1627
1627
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
1628
1628
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1661,7 +1661,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1661
1661
|
expired: "expired";
|
|
1662
1662
|
}>>;
|
|
1663
1663
|
queueType: z.ZodOptional<z.ZodEnum<{
|
|
1664
|
-
|
|
1664
|
+
context: "context";
|
|
1665
1665
|
security: "security";
|
|
1666
1666
|
}>>;
|
|
1667
1667
|
runId: z.ZodOptional<z.ZodString>;
|
|
@@ -2609,19 +2609,19 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2609
2609
|
"event_log.list.read": "event_log.list.read";
|
|
2610
2610
|
"event_log.detail.read": "event_log.detail.read";
|
|
2611
2611
|
"event_log.payload.read": "event_log.payload.read";
|
|
2612
|
-
"
|
|
2613
|
-
"
|
|
2614
|
-
"
|
|
2615
|
-
"
|
|
2616
|
-
"
|
|
2617
|
-
"
|
|
2618
|
-
"
|
|
2619
|
-
"
|
|
2612
|
+
"context.list.read": "context.list.read";
|
|
2613
|
+
"context.get.read": "context.get.read";
|
|
2614
|
+
"context.create": "context.create";
|
|
2615
|
+
"context.update": "context.update";
|
|
2616
|
+
"context.delete": "context.delete";
|
|
2617
|
+
"context_var.list.read": "context_var.list.read";
|
|
2618
|
+
"context_var.set": "context_var.set";
|
|
2619
|
+
"context_var.delete": "context_var.delete";
|
|
2620
2620
|
"source_override.list.read": "source_override.list.read";
|
|
2621
2621
|
"source_override.set": "source_override.set";
|
|
2622
2622
|
"source_override.delete": "source_override.delete";
|
|
2623
|
-
"
|
|
2624
|
-
"
|
|
2623
|
+
"context_binding.list.read": "context_binding.list.read";
|
|
2624
|
+
"context_binding.set": "context_binding.set";
|
|
2625
2625
|
"secret.list.read": "secret.list.read";
|
|
2626
2626
|
"secret.set": "secret.set";
|
|
2627
2627
|
"secret.delete": "secret.delete";
|
|
@@ -2629,7 +2629,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2629
2629
|
"secret_scope.create": "secret_scope.create";
|
|
2630
2630
|
"secret_scope.rename": "secret_scope.rename";
|
|
2631
2631
|
"secret_scope.delete": "secret_scope.delete";
|
|
2632
|
-
"
|
|
2632
|
+
"context.history.read": "context.history.read";
|
|
2633
2633
|
"held_run.list.read": "held_run.list.read";
|
|
2634
2634
|
"held_run.approve": "held_run.approve";
|
|
2635
2635
|
"held_run.auto_approve": "held_run.auto_approve";
|
|
@@ -2651,6 +2651,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2651
2651
|
"global_workflows.get.read": "global_workflows.get.read";
|
|
2652
2652
|
"org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
|
|
2653
2653
|
"cluster_name.update": "cluster_name.update";
|
|
2654
|
+
"attestation.retry": "attestation.retry";
|
|
2654
2655
|
"access_log.list.read": "access_log.list.read";
|
|
2655
2656
|
"event_dlq.list.read": "event_dlq.list.read";
|
|
2656
2657
|
archive_chunk: "archive_chunk";
|
|
@@ -2671,7 +2672,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2671
2672
|
job: "job";
|
|
2672
2673
|
step: "step";
|
|
2673
2674
|
run: "run";
|
|
2674
|
-
|
|
2675
|
+
context: "context";
|
|
2675
2676
|
payload: "payload";
|
|
2676
2677
|
event_log: "event_log";
|
|
2677
2678
|
event_log_payload: "event_log_payload";
|
|
@@ -2979,7 +2980,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
2979
2980
|
install_secrets: "install_secrets";
|
|
2980
2981
|
lock_resolution: "lock_resolution";
|
|
2981
2982
|
build_coordination: "build_coordination";
|
|
2982
|
-
|
|
2983
|
+
context_rules: "context_rules";
|
|
2983
2984
|
dynamic_eval: "dynamic_eval";
|
|
2984
2985
|
no_agent: "no_agent";
|
|
2985
2986
|
matrix_expansion: "matrix_expansion";
|
|
@@ -3039,7 +3040,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3039
3040
|
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3040
3041
|
orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3041
3042
|
runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3042
|
-
|
|
3043
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3043
3044
|
logBytes: z.ZodOptional<z.ZodNumber>;
|
|
3044
3045
|
timestamp: z.ZodNumber;
|
|
3045
3046
|
initFailure: z.ZodOptional<z.ZodObject<{
|
|
@@ -3052,7 +3053,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3052
3053
|
install_secrets: "install_secrets";
|
|
3053
3054
|
lock_resolution: "lock_resolution";
|
|
3054
3055
|
build_coordination: "build_coordination";
|
|
3055
|
-
|
|
3056
|
+
context_rules: "context_rules";
|
|
3056
3057
|
dynamic_eval: "dynamic_eval";
|
|
3057
3058
|
no_agent: "no_agent";
|
|
3058
3059
|
matrix_expansion: "matrix_expansion";
|
|
@@ -3100,7 +3101,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3100
3101
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3101
3102
|
agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3102
3103
|
runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3103
|
-
|
|
3104
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3104
3105
|
}, z.core.$strip>>;
|
|
3105
3106
|
}, z.core.$strip>>;
|
|
3106
3107
|
timestamp: z.ZodNumber;
|
|
@@ -3119,13 +3120,13 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3119
3120
|
"secrets.scope.delete": "secrets.scope.delete";
|
|
3120
3121
|
"variables.set": "variables.set";
|
|
3121
3122
|
"variables.delete": "variables.delete";
|
|
3122
|
-
"
|
|
3123
|
-
"
|
|
3124
|
-
"
|
|
3125
|
-
"
|
|
3126
|
-
"
|
|
3127
|
-
"
|
|
3128
|
-
"
|
|
3123
|
+
"contexts.create": "contexts.create";
|
|
3124
|
+
"contexts.update": "contexts.update";
|
|
3125
|
+
"contexts.test_access.set": "contexts.test_access.set";
|
|
3126
|
+
"contexts.delete": "contexts.delete";
|
|
3127
|
+
"contexts.bindings.set": "contexts.bindings.set";
|
|
3128
|
+
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
3129
|
+
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
3129
3130
|
"held_runs.approve": "held_runs.approve";
|
|
3130
3131
|
"held_runs.reject": "held_runs.reject";
|
|
3131
3132
|
"event_dlq.retry": "event_dlq.retry";
|
|
@@ -3217,13 +3218,13 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3217
3218
|
"secrets.scope.delete": "secrets.scope.delete";
|
|
3218
3219
|
"variables.set": "variables.set";
|
|
3219
3220
|
"variables.delete": "variables.delete";
|
|
3220
|
-
"
|
|
3221
|
-
"
|
|
3222
|
-
"
|
|
3223
|
-
"
|
|
3224
|
-
"
|
|
3225
|
-
"
|
|
3226
|
-
"
|
|
3221
|
+
"contexts.create": "contexts.create";
|
|
3222
|
+
"contexts.update": "contexts.update";
|
|
3223
|
+
"contexts.test_access.set": "contexts.test_access.set";
|
|
3224
|
+
"contexts.delete": "contexts.delete";
|
|
3225
|
+
"contexts.bindings.set": "contexts.bindings.set";
|
|
3226
|
+
"contexts.source_overrides.set": "contexts.source_overrides.set";
|
|
3227
|
+
"contexts.source_overrides.delete": "contexts.source_overrides.delete";
|
|
3227
3228
|
"held_runs.approve": "held_runs.approve";
|
|
3228
3229
|
"held_runs.reject": "held_runs.reject";
|
|
3229
3230
|
"event_dlq.retry": "event_dlq.retry";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-org dashboard session max age policy constants.
|
|
3
|
+
*
|
|
4
|
+
* Browser-safe (imported by the dashboard): no Node built-ins. Shared so the
|
|
5
|
+
* Platform enforcement/write-validation sites and the dashboard settings UI
|
|
6
|
+
* never drift on the bounds or the dashboard client id.
|
|
7
|
+
*/
|
|
8
|
+
/** Minimum configurable session max age: 1 hour (floor). */
|
|
9
|
+
export declare const SESSION_MAX_AGE_MIN_SECONDS = 3600;
|
|
10
|
+
/** Maximum configurable session max age: 30 days (ceiling == realm cap). */
|
|
11
|
+
export declare const SESSION_MAX_AGE_MAX_SECONDS = 2592000;
|
|
12
|
+
/** Default session max age applied to every org: 7 days. */
|
|
13
|
+
export declare const SESSION_MAX_AGE_DEFAULT_SECONDS = 604800;
|
|
14
|
+
/**
|
|
15
|
+
* Keycloak client id for the web dashboard. The per-org max-age check applies
|
|
16
|
+
* only to tokens whose `azp` equals this value; CLI / service-account tokens
|
|
17
|
+
* are exempt.
|
|
18
|
+
*/
|
|
19
|
+
export declare const DASHBOARD_KEYCLOAK_CLIENT_ID = "kici-dashboard";
|
|
20
|
+
//# sourceMappingURL=session-policy.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "../rolldown-runtime-ClRpJifh.js";
|
|
2
|
+
//#region src/protocol/session-policy.ts
|
|
3
|
+
/**
|
|
4
|
+
* Per-org dashboard session max age policy constants.
|
|
5
|
+
*
|
|
6
|
+
* Browser-safe (imported by the dashboard): no Node built-ins. Shared so the
|
|
7
|
+
* Platform enforcement/write-validation sites and the dashboard settings UI
|
|
8
|
+
* never drift on the bounds or the dashboard client id.
|
|
9
|
+
*/
|
|
10
|
+
/** Minimum configurable session max age: 1 hour (floor). */
|
|
11
|
+
const SESSION_MAX_AGE_MIN_SECONDS = 3600;
|
|
12
|
+
/** Maximum configurable session max age: 30 days (ceiling == realm cap). */
|
|
13
|
+
const SESSION_MAX_AGE_MAX_SECONDS = 2592e3;
|
|
14
|
+
/** Default session max age applied to every org: 7 days. */
|
|
15
|
+
const SESSION_MAX_AGE_DEFAULT_SECONDS = 604800;
|
|
16
|
+
/**
|
|
17
|
+
* Keycloak client id for the web dashboard. The per-org max-age check applies
|
|
18
|
+
* only to tokens whose `azp` equals this value; CLI / service-account tokens
|
|
19
|
+
* are exempt.
|
|
20
|
+
*/
|
|
21
|
+
const DASHBOARD_KEYCLOAK_CLIENT_ID = "kici-dashboard";
|
|
22
|
+
//#endregion
|
|
23
|
+
export { DASHBOARD_KEYCLOAK_CLIENT_ID, SESSION_MAX_AGE_DEFAULT_SECONDS, SESSION_MAX_AGE_MAX_SECONDS, SESSION_MAX_AGE_MIN_SECONDS };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=session-policy.js.map
|