@wayai/cli 0.3.307 → 0.3.308
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/index.js +127 -56
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5892,10 +5892,10 @@ var init_chunk_P5GJNS5R = __esm({
|
|
|
5892
5892
|
}
|
|
5893
5893
|
});
|
|
5894
5894
|
|
|
5895
|
-
// ../../packages/core/dist/chunk-
|
|
5896
|
-
var REKOR_ACTOR_TYPE_HEADER, REKOR_ACTOR_ID_HEADER, REKOR_ACTOR_LABEL_HEADER, REKOR_ACTOR_ORG_HEADER, REKOR_ACTOR_ADMIN_HEADER, REKOR_CLIENT_HEADER, REKOR_TOOL_ID_HEADER, REKOR_CLIENTS, rekorClientSchema, MAX_REKOR_TOOL_ID_LENGTH, rekorToolIdSchema, REKOR_V1_PREFIX, REKOR_LIFECYCLE_PREFIX, REKOR_BASE_VAULT_DRY_RUN_PATH, DATA_PROXY_ORG_QUERY_PARAM, MAX_PROVISIONING_BODY_BYTES, dataProxyQuery, rekorAttestation, REQUIRED_REKOR_ATTESTATION_HEADERS, REKOR_BOUND_BASE_HEADER, REKOR_BOUND_TOOLSET_HEADER, REKOR_BOUND_TOKEN_HEADER, REKOR_BOUND_ACCESS_HEADER, REKOR_BOUND_PAGE_HEADER, REKOR_BOUND_PERSON_HEADER, REKOR_PERSON_AUDIENCE_STAFF, REKOR_PERSON_AUDIENCE_CUSTOMER, REKOR_PERSON_ALL, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH, REKOR_MAX_ACCESS_DIMENSIONS, REKOR_MAX_ACCESS_VALUES, REKOR_MAX_ACCESS_ID_LENGTH, REKOR_MAX_ACCESS_HEADER_LENGTH, REKOR_MAX_PERSON_PARTIES, REKOR_MAX_PERSON_IDS, REKOR_MAX_PERSON_ID_LENGTH, REKOR_MAX_PERSON_HEADER_LENGTH;
|
|
5897
|
-
var
|
|
5898
|
-
"../../packages/core/dist/chunk-
|
|
5895
|
+
// ../../packages/core/dist/chunk-SDOG6762.js
|
|
5896
|
+
var REKOR_ACTOR_TYPE_HEADER, REKOR_ACTOR_ID_HEADER, REKOR_ACTOR_LABEL_HEADER, REKOR_ACTOR_ORG_HEADER, REKOR_ACTOR_ADMIN_HEADER, REKOR_CLIENT_HEADER, REKOR_TOOL_ID_HEADER, REKOR_CLIENTS, rekorClientSchema, MAX_REKOR_TOOL_ID_LENGTH, rekorToolIdSchema, REKOR_V1_PREFIX, REKOR_LIFECYCLE_PREFIX, REKOR_BASE_VAULT_DRY_RUN_PATH, DATA_PROXY_ORG_QUERY_PARAM, MAX_PROVISIONING_BODY_BYTES, dataProxyQuery, rekorAttestation, REQUIRED_REKOR_ATTESTATION_HEADERS, REKOR_BOUND_BASE_HEADER, REKOR_BOUND_TOOLSET_HEADER, REKOR_BOUND_TOKEN_HEADER, REKOR_BOUND_ACCESS_HEADER, REKOR_BOUND_PAGE_HEADER, REKOR_BOUND_PERSON_HEADER, REKOR_BOUND_CAPABILITY_HEADER, REKOR_BOUND_CAPABILITY_SEED, REKOR_PERSON_AUDIENCE_STAFF, REKOR_PERSON_AUDIENCE_CUSTOMER, REKOR_PERSON_ALL, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH, REKOR_MAX_ACCESS_DIMENSIONS, REKOR_MAX_ACCESS_VALUES, REKOR_MAX_ACCESS_ID_LENGTH, REKOR_MAX_ACCESS_HEADER_LENGTH, REKOR_MAX_PERSON_PARTIES, REKOR_MAX_PERSON_IDS, REKOR_MAX_PERSON_ID_LENGTH, REKOR_MAX_PERSON_HEADER_LENGTH;
|
|
5897
|
+
var init_chunk_SDOG6762 = __esm({
|
|
5898
|
+
"../../packages/core/dist/chunk-SDOG6762.js"() {
|
|
5899
5899
|
"use strict";
|
|
5900
5900
|
init_zod();
|
|
5901
5901
|
REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
|
|
@@ -5933,6 +5933,8 @@ var init_chunk_ZU6TSKIJ = __esm({
|
|
|
5933
5933
|
REKOR_BOUND_ACCESS_HEADER = "X-Rekor-Bound-Access";
|
|
5934
5934
|
REKOR_BOUND_PAGE_HEADER = "X-Rekor-Bound-Page";
|
|
5935
5935
|
REKOR_BOUND_PERSON_HEADER = "X-Rekor-Bound-Person";
|
|
5936
|
+
REKOR_BOUND_CAPABILITY_HEADER = "X-Rekor-Bound-Capability";
|
|
5937
|
+
REKOR_BOUND_CAPABILITY_SEED = "seed";
|
|
5936
5938
|
REKOR_PERSON_AUDIENCE_STAFF = "staff";
|
|
5937
5939
|
REKOR_PERSON_AUDIENCE_CUSTOMER = "customer";
|
|
5938
5940
|
REKOR_PERSON_ALL = "*";
|
|
@@ -5950,7 +5952,7 @@ var init_chunk_ZU6TSKIJ = __esm({
|
|
|
5950
5952
|
}
|
|
5951
5953
|
});
|
|
5952
5954
|
|
|
5953
|
-
// ../../packages/core/dist/chunk-
|
|
5955
|
+
// ../../packages/core/dist/chunk-T6D3YZ6B.js
|
|
5954
5956
|
function isPersonAccessAll(lists) {
|
|
5955
5957
|
return lists !== void 0 && lists.read.length === 1 && lists.read[0] === ACCESS_UNRESTRICTED && lists.write.length === 1 && lists.write[0] === ACCESS_UNRESTRICTED;
|
|
5956
5958
|
}
|
|
@@ -5988,10 +5990,10 @@ function assignmentHasUnrestricted(assignment) {
|
|
|
5988
5990
|
return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
|
|
5989
5991
|
}
|
|
5990
5992
|
var ACCESS_UNRESTRICTED, ACCESS_ID_REGEX, ACCESS_ID_MAX_LENGTH, MAX_ACCESS_DIMENSIONS_PER_ORG, MAX_ACCESS_VALUES_PER_DIMENSION, ACCESS_LABEL_MAX_LENGTH, accessIdSchema, accessLabelSchema, accessValueListSchema, accessListsSchema, accessAssignmentSchema, PERSON_ACCESS_KEY, heldAccessKeySchema, heldAccessAssignmentSchema, AGENT_PERSON_ACCESS_REFUSAL, accessSetSchema, accessDimensionParam, accessValueParam, orgMemberParam, orgHubParam, createAccessDimensionBody, updateAccessDimensionBody, createAccessValueBody, updateAccessValueBody, setMemberAccessValuesBody, HUB_PERSON_KINDS, ACCESS_PERSON_KINDS, setHubUserAccessValuesBody, setHubAccessValuesBody, setAgentAccessValuesBody;
|
|
5991
|
-
var
|
|
5992
|
-
"../../packages/core/dist/chunk-
|
|
5993
|
+
var init_chunk_T6D3YZ6B = __esm({
|
|
5994
|
+
"../../packages/core/dist/chunk-T6D3YZ6B.js"() {
|
|
5993
5995
|
"use strict";
|
|
5994
|
-
|
|
5996
|
+
init_chunk_SDOG6762();
|
|
5995
5997
|
init_chunk_HZ6CADSY();
|
|
5996
5998
|
init_chunk_YROEDMVZ();
|
|
5997
5999
|
init_zod();
|
|
@@ -6082,7 +6084,7 @@ var init_chunk_NA5MISVT = __esm({
|
|
|
6082
6084
|
}
|
|
6083
6085
|
});
|
|
6084
6086
|
|
|
6085
|
-
// ../../packages/core/dist/chunk-
|
|
6087
|
+
// ../../packages/core/dist/chunk-ADED5YHZ.js
|
|
6086
6088
|
function boundCustomerPartyIsValid(audience, parties, customer) {
|
|
6087
6089
|
return audience !== REKOR_PERSON_AUDIENCE_STAFF && customer < parties.length && Array.isArray(parties[customer]);
|
|
6088
6090
|
}
|
|
@@ -6095,12 +6097,12 @@ function isEncodedBoundPerson(raw) {
|
|
|
6095
6097
|
}
|
|
6096
6098
|
return rekorBoundPersonSchema.safeParse(parsed).success;
|
|
6097
6099
|
}
|
|
6098
|
-
var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, rekorToolsetToolsSchema, rekorPersonIdSchema, rekorPersonAudienceSchema, rekorBoundPersonSchema, rekorBoundAttestation, rekorResolvedToolsetSchema, REKOR_TOOL_KINDS_PARAM, REKOR_TOOL_KINDS_RESOLVE_SEARCH, resolvedRecordTypeSchema, reviewWritersSchema, sharedScopeSchema, resolvedFileToolSchema, rekorToolsetFileSchema, rekorToolsetFileUrlAnswerSchema, rekorToolsetFileListSchema, rekorToolsetFileGetSchema, rekorToolsetFilePutSchema, TOOLSET_CUSTOMER_FACING_REFUSAL_MARK, TOOLSET_CUSTOMER_FACING_REFUSAL, BASE_TOOLSET_ONLY_FOR_CUSTOMER_FACING, GENERIC_DATA_MCP_CUSTOMER_FACING_REFUSAL, GENERIC_DATA_API_CUSTOMER_FACING_REFUSAL;
|
|
6099
|
-
var
|
|
6100
|
-
"../../packages/core/dist/chunk-
|
|
6100
|
+
var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, rekorToolsetToolsSchema, rekorPersonIdSchema, rekorPersonAudienceSchema, rekorBoundPersonSchema, STATED_GENERATION_PATTERN, rekorBoundAttestation, rekorSeedAttestation, rekorResolvedToolsetSchema, REKOR_TOOL_KINDS_PARAM, REKOR_TOOL_KINDS_RESOLVE_SEARCH, resolvedRecordTypeSchema, reviewWritersSchema, sharedScopeSchema, resolvedFileToolSchema, rekorToolsetFileSchema, rekorToolsetFileUrlAnswerSchema, rekorToolsetFileListSchema, rekorToolsetFileGetSchema, rekorToolsetFilePutSchema, TOOLSET_CUSTOMER_FACING_REFUSAL_MARK, TOOLSET_CUSTOMER_FACING_REFUSAL, BASE_TOOLSET_ONLY_FOR_CUSTOMER_FACING, GENERIC_DATA_MCP_CUSTOMER_FACING_REFUSAL, GENERIC_DATA_API_CUSTOMER_FACING_REFUSAL;
|
|
6101
|
+
var init_chunk_ADED5YHZ = __esm({
|
|
6102
|
+
"../../packages/core/dist/chunk-ADED5YHZ.js"() {
|
|
6101
6103
|
"use strict";
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
+
init_chunk_T6D3YZ6B();
|
|
6105
|
+
init_chunk_SDOG6762();
|
|
6104
6106
|
init_zod();
|
|
6105
6107
|
TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
6106
6108
|
REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
|
|
@@ -6211,6 +6213,7 @@ var init_chunk_AOORZEAJ = __esm({
|
|
|
6211
6213
|
message: "The customer party is a listed party of person ids, on a call that is not staff's",
|
|
6212
6214
|
path: ["customer"]
|
|
6213
6215
|
});
|
|
6216
|
+
STATED_GENERATION_PATTERN = /^[1-9]\d{0,14}$/;
|
|
6214
6217
|
rekorBoundAttestation = rekorAttestation.extend({
|
|
6215
6218
|
[REKOR_ACTOR_TYPE_HEADER]: external_exports.enum(["token", "user"]),
|
|
6216
6219
|
/** Trimmed and checked as the far side trims and checks it. */
|
|
@@ -6219,11 +6222,7 @@ var init_chunk_AOORZEAJ = __esm({
|
|
|
6219
6222
|
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.literal("0"),
|
|
6220
6223
|
[REKOR_BOUND_BASE_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6221
6224
|
[REKOR_BOUND_TOOLSET_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6222
|
-
|
|
6223
|
-
* Decimal digits only, as the far side parses it, and at most 15 of them: its `Number()` reads
|
|
6224
|
-
* every such value back exactly, where a longer one may round or overflow to `Infinity` (a 400).
|
|
6225
|
-
*/
|
|
6226
|
-
[DATA_BASE_GENERATION_HEADER]: external_exports.string().regex(/^[1-9]\d{0,14}$/),
|
|
6225
|
+
[DATA_BASE_GENERATION_HEADER]: external_exports.string().regex(STATED_GENERATION_PATTERN),
|
|
6227
6226
|
/** The token the binding was resolved from, when the connection records it (owner decision 41). */
|
|
6228
6227
|
[REKOR_BOUND_TOKEN_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional(),
|
|
6229
6228
|
/**
|
|
@@ -6252,6 +6251,21 @@ var init_chunk_AOORZEAJ = __esm({
|
|
|
6252
6251
|
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [REKOR_ACTOR_TYPE_HEADER], message: "A person is attested only on a team page's call" });
|
|
6253
6252
|
}
|
|
6254
6253
|
});
|
|
6254
|
+
rekorSeedAttestation = rekorAttestation.extend({
|
|
6255
|
+
[REKOR_ACTOR_TYPE_HEADER]: external_exports.literal("token"),
|
|
6256
|
+
/** Trimmed and checked as the far side trims and checks it. */
|
|
6257
|
+
[REKOR_ACTOR_ID_HEADER]: external_exports.string().trim().min(1).max(REKOR_MAX_ACTOR_ID_LENGTH),
|
|
6258
|
+
[REKOR_ACTOR_LABEL_HEADER]: external_exports.string().max(REKOR_MAX_ACTOR_LABEL_LENGTH),
|
|
6259
|
+
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.literal("0"),
|
|
6260
|
+
[REKOR_BOUND_CAPABILITY_HEADER]: external_exports.literal(REKOR_BOUND_CAPABILITY_SEED),
|
|
6261
|
+
[REKOR_BOUND_BASE_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6262
|
+
[REKOR_BOUND_TOKEN_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6263
|
+
[DATA_BASE_GENERATION_HEADER]: external_exports.string().regex(STATED_GENERATION_PATTERN)
|
|
6264
|
+
}).strict().superRefine((bag, ctx) => {
|
|
6265
|
+
if (bag[REKOR_ACTOR_ID_HEADER] !== bag[REKOR_BOUND_TOKEN_HEADER]) {
|
|
6266
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [REKOR_ACTOR_ID_HEADER], message: "The seed form's actor is the token it names" });
|
|
6267
|
+
}
|
|
6268
|
+
});
|
|
6255
6269
|
rekorResolvedToolsetSchema = external_exports.object({
|
|
6256
6270
|
data: external_exports.object({
|
|
6257
6271
|
base_id: external_exports.string().min(1),
|
|
@@ -6359,13 +6373,13 @@ var init_chunk_AOORZEAJ = __esm({
|
|
|
6359
6373
|
}
|
|
6360
6374
|
});
|
|
6361
6375
|
|
|
6362
|
-
// ../../packages/core/dist/chunk-
|
|
6376
|
+
// ../../packages/core/dist/chunk-5A4FBWQS.js
|
|
6363
6377
|
var TOOLSET_ANSWER_PERSON_PARTIES, toolsetAnswerPersonSchema, toolsetAnswerPersonsSchema;
|
|
6364
|
-
var
|
|
6365
|
-
"../../packages/core/dist/chunk-
|
|
6378
|
+
var init_chunk_5A4FBWQS = __esm({
|
|
6379
|
+
"../../packages/core/dist/chunk-5A4FBWQS.js"() {
|
|
6366
6380
|
"use strict";
|
|
6367
|
-
|
|
6368
|
-
|
|
6381
|
+
init_chunk_ADED5YHZ();
|
|
6382
|
+
init_chunk_SDOG6762();
|
|
6369
6383
|
init_zod();
|
|
6370
6384
|
TOOLSET_ANSWER_PERSON_PARTIES = ["requester", "originator", "initiator", "delegator"];
|
|
6371
6385
|
toolsetAnswerPersonSchema = external_exports.object({
|
|
@@ -7719,12 +7733,12 @@ var init_chunk_FBV7NLKO = __esm({
|
|
|
7719
7733
|
}
|
|
7720
7734
|
});
|
|
7721
7735
|
|
|
7722
|
-
// ../../packages/core/dist/chunk-
|
|
7736
|
+
// ../../packages/core/dist/chunk-LMSJYN2R.js
|
|
7723
7737
|
var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
|
|
7724
|
-
var
|
|
7725
|
-
"../../packages/core/dist/chunk-
|
|
7738
|
+
var init_chunk_LMSJYN2R = __esm({
|
|
7739
|
+
"../../packages/core/dist/chunk-LMSJYN2R.js"() {
|
|
7726
7740
|
"use strict";
|
|
7727
|
-
|
|
7741
|
+
init_chunk_ADED5YHZ();
|
|
7728
7742
|
init_chunk_FBV7NLKO();
|
|
7729
7743
|
init_chunk_HZ6CADSY();
|
|
7730
7744
|
init_zod();
|
|
@@ -13108,7 +13122,7 @@ var init_chunk_2ISUBJG7 = __esm({
|
|
|
13108
13122
|
}
|
|
13109
13123
|
});
|
|
13110
13124
|
|
|
13111
|
-
// ../../packages/core/dist/chunk-
|
|
13125
|
+
// ../../packages/core/dist/chunk-66EZQ7Y7.js
|
|
13112
13126
|
function describeRole(role) {
|
|
13113
13127
|
if (typeof role === "string") {
|
|
13114
13128
|
return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
|
|
@@ -13287,10 +13301,10 @@ function terminalRunCount(counts) {
|
|
|
13287
13301
|
return counts.successful_runs + counts.failed_runs;
|
|
13288
13302
|
}
|
|
13289
13303
|
var evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, runJourneyQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, EVAL_PERSON_MAX, evalPersonSchema, EVAL_PERSON_ALIAS_RETIRED, EVAL_PERSON_ALIAS_REFUSED, evalBody, EVAL_LIST_MAX_LIMIT, evalListLimit, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, EVAL_MAX_SELECTED_SCENARIOS, evalScenarioSelectionEntrySchema, evalScenarioSelectionSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, evalSessionListConfigSchema, evalSessionListItemSchema, seedReleaseStatusSchema, EVAL_SESSION_NOT_QUIESCENT;
|
|
13290
|
-
var
|
|
13291
|
-
"../../packages/core/dist/chunk-
|
|
13304
|
+
var init_chunk_66EZQ7Y7 = __esm({
|
|
13305
|
+
"../../packages/core/dist/chunk-66EZQ7Y7.js"() {
|
|
13292
13306
|
"use strict";
|
|
13293
|
-
|
|
13307
|
+
init_chunk_SDOG6762();
|
|
13294
13308
|
init_chunk_2YEGUQR7();
|
|
13295
13309
|
init_chunk_4LXDRTO4();
|
|
13296
13310
|
init_chunk_WTOA3ANF();
|
|
@@ -14365,7 +14379,7 @@ var init_chunk_MO23HUAX = __esm({
|
|
|
14365
14379
|
}
|
|
14366
14380
|
});
|
|
14367
14381
|
|
|
14368
|
-
// ../../packages/core/dist/chunk-
|
|
14382
|
+
// ../../packages/core/dist/chunk-KXYJ46BM.js
|
|
14369
14383
|
function declaresNoConnection(agent) {
|
|
14370
14384
|
return agent.connection === null && !agent.connection_id;
|
|
14371
14385
|
}
|
|
@@ -15097,12 +15111,12 @@ function skillSectionsAsResources(scope) {
|
|
|
15097
15111
|
};
|
|
15098
15112
|
}
|
|
15099
15113
|
var MAX_10MB_BASE64_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_ENCODED_BYTES, MAX_EVAL_ATTACHMENT_CARRIERS, MAX_EVAL_ATTACHMENT_AGGREGATE_ENCODED_BYTES, MAX_RESOURCE_ENCODED_BYTES, MAX_HUB_AS_CODE_RESOURCES, MAX_HUB_AS_CODE_RESOURCE_FILES, MAX_RESOURCE_AGGREGATE_ENCODED_BYTES, MAX_CI_CONFIG_BODY_BYTES, MAX_HUB_AS_CODE_PAGE_MANIFEST_CHARS, hubAsCodePagesSchema, MAX_CALL_OPENING_CARRIERS, MAX_CALL_OPENING_AGGREGATE_ENCODED_BYTES, HUB_AS_CODE_AGENT_TOOL_KEYS, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, flagEntriesOf, boundedHubAsCodeResourcesSchema, isPlainObject, MIN_SKILLS_LAYOUT_CLI, MAX_HUB_AS_CODE_DEPTH, NAMED_DEPTH_SEGMENTS, NAMED_DEPTH_KEY_CHARS, fieldName, hubAsCodeConfigSchema, ciPullHubIdParam, ciBranchParam, ciPullQuery, ciHubsQuery, ciLookupQuery, ciBranchesQuery, ciSyncBody, ciPushBody, ciDiffBody, ciPublishBody, ciPublishPreviewBody, ciSyncMcpBody, ciOrgResourcesParam, orgResourcesConfigSchema, ciOrgResourcesPushBody, ciOrgResourcesDiffBody, CI_APPLY_ENTITY_KINDS, CI_APPLY_OPERATIONS, ciApplyErrorBaseSchema, ciApplyErrorSchema, ciSyncCountSchema, ciSyncChangesSchema, ciSyncWarningSchema, ciSyncResponseSchema;
|
|
15100
|
-
var
|
|
15101
|
-
"../../packages/core/dist/chunk-
|
|
15114
|
+
var init_chunk_KXYJ46BM = __esm({
|
|
15115
|
+
"../../packages/core/dist/chunk-KXYJ46BM.js"() {
|
|
15102
15116
|
"use strict";
|
|
15103
15117
|
init_chunk_YI3ORIXJ();
|
|
15104
|
-
|
|
15105
|
-
|
|
15118
|
+
init_chunk_T6D3YZ6B();
|
|
15119
|
+
init_chunk_66EZQ7Y7();
|
|
15106
15120
|
init_chunk_LBDH7LCG();
|
|
15107
15121
|
init_chunk_4LXDRTO4();
|
|
15108
15122
|
init_chunk_MO23HUAX();
|
|
@@ -15595,7 +15609,7 @@ var init_chunk_OMPT4ZHR = __esm({
|
|
|
15595
15609
|
}
|
|
15596
15610
|
});
|
|
15597
15611
|
|
|
15598
|
-
// ../../packages/core/dist/chunk-
|
|
15612
|
+
// ../../packages/core/dist/chunk-I3PBCSF4.js
|
|
15599
15613
|
function refineScopedTarget(data, ctx) {
|
|
15600
15614
|
if (data.scope === "org") {
|
|
15601
15615
|
if (!data.org_id) {
|
|
@@ -15620,9 +15634,9 @@ function refineScopedTarget(data, ctx) {
|
|
|
15620
15634
|
}
|
|
15621
15635
|
}
|
|
15622
15636
|
}
|
|
15623
|
-
var adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, PRICING_PLAN_ID_RE, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, MAX_VOICE_CALL_MINUTE_OPS, voiceCallMinuteOps, AUTOMATION_GATE_EVALUATIONS_PER_OPERATION_BOUND, automationGateEvaluationsPerOperation, AUTOMATION_RUN_RETENTION_DAYS_MAX, automationRunRetentionDays, turnDeadlineSeconds, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminDryRunByDefaultTargetBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCompedPlansBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, dataExplorerDebugCountsDoType, dataExplorerDebugCountsParam, debugHubConvParam, debugMessageIdQuery;
|
|
15624
|
-
var
|
|
15625
|
-
"../../packages/core/dist/chunk-
|
|
15637
|
+
var adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, PRICING_PLAN_ID_RE, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, MAX_VOICE_CALL_MINUTE_OPS, voiceCallMinuteOps, AUTOMATION_GATE_EVALUATIONS_PER_OPERATION_BOUND, automationGateEvaluationsPerOperation, AUTOMATION_RUN_RETENTION_DAYS_MAX, automationRunRetentionDays, turnDeadlineSeconds, casesLimit, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminDryRunByDefaultTargetBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCompedPlansBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, dataExplorerDebugCountsDoType, dataExplorerDebugCountsParam, debugHubConvParam, debugMessageIdQuery;
|
|
15638
|
+
var init_chunk_I3PBCSF4 = __esm({
|
|
15639
|
+
"../../packages/core/dist/chunk-I3PBCSF4.js"() {
|
|
15626
15640
|
"use strict";
|
|
15627
15641
|
init_chunk_FECLIZTY();
|
|
15628
15642
|
init_chunk_BFG4ZWR4();
|
|
@@ -15720,6 +15734,7 @@ var init_chunk_7ILN55YW = __esm({
|
|
|
15720
15734
|
AUTOMATION_RUN_RETENTION_DAYS_MAX = 3650;
|
|
15721
15735
|
automationRunRetentionDays = external_exports.number().int().min(1).max(AUTOMATION_RUN_RETENTION_DAYS_MAX);
|
|
15722
15736
|
turnDeadlineSeconds = external_exports.number().int().min(TURN_DEADLINE_SECONDS_FLOOR).max(TURN_DEADLINE_SECONDS_MAX);
|
|
15737
|
+
casesLimit = (bound) => external_exports.number().int().min(1).max(bound);
|
|
15723
15738
|
updatePlatformConfigBody = external_exports.object({
|
|
15724
15739
|
free_plan_max_free_orgs_per_user: external_exports.number().int().min(0).optional(),
|
|
15725
15740
|
/** Kill switch for admin debug-read endpoints. 0 = off, 1 = on. */
|
|
@@ -15759,6 +15774,22 @@ var init_chunk_7ILN55YW = __esm({
|
|
|
15759
15774
|
* `wayai admin communities enable|disable` flips this.
|
|
15760
15775
|
*/
|
|
15761
15776
|
communities_enabled: external_exports.number().int().min(0).max(1).optional(),
|
|
15777
|
+
/**
|
|
15778
|
+
* The cases kill switch (wayai#5921). 0 = off (the default), 1 = on. Not nested in
|
|
15779
|
+
* `threads_enabled`, so a threads shutdown can't stop approvals.
|
|
15780
|
+
* `wayai admin cases enable|disable` flips this.
|
|
15781
|
+
*/
|
|
15782
|
+
cases_enabled: external_exports.number().int().min(0).max(1).optional(),
|
|
15783
|
+
/** The Cases limits (`casesLimit`). */
|
|
15784
|
+
cases_per_space_max: casesLimit(1e4).optional(),
|
|
15785
|
+
cases_spaces_per_org_max: casesLimit(100).optional(),
|
|
15786
|
+
cases_revisions_per_case_max: casesLimit(2e4).optional(),
|
|
15787
|
+
cases_files_per_case_max: casesLimit(2e4).optional(),
|
|
15788
|
+
cases_comments_notes_per_case_max: casesLimit(2e4).optional(),
|
|
15789
|
+
cases_verdicts_per_case_max: casesLimit(5e4).optional(),
|
|
15790
|
+
cases_space_bytes_quota: casesLimit(1024 ** 4).optional(),
|
|
15791
|
+
cases_note_max_bytes: casesLimit(64 * 1024).optional(),
|
|
15792
|
+
cases_verdict_reason_max_bytes: casesLimit(16 * 1024).optional(),
|
|
15762
15793
|
/** How many automation gate evaluations bill one operation (`automationGateEvaluationsPerOperation`). */
|
|
15763
15794
|
automation_gate_evaluations_per_operation: automationGateEvaluationsPerOperation.optional(),
|
|
15764
15795
|
/** How many days a hub keeps an automation's runs (`automationRunRetentionDays`). */
|
|
@@ -16398,15 +16429,15 @@ var init_contracts = __esm({
|
|
|
16398
16429
|
init_chunk_MF2VVXBR();
|
|
16399
16430
|
init_chunk_IPXBFWUU();
|
|
16400
16431
|
init_chunk_P5GJNS5R();
|
|
16401
|
-
|
|
16432
|
+
init_chunk_5A4FBWQS();
|
|
16402
16433
|
init_chunk_ZC6YGHNX();
|
|
16403
16434
|
init_chunk_5DGHIY7L();
|
|
16404
16435
|
init_chunk_UVGO72D6();
|
|
16405
16436
|
init_chunk_IPDOHAZ5();
|
|
16406
16437
|
init_chunk_PFGVH2CX();
|
|
16407
16438
|
init_chunk_GPM7PE44();
|
|
16408
|
-
|
|
16409
|
-
|
|
16439
|
+
init_chunk_LMSJYN2R();
|
|
16440
|
+
init_chunk_ADED5YHZ();
|
|
16410
16441
|
init_chunk_ZXK6N2HN();
|
|
16411
16442
|
init_chunk_Y7CFCYX4();
|
|
16412
16443
|
init_chunk_MGBAXT5Y();
|
|
@@ -16436,17 +16467,17 @@ var init_contracts = __esm({
|
|
|
16436
16467
|
init_chunk_E4DIIOOE();
|
|
16437
16468
|
init_chunk_7CYHPF35();
|
|
16438
16469
|
init_chunk_NETRUHZF();
|
|
16439
|
-
|
|
16470
|
+
init_chunk_KXYJ46BM();
|
|
16440
16471
|
init_chunk_YI3ORIXJ();
|
|
16441
|
-
|
|
16442
|
-
|
|
16443
|
-
|
|
16472
|
+
init_chunk_T6D3YZ6B();
|
|
16473
|
+
init_chunk_66EZQ7Y7();
|
|
16474
|
+
init_chunk_SDOG6762();
|
|
16444
16475
|
init_chunk_2YEGUQR7();
|
|
16445
16476
|
init_chunk_LBDH7LCG();
|
|
16446
16477
|
init_chunk_4LXDRTO4();
|
|
16447
16478
|
init_chunk_JDJ4EUOL();
|
|
16448
16479
|
init_chunk_NVKU5PPQ();
|
|
16449
|
-
|
|
16480
|
+
init_chunk_I3PBCSF4();
|
|
16450
16481
|
init_chunk_FECLIZTY();
|
|
16451
16482
|
init_chunk_BFG4ZWR4();
|
|
16452
16483
|
init_chunk_2R5D4TEX();
|
|
@@ -17883,6 +17914,9 @@ var init_utils = __esm({
|
|
|
17883
17914
|
["admin threads enable", { positionals: 0 }],
|
|
17884
17915
|
["admin threads disable", { positionals: 0 }],
|
|
17885
17916
|
["admin threads status", { positionals: 0 }],
|
|
17917
|
+
["admin cases enable", { positionals: 0 }],
|
|
17918
|
+
["admin cases disable", { positionals: 0 }],
|
|
17919
|
+
["admin cases status", { positionals: 0 }],
|
|
17886
17920
|
["admin communities enable", { positionals: 0 }],
|
|
17887
17921
|
["admin communities disable", { positionals: 0 }],
|
|
17888
17922
|
["admin communities status", { positionals: 0 }],
|
|
@@ -21849,8 +21883,8 @@ var init_pages2 = __esm({
|
|
|
21849
21883
|
var init_evals = __esm({
|
|
21850
21884
|
"../../packages/core/dist/contracts/evals.js"() {
|
|
21851
21885
|
"use strict";
|
|
21852
|
-
|
|
21853
|
-
|
|
21886
|
+
init_chunk_66EZQ7Y7();
|
|
21887
|
+
init_chunk_SDOG6762();
|
|
21854
21888
|
init_chunk_2YEGUQR7();
|
|
21855
21889
|
init_chunk_4LXDRTO4();
|
|
21856
21890
|
init_chunk_WTOA3ANF();
|
|
@@ -22877,11 +22911,11 @@ var init_hub_materializer = __esm({
|
|
|
22877
22911
|
var init_ci = __esm({
|
|
22878
22912
|
"../../packages/core/dist/contracts/ci.js"() {
|
|
22879
22913
|
"use strict";
|
|
22880
|
-
|
|
22914
|
+
init_chunk_KXYJ46BM();
|
|
22881
22915
|
init_chunk_YI3ORIXJ();
|
|
22882
|
-
|
|
22883
|
-
|
|
22884
|
-
|
|
22916
|
+
init_chunk_T6D3YZ6B();
|
|
22917
|
+
init_chunk_66EZQ7Y7();
|
|
22918
|
+
init_chunk_SDOG6762();
|
|
22885
22919
|
init_chunk_2YEGUQR7();
|
|
22886
22920
|
init_chunk_LBDH7LCG();
|
|
22887
22921
|
init_chunk_4LXDRTO4();
|
|
@@ -38081,6 +38115,26 @@ async function adminCommand(args2) {
|
|
|
38081
38115
|
process.exit(1);
|
|
38082
38116
|
}
|
|
38083
38117
|
}
|
|
38118
|
+
if (group === "cases") {
|
|
38119
|
+
if (!sub) {
|
|
38120
|
+
printHelp2();
|
|
38121
|
+
process.exit(1);
|
|
38122
|
+
}
|
|
38123
|
+
switch (sub) {
|
|
38124
|
+
case "enable":
|
|
38125
|
+
await runCasesToggle(true, flagArgs);
|
|
38126
|
+
return;
|
|
38127
|
+
case "disable":
|
|
38128
|
+
await runCasesToggle(false, flagArgs);
|
|
38129
|
+
return;
|
|
38130
|
+
case "status":
|
|
38131
|
+
await runPlatformGateStatus(CASES_GATE, flagArgs);
|
|
38132
|
+
return;
|
|
38133
|
+
default:
|
|
38134
|
+
printHelp2();
|
|
38135
|
+
process.exit(1);
|
|
38136
|
+
}
|
|
38137
|
+
}
|
|
38084
38138
|
if (group === "communities") {
|
|
38085
38139
|
if (!sub) {
|
|
38086
38140
|
printHelp2();
|
|
@@ -39202,6 +39256,10 @@ async function runThreadsToggle(enable, flagArgs) {
|
|
|
39202
39256
|
}
|
|
39203
39257
|
console.log(PLATFORM_CONFIG_PROPAGATION_NOTE);
|
|
39204
39258
|
}
|
|
39259
|
+
async function runCasesToggle(enable, flagArgs) {
|
|
39260
|
+
await runPlatformGateToggle(CASES_GATE, enable, flagArgs);
|
|
39261
|
+
console.log(PLATFORM_CONFIG_PROPAGATION_NOTE);
|
|
39262
|
+
}
|
|
39205
39263
|
async function runCommunitiesToggle(enable, flagArgs) {
|
|
39206
39264
|
await runPlatformGateToggle(COMMUNITIES_GATE, enable, flagArgs);
|
|
39207
39265
|
if (enable) {
|
|
@@ -40176,6 +40234,10 @@ Usage:
|
|
|
40176
40234
|
wayai admin threads disable Flip it OFF: every /api/contacts route answers 404
|
|
40177
40235
|
wayai admin threads status Print the kill switch
|
|
40178
40236
|
|
|
40237
|
+
wayai admin cases enable Flip the platform cases_enabled kill switch ON
|
|
40238
|
+
wayai admin cases disable Flip it OFF
|
|
40239
|
+
wayai admin cases status Print the kill switch
|
|
40240
|
+
|
|
40179
40241
|
wayai admin communities enable Flip the platform communities_enabled kill switch ON (members reach communities while threads is ON too)
|
|
40180
40242
|
wayai admin communities disable Flip it OFF: no member reaches a community
|
|
40181
40243
|
wayai admin communities status Print the kill switch
|
|
@@ -40285,6 +40347,9 @@ Sources:
|
|
|
40285
40347
|
(\`enable\`/\`disable\`) for contacts, direct messages and groups between
|
|
40286
40348
|
people. Off, every /api/contacts route answers 404. Changes land within
|
|
40287
40349
|
about 60 s.
|
|
40350
|
+
cases The cases gate, default-deny: the PLATFORM-wide cases_enabled switch
|
|
40351
|
+
(\`enable\`/\`disable\`), independent of threads. Changes land within about
|
|
40352
|
+
60 s.
|
|
40288
40353
|
communities Org-owned communities. \`enable\`/\`disable\` flip the PLATFORM-wide
|
|
40289
40354
|
communities_enabled switch, default-deny and nested in threads: members
|
|
40290
40355
|
reach a community only while both switches are on. \`create\` makes a
|
|
@@ -40340,7 +40405,7 @@ Audit + rate limit:
|
|
|
40340
40405
|
across all sources. Platform-admin grant required.
|
|
40341
40406
|
`.trim());
|
|
40342
40407
|
}
|
|
40343
|
-
var VALID_TYPES, VALID_ANALYTICS_TABLES, HARNESS_GATE, VOICE_CALLS_GATE, THREADS_GATE, COMMUNITIES_GATE, PLATFORM_CONFIG_PROPAGATION_NOTE, VAULT_GATE_CONNECTORS, VAULT_GATE_BY_ID_ONLY, VALID_NOTICE_SEVERITIES;
|
|
40408
|
+
var VALID_TYPES, VALID_ANALYTICS_TABLES, HARNESS_GATE, VOICE_CALLS_GATE, THREADS_GATE, COMMUNITIES_GATE, CASES_GATE, PLATFORM_CONFIG_PROPAGATION_NOTE, VAULT_GATE_CONNECTORS, VAULT_GATE_BY_ID_ONLY, VALID_NOTICE_SEVERITIES;
|
|
40344
40409
|
var init_admin = __esm({
|
|
40345
40410
|
"src/commands/admin.ts"() {
|
|
40346
40411
|
"use strict";
|
|
@@ -40382,6 +40447,12 @@ var init_admin = __esm({
|
|
|
40382
40447
|
label: "communities kill switch",
|
|
40383
40448
|
displayName: "Communities"
|
|
40384
40449
|
};
|
|
40450
|
+
CASES_GATE = {
|
|
40451
|
+
group: "cases",
|
|
40452
|
+
key: "cases_enabled",
|
|
40453
|
+
label: "cases kill switch",
|
|
40454
|
+
displayName: "Cases"
|
|
40455
|
+
};
|
|
40385
40456
|
PLATFORM_CONFIG_PROPAGATION_NOTE = "Takes effect within about 60 s (the platform-config cache is dropped; KV deletes propagate eventually).";
|
|
40386
40457
|
VAULT_GATE_CONNECTORS = /* @__PURE__ */ new Map([
|
|
40387
40458
|
["telegram", ["a1b2c3d4-e5f6-4a89-b012-3e5e0d000002"]],
|