@wayai/cli 0.3.275 → 0.3.277
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 +181 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7130,7 +7130,7 @@ var init_chunk_2YEGUQR7 = __esm({
|
|
|
7130
7130
|
}
|
|
7131
7131
|
});
|
|
7132
7132
|
|
|
7133
|
-
// ../../packages/core/dist/chunk-
|
|
7133
|
+
// ../../packages/core/dist/chunk-UAOHHCW5.js
|
|
7134
7134
|
function normalizeContactPhone(raw) {
|
|
7135
7135
|
const compact = raw.trim().replace(/[\s\-.()]/g, "");
|
|
7136
7136
|
const withPlus = compact.startsWith("00") ? `+${compact.slice(2)}` : compact;
|
|
@@ -7143,8 +7143,8 @@ function importRowLabels(row, batchLabels) {
|
|
|
7143
7143
|
return [.../* @__PURE__ */ new Set([...row.labels ?? [], ...batchLabels ?? []])];
|
|
7144
7144
|
}
|
|
7145
7145
|
var CONTACT_ENVIRONMENTS, CONTACT_NAME_MAX, CONTACT_EMAIL_MAX, CONTACT_PHONE_INPUT_MAX, CONTACT_INSTAGRAM_SID_MAX, CONTACT_METADATA_MAX_BYTES, CONTACT_LABEL_MAX, CONTACT_LABELS_MAX, CONTACT_SCOPE_TAGS_MAX, CONTACT_PAGE_MAX, CONTACT_IMPORT_BATCH_MAX, CONTACT_SEARCH_MAX, CONTACT_LIST_NAME_MAX, CONTACT_LIST_NAME_REGEX, CONTACT_LIST_DESCRIPTION_MAX, CONTACT_LIST_FILTER_MAX, CONTACT_LIST_PINS_PER_REQUEST_MAX, SUPPRESSION_SCOPES, SUPPRESSION_ID_REGEX, contactName, contactPhone, contactEmail, contactInstagramSid, contactLabel, contactLabels, contactMetadata, scopeTagIds, contactVisibilitySchema, hasIdentity, IDENTITY_REQUIRED, contactBookOrgQuery, contactBookContactParam, contactBookListParam, contactBookHubParam, contactBookPageQuery, listContactBookContactsQuery, listHubContactBookContactsQuery, contactBookLinkCandidatesQuery, listContactBookListMembersQuery, contactRowFields, createContactBookContactBody, updateContactBookContactBody, contactImportRowSchema, importContactBookContactsBody, linkContactBookContactBody, listName, contactListFilterSchema, createContactBookListBody, updateContactBookListBody, updateContactBookListPinsBody, suppressionIdentitySchema, createContactBookSuppressionBody, contactBookSuppressionParam, listContactBookSuppressionsQuery, contactBookEmailUnsubscribeTokenSchema, contactBookEmailUnsubscribeQuery, orgListReferenceSchema;
|
|
7146
|
-
var
|
|
7147
|
-
"../../packages/core/dist/chunk-
|
|
7146
|
+
var init_chunk_UAOHHCW5 = __esm({
|
|
7147
|
+
"../../packages/core/dist/chunk-UAOHHCW5.js"() {
|
|
7148
7148
|
"use strict";
|
|
7149
7149
|
init_zod();
|
|
7150
7150
|
CONTACT_ENVIRONMENTS = ["production", "preview", "all"];
|
|
@@ -7179,10 +7179,13 @@ var init_chunk_S5SVBLGT = __esm({
|
|
|
7179
7179
|
contactInstagramSid = external_exports.string().trim().min(1).max(CONTACT_INSTAGRAM_SID_MAX);
|
|
7180
7180
|
contactLabel = external_exports.string().max(CONTACT_LABEL_MAX).transform(normalizeContactLabel).refine((label2) => label2.length > 0, "A label cannot be empty").refine((label2) => !label2.includes(","), "A label cannot contain a comma");
|
|
7181
7181
|
contactLabels = external_exports.array(contactLabel).max(CONTACT_LABELS_MAX).transform((labels) => [...new Set(labels)]);
|
|
7182
|
-
contactMetadata = external_exports.record(external_exports.unknown()).refine(
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7182
|
+
contactMetadata = external_exports.record(external_exports.unknown()).refine((metadata) => {
|
|
7183
|
+
try {
|
|
7184
|
+
return new TextEncoder().encode(JSON.stringify(metadata)).length <= CONTACT_METADATA_MAX_BYTES;
|
|
7185
|
+
} catch {
|
|
7186
|
+
return false;
|
|
7187
|
+
}
|
|
7188
|
+
}, `Metadata must serialize to at most ${CONTACT_METADATA_MAX_BYTES} bytes`);
|
|
7186
7189
|
scopeTagIds = external_exports.array(external_exports.string().uuid()).min(1).max(CONTACT_SCOPE_TAGS_MAX).transform((ids) => [...new Set(ids)]);
|
|
7187
7190
|
contactVisibilitySchema = external_exports.discriminatedUnion("scope", [
|
|
7188
7191
|
external_exports.object({ scope: external_exports.literal("all_hubs") }).strict(),
|
|
@@ -7305,13 +7308,13 @@ var init_chunk_S5SVBLGT = __esm({
|
|
|
7305
7308
|
}
|
|
7306
7309
|
});
|
|
7307
7310
|
|
|
7308
|
-
// ../../packages/core/dist/chunk-
|
|
7311
|
+
// ../../packages/core/dist/chunk-MGBAXT5Y.js
|
|
7309
7312
|
var PERSON_LINKS_MAX, PERSON_DENY_PAGE_MAX, personParam, personLinkParam, deniedPersonParam, listDeniedPersonsQuery, conversationCustomerPersonParam;
|
|
7310
|
-
var
|
|
7311
|
-
"../../packages/core/dist/chunk-
|
|
7313
|
+
var init_chunk_MGBAXT5Y = __esm({
|
|
7314
|
+
"../../packages/core/dist/chunk-MGBAXT5Y.js"() {
|
|
7312
7315
|
"use strict";
|
|
7313
7316
|
init_chunk_2YEGUQR7();
|
|
7314
|
-
|
|
7317
|
+
init_chunk_UAOHHCW5();
|
|
7315
7318
|
init_zod();
|
|
7316
7319
|
PERSON_LINKS_MAX = 15;
|
|
7317
7320
|
PERSON_DENY_PAGE_MAX = 100;
|
|
@@ -12020,12 +12023,12 @@ var init_chunk_6J742GLA = __esm({
|
|
|
12020
12023
|
}
|
|
12021
12024
|
});
|
|
12022
12025
|
|
|
12023
|
-
// ../../packages/core/dist/chunk-
|
|
12026
|
+
// ../../packages/core/dist/chunk-6AYIXGDT.js
|
|
12024
12027
|
var COMMUNITIES_PER_ORG_MAX, COMMUNITY_NAME_MAX_LENGTH, COMMUNITY_REGISTRY_CLOSED_REASON, COMMUNITY_MEMBERS_MAX, COMMUNITY_ADMISSIONS, COMMUNITY_ACCESS_MAX, COMMUNITY_ACCESS_ADD_MAX, COMMUNITY_ACCESS_FULL_REASON, COMMUNITY_JOIN_SOURCE_MAX_LENGTH, COMMUNITY_JOIN_FLOW_TOKEN_MAX_LENGTH, COMMUNITY_ROOMS_MAX, COMMUNITY_ROOM_NAME_MAX_LENGTH, COMMUNITY_MESSAGE_MAX_LENGTH, COMMUNITY_MESSAGES_PAGE_SIZE, COMMUNITY_ATTACHMENT_URLS_MAX, COMMUNITY_POST_TITLE_MAX_LENGTH, COMMUNITY_POST_SEARCH_MAX_LENGTH, COMMUNITY_MEMBER_STATUSES, COMMUNITY_RULES_MAX_LENGTH, COMMUNITY_SLOW_MODE_MAX_SECONDS, COMMUNITY_COURSES_LABEL_MAX_LENGTH, COMMUNITY_LIVE_TICKET_PREFIX, COMMUNITY_STATS_DAYS, communityNameSchema, adminCreateCommunityBody, communityIdParam, communityJoinTokenSchema, communityJoinSourceSchema, communityJoinPreviewQuery, communityJoinBody, communityRoomKindSchema, communityRoomNameSchema, communityRoomIdParam, communityMessageIdParam, communityRoomCreateBody, communityRoomUpdateBody, communityMessagesQuery, communityMessageBodySchema, communityPostTitleSchema, communityAttachmentUploadSchema, communitySendBody, communityEditBody, communityPostIdParam, communityPostsQuery, communityAnswerBody, communityReadBody, communityAttachmentUrlsBody, communityPersonParam, communityOrgParam, communityPeopleQuery, communityCoursesLabelSchema, communityAdmissionSchema, communitySettingsBody, communityAccessEmailSchema, communityAccessAddBody, communityAccessQuery, communityAccessIdParam, communityBanBody, communityLockBody, communityPinBody, communityModLogQuery, communityReportsQuery, communityReportIdParam, communityLiveTicketSchema, communityLiveQuery, communityMuteBody, communityEmailUnsubscribeTokenSchema, communityEmailUnsubscribeQuery;
|
|
12025
|
-
var
|
|
12026
|
-
"../../packages/core/dist/chunk-
|
|
12028
|
+
var init_chunk_6AYIXGDT = __esm({
|
|
12029
|
+
"../../packages/core/dist/chunk-6AYIXGDT.js"() {
|
|
12027
12030
|
"use strict";
|
|
12028
|
-
|
|
12031
|
+
init_chunk_UAOHHCW5();
|
|
12029
12032
|
init_chunk_6J742GLA();
|
|
12030
12033
|
init_chunk_ZVXO3XL6();
|
|
12031
12034
|
init_chunk_HZ6CADSY();
|
|
@@ -12129,7 +12132,7 @@ var init_chunk_LCBRIVIN = __esm({
|
|
|
12129
12132
|
}
|
|
12130
12133
|
});
|
|
12131
12134
|
|
|
12132
|
-
// ../../packages/core/dist/chunk-
|
|
12135
|
+
// ../../packages/core/dist/chunk-47LPEX74.js
|
|
12133
12136
|
function parseCommunityLessonVideoUrl(url) {
|
|
12134
12137
|
const parts = /^https?:\/\/([^/?#]+)([^?#]*)(?:\?([^#]*))?(?:#.*)?$/i.exec(url.trim());
|
|
12135
12138
|
if (!parts) return null;
|
|
@@ -12155,10 +12158,10 @@ function communityLessonVideoWatchUrl(video) {
|
|
|
12155
12158
|
}
|
|
12156
12159
|
}
|
|
12157
12160
|
var COMMUNITY_COURSES_MAX, COMMUNITY_COURSE_MODULES_MAX, COMMUNITY_COURSE_LESSONS_MAX, COMMUNITY_LESSONS_MAX, COMMUNITY_COURSE_TITLE_MAX_LENGTH, COMMUNITY_COURSE_DESCRIPTION_MAX_LENGTH, COMMUNITY_LESSON_BODY_MAX_LENGTH, COMMUNITY_LESSON_LINKS_MAX, COMMUNITY_LESSON_URL_MAX_LENGTH, YOUTUBE_ID, YOUTUBE_HOSTS, YOUTU_BE, YOUTUBE_ID_PATH, communityCourseIdParam, communityCourseModuleIdParam, communityLessonIdParam, communityCourseTitleSchema, communityCourseDescriptionSchema, communityCoursePositionSchema, communityLessonVideoUrlSchema, communityLessonLinkSchema, communityLessonLinksSchema, communityLessonBodySchema, communityCourseCreateBody, communityCourseUpdateBody, communityModuleCreateBody, communityModuleUpdateBody, communityLessonCreateBody, communityLessonUpdateBody;
|
|
12158
|
-
var
|
|
12159
|
-
"../../packages/core/dist/chunk-
|
|
12161
|
+
var init_chunk_47LPEX74 = __esm({
|
|
12162
|
+
"../../packages/core/dist/chunk-47LPEX74.js"() {
|
|
12160
12163
|
"use strict";
|
|
12161
|
-
|
|
12164
|
+
init_chunk_6AYIXGDT();
|
|
12162
12165
|
init_chunk_HZ6CADSY();
|
|
12163
12166
|
init_zod();
|
|
12164
12167
|
COMMUNITY_COURSES_MAX = 20;
|
|
@@ -12595,7 +12598,7 @@ var init_chunk_BPCNB5RT = __esm({
|
|
|
12595
12598
|
}
|
|
12596
12599
|
});
|
|
12597
12600
|
|
|
12598
|
-
// ../../packages/core/dist/chunk-
|
|
12601
|
+
// ../../packages/core/dist/chunk-RVMCS37E.js
|
|
12599
12602
|
function toolParametersViolations(params) {
|
|
12600
12603
|
try {
|
|
12601
12604
|
if (containsKanbanPlaceholders(params)) return [];
|
|
@@ -12637,8 +12640,8 @@ function refineToolConfig(value, ctx) {
|
|
|
12637
12640
|
}
|
|
12638
12641
|
}
|
|
12639
12642
|
var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
|
|
12640
|
-
var
|
|
12641
|
-
"../../packages/core/dist/chunk-
|
|
12643
|
+
var init_chunk_RVMCS37E = __esm({
|
|
12644
|
+
"../../packages/core/dist/chunk-RVMCS37E.js"() {
|
|
12642
12645
|
"use strict";
|
|
12643
12646
|
init_chunk_WEXVYJ5H();
|
|
12644
12647
|
init_chunk_HZ6CADSY();
|
|
@@ -14006,7 +14009,19 @@ var init_chunk_7NQZRSSJ = __esm({
|
|
|
14006
14009
|
}
|
|
14007
14010
|
});
|
|
14008
14011
|
|
|
14009
|
-
// ../../packages/core/dist/chunk-
|
|
14012
|
+
// ../../packages/core/dist/chunk-QUJTSOZO.js
|
|
14013
|
+
function declaresNoConnection(agent) {
|
|
14014
|
+
return agent.connection === null && !agent.connection_id;
|
|
14015
|
+
}
|
|
14016
|
+
function agentConnectionRefusal(agent) {
|
|
14017
|
+
if (agent.connection || declaresNoConnection(agent)) return null;
|
|
14018
|
+
const heldNot = agent.connection_id ? ` Its connection_id "${agent.connection_id}" is not one of this hub's.` : "";
|
|
14019
|
+
return `Agent "${agent.name}": connection is required. Name one of the hub's connections, or write \`connection: null\` for an agent with none.${heldNot}`;
|
|
14020
|
+
}
|
|
14021
|
+
function customToolConnectionRefusal(agentName, tool) {
|
|
14022
|
+
if (tool.connection || tool.connection_id) return null;
|
|
14023
|
+
return `Agent "${agentName}", tool "${tool.name}": connection is required. A custom tool calls through one of the hub's connections: name it.`;
|
|
14024
|
+
}
|
|
14010
14025
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
14011
14026
|
const agents = config.agents;
|
|
14012
14027
|
if (!Array.isArray(agents)) return;
|
|
@@ -14611,6 +14626,70 @@ function resourcesSectionRefusal(scope, subject) {
|
|
|
14611
14626
|
const pull = scope === "org" ? "wayai org pull" : "wayai pull";
|
|
14612
14627
|
return `${subject} \`resources\` is no longer accepted: skills are named under \`skills\`. Update the CLI to \`@wayai/cli\` ${MIN_SKILLS_LAYOUT_CLI} or later (\`wayai update\`), then run \`${pull}\` once to convert the folder.`;
|
|
14613
14628
|
}
|
|
14629
|
+
function pathPastDepth(root, levels) {
|
|
14630
|
+
if (root === null || typeof root !== "object") return null;
|
|
14631
|
+
const childrenOf = (node) => ({ node, children: Array.isArray(node) ? node : Object.values(node), next: 0 });
|
|
14632
|
+
const frames = [childrenOf(root)];
|
|
14633
|
+
while (frames.length > 0) {
|
|
14634
|
+
const top = frames[frames.length - 1];
|
|
14635
|
+
if (top.next === top.children.length) {
|
|
14636
|
+
frames.pop();
|
|
14637
|
+
continue;
|
|
14638
|
+
}
|
|
14639
|
+
const child = top.children[top.next++];
|
|
14640
|
+
if (child === null || typeof child !== "object") continue;
|
|
14641
|
+
if (frames.length === levels) return frames.map(({ node, next }) => Array.isArray(node) ? next - 1 : Object.keys(node)[next - 1]);
|
|
14642
|
+
frames.push(childrenOf(child));
|
|
14643
|
+
}
|
|
14644
|
+
return null;
|
|
14645
|
+
}
|
|
14646
|
+
function refusedNesting(value, at, ctx) {
|
|
14647
|
+
const past = pathPastDepth(value, MAX_HUB_AS_CODE_DEPTH - at.length);
|
|
14648
|
+
if (!past) return false;
|
|
14649
|
+
const path45 = [...at, ...past].slice(0, NAMED_DEPTH_SEGMENTS).map((key) => typeof key === "string" ? key.slice(0, NAMED_DEPTH_KEY_CHARS) : key);
|
|
14650
|
+
ctx.addIssue({
|
|
14651
|
+
code: external_exports.ZodIssueCode.custom,
|
|
14652
|
+
path: path45,
|
|
14653
|
+
message: `${fieldName(path45)}\u2026 nests deeper than ${MAX_HUB_AS_CODE_DEPTH} levels of arrays and objects`,
|
|
14654
|
+
fatal: true
|
|
14655
|
+
});
|
|
14656
|
+
return true;
|
|
14657
|
+
}
|
|
14658
|
+
function refusedStringConfigNesting(config, ctx) {
|
|
14659
|
+
const agents = isPlainObject(config) && Array.isArray(config.agents) ? config.agents : [];
|
|
14660
|
+
return agents.some((agent, a) => {
|
|
14661
|
+
const custom2 = isPlainObject(agent) && isPlainObject(agent.tools) ? agent.tools.custom : void 0;
|
|
14662
|
+
return Array.isArray(custom2) && custom2.some((tool, t) => {
|
|
14663
|
+
if (!isPlainObject(tool) || typeof tool.config !== "string") return false;
|
|
14664
|
+
let parsed;
|
|
14665
|
+
try {
|
|
14666
|
+
parsed = JSON.parse(tool.config);
|
|
14667
|
+
} catch {
|
|
14668
|
+
return false;
|
|
14669
|
+
}
|
|
14670
|
+
return refusedNesting(parsed, ["agents", a, "tools", "custom", t, "config"], ctx);
|
|
14671
|
+
});
|
|
14672
|
+
});
|
|
14673
|
+
}
|
|
14674
|
+
function refusedUnreadableSection(config, ctx) {
|
|
14675
|
+
if (!isPlainObject(config)) return false;
|
|
14676
|
+
const refused = (path45, must) => {
|
|
14677
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: path45, message: `${fieldName(path45)} must ${must}`, fatal: true });
|
|
14678
|
+
return true;
|
|
14679
|
+
};
|
|
14680
|
+
const badList = (value, path45, reads = {}) => {
|
|
14681
|
+
if (value === void 0 || value === null && reads.nullSection !== false) return false;
|
|
14682
|
+
if (!Array.isArray(value)) return refused(path45, "be an array");
|
|
14683
|
+
const nullAt = reads.nullEntries ? -1 : value.indexOf(null);
|
|
14684
|
+
return nullAt !== -1 && refused([...path45, nullAt], "not be null");
|
|
14685
|
+
};
|
|
14686
|
+
const entries = (section) => Array.isArray(section) ? section : [];
|
|
14687
|
+
return ["connections", "teams", "evals", "journeys", "agents", "eval_attachment_files", "call_opening_files"].some((section) => badList(config[section], [section])) || isPlainObject(config.hub) && badList(config.hub.tags, ["hub", "tags"], { nullEntries: true }) || [["evals", "history"], ["journeys", "transcript"]].some(([section, turns]) => entries(config[section]).some((entry, index) => isPlainObject(entry) && badList(entry[turns], [section, index, turns], { nullEntries: true }))) || entries(config.agents).some((agent, index) => {
|
|
14688
|
+
if (!isPlainObject(agent)) return false;
|
|
14689
|
+
const { tools } = agent;
|
|
14690
|
+
return badList(agent.skills, ["agents", index, "skills"]) || badList(agent.evaluation_variables, ["agents", index, "evaluation_variables"], { nullSection: false }) || isPlainObject(tools) && HUB_AS_CODE_AGENT_TOOL_KEYS.some((kind) => badList(tools[kind], ["agents", index, "tools", kind], { nullEntries: kind === "delegation" }));
|
|
14691
|
+
});
|
|
14692
|
+
}
|
|
14614
14693
|
function skillSectionsAsResources(scope) {
|
|
14615
14694
|
return (config, ctx) => {
|
|
14616
14695
|
if (!isPlainObject(config)) return config;
|
|
@@ -14655,11 +14734,11 @@ function skillSectionsAsResources(scope) {
|
|
|
14655
14734
|
return out;
|
|
14656
14735
|
};
|
|
14657
14736
|
}
|
|
14658
|
-
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, 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;
|
|
14659
|
-
var
|
|
14660
|
-
"../../packages/core/dist/chunk-
|
|
14737
|
+
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;
|
|
14738
|
+
var init_chunk_QUJTSOZO = __esm({
|
|
14739
|
+
"../../packages/core/dist/chunk-QUJTSOZO.js"() {
|
|
14661
14740
|
"use strict";
|
|
14662
|
-
|
|
14741
|
+
init_chunk_RVMCS37E();
|
|
14663
14742
|
init_chunk_HRKVCI5A();
|
|
14664
14743
|
init_chunk_IW7D2QOD();
|
|
14665
14744
|
init_chunk_LBDH7LCG();
|
|
@@ -14775,7 +14854,17 @@ var init_chunk_YFQXT7IT = __esm({
|
|
|
14775
14854
|
}).pipe(external_exports.array(hubAsCodeResourceSchema));
|
|
14776
14855
|
isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
14777
14856
|
MIN_SKILLS_LAYOUT_CLI = "0.3.234";
|
|
14778
|
-
|
|
14857
|
+
MAX_HUB_AS_CODE_DEPTH = 128;
|
|
14858
|
+
NAMED_DEPTH_SEGMENTS = 12;
|
|
14859
|
+
NAMED_DEPTH_KEY_CHARS = 64;
|
|
14860
|
+
fieldName = (path45) => path45.reduce(
|
|
14861
|
+
(name, key) => typeof key === "number" ? `${name}[${key}]` : name ? `${name}.${key}` : key,
|
|
14862
|
+
""
|
|
14863
|
+
);
|
|
14864
|
+
hubAsCodeConfigSchema = external_exports.preprocess((config, ctx) => {
|
|
14865
|
+
if (refusedNesting(config, [], ctx) || refusedStringConfigNesting(config, ctx) || refusedUnreadableSection(config, ctx)) return config;
|
|
14866
|
+
return skillSectionsAsResources("hub")(config, ctx);
|
|
14867
|
+
}, external_exports.object({
|
|
14779
14868
|
version: external_exports.literal(1),
|
|
14780
14869
|
hub: external_exports.object({
|
|
14781
14870
|
name: external_exports.string().min(1, "config.hub.name is required"),
|
|
@@ -15729,15 +15818,15 @@ var init_chunk_JO53JB35 = __esm({
|
|
|
15729
15818
|
}
|
|
15730
15819
|
});
|
|
15731
15820
|
|
|
15732
|
-
// ../../packages/core/dist/chunk-
|
|
15821
|
+
// ../../packages/core/dist/chunk-R6Y377AW.js
|
|
15733
15822
|
function filterNamesAnything(filter) {
|
|
15734
15823
|
return filter.labels.length + filter.scope_tag_ids.length > 0;
|
|
15735
15824
|
}
|
|
15736
15825
|
var hubListNameSchema, HUB_LIST_FILTER_REQUIRED, hubContactListFilterSchema, hubContactListIdParam, hubContactListHubQuery, description, createHubContactListBody, updateHubContactListBody;
|
|
15737
|
-
var
|
|
15738
|
-
"../../packages/core/dist/chunk-
|
|
15826
|
+
var init_chunk_R6Y377AW = __esm({
|
|
15827
|
+
"../../packages/core/dist/chunk-R6Y377AW.js"() {
|
|
15739
15828
|
"use strict";
|
|
15740
|
-
|
|
15829
|
+
init_chunk_UAOHHCW5();
|
|
15741
15830
|
init_zod();
|
|
15742
15831
|
hubListNameSchema = orgListReferenceSchema;
|
|
15743
15832
|
HUB_LIST_FILTER_REQUIRED = "A hub list names at least one label or scope tag";
|
|
@@ -15763,13 +15852,13 @@ var init_chunk_ZU2FJGU3 = __esm({
|
|
|
15763
15852
|
}
|
|
15764
15853
|
});
|
|
15765
15854
|
|
|
15766
|
-
// ../../packages/core/dist/chunk-
|
|
15855
|
+
// ../../packages/core/dist/chunk-DJKJMVH5.js
|
|
15767
15856
|
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;
|
|
15768
|
-
var
|
|
15769
|
-
"../../packages/core/dist/chunk-
|
|
15857
|
+
var init_chunk_DJKJMVH5 = __esm({
|
|
15858
|
+
"../../packages/core/dist/chunk-DJKJMVH5.js"() {
|
|
15770
15859
|
"use strict";
|
|
15771
|
-
|
|
15772
|
-
|
|
15860
|
+
init_chunk_R6Y377AW();
|
|
15861
|
+
init_chunk_UAOHHCW5();
|
|
15773
15862
|
init_chunk_MBXNS7SI();
|
|
15774
15863
|
init_chunk_5XEJSR22();
|
|
15775
15864
|
init_chunk_G4HTKQCL();
|
|
@@ -16227,7 +16316,7 @@ var init_contracts = __esm({
|
|
|
16227
16316
|
init_chunk_VEERWOZ6();
|
|
16228
16317
|
init_chunk_ZXK6N2HN();
|
|
16229
16318
|
init_chunk_Y7CFCYX4();
|
|
16230
|
-
|
|
16319
|
+
init_chunk_MGBAXT5Y();
|
|
16231
16320
|
init_chunk_YUZFHVB2();
|
|
16232
16321
|
init_chunk_I3O2RACG();
|
|
16233
16322
|
init_chunk_34LE6P7E();
|
|
@@ -16243,8 +16332,8 @@ var init_contracts = __esm({
|
|
|
16243
16332
|
init_chunk_Y6NC5CH5();
|
|
16244
16333
|
init_chunk_C4HEZ7ZI();
|
|
16245
16334
|
init_chunk_IR2NOSI3();
|
|
16246
|
-
|
|
16247
|
-
|
|
16335
|
+
init_chunk_47LPEX74();
|
|
16336
|
+
init_chunk_6AYIXGDT();
|
|
16248
16337
|
init_chunk_YULHXJ5M();
|
|
16249
16338
|
init_chunk_V4FRPRH5();
|
|
16250
16339
|
init_chunk_LWMLR2WI();
|
|
@@ -16255,8 +16344,8 @@ var init_contracts = __esm({
|
|
|
16255
16344
|
init_chunk_E4DIIOOE();
|
|
16256
16345
|
init_chunk_7CYHPF35();
|
|
16257
16346
|
init_chunk_BPCNB5RT();
|
|
16258
|
-
|
|
16259
|
-
|
|
16347
|
+
init_chunk_QUJTSOZO();
|
|
16348
|
+
init_chunk_RVMCS37E();
|
|
16260
16349
|
init_chunk_HRKVCI5A();
|
|
16261
16350
|
init_chunk_IW7D2QOD();
|
|
16262
16351
|
init_chunk_2YEGUQR7();
|
|
@@ -16276,9 +16365,9 @@ var init_contracts = __esm({
|
|
|
16276
16365
|
init_chunk_2PZIF56U();
|
|
16277
16366
|
init_chunk_UEJOG2Q7();
|
|
16278
16367
|
init_chunk_JO53JB35();
|
|
16279
|
-
|
|
16280
|
-
|
|
16281
|
-
|
|
16368
|
+
init_chunk_DJKJMVH5();
|
|
16369
|
+
init_chunk_R6Y377AW();
|
|
16370
|
+
init_chunk_UAOHHCW5();
|
|
16282
16371
|
init_chunk_MBXNS7SI();
|
|
16283
16372
|
init_chunk_IG6QBZMA();
|
|
16284
16373
|
init_chunk_OMPT4ZHR();
|
|
@@ -22607,6 +22696,46 @@ var init_hub_materializer = __esm({
|
|
|
22607
22696
|
}
|
|
22608
22697
|
});
|
|
22609
22698
|
|
|
22699
|
+
// ../../packages/core/dist/contracts/ci.js
|
|
22700
|
+
var init_ci = __esm({
|
|
22701
|
+
"../../packages/core/dist/contracts/ci.js"() {
|
|
22702
|
+
"use strict";
|
|
22703
|
+
init_chunk_QUJTSOZO();
|
|
22704
|
+
init_chunk_RVMCS37E();
|
|
22705
|
+
init_chunk_HRKVCI5A();
|
|
22706
|
+
init_chunk_IW7D2QOD();
|
|
22707
|
+
init_chunk_2YEGUQR7();
|
|
22708
|
+
init_chunk_4D6K4P4K();
|
|
22709
|
+
init_chunk_LBDH7LCG();
|
|
22710
|
+
init_chunk_4LXDRTO4();
|
|
22711
|
+
init_chunk_7NQZRSSJ();
|
|
22712
|
+
init_chunk_D3EP4TDU();
|
|
22713
|
+
init_chunk_X5PZZVTS();
|
|
22714
|
+
init_chunk_K5UAZWFF();
|
|
22715
|
+
init_chunk_MBXNS7SI();
|
|
22716
|
+
init_chunk_WTOA3ANF();
|
|
22717
|
+
init_chunk_IBL7FANV();
|
|
22718
|
+
init_chunk_S4VDZ7PZ();
|
|
22719
|
+
init_chunk_KB5RK3RP();
|
|
22720
|
+
init_chunk_CJ3L46X6();
|
|
22721
|
+
init_chunk_2ISUBJG7();
|
|
22722
|
+
init_chunk_C2UEA2KW();
|
|
22723
|
+
init_chunk_FBV7NLKO();
|
|
22724
|
+
init_chunk_WEXVYJ5H();
|
|
22725
|
+
init_chunk_6TSQ5HXC();
|
|
22726
|
+
init_chunk_HZ6CADSY();
|
|
22727
|
+
init_chunk_G4HTKQCL();
|
|
22728
|
+
init_chunk_ZUKC6A2W();
|
|
22729
|
+
init_chunk_EVXGKOJV();
|
|
22730
|
+
init_chunk_I42QJGJF();
|
|
22731
|
+
init_chunk_MIWZOSPI();
|
|
22732
|
+
init_chunk_YROEDMVZ();
|
|
22733
|
+
init_chunk_L5F7ZOUJ();
|
|
22734
|
+
init_chunk_EV3MAOEX();
|
|
22735
|
+
init_chunk_WFQDSQJK();
|
|
22736
|
+
}
|
|
22737
|
+
});
|
|
22738
|
+
|
|
22610
22739
|
// src/lib/eval-format.ts
|
|
22611
22740
|
function runNotes(unproven, inProgress) {
|
|
22612
22741
|
return [
|
|
@@ -27632,7 +27761,12 @@ New hub: "${newHub.hubName}" (${hubType})`);
|
|
|
27632
27761
|
}
|
|
27633
27762
|
const content = readRealFileOrThrow(newHub.hubFolder, hubYamlPath) ?? "";
|
|
27634
27763
|
assertSkillsLayout(newHub.hubFolder);
|
|
27635
|
-
parseHubFolder(newHub.hubFolder, { allowNewHub: true });
|
|
27764
|
+
const parsed = parseHubFolder(newHub.hubFolder, { allowNewHub: true });
|
|
27765
|
+
const refusals = (parsed.agents ?? []).flatMap((agent) => [
|
|
27766
|
+
agentConnectionRefusal(agent),
|
|
27767
|
+
...(agent.tools?.custom ?? []).map((tool) => customToolConnectionRefusal(agent.name, tool))
|
|
27768
|
+
]).filter((refusal2) => refusal2 !== null);
|
|
27769
|
+
if (refusals.length > 0) throw expected(refusals.join("\n"));
|
|
27636
27770
|
console.log("Creating hub...");
|
|
27637
27771
|
const createResult = await client.createHub(opts.organizationId, {
|
|
27638
27772
|
hubName: newHub.hubName,
|
|
@@ -27748,6 +27882,7 @@ var LOCAL_CHANGE_LIST_CAP;
|
|
|
27748
27882
|
var init_push = __esm({
|
|
27749
27883
|
"src/commands/push.ts"() {
|
|
27750
27884
|
"use strict";
|
|
27885
|
+
init_ci();
|
|
27751
27886
|
init_auth();
|
|
27752
27887
|
init_api_client();
|
|
27753
27888
|
init_expected();
|