@wayai/cli 0.3.308 → 0.3.310
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 +159 -68
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6084,7 +6084,7 @@ var init_chunk_T6D3YZ6B = __esm({
|
|
|
6084
6084
|
}
|
|
6085
6085
|
});
|
|
6086
6086
|
|
|
6087
|
-
// ../../packages/core/dist/chunk-
|
|
6087
|
+
// ../../packages/core/dist/chunk-HBWJDXLP.js
|
|
6088
6088
|
function boundCustomerPartyIsValid(audience, parties, customer) {
|
|
6089
6089
|
return audience !== REKOR_PERSON_AUDIENCE_STAFF && customer < parties.length && Array.isArray(parties[customer]);
|
|
6090
6090
|
}
|
|
@@ -6097,9 +6097,9 @@ function isEncodedBoundPerson(raw) {
|
|
|
6097
6097
|
}
|
|
6098
6098
|
return rekorBoundPersonSchema.safeParse(parsed).success;
|
|
6099
6099
|
}
|
|
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
|
|
6102
|
-
"../../packages/core/dist/chunk-
|
|
6100
|
+
var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, seedConnectionBindingSchema, rekorSeedBindingSchema, 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_HBWJDXLP = __esm({
|
|
6102
|
+
"../../packages/core/dist/chunk-HBWJDXLP.js"() {
|
|
6103
6103
|
"use strict";
|
|
6104
6104
|
init_chunk_T6D3YZ6B();
|
|
6105
6105
|
init_chunk_SDOG6762();
|
|
@@ -6185,11 +6185,27 @@ var init_chunk_ADED5YHZ = __esm({
|
|
|
6185
6185
|
* The id of the token the binding was resolved from, as its resolve reports it; a bound attested
|
|
6186
6186
|
* call names it (`REKOR_BOUND_TOKEN_HEADER`), so the data product refuses the binding once the token
|
|
6187
6187
|
* is revoked or expires (owner decision 41). Absent on a binding recorded before the report carried
|
|
6188
|
-
* it: its calls name none until a token save
|
|
6189
|
-
*
|
|
6188
|
+
* it: its calls name none until a token save records it. One that does not read is dropped rather than
|
|
6189
|
+
* failing the binding.
|
|
6190
6190
|
*/
|
|
6191
6191
|
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
6192
6192
|
});
|
|
6193
|
+
seedConnectionBindingSchema = external_exports.object({
|
|
6194
|
+
/** The one base it reaches: the eval's `target_base` when it was recorded. */
|
|
6195
|
+
base_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6196
|
+
/** That base's incarnation when it was recorded; every call states it. */
|
|
6197
|
+
generation: external_exports.number().int().min(1),
|
|
6198
|
+
/** The id of the token it stands in for; every call names it, and is held to it. */
|
|
6199
|
+
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN)
|
|
6200
|
+
});
|
|
6201
|
+
rekorSeedBindingSchema = external_exports.object({
|
|
6202
|
+
data: external_exports.object({
|
|
6203
|
+
org_id: external_exports.string().min(1),
|
|
6204
|
+
base_id: external_exports.string().min(1),
|
|
6205
|
+
base_generation: external_exports.number().int().min(1),
|
|
6206
|
+
token_id: external_exports.string().min(1)
|
|
6207
|
+
})
|
|
6208
|
+
});
|
|
6193
6209
|
rekorToolsetToolsSchema = external_exports.object({
|
|
6194
6210
|
data: external_exports.object({
|
|
6195
6211
|
tools: external_exports.array(external_exports.object({
|
|
@@ -6373,12 +6389,12 @@ var init_chunk_ADED5YHZ = __esm({
|
|
|
6373
6389
|
}
|
|
6374
6390
|
});
|
|
6375
6391
|
|
|
6376
|
-
// ../../packages/core/dist/chunk-
|
|
6392
|
+
// ../../packages/core/dist/chunk-CLYMQMQH.js
|
|
6377
6393
|
var TOOLSET_ANSWER_PERSON_PARTIES, toolsetAnswerPersonSchema, toolsetAnswerPersonsSchema;
|
|
6378
|
-
var
|
|
6379
|
-
"../../packages/core/dist/chunk-
|
|
6394
|
+
var init_chunk_CLYMQMQH = __esm({
|
|
6395
|
+
"../../packages/core/dist/chunk-CLYMQMQH.js"() {
|
|
6380
6396
|
"use strict";
|
|
6381
|
-
|
|
6397
|
+
init_chunk_HBWJDXLP();
|
|
6382
6398
|
init_chunk_SDOG6762();
|
|
6383
6399
|
init_zod();
|
|
6384
6400
|
TOOLSET_ANSWER_PERSON_PARTIES = ["requester", "originator", "initiator", "delegator"];
|
|
@@ -7733,12 +7749,12 @@ var init_chunk_FBV7NLKO = __esm({
|
|
|
7733
7749
|
}
|
|
7734
7750
|
});
|
|
7735
7751
|
|
|
7736
|
-
// ../../packages/core/dist/chunk-
|
|
7752
|
+
// ../../packages/core/dist/chunk-CHXSDXBE.js
|
|
7737
7753
|
var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
|
|
7738
|
-
var
|
|
7739
|
-
"../../packages/core/dist/chunk-
|
|
7754
|
+
var init_chunk_CHXSDXBE = __esm({
|
|
7755
|
+
"../../packages/core/dist/chunk-CHXSDXBE.js"() {
|
|
7740
7756
|
"use strict";
|
|
7741
|
-
|
|
7757
|
+
init_chunk_HBWJDXLP();
|
|
7742
7758
|
init_chunk_FBV7NLKO();
|
|
7743
7759
|
init_chunk_HZ6CADSY();
|
|
7744
7760
|
init_zod();
|
|
@@ -10087,7 +10103,7 @@ var init_chunk_JHUTFQDO = __esm({
|
|
|
10087
10103
|
}
|
|
10088
10104
|
});
|
|
10089
10105
|
|
|
10090
|
-
// ../../packages/core/dist/chunk-
|
|
10106
|
+
// ../../packages/core/dist/chunk-7IKO675N.js
|
|
10091
10107
|
function spokenLineField(label2, description2) {
|
|
10092
10108
|
return { type: "text", label: label2, maxLength: SPOKEN_LINE_MAX_CHARS, default: "", description: description2 };
|
|
10093
10109
|
}
|
|
@@ -10097,8 +10113,8 @@ function byLowercaseName(a, b) {
|
|
|
10097
10113
|
return x < y ? -1 : x > y ? 1 : 0;
|
|
10098
10114
|
}
|
|
10099
10115
|
var CALLER_LANGUAGE, GIT_CHECKOUT_MAX_LENGTH, TTS_VOICE_REPLY_ENABLED_FIELD, decisionsImageInputField, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, WHATSAPP_CONNECTOR, INSTAGRAM_CONNECTOR, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, typesafe, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS, HARNESS_EGRESS_FIELDS, claudeManagedAgents, SPOKEN_LINE_MAX_CHARS, gptLive, CONNECTORS;
|
|
10100
|
-
var
|
|
10101
|
-
"../../packages/core/dist/chunk-
|
|
10116
|
+
var init_chunk_7IKO675N = __esm({
|
|
10117
|
+
"../../packages/core/dist/chunk-7IKO675N.js"() {
|
|
10102
10118
|
"use strict";
|
|
10103
10119
|
CALLER_LANGUAGE = "caller";
|
|
10104
10120
|
GIT_CHECKOUT_MAX_LENGTH = 255;
|
|
@@ -10980,7 +10996,7 @@ var init_chunk_5SDIIQVO = __esm({
|
|
|
10980
10996
|
connector_credential_schema: {
|
|
10981
10997
|
bearer: {
|
|
10982
10998
|
connection_display_name: { type: "text", label: "Connection Name", placeholder: "Support knowledge", description: "This name will be used to identify the connection in the system", required: true },
|
|
10983
|
-
access_token: { type: "password", label: "Toolset Token", placeholder: "rec_\u2026", description: "An API token bound to this toolset. It must be for a base of this hub's environment: a preview hub
|
|
10999
|
+
access_token: { type: "password", label: "Toolset Token", placeholder: "rec_\u2026", description: "An API token bound to this toolset. It must be for a base of this hub's environment: a preview hub takes a preview base's token, a production hub a production base's.", required: true, maskInEdit: true, useExistingPlaceholder: "__USE_EXISTING_ACCESS_TOKEN__" }
|
|
10984
11000
|
}
|
|
10985
11001
|
},
|
|
10986
11002
|
token_refresh_config: { bearer: { strategy: "none" } },
|
|
@@ -11116,13 +11132,13 @@ var init_chunk_5SDIIQVO = __esm({
|
|
|
11116
11132
|
}
|
|
11117
11133
|
});
|
|
11118
11134
|
|
|
11119
|
-
// ../../packages/core/dist/chunk-
|
|
11135
|
+
// ../../packages/core/dist/chunk-55RZ7YIF.js
|
|
11120
11136
|
var COUNTER_KEYS, STT_PRICING, CONTAINER_PRICING, connectorById, nativeToolById;
|
|
11121
|
-
var
|
|
11122
|
-
"../../packages/core/dist/chunk-
|
|
11137
|
+
var init_chunk_55RZ7YIF = __esm({
|
|
11138
|
+
"../../packages/core/dist/chunk-55RZ7YIF.js"() {
|
|
11123
11139
|
"use strict";
|
|
11124
11140
|
init_chunk_JHUTFQDO();
|
|
11125
|
-
|
|
11141
|
+
init_chunk_7IKO675N();
|
|
11126
11142
|
init_chunk_MIWZOSPI();
|
|
11127
11143
|
COUNTER_KEYS = Object.keys({
|
|
11128
11144
|
input_tokens: true,
|
|
@@ -11245,7 +11261,7 @@ var init_chunk_L5F7ZOUJ = __esm({
|
|
|
11245
11261
|
}
|
|
11246
11262
|
});
|
|
11247
11263
|
|
|
11248
|
-
// ../../packages/core/dist/chunk-
|
|
11264
|
+
// ../../packages/core/dist/chunk-7IXDF53E.js
|
|
11249
11265
|
function normalizeDecisionsModelId(modelId) {
|
|
11250
11266
|
return modelId.trim().toLowerCase();
|
|
11251
11267
|
}
|
|
@@ -11316,10 +11332,10 @@ function readAgentSettingsModel(agentSettings) {
|
|
|
11316
11332
|
return typeof model === "string" ? model : null;
|
|
11317
11333
|
}
|
|
11318
11334
|
var DECISIONS_MODEL_PREFIXES, DECISION_CAPABLE_AGENT_ROLES;
|
|
11319
|
-
var
|
|
11320
|
-
"../../packages/core/dist/chunk-
|
|
11335
|
+
var init_chunk_7IXDF53E = __esm({
|
|
11336
|
+
"../../packages/core/dist/chunk-7IXDF53E.js"() {
|
|
11321
11337
|
"use strict";
|
|
11322
|
-
|
|
11338
|
+
init_chunk_55RZ7YIF();
|
|
11323
11339
|
init_chunk_L5F7ZOUJ();
|
|
11324
11340
|
DECISIONS_MODEL_PREFIXES = ["typesafe/jev-", "jev-"];
|
|
11325
11341
|
DECISION_CAPABLE_AGENT_ROLES = [
|
|
@@ -11330,7 +11346,7 @@ var init_chunk_R3OKBQMZ = __esm({
|
|
|
11330
11346
|
}
|
|
11331
11347
|
});
|
|
11332
11348
|
|
|
11333
|
-
// ../../packages/core/dist/chunk-
|
|
11349
|
+
// ../../packages/core/dist/chunk-L4YFOZGK.js
|
|
11334
11350
|
function resolveMonitorTrigger(monitorConfig) {
|
|
11335
11351
|
if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
|
|
11336
11352
|
const raw = monitorConfig.trigger;
|
|
@@ -11636,14 +11652,14 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
|
|
|
11636
11652
|
if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
|
|
11637
11653
|
}
|
|
11638
11654
|
var previousConversationsCountField, summarizationThresholdField, flagConditionSchema, MONITOR_TRIGGERS, monitorTriggerSchema, AUTOMATION_GATE_TRIGGERS, NON_FIRING_TRIGGERS, MONITOR_FIRING_TRIGGERS, MONITOR_DELAY_SECONDS_MIN, MONITOR_IDLE_DELAY_REQUIRED_MESSAGE, MONITOR_HISTORY_MESSAGES_MAX, monitorHistoryMessagesSchema, monitorIncludeToolResultsSchema, MONITOR_INPUT_SHAPING_KEYS, MONITOR_INPUT_SHAPING_SCHEMAS, MONITOR_INPUT_SHAPING_IDLE_MESSAGE, monitorArgumentSourceSchema, MONITOR_NOTE_TEMPLATE_MAX, MONITOR_STEER_NOTE_MAX, MONITOR_GATE_AGENT_NAME_MAX, monitorActionSchema, monitorRuleSchema, MONITOR_RULE_KEYS, MONITOR_RULE_SCHEMAS, MONITOR_RULE_TRIGGERS, MONITOR_RULE_TRIGGER_MESSAGE, CALL_UTTERANCE_SPEAKERS, callUtteranceSpeakerSchema, MONITOR_CALL_KEYS, MONITOR_CALL_SCHEMAS, MONITOR_CALL_KEY_MESSAGE, CALL_STEERING_MIN_CONFIDENCE, CALL_UTTERANCE_RULE_NOT_CONFIDENT_MESSAGE, CALL_UTTERANCE_FALLBACK_MESSAGE, CALL_UTTERANCE_FLAG_CONDITIONS_MESSAGE, CALL_STEER_NOTE_BLANK_MESSAGE, MONITOR_USER_MESSAGE_ACTION_KINDS, MONITOR_ASSISTANT_REPLY_ACTION_KINDS, MONITOR_CALL_UTTERANCE_ACTION_KINDS, MONITOR_AUTOMATION_FIRE_ACTION_KINDS, MONITOR_AUTOMATION_ITEM_ACTION_KINDS, INSERT_NOTE_TOOL_NAME, RUN_MONITOR_TOOL_NAME, MONITOR_RULE_ALLOWED_NATIVE_TOOLS, MONITOR_RULE_REENTRY_TOOLS, MONITOR_RULE_REENTRY_TRACKS, AUTOMATION_FIRE_FLAG_CONDITIONS_MESSAGE, AUTOMATION_FIRE_INPUT_SHAPING_MESSAGE, AUTOMATION_ITEM_FLAG_CONDITIONS_MESSAGE, AUTOMATION_ITEM_INPUT_SHAPING_MESSAGE, AUTOMATION_GATE_KEY_MESSAGES, monitorConfigField, flagConditionsField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody;
|
|
11639
|
-
var
|
|
11640
|
-
"../../packages/core/dist/chunk-
|
|
11655
|
+
var init_chunk_L4YFOZGK = __esm({
|
|
11656
|
+
"../../packages/core/dist/chunk-L4YFOZGK.js"() {
|
|
11641
11657
|
"use strict";
|
|
11642
11658
|
init_chunk_IBL7FANV();
|
|
11643
11659
|
init_chunk_KB5RK3RP();
|
|
11644
11660
|
init_chunk_C2UEA2KW();
|
|
11645
11661
|
init_chunk_HZ6CADSY();
|
|
11646
|
-
|
|
11662
|
+
init_chunk_7IXDF53E();
|
|
11647
11663
|
init_chunk_JHUTFQDO();
|
|
11648
11664
|
init_chunk_YROEDMVZ();
|
|
11649
11665
|
init_chunk_L5F7ZOUJ();
|
|
@@ -11861,12 +11877,12 @@ var init_chunk_FGNMHILL = __esm({
|
|
|
11861
11877
|
}
|
|
11862
11878
|
});
|
|
11863
11879
|
|
|
11864
|
-
// ../../packages/core/dist/chunk-
|
|
11880
|
+
// ../../packages/core/dist/chunk-65MH4JRN.js
|
|
11865
11881
|
var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
|
|
11866
|
-
var
|
|
11867
|
-
"../../packages/core/dist/chunk-
|
|
11882
|
+
var init_chunk_65MH4JRN = __esm({
|
|
11883
|
+
"../../packages/core/dist/chunk-65MH4JRN.js"() {
|
|
11868
11884
|
"use strict";
|
|
11869
|
-
|
|
11885
|
+
init_chunk_L4YFOZGK();
|
|
11870
11886
|
init_chunk_HZ6CADSY();
|
|
11871
11887
|
init_chunk_YROEDMVZ();
|
|
11872
11888
|
init_zod();
|
|
@@ -12395,14 +12411,14 @@ var init_chunk_E4DIIOOE = __esm({
|
|
|
12395
12411
|
}
|
|
12396
12412
|
});
|
|
12397
12413
|
|
|
12398
|
-
// ../../packages/core/dist/chunk-
|
|
12414
|
+
// ../../packages/core/dist/chunk-I2EVH3FR.js
|
|
12399
12415
|
var evalCallInstant, EVAL_CALL_MIN_SECONDS, EVAL_CALL_MAX_SECONDS, EVAL_CALL_SPOKEN_LINE_MAX_CHARS, hubScoped2, createEvalCallBody, createEvalCallResponse, evalCallConversationQuery, evalCallRecordQuery, evalCallSpeaker, evalCallUtterance, evalCallTurn, evalCallRecording, evalCallRecordResponse, evalCallFinishResponse;
|
|
12400
|
-
var
|
|
12401
|
-
"../../packages/core/dist/chunk-
|
|
12416
|
+
var init_chunk_I2EVH3FR = __esm({
|
|
12417
|
+
"../../packages/core/dist/chunk-I2EVH3FR.js"() {
|
|
12402
12418
|
"use strict";
|
|
12403
12419
|
init_chunk_E4DIIOOE();
|
|
12404
12420
|
init_chunk_HZ6CADSY();
|
|
12405
|
-
|
|
12421
|
+
init_chunk_7IKO675N();
|
|
12406
12422
|
init_chunk_MIWZOSPI();
|
|
12407
12423
|
init_zod();
|
|
12408
12424
|
evalCallInstant = timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp");
|
|
@@ -14379,7 +14395,7 @@ var init_chunk_MO23HUAX = __esm({
|
|
|
14379
14395
|
}
|
|
14380
14396
|
});
|
|
14381
14397
|
|
|
14382
|
-
// ../../packages/core/dist/chunk-
|
|
14398
|
+
// ../../packages/core/dist/chunk-KOLSAPLZ.js
|
|
14383
14399
|
function declaresNoConnection(agent) {
|
|
14384
14400
|
return agent.connection === null && !agent.connection_id;
|
|
14385
14401
|
}
|
|
@@ -15111,8 +15127,8 @@ function skillSectionsAsResources(scope) {
|
|
|
15111
15127
|
};
|
|
15112
15128
|
}
|
|
15113
15129
|
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;
|
|
15114
|
-
var
|
|
15115
|
-
"../../packages/core/dist/chunk-
|
|
15130
|
+
var init_chunk_KOLSAPLZ = __esm({
|
|
15131
|
+
"../../packages/core/dist/chunk-KOLSAPLZ.js"() {
|
|
15116
15132
|
"use strict";
|
|
15117
15133
|
init_chunk_YI3ORIXJ();
|
|
15118
15134
|
init_chunk_T6D3YZ6B();
|
|
@@ -15122,13 +15138,13 @@ var init_chunk_KXYJ46BM = __esm({
|
|
|
15122
15138
|
init_chunk_MO23HUAX();
|
|
15123
15139
|
init_chunk_X5PZZVTS();
|
|
15124
15140
|
init_chunk_K5UAZWFF();
|
|
15125
|
-
|
|
15141
|
+
init_chunk_L4YFOZGK();
|
|
15126
15142
|
init_chunk_S4VDZ7PZ();
|
|
15127
15143
|
init_chunk_C2UEA2KW();
|
|
15128
15144
|
init_chunk_FBV7NLKO();
|
|
15129
15145
|
init_chunk_WEXVYJ5H();
|
|
15130
15146
|
init_chunk_HZ6CADSY();
|
|
15131
|
-
|
|
15147
|
+
init_chunk_7IXDF53E();
|
|
15132
15148
|
init_chunk_YROEDMVZ();
|
|
15133
15149
|
init_zod();
|
|
15134
15150
|
MAX_10MB_BASE64_ENCODED_BYTES = Math.ceil(MAX_RESOURCE_FILE_SIZE / 3) * 4 + 16;
|
|
@@ -16178,16 +16194,16 @@ var init_chunk_R6Y377AW = __esm({
|
|
|
16178
16194
|
}
|
|
16179
16195
|
});
|
|
16180
16196
|
|
|
16181
|
-
// ../../packages/core/dist/chunk-
|
|
16197
|
+
// ../../packages/core/dist/chunk-FXIVKOSV.js
|
|
16182
16198
|
var AUTOMATION_TRIGGER_TYPES, AUTOMATION_EVENT_TYPES, AUTOMATION_TARGET_TYPES, AUTOMATION_ACTION_TYPES, AUTOMATION_CHANNEL_TYPES, AUTOMATION_PURPOSES, AUTOMATION_NAME_MAX, AUTOMATION_DESCRIPTION_MAX, AUTOMATION_INSTRUCTIONS_MAX, AUTOMATION_TEXT_MAX, AUTOMATION_CRON_MAX, AUTOMATION_WEBHOOK_AUTHS, AUTOMATION_WEBHOOK_HEADERS, AUTOMATION_WEBHOOK_BODY_MAX_BYTES, AUTOMATION_WEBHOOK_HEADER_NAME_MAX, WEBHOOK_RESERVED_HEADERS, automationTriggerSchema, automationTargetSchema, automationActionSchema, automationGateSchema, automationName, automationDescription, automationIdParam, automationHubQuery, automationWebhookParams, AUTOMATION_RUNS_PAGE_MAX, listAutomationRunsQuery, createAutomationBody, updateAutomationBody, AUTOMATION_ALERT_CATEGORIES, AUTOMATION_BLOCKED_ALERT_CATEGORY, automationEventSubscriberParam;
|
|
16183
|
-
var
|
|
16184
|
-
"../../packages/core/dist/chunk-
|
|
16199
|
+
var init_chunk_FXIVKOSV = __esm({
|
|
16200
|
+
"../../packages/core/dist/chunk-FXIVKOSV.js"() {
|
|
16185
16201
|
"use strict";
|
|
16186
16202
|
init_chunk_R6Y377AW();
|
|
16187
16203
|
init_chunk_UAOHHCW5();
|
|
16188
|
-
|
|
16204
|
+
init_chunk_L4YFOZGK();
|
|
16189
16205
|
init_chunk_5FO3GNKP();
|
|
16190
|
-
|
|
16206
|
+
init_chunk_7IXDF53E();
|
|
16191
16207
|
init_chunk_YROEDMVZ();
|
|
16192
16208
|
init_zod();
|
|
16193
16209
|
AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
|
|
@@ -16429,15 +16445,15 @@ var init_contracts = __esm({
|
|
|
16429
16445
|
init_chunk_MF2VVXBR();
|
|
16430
16446
|
init_chunk_IPXBFWUU();
|
|
16431
16447
|
init_chunk_P5GJNS5R();
|
|
16432
|
-
|
|
16448
|
+
init_chunk_CLYMQMQH();
|
|
16433
16449
|
init_chunk_ZC6YGHNX();
|
|
16434
16450
|
init_chunk_5DGHIY7L();
|
|
16435
16451
|
init_chunk_UVGO72D6();
|
|
16436
16452
|
init_chunk_IPDOHAZ5();
|
|
16437
16453
|
init_chunk_PFGVH2CX();
|
|
16438
16454
|
init_chunk_GPM7PE44();
|
|
16439
|
-
|
|
16440
|
-
|
|
16455
|
+
init_chunk_CHXSDXBE();
|
|
16456
|
+
init_chunk_HBWJDXLP();
|
|
16441
16457
|
init_chunk_ZXK6N2HN();
|
|
16442
16458
|
init_chunk_Y7CFCYX4();
|
|
16443
16459
|
init_chunk_MGBAXT5Y();
|
|
@@ -16449,10 +16465,10 @@ var init_contracts = __esm({
|
|
|
16449
16465
|
init_chunk_OPETF4GS();
|
|
16450
16466
|
init_chunk_SY6PLCPK();
|
|
16451
16467
|
init_chunk_KMAC3O3L();
|
|
16452
|
-
|
|
16468
|
+
init_chunk_65MH4JRN();
|
|
16453
16469
|
init_chunk_KSTYTQ7I();
|
|
16454
16470
|
init_chunk_LKBSHANA();
|
|
16455
|
-
|
|
16471
|
+
init_chunk_I2EVH3FR();
|
|
16456
16472
|
init_chunk_C4HEZ7ZI();
|
|
16457
16473
|
init_chunk_IR2NOSI3();
|
|
16458
16474
|
init_chunk_UCYWGWQT();
|
|
@@ -16467,7 +16483,7 @@ var init_contracts = __esm({
|
|
|
16467
16483
|
init_chunk_E4DIIOOE();
|
|
16468
16484
|
init_chunk_7CYHPF35();
|
|
16469
16485
|
init_chunk_NETRUHZF();
|
|
16470
|
-
|
|
16486
|
+
init_chunk_KOLSAPLZ();
|
|
16471
16487
|
init_chunk_YI3ORIXJ();
|
|
16472
16488
|
init_chunk_T6D3YZ6B();
|
|
16473
16489
|
init_chunk_66EZQ7Y7();
|
|
@@ -16488,10 +16504,10 @@ var init_contracts = __esm({
|
|
|
16488
16504
|
init_chunk_2PZIF56U();
|
|
16489
16505
|
init_chunk_UEJOG2Q7();
|
|
16490
16506
|
init_chunk_KEN2DASI();
|
|
16491
|
-
|
|
16507
|
+
init_chunk_FXIVKOSV();
|
|
16492
16508
|
init_chunk_R6Y377AW();
|
|
16493
16509
|
init_chunk_UAOHHCW5();
|
|
16494
|
-
|
|
16510
|
+
init_chunk_L4YFOZGK();
|
|
16495
16511
|
init_chunk_ULQGJUXZ();
|
|
16496
16512
|
init_chunk_OMPT4ZHR();
|
|
16497
16513
|
init_chunk_DWJOFJEA();
|
|
@@ -16514,10 +16530,10 @@ var init_contracts = __esm({
|
|
|
16514
16530
|
init_chunk_WEXVYJ5H();
|
|
16515
16531
|
init_chunk_6TSQ5HXC();
|
|
16516
16532
|
init_chunk_HZ6CADSY();
|
|
16517
|
-
|
|
16518
|
-
|
|
16533
|
+
init_chunk_7IXDF53E();
|
|
16534
|
+
init_chunk_55RZ7YIF();
|
|
16519
16535
|
init_chunk_JHUTFQDO();
|
|
16520
|
-
|
|
16536
|
+
init_chunk_7IKO675N();
|
|
16521
16537
|
init_chunk_MIWZOSPI();
|
|
16522
16538
|
init_chunk_YROEDMVZ();
|
|
16523
16539
|
init_chunk_L5F7ZOUJ();
|
|
@@ -16677,10 +16693,10 @@ var init_dist = __esm({
|
|
|
16677
16693
|
init_chunk_6TSQ5HXC();
|
|
16678
16694
|
init_chunk_HZ6CADSY();
|
|
16679
16695
|
init_chunk_FZ7BJJW7();
|
|
16680
|
-
|
|
16681
|
-
|
|
16696
|
+
init_chunk_7IXDF53E();
|
|
16697
|
+
init_chunk_55RZ7YIF();
|
|
16682
16698
|
init_chunk_JHUTFQDO();
|
|
16683
|
-
|
|
16699
|
+
init_chunk_7IKO675N();
|
|
16684
16700
|
init_chunk_MIWZOSPI();
|
|
16685
16701
|
init_chunk_YROEDMVZ();
|
|
16686
16702
|
init_chunk_L5F7ZOUJ();
|
|
@@ -22911,7 +22927,7 @@ var init_hub_materializer = __esm({
|
|
|
22911
22927
|
var init_ci = __esm({
|
|
22912
22928
|
"../../packages/core/dist/contracts/ci.js"() {
|
|
22913
22929
|
"use strict";
|
|
22914
|
-
|
|
22930
|
+
init_chunk_KOLSAPLZ();
|
|
22915
22931
|
init_chunk_YI3ORIXJ();
|
|
22916
22932
|
init_chunk_T6D3YZ6B();
|
|
22917
22933
|
init_chunk_66EZQ7Y7();
|
|
@@ -22923,7 +22939,7 @@ var init_ci = __esm({
|
|
|
22923
22939
|
init_chunk_X5PZZVTS();
|
|
22924
22940
|
init_chunk_D3EP4TDU();
|
|
22925
22941
|
init_chunk_K5UAZWFF();
|
|
22926
|
-
|
|
22942
|
+
init_chunk_L4YFOZGK();
|
|
22927
22943
|
init_chunk_WTOA3ANF();
|
|
22928
22944
|
init_chunk_IBL7FANV();
|
|
22929
22945
|
init_chunk_S4VDZ7PZ();
|
|
@@ -22935,10 +22951,10 @@ var init_ci = __esm({
|
|
|
22935
22951
|
init_chunk_WEXVYJ5H();
|
|
22936
22952
|
init_chunk_6TSQ5HXC();
|
|
22937
22953
|
init_chunk_HZ6CADSY();
|
|
22938
|
-
|
|
22939
|
-
|
|
22954
|
+
init_chunk_7IXDF53E();
|
|
22955
|
+
init_chunk_55RZ7YIF();
|
|
22940
22956
|
init_chunk_JHUTFQDO();
|
|
22941
|
-
|
|
22957
|
+
init_chunk_7IKO675N();
|
|
22942
22958
|
init_chunk_MIWZOSPI();
|
|
22943
22959
|
init_chunk_YROEDMVZ();
|
|
22944
22960
|
init_chunk_L5F7ZOUJ();
|
|
@@ -37796,6 +37812,75 @@ var init_vault_import = __esm({
|
|
|
37796
37812
|
}
|
|
37797
37813
|
});
|
|
37798
37814
|
|
|
37815
|
+
// ../../packages/core/dist/contracts/vault.js
|
|
37816
|
+
var vaultIdSchema, vaultFailureOutcomeSchema, vaultRefreshCategorySchema, vaultFailureBodySchema, vaultSendEnvelopeSchema, vaultVerifyEnvelopeSchema, vaultAutomationHmacEnvelopeSchema, vaultAutomationStaticEnvelopeSchema, AUTOMATION_WEBHOOK_VAULT_GATE_ID, vaultVerifyResponseSchema, vaultVersionSchema, vaultPutResponseSchema, vaultMetaResponseSchema, vaultDeleteResponseSchema, vaultInstantSchema, vaultRefreshResponseSchema;
|
|
37817
|
+
var init_vault = __esm({
|
|
37818
|
+
"../../packages/core/dist/contracts/vault.js"() {
|
|
37819
|
+
"use strict";
|
|
37820
|
+
init_chunk_MIWZOSPI();
|
|
37821
|
+
init_zod();
|
|
37822
|
+
vaultIdSchema = external_exports.string().regex(/^[A-Za-z0-9_-]{1,128}$/);
|
|
37823
|
+
vaultFailureOutcomeSchema = external_exports.enum([
|
|
37824
|
+
"not_sent_retry",
|
|
37825
|
+
"outcome_unknown",
|
|
37826
|
+
"not_found",
|
|
37827
|
+
"refused",
|
|
37828
|
+
"rate_limited"
|
|
37829
|
+
]);
|
|
37830
|
+
vaultRefreshCategorySchema = external_exports.enum(["permanent", "transient", "config"]);
|
|
37831
|
+
vaultFailureBodySchema = external_exports.object({
|
|
37832
|
+
outcome: vaultFailureOutcomeSchema,
|
|
37833
|
+
code: external_exports.string().regex(/^[a-z0-9_]{1,64}$/),
|
|
37834
|
+
category: vaultRefreshCategorySchema.optional()
|
|
37835
|
+
});
|
|
37836
|
+
vaultSendEnvelopeSchema = external_exports.object({
|
|
37837
|
+
field_refs: external_exports.array(external_exports.object({ secret_id: vaultIdSchema, field: vaultIdSchema })).min(1).max(4),
|
|
37838
|
+
/** Picks among the placements a field's rules hold. */
|
|
37839
|
+
placement_id: external_exports.string().optional(),
|
|
37840
|
+
method: external_exports.string().regex(/^[A-Z]{1,10}$/),
|
|
37841
|
+
/** Written without the secret: the vault's rules place it. */
|
|
37842
|
+
url: external_exports.string().min(1),
|
|
37843
|
+
headers: external_exports.record(external_exports.string().regex(/^[A-Za-z0-9-]{1,128}$/), external_exports.string().regex(/^[^\r\n\0]*$/)).optional(),
|
|
37844
|
+
/**
|
|
37845
|
+
* Holds the body in the vault's memory (8 MiB) so a same-origin 307 or 308 can resend it. Without it
|
|
37846
|
+
* such a redirect answers `outcome_unknown` with code `redirect_needs_buffer`.
|
|
37847
|
+
*/
|
|
37848
|
+
buffer: external_exports.boolean().optional(),
|
|
37849
|
+
/**
|
|
37850
|
+
* A Basic placement's username, held in plaintext by this platform, which the vault joins to the secret: as its
|
|
37851
|
+
* `src/send.ts` takes one, no `:`, control character or line separator, at most 256. The vault refuses one beside
|
|
37852
|
+
* any other placement, and a Basic placement without one; the seam sends it with Basic only (`customer-fetch-vault.ts`).
|
|
37853
|
+
*/
|
|
37854
|
+
username: external_exports.string().regex(/^[^:\x00-\x1f\x7f-\x9f\u2028\u2029]{0,256}$/).optional()
|
|
37855
|
+
});
|
|
37856
|
+
vaultVerifyEnvelopeSchema = external_exports.object({
|
|
37857
|
+
/** `svix-id` or `webhook-id`. */
|
|
37858
|
+
id: external_exports.string().regex(/^[\x20-\x7e]{1,256}$/),
|
|
37859
|
+
/** `svix-timestamp` or `webhook-timestamp`: Unix seconds, decimal, no leading zero. */
|
|
37860
|
+
timestamp: external_exports.string().regex(/^[1-9][0-9]{0,11}$/),
|
|
37861
|
+
/** `svix-signature` or `webhook-signature`. */
|
|
37862
|
+
signature: external_exports.string().regex(/^[\x20-\x7e]{1,2048}$/)
|
|
37863
|
+
}).strict();
|
|
37864
|
+
vaultAutomationHmacEnvelopeSchema = external_exports.object({
|
|
37865
|
+
id: external_exports.string().regex(/^[\x20-\x7e]{1,256}$/),
|
|
37866
|
+
timestamp: external_exports.string().regex(/^[0-9]{1,12}$/),
|
|
37867
|
+
method: external_exports.string().regex(/^[A-Z]{1,16}$/),
|
|
37868
|
+
/** The request's `pathname + search`. */
|
|
37869
|
+
path: external_exports.string().regex(/^\/[\x21-\x7e]{0,2047}$/),
|
|
37870
|
+
signature: external_exports.string().regex(/^[\x20-\x7e]{1,2048}$/)
|
|
37871
|
+
}).strict();
|
|
37872
|
+
vaultAutomationStaticEnvelopeSchema = external_exports.object({}).strict();
|
|
37873
|
+
AUTOMATION_WEBHOOK_VAULT_GATE_ID = "c2d6f1a4-7e3b-4f1a-9b8d-6a1f4e7c3b20";
|
|
37874
|
+
vaultVerifyResponseSchema = external_exports.object({});
|
|
37875
|
+
vaultVersionSchema = external_exports.number().int().positive();
|
|
37876
|
+
vaultPutResponseSchema = external_exports.object({ version: vaultVersionSchema });
|
|
37877
|
+
vaultMetaResponseSchema = external_exports.object({ present: external_exports.boolean(), version: vaultVersionSchema.nullable() });
|
|
37878
|
+
vaultDeleteResponseSchema = external_exports.object({});
|
|
37879
|
+
vaultInstantSchema = external_exports.string().regex(ISO_UTC_RE);
|
|
37880
|
+
vaultRefreshResponseSchema = external_exports.object({ version: vaultVersionSchema, expires_at: vaultInstantSchema.nullable() });
|
|
37881
|
+
}
|
|
37882
|
+
});
|
|
37883
|
+
|
|
37799
37884
|
// src/lib/base-vault-dry-run.ts
|
|
37800
37885
|
function addCounts(into, from) {
|
|
37801
37886
|
for (const [key, value] of Object.entries(from)) {
|
|
@@ -40420,6 +40505,7 @@ var init_admin = __esm({
|
|
|
40420
40505
|
init_errors3();
|
|
40421
40506
|
init_contracts();
|
|
40422
40507
|
init_vault_import();
|
|
40508
|
+
init_vault();
|
|
40423
40509
|
init_base_vault_dry_run();
|
|
40424
40510
|
VALID_TYPES = dataExplorerDebugDoType.options;
|
|
40425
40511
|
VALID_ANALYTICS_TABLES = dataExplorerDebugAnalyticsTable.options;
|
|
@@ -40482,6 +40568,7 @@ var init_admin = __esm({
|
|
|
40482
40568
|
"a1b2c3d4-e5f6-4789-a012-3456789abcde"
|
|
40483
40569
|
]],
|
|
40484
40570
|
["typesafe", ["0da558b0-e4b6-43f4-b945-aeaf432965e2"]],
|
|
40571
|
+
["automation_webhook", [AUTOMATION_WEBHOOK_VAULT_GATE_ID]],
|
|
40485
40572
|
["resend", ["a1b2c3d4-e5f6-4a89-b012-3e5e0d000001"]]
|
|
40486
40573
|
]);
|
|
40487
40574
|
VAULT_GATE_BY_ID_ONLY = /* @__PURE__ */ new Map([
|
|
@@ -41925,7 +42012,7 @@ MCP URL: ${toolsetMcpUrl(slug)}`);
|
|
|
41925
42012
|
}
|
|
41926
42013
|
});
|
|
41927
42014
|
tokens2.command("prune").description(
|
|
41928
|
-
"Revoke stale tokens, selected by staleness only (expired, or unused past --unused-since) \u2014 never by name. Previews by default; revoking requires --yes or an interactive confirmation."
|
|
42015
|
+
"Revoke stale tokens, selected by staleness only (expired, revoked, or unused past --unused-since) \u2014 never by name. Previews by default; revoking requires --yes or an interactive confirmation."
|
|
41929
42016
|
).option(
|
|
41930
42017
|
"--unused-since <duration>",
|
|
41931
42018
|
"Also prune tokens with no activity for this long (e.g. 30d). Skips toolset-bound and legacy usage-untracked tokens."
|
|
@@ -41942,6 +42029,10 @@ MCP URL: ${toolsetMcpUrl(slug)}`);
|
|
|
41942
42029
|
targets.push(pruneRow(t, "expired"));
|
|
41943
42030
|
continue;
|
|
41944
42031
|
}
|
|
42032
|
+
if (t.status === "revoked") {
|
|
42033
|
+
targets.push(pruneRow(t, "revoked: minted before only the owner could mint a token that writes bases"));
|
|
42034
|
+
continue;
|
|
42035
|
+
}
|
|
41945
42036
|
if (staleMs === void 0) continue;
|
|
41946
42037
|
const lastActivity = Date.parse(t.last_used_at ?? t.created_at);
|
|
41947
42038
|
if (!(now - lastActivity > staleMs)) continue;
|