@wayai/cli 0.3.260 → 0.3.262
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 +132 -191
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5730,7 +5730,7 @@ var init_chunk_5XEJSR22 = __esm({
|
|
|
5730
5730
|
}
|
|
5731
5731
|
});
|
|
5732
5732
|
|
|
5733
|
-
// ../../packages/core/dist/chunk-
|
|
5733
|
+
// ../../packages/core/dist/chunk-D7SSWNL3.js
|
|
5734
5734
|
function matchPath(pattern, path45) {
|
|
5735
5735
|
const pathSegments2 = path45.replace(/\/$/, "").split("/");
|
|
5736
5736
|
const isPrefix = pattern.endsWith("/*");
|
|
@@ -5759,8 +5759,8 @@ function getEndpointConfig(path45) {
|
|
|
5759
5759
|
return { tier: "STANDARD" };
|
|
5760
5760
|
}
|
|
5761
5761
|
var ENDPOINT_CONFIGS, EXCLUDED_PATHS;
|
|
5762
|
-
var
|
|
5763
|
-
"../../packages/core/dist/chunk-
|
|
5762
|
+
var init_chunk_D7SSWNL3 = __esm({
|
|
5763
|
+
"../../packages/core/dist/chunk-D7SSWNL3.js"() {
|
|
5764
5764
|
"use strict";
|
|
5765
5765
|
init_chunk_5XEJSR22();
|
|
5766
5766
|
ENDPOINT_CONFIGS = {
|
|
@@ -6238,7 +6238,7 @@ var init_chunk_J3UZCMO6 = __esm({
|
|
|
6238
6238
|
}
|
|
6239
6239
|
});
|
|
6240
6240
|
|
|
6241
|
-
// ../../packages/core/dist/chunk-
|
|
6241
|
+
// ../../packages/core/dist/chunk-7QJBCQR3.js
|
|
6242
6242
|
function fileSnapshotChanged(run) {
|
|
6243
6243
|
return run.written + run.removed > 0;
|
|
6244
6244
|
}
|
|
@@ -6279,10 +6279,10 @@ async function sendWithRetry(opts, cursor) {
|
|
|
6279
6279
|
}
|
|
6280
6280
|
}
|
|
6281
6281
|
var rekorFileSnapshotAnswerSchema, FILE_SNAPSHOT_MAX_PAGES, FILE_SNAPSHOT_CONFLICT_ATTEMPTS, FILE_SNAPSHOT_PAGE_SPACING_MS, FILE_SNAPSHOT_CONFLICT_STATUS;
|
|
6282
|
-
var
|
|
6283
|
-
"../../packages/core/dist/chunk-
|
|
6282
|
+
var init_chunk_7QJBCQR3 = __esm({
|
|
6283
|
+
"../../packages/core/dist/chunk-7QJBCQR3.js"() {
|
|
6284
6284
|
"use strict";
|
|
6285
|
-
|
|
6285
|
+
init_chunk_D7SSWNL3();
|
|
6286
6286
|
init_chunk_5XEJSR22();
|
|
6287
6287
|
init_zod();
|
|
6288
6288
|
rekorFileSnapshotAnswerSchema = external_exports.object({
|
|
@@ -6636,7 +6636,7 @@ var init_chunk_Y7CFCYX4 = __esm({
|
|
|
6636
6636
|
}
|
|
6637
6637
|
});
|
|
6638
6638
|
|
|
6639
|
-
// ../../packages/core/dist/chunk-
|
|
6639
|
+
// ../../packages/core/dist/chunk-S5SVBLGT.js
|
|
6640
6640
|
function normalizeContactPhone(raw) {
|
|
6641
6641
|
const compact = raw.trim().replace(/[\s\-.()]/g, "");
|
|
6642
6642
|
const withPlus = compact.startsWith("00") ? `+${compact.slice(2)}` : compact;
|
|
@@ -6648,9 +6648,9 @@ function normalizeContactLabel(raw) {
|
|
|
6648
6648
|
function importRowLabels(row, batchLabels) {
|
|
6649
6649
|
return [.../* @__PURE__ */ new Set([...row.labels ?? [], ...batchLabels ?? []])];
|
|
6650
6650
|
}
|
|
6651
|
-
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,
|
|
6652
|
-
var
|
|
6653
|
-
"../../packages/core/dist/chunk-
|
|
6651
|
+
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;
|
|
6652
|
+
var init_chunk_S5SVBLGT = __esm({
|
|
6653
|
+
"../../packages/core/dist/chunk-S5SVBLGT.js"() {
|
|
6654
6654
|
"use strict";
|
|
6655
6655
|
init_zod();
|
|
6656
6656
|
CONTACT_ENVIRONMENTS = ["production", "preview", "all"];
|
|
@@ -6769,16 +6769,6 @@ var init_chunk_LOCEO2KI = __esm({
|
|
|
6769
6769
|
linkContactBookContactBody = external_exports.object({
|
|
6770
6770
|
user_id: external_exports.string().min(1).max(128)
|
|
6771
6771
|
}).strict();
|
|
6772
|
-
CONTACT_CUSTOMER_BASE_ID_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
6773
|
-
baseId = external_exports.string().regex(CONTACT_CUSTOMER_BASE_ID_PATTERN, { message: "Must be a base id" });
|
|
6774
|
-
recordId = external_exports.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_\-.:]{0,254}$/, { message: "Must be a record id" });
|
|
6775
|
-
linkContactCustomerBody = external_exports.object({
|
|
6776
|
-
base_id: baseId,
|
|
6777
|
-
record_id: recordId
|
|
6778
|
-
}).strict();
|
|
6779
|
-
unlinkContactCustomerQuery = contactBookOrgQuery.extend({
|
|
6780
|
-
base_id: baseId
|
|
6781
|
-
});
|
|
6782
6772
|
listName = external_exports.string().trim().min(1).max(CONTACT_LIST_NAME_MAX).regex(CONTACT_LIST_NAME_REGEX, {
|
|
6783
6773
|
message: 'Must be lowercase alphanumeric with hyphens (e.g. "vip-customers")'
|
|
6784
6774
|
});
|
|
@@ -6821,12 +6811,12 @@ var init_chunk_LOCEO2KI = __esm({
|
|
|
6821
6811
|
}
|
|
6822
6812
|
});
|
|
6823
6813
|
|
|
6824
|
-
// ../../packages/core/dist/chunk-
|
|
6814
|
+
// ../../packages/core/dist/chunk-F5Z4VOPU.js
|
|
6825
6815
|
var PERSON_ID_PATTERN, CONTACT_PERSON_ID_PATTERN, PERSON_DENY_PAGE_MAX, PERSON_ID_FORM_MESSAGE, userPersonIdSchema, personIdSchema, personParam, personLinkParam, deniedPersonParam, listDeniedPersonsQuery;
|
|
6826
|
-
var
|
|
6827
|
-
"../../packages/core/dist/chunk-
|
|
6816
|
+
var init_chunk_F5Z4VOPU = __esm({
|
|
6817
|
+
"../../packages/core/dist/chunk-F5Z4VOPU.js"() {
|
|
6828
6818
|
"use strict";
|
|
6829
|
-
|
|
6819
|
+
init_chunk_S5SVBLGT();
|
|
6830
6820
|
init_zod();
|
|
6831
6821
|
PERSON_ID_PATTERN = /^prs_[a-z2-7]{52}$/;
|
|
6832
6822
|
CONTACT_PERSON_ID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
@@ -6998,10 +6988,10 @@ var init_chunk_FPSDNS2E = __esm({
|
|
|
6998
6988
|
}
|
|
6999
6989
|
});
|
|
7000
6990
|
|
|
7001
|
-
// ../../packages/core/dist/chunk-
|
|
6991
|
+
// ../../packages/core/dist/chunk-L55XSECQ.js
|
|
7002
6992
|
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, 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_CUSTOMER_HEADER, REKOR_BOUND_ACCESS_HEADER, REKOR_BOUND_ACCESS_SCOPE_HEADER, REKOR_BOUND_PAGE_HEADER, REKOR_BOUND_PERSON_HEADER, REKOR_PERSON_AUDIENCE_STAFF, REKOR_PERSON_AUDIENCE_CUSTOMER, REKOR_PERSON_ALL, REKOR_ACCESS_SCOPE_CUSTOMER, 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;
|
|
7003
|
-
var
|
|
7004
|
-
"../../packages/core/dist/chunk-
|
|
6993
|
+
var init_chunk_L55XSECQ = __esm({
|
|
6994
|
+
"../../packages/core/dist/chunk-L55XSECQ.js"() {
|
|
7005
6995
|
"use strict";
|
|
7006
6996
|
init_zod();
|
|
7007
6997
|
REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
|
|
@@ -7057,7 +7047,7 @@ var init_chunk_5ZLNVO63 = __esm({
|
|
|
7057
7047
|
}
|
|
7058
7048
|
});
|
|
7059
7049
|
|
|
7060
|
-
// ../../packages/core/dist/chunk-
|
|
7050
|
+
// ../../packages/core/dist/chunk-XAYDRN6A.js
|
|
7061
7051
|
function isPersonAccessAll(lists) {
|
|
7062
7052
|
return lists !== void 0 && lists.read.length === 1 && lists.read[0] === ACCESS_UNRESTRICTED && lists.write.length === 1 && lists.write[0] === ACCESS_UNRESTRICTED;
|
|
7063
7053
|
}
|
|
@@ -7095,10 +7085,10 @@ function assignmentHasUnrestricted(assignment) {
|
|
|
7095
7085
|
return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
|
|
7096
7086
|
}
|
|
7097
7087
|
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;
|
|
7098
|
-
var
|
|
7099
|
-
"../../packages/core/dist/chunk-
|
|
7088
|
+
var init_chunk_XAYDRN6A = __esm({
|
|
7089
|
+
"../../packages/core/dist/chunk-XAYDRN6A.js"() {
|
|
7100
7090
|
"use strict";
|
|
7101
|
-
|
|
7091
|
+
init_chunk_L55XSECQ();
|
|
7102
7092
|
init_chunk_HZ6CADSY();
|
|
7103
7093
|
init_chunk_YROEDMVZ();
|
|
7104
7094
|
init_zod();
|
|
@@ -7189,7 +7179,7 @@ var init_chunk_642WMH6U = __esm({
|
|
|
7189
7179
|
}
|
|
7190
7180
|
});
|
|
7191
7181
|
|
|
7192
|
-
// ../../packages/core/dist/chunk-
|
|
7182
|
+
// ../../packages/core/dist/chunk-BUYOPDSJ.js
|
|
7193
7183
|
function boundCustomerPartyIsValid(audience, parties, customer) {
|
|
7194
7184
|
return audience !== REKOR_PERSON_AUDIENCE_STAFF && customer < parties.length && Array.isArray(parties[customer]);
|
|
7195
7185
|
}
|
|
@@ -7203,11 +7193,11 @@ function isEncodedBoundPerson(raw) {
|
|
|
7203
7193
|
return rekorBoundPersonSchema.safeParse(parsed).success;
|
|
7204
7194
|
}
|
|
7205
7195
|
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;
|
|
7206
|
-
var
|
|
7207
|
-
"../../packages/core/dist/chunk-
|
|
7196
|
+
var init_chunk_BUYOPDSJ = __esm({
|
|
7197
|
+
"../../packages/core/dist/chunk-BUYOPDSJ.js"() {
|
|
7208
7198
|
"use strict";
|
|
7209
|
-
|
|
7210
|
-
|
|
7199
|
+
init_chunk_XAYDRN6A();
|
|
7200
|
+
init_chunk_L55XSECQ();
|
|
7211
7201
|
init_zod();
|
|
7212
7202
|
TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
7213
7203
|
REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
|
|
@@ -7233,11 +7223,10 @@ var init_chunk_G5MO5PB5 = __esm({
|
|
|
7233
7223
|
batch: external_exports.boolean(),
|
|
7234
7224
|
/**
|
|
7235
7225
|
* The toolset serves one customer per call (#5083 RK2): its every call names the customer it serves,
|
|
7236
|
-
* and reaches only that customer's records and shared ones. Only
|
|
7237
|
-
*
|
|
7226
|
+
* and reaches only that customer's records and shared ones. Only an eval run names one; every other call,
|
|
7227
|
+
* an agent's (#5473 2b1) or a page's (2b2), names none, so it is refused it. Absent on a surface recorded
|
|
7238
7228
|
* before it was, which reads as not scoped until the connection's next tool sync or token save records
|
|
7239
|
-
* it: its calls name no customer
|
|
7240
|
-
* customer page.
|
|
7229
|
+
* it: its calls name no customer.
|
|
7241
7230
|
*/
|
|
7242
7231
|
customer_scoped: external_exports.boolean().optional(),
|
|
7243
7232
|
/**
|
|
@@ -7464,7 +7453,7 @@ var init_chunk_G5MO5PB5 = __esm({
|
|
|
7464
7453
|
});
|
|
7465
7454
|
rekorToolsetFilePutSchema = external_exports.object({ data: rekorToolsetFileSchema });
|
|
7466
7455
|
TOOLSET_CUSTOMER_FACING_REFUSAL_MARK = "A customer-facing agent (a pilot, pilot specialist or pilot advisor) can use a toolset only when it exposes files alone: no record, composite or relationship tools, and neither sql_query nor batch";
|
|
7467
|
-
TOOLSET_CUSTOMER_FACING_REFUSAL = `${TOOLSET_CUSTOMER_FACING_REFUSAL_MARK}, nor a file put, delete or put_url, nor a write of a reviewed record type, nor a kind of tool WayAI does not classify. Its record, composite, relationship and SQL Action tools are admitted to a customer-facing agent, since the data product holds each of
|
|
7456
|
+
TOOLSET_CUSTOMER_FACING_REFUSAL = `${TOOLSET_CUSTOMER_FACING_REFUSAL_MARK}, nor a file put, delete or put_url, nor a write of a reviewed record type, nor a kind of tool WayAI does not classify. Its record, composite, relationship and SQL Action tools are admitted to a customer-facing agent and a customer page, since the data product holds each of their calls to the record types that declare person rules or shared access`;
|
|
7468
7457
|
}
|
|
7469
7458
|
});
|
|
7470
7459
|
|
|
@@ -7681,7 +7670,7 @@ var init_chunk_WEXVYJ5H = __esm({
|
|
|
7681
7670
|
}
|
|
7682
7671
|
});
|
|
7683
7672
|
|
|
7684
|
-
// ../../packages/core/dist/chunk-
|
|
7673
|
+
// ../../packages/core/dist/chunk-FBV7NLKO.js
|
|
7685
7674
|
function utf8ByteLength(text4) {
|
|
7686
7675
|
let bytes = 0;
|
|
7687
7676
|
for (let i = 0; i < text4.length; i++) {
|
|
@@ -7709,8 +7698,8 @@ function pageHtmlIssue(html) {
|
|
|
7709
7698
|
return null;
|
|
7710
7699
|
}
|
|
7711
7700
|
var PAGES_PER_HUB_MAX, PAGE_HTML_MAX_BYTES, PAGE_SLUG_MAX, PAGE_SLUG_REGEX, PAGE_TITLE_MAX, PAGE_DESCRIPTION_MAX, PAGE_ORDER_MAX, PAGE_TOOLS_MAX, PAGE_CONNECTION_NAME_MAX, PAGE_TOOL_NAME_MAX, PAGE_PARAMS_MAX_CHARS, PAGE_AUDIENCES, PAGE_NOTIFY_LEVELS, pageSlugSchema, pageToolSchema, pageParamsSchema, pageManifestObject, pageManifestSchema, pageSummarySchema, hubPagesParam, hubPagesQuery, hubPageParam, pageRevisionSchema, PAGE_TOOL_CALL_BODY_MAX_BYTES, pageToolCallBody, PAGE_REVISION_STALE_CODE;
|
|
7712
|
-
var
|
|
7713
|
-
"../../packages/core/dist/chunk-
|
|
7701
|
+
var init_chunk_FBV7NLKO = __esm({
|
|
7702
|
+
"../../packages/core/dist/chunk-FBV7NLKO.js"() {
|
|
7714
7703
|
"use strict";
|
|
7715
7704
|
init_chunk_WEXVYJ5H();
|
|
7716
7705
|
init_chunk_HZ6CADSY();
|
|
@@ -7763,7 +7752,8 @@ var init_chunk_VFDRJV2E = __esm({
|
|
|
7763
7752
|
/** A team page's: the hub's team users may run its write tools. A `conversation:write` grant on the hub always may. */
|
|
7764
7753
|
team_writes: external_exports.boolean().default(false),
|
|
7765
7754
|
/**
|
|
7766
|
-
* A customer page's: its customers may run its write tools, each on their own records
|
|
7755
|
+
* A customer page's: its customers may run its write tools (opt-in), each on their own records of a person-ruled
|
|
7756
|
+
* record type, and on every record of a `{ shared: true }` one (wayai#5473 2b2). Stored
|
|
7767
7757
|
* only when stated, so a page that states none (every team page) keeps the manifest it had.
|
|
7768
7758
|
*/
|
|
7769
7759
|
customer_writes: external_exports.boolean().optional(),
|
|
@@ -7852,13 +7842,13 @@ var init_chunk_VFDRJV2E = __esm({
|
|
|
7852
7842
|
}
|
|
7853
7843
|
});
|
|
7854
7844
|
|
|
7855
|
-
// ../../packages/core/dist/chunk-
|
|
7845
|
+
// ../../packages/core/dist/chunk-XH4PIFRT.js
|
|
7856
7846
|
var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
|
|
7857
|
-
var
|
|
7858
|
-
"../../packages/core/dist/chunk-
|
|
7847
|
+
var init_chunk_XH4PIFRT = __esm({
|
|
7848
|
+
"../../packages/core/dist/chunk-XH4PIFRT.js"() {
|
|
7859
7849
|
"use strict";
|
|
7860
|
-
|
|
7861
|
-
|
|
7850
|
+
init_chunk_BUYOPDSJ();
|
|
7851
|
+
init_chunk_FBV7NLKO();
|
|
7862
7852
|
init_chunk_HZ6CADSY();
|
|
7863
7853
|
init_zod();
|
|
7864
7854
|
hubPageWatchParam = external_exports.object({ hub_id: uuidSchema, slug: pageSlugSchema, watch_id: uuidSchema });
|
|
@@ -12034,12 +12024,12 @@ var init_chunk_6J742GLA = __esm({
|
|
|
12034
12024
|
}
|
|
12035
12025
|
});
|
|
12036
12026
|
|
|
12037
|
-
// ../../packages/core/dist/chunk-
|
|
12027
|
+
// ../../packages/core/dist/chunk-6YIKY5UC.js
|
|
12038
12028
|
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;
|
|
12039
|
-
var
|
|
12040
|
-
"../../packages/core/dist/chunk-
|
|
12029
|
+
var init_chunk_6YIKY5UC = __esm({
|
|
12030
|
+
"../../packages/core/dist/chunk-6YIKY5UC.js"() {
|
|
12041
12031
|
"use strict";
|
|
12042
|
-
|
|
12032
|
+
init_chunk_S5SVBLGT();
|
|
12043
12033
|
init_chunk_6J742GLA();
|
|
12044
12034
|
init_chunk_ZVXO3XL6();
|
|
12045
12035
|
init_chunk_HZ6CADSY();
|
|
@@ -12143,7 +12133,7 @@ var init_chunk_NZU2FWVV = __esm({
|
|
|
12143
12133
|
}
|
|
12144
12134
|
});
|
|
12145
12135
|
|
|
12146
|
-
// ../../packages/core/dist/chunk-
|
|
12136
|
+
// ../../packages/core/dist/chunk-ZA6REWD4.js
|
|
12147
12137
|
function parseCommunityLessonVideoUrl(url) {
|
|
12148
12138
|
const parts = /^https?:\/\/([^/?#]+)([^?#]*)(?:\?([^#]*))?(?:#.*)?$/i.exec(url.trim());
|
|
12149
12139
|
if (!parts) return null;
|
|
@@ -12169,10 +12159,10 @@ function communityLessonVideoWatchUrl(video) {
|
|
|
12169
12159
|
}
|
|
12170
12160
|
}
|
|
12171
12161
|
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;
|
|
12172
|
-
var
|
|
12173
|
-
"../../packages/core/dist/chunk-
|
|
12162
|
+
var init_chunk_ZA6REWD4 = __esm({
|
|
12163
|
+
"../../packages/core/dist/chunk-ZA6REWD4.js"() {
|
|
12174
12164
|
"use strict";
|
|
12175
|
-
|
|
12165
|
+
init_chunk_6YIKY5UC();
|
|
12176
12166
|
init_chunk_HZ6CADSY();
|
|
12177
12167
|
init_zod();
|
|
12178
12168
|
COMMUNITY_COURSES_MAX = 20;
|
|
@@ -14000,7 +13990,7 @@ var init_chunk_TU4Y4MEX = __esm({
|
|
|
14000
13990
|
}
|
|
14001
13991
|
});
|
|
14002
13992
|
|
|
14003
|
-
// ../../packages/core/dist/chunk-
|
|
13993
|
+
// ../../packages/core/dist/chunk-TRA7DRML.js
|
|
14004
13994
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
14005
13995
|
const agents = config.agents;
|
|
14006
13996
|
if (!Array.isArray(agents)) return;
|
|
@@ -14610,11 +14600,11 @@ function skillSectionsAsResources(scope) {
|
|
|
14610
14600
|
};
|
|
14611
14601
|
}
|
|
14612
14602
|
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, hubAsCodeStateSchema, hubAsCodeResourceFileSchema, hubAsCodeResourceSchema, uuidPattern, ciUuidSchema, 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;
|
|
14613
|
-
var
|
|
14614
|
-
"../../packages/core/dist/chunk-
|
|
14603
|
+
var init_chunk_TRA7DRML = __esm({
|
|
14604
|
+
"../../packages/core/dist/chunk-TRA7DRML.js"() {
|
|
14615
14605
|
"use strict";
|
|
14616
14606
|
init_chunk_SARVKRZB();
|
|
14617
|
-
|
|
14607
|
+
init_chunk_XAYDRN6A();
|
|
14618
14608
|
init_chunk_HSQZYXKA();
|
|
14619
14609
|
init_chunk_LBDH7LCG();
|
|
14620
14610
|
init_chunk_4LXDRTO4();
|
|
@@ -14624,7 +14614,7 @@ var init_chunk_H27PRUAQ = __esm({
|
|
|
14624
14614
|
init_chunk_5FTGVRDF();
|
|
14625
14615
|
init_chunk_S4VDZ7PZ();
|
|
14626
14616
|
init_chunk_C2UEA2KW();
|
|
14627
|
-
|
|
14617
|
+
init_chunk_FBV7NLKO();
|
|
14628
14618
|
init_chunk_WEXVYJ5H();
|
|
14629
14619
|
init_chunk_Q3WAAJBA();
|
|
14630
14620
|
init_chunk_YROEDMVZ();
|
|
@@ -15671,15 +15661,15 @@ var init_chunk_JO53JB35 = __esm({
|
|
|
15671
15661
|
}
|
|
15672
15662
|
});
|
|
15673
15663
|
|
|
15674
|
-
// ../../packages/core/dist/chunk-
|
|
15664
|
+
// ../../packages/core/dist/chunk-ZU2FJGU3.js
|
|
15675
15665
|
function filterNamesAnything(filter) {
|
|
15676
15666
|
return filter.labels.length + filter.scope_tag_ids.length > 0;
|
|
15677
15667
|
}
|
|
15678
15668
|
var hubListNameSchema, HUB_LIST_FILTER_REQUIRED, hubContactListFilterSchema, hubContactListIdParam, hubContactListHubQuery, description, createHubContactListBody, updateHubContactListBody;
|
|
15679
|
-
var
|
|
15680
|
-
"../../packages/core/dist/chunk-
|
|
15669
|
+
var init_chunk_ZU2FJGU3 = __esm({
|
|
15670
|
+
"../../packages/core/dist/chunk-ZU2FJGU3.js"() {
|
|
15681
15671
|
"use strict";
|
|
15682
|
-
|
|
15672
|
+
init_chunk_S5SVBLGT();
|
|
15683
15673
|
init_zod();
|
|
15684
15674
|
hubListNameSchema = orgListReferenceSchema;
|
|
15685
15675
|
HUB_LIST_FILTER_REQUIRED = "A hub list names at least one label or scope tag";
|
|
@@ -15705,13 +15695,13 @@ var init_chunk_4RUAEE3H = __esm({
|
|
|
15705
15695
|
}
|
|
15706
15696
|
});
|
|
15707
15697
|
|
|
15708
|
-
// ../../packages/core/dist/chunk-
|
|
15698
|
+
// ../../packages/core/dist/chunk-CL2SULM6.js
|
|
15709
15699
|
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;
|
|
15710
|
-
var
|
|
15711
|
-
"../../packages/core/dist/chunk-
|
|
15700
|
+
var init_chunk_CL2SULM6 = __esm({
|
|
15701
|
+
"../../packages/core/dist/chunk-CL2SULM6.js"() {
|
|
15712
15702
|
"use strict";
|
|
15713
|
-
|
|
15714
|
-
|
|
15703
|
+
init_chunk_ZU2FJGU3();
|
|
15704
|
+
init_chunk_S5SVBLGT();
|
|
15715
15705
|
init_chunk_5FTGVRDF();
|
|
15716
15706
|
init_chunk_5XEJSR22();
|
|
15717
15707
|
init_chunk_Q3WAAJBA();
|
|
@@ -15902,7 +15892,7 @@ var init_chunk_SOJMWM63 = __esm({
|
|
|
15902
15892
|
}
|
|
15903
15893
|
});
|
|
15904
15894
|
|
|
15905
|
-
// ../../packages/core/dist/chunk-
|
|
15895
|
+
// ../../packages/core/dist/chunk-B6PT7ZSX.js
|
|
15906
15896
|
function capped(max, field) {
|
|
15907
15897
|
return (value, ctx) => {
|
|
15908
15898
|
if (!withinJsonLength(value, max)) {
|
|
@@ -15911,11 +15901,11 @@ function capped(max, field) {
|
|
|
15911
15901
|
};
|
|
15912
15902
|
}
|
|
15913
15903
|
var INTERACTIVE_PAGE_PARAMS_MAX_CHARS, interactivePageSchema, INTERACTIVE_TEMPLATE_PARAMS_MAX_CHARS, INTERACTIVE_TEMPLATE_DATA_MAX_CHARS, INTERACTIVE_TEMPLATE_STATUSES, interactiveTemplateSchema, interactiveSchema, INTERACTIVE_KINDS, KNOWN_KINDS;
|
|
15914
|
-
var
|
|
15915
|
-
"../../packages/core/dist/chunk-
|
|
15904
|
+
var init_chunk_B6PT7ZSX = __esm({
|
|
15905
|
+
"../../packages/core/dist/chunk-B6PT7ZSX.js"() {
|
|
15916
15906
|
"use strict";
|
|
15917
15907
|
init_chunk_VOBDVWNC();
|
|
15918
|
-
|
|
15908
|
+
init_chunk_FBV7NLKO();
|
|
15919
15909
|
init_chunk_HZ6CADSY();
|
|
15920
15910
|
init_zod();
|
|
15921
15911
|
INTERACTIVE_PAGE_PARAMS_MAX_CHARS = 4 * 1024;
|
|
@@ -16033,10 +16023,10 @@ var init_chunk_WFQDSQJK = __esm({
|
|
|
16033
16023
|
}
|
|
16034
16024
|
});
|
|
16035
16025
|
|
|
16036
|
-
// ../../packages/core/dist/chunk-
|
|
16026
|
+
// ../../packages/core/dist/chunk-EV3MAOEX.js
|
|
16037
16027
|
var APP_ERROR_BRAND, AppError, PAGE_CUSTOMER_UNAVAILABLE_CODE, LLM_RATE_LIMIT_BRAND, LlmRateLimitError, LLM_PROVIDER_HTTP_BRAND, LlmProviderHttpError, LLM_PROVIDER_CONTENT_BRAND, LlmProviderContentError, LLM_PROVIDER_TIMEOUT_BRAND, LlmProviderTimeoutError, ExternalServiceError, CHANNEL_PROVIDER_HTTP_BRAND, ChannelProviderHttpError, MEDIA_PROVIDER_HTTP_BRAND, MediaProviderHttpError;
|
|
16038
|
-
var
|
|
16039
|
-
"../../packages/core/dist/chunk-
|
|
16028
|
+
var init_chunk_EV3MAOEX = __esm({
|
|
16029
|
+
"../../packages/core/dist/chunk-EV3MAOEX.js"() {
|
|
16040
16030
|
"use strict";
|
|
16041
16031
|
init_chunk_WFQDSQJK();
|
|
16042
16032
|
APP_ERROR_BRAND = /* @__PURE__ */ Symbol.for("wayai.AppError");
|
|
@@ -16162,20 +16152,20 @@ var init_contracts = __esm({
|
|
|
16162
16152
|
init_chunk_ZC6YGHNX();
|
|
16163
16153
|
init_chunk_ACKF2MVU();
|
|
16164
16154
|
init_chunk_GPYAZPH7();
|
|
16165
|
-
|
|
16155
|
+
init_chunk_7QJBCQR3();
|
|
16166
16156
|
init_chunk_IPDOHAZ5();
|
|
16167
16157
|
init_chunk_GPM7PE44();
|
|
16168
16158
|
init_chunk_VEERWOZ6();
|
|
16169
16159
|
init_chunk_ZXK6N2HN();
|
|
16170
16160
|
init_chunk_Y7CFCYX4();
|
|
16171
|
-
|
|
16161
|
+
init_chunk_F5Z4VOPU();
|
|
16172
16162
|
init_chunk_5DGHIY7L();
|
|
16173
16163
|
init_chunk_YUZFHVB2();
|
|
16174
16164
|
init_chunk_I3O2RACG();
|
|
16175
16165
|
init_chunk_34LE6P7E();
|
|
16176
16166
|
init_chunk_FPSDNS2E();
|
|
16177
|
-
|
|
16178
|
-
|
|
16167
|
+
init_chunk_XH4PIFRT();
|
|
16168
|
+
init_chunk_BUYOPDSJ();
|
|
16179
16169
|
init_chunk_OPETF4GS();
|
|
16180
16170
|
init_chunk_SY6PLCPK();
|
|
16181
16171
|
init_chunk_KMAC3O3L();
|
|
@@ -16185,8 +16175,8 @@ var init_contracts = __esm({
|
|
|
16185
16175
|
init_chunk_UI6YFSZL();
|
|
16186
16176
|
init_chunk_C4HEZ7ZI();
|
|
16187
16177
|
init_chunk_IR2NOSI3();
|
|
16188
|
-
|
|
16189
|
-
|
|
16178
|
+
init_chunk_ZA6REWD4();
|
|
16179
|
+
init_chunk_6YIKY5UC();
|
|
16190
16180
|
init_chunk_YULHXJ5M();
|
|
16191
16181
|
init_chunk_V4FRPRH5();
|
|
16192
16182
|
init_chunk_LWMLR2WI();
|
|
@@ -16197,10 +16187,10 @@ var init_contracts = __esm({
|
|
|
16197
16187
|
init_chunk_E4DIIOOE();
|
|
16198
16188
|
init_chunk_7CYHPF35();
|
|
16199
16189
|
init_chunk_BPCNB5RT();
|
|
16200
|
-
|
|
16190
|
+
init_chunk_TRA7DRML();
|
|
16201
16191
|
init_chunk_SARVKRZB();
|
|
16202
|
-
|
|
16203
|
-
|
|
16192
|
+
init_chunk_XAYDRN6A();
|
|
16193
|
+
init_chunk_L55XSECQ();
|
|
16204
16194
|
init_chunk_HSQZYXKA();
|
|
16205
16195
|
init_chunk_LBDH7LCG();
|
|
16206
16196
|
init_chunk_4LXDRTO4();
|
|
@@ -16217,13 +16207,13 @@ var init_contracts = __esm({
|
|
|
16217
16207
|
init_chunk_2PZIF56U();
|
|
16218
16208
|
init_chunk_UEJOG2Q7();
|
|
16219
16209
|
init_chunk_JO53JB35();
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16210
|
+
init_chunk_CL2SULM6();
|
|
16211
|
+
init_chunk_ZU2FJGU3();
|
|
16212
|
+
init_chunk_S5SVBLGT();
|
|
16223
16213
|
init_chunk_5FTGVRDF();
|
|
16224
16214
|
init_chunk_IG6QBZMA();
|
|
16225
16215
|
init_chunk_OMPT4ZHR();
|
|
16226
|
-
|
|
16216
|
+
init_chunk_D7SSWNL3();
|
|
16227
16217
|
init_chunk_SOJMWM63();
|
|
16228
16218
|
init_chunk_WTOA3ANF();
|
|
16229
16219
|
init_chunk_5XEJSR22();
|
|
@@ -16236,10 +16226,10 @@ var init_contracts = __esm({
|
|
|
16236
16226
|
init_chunk_C2UEA2KW();
|
|
16237
16227
|
init_chunk_6J742GLA();
|
|
16238
16228
|
init_chunk_ZVXO3XL6();
|
|
16239
|
-
|
|
16229
|
+
init_chunk_B6PT7ZSX();
|
|
16240
16230
|
init_chunk_VOBDVWNC();
|
|
16241
16231
|
init_chunk_ZIGA5RCU();
|
|
16242
|
-
|
|
16232
|
+
init_chunk_FBV7NLKO();
|
|
16243
16233
|
init_chunk_WEXVYJ5H();
|
|
16244
16234
|
init_chunk_6TSQ5HXC();
|
|
16245
16235
|
init_chunk_HZ6CADSY();
|
|
@@ -16250,7 +16240,7 @@ var init_contracts = __esm({
|
|
|
16250
16240
|
init_chunk_MIWZOSPI();
|
|
16251
16241
|
init_chunk_YROEDMVZ();
|
|
16252
16242
|
init_chunk_L5F7ZOUJ();
|
|
16253
|
-
|
|
16243
|
+
init_chunk_EV3MAOEX();
|
|
16254
16244
|
init_chunk_WFQDSQJK();
|
|
16255
16245
|
}
|
|
16256
16246
|
});
|
|
@@ -16384,7 +16374,7 @@ var UUID_RE2, WAYAI_WORKSPACE_LAYOUT;
|
|
|
16384
16374
|
var init_dist = __esm({
|
|
16385
16375
|
"../../packages/core/dist/index.js"() {
|
|
16386
16376
|
"use strict";
|
|
16387
|
-
|
|
16377
|
+
init_chunk_D7SSWNL3();
|
|
16388
16378
|
init_chunk_SOJMWM63();
|
|
16389
16379
|
init_chunk_WTOA3ANF();
|
|
16390
16380
|
init_chunk_5XEJSR22();
|
|
@@ -16410,7 +16400,7 @@ var init_dist = __esm({
|
|
|
16410
16400
|
init_chunk_MIWZOSPI();
|
|
16411
16401
|
init_chunk_YROEDMVZ();
|
|
16412
16402
|
init_chunk_L5F7ZOUJ();
|
|
16413
|
-
|
|
16403
|
+
init_chunk_EV3MAOEX();
|
|
16414
16404
|
init_chunk_WFQDSQJK();
|
|
16415
16405
|
UUID_RE2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
16416
16406
|
WAYAI_WORKSPACE_LAYOUT = {
|
|
@@ -18172,19 +18162,6 @@ var init_api_client = __esm({
|
|
|
18172
18162
|
}
|
|
18173
18163
|
// The org-admin community routes (gh #5003, `wayai communities`): an owner or admin of the
|
|
18174
18164
|
// community's org, on an interactive session only — a scoped token is refused with 403.
|
|
18175
|
-
/**
|
|
18176
|
-
* Link a contact to its customer record, a root record of one of the org's bases (#5083 RK2 A3).
|
|
18177
|
-
* A browser sign-in only: the route refuses an API token.
|
|
18178
|
-
*/
|
|
18179
|
-
async linkContactCustomer(orgId, contactId, body) {
|
|
18180
|
-
const qs = new URLSearchParams({ organization_id: orgId });
|
|
18181
|
-
return this.request("PUT", `/api/contact-book/contacts/${encodeURIComponent(contactId)}/customer?${qs}`, body);
|
|
18182
|
-
}
|
|
18183
|
-
/** Unlink a contact from its customer record in one base (owner decision 142). A browser sign-in only. */
|
|
18184
|
-
async unlinkContactCustomer(orgId, contactId, baseId2) {
|
|
18185
|
-
const qs = new URLSearchParams({ organization_id: orgId, base_id: baseId2 });
|
|
18186
|
-
return this.request("DELETE", `/api/contact-book/contacts/${encodeURIComponent(contactId)}/customer?${qs}`);
|
|
18187
|
-
}
|
|
18188
18165
|
// Person links and the deny list (wayai-pro/wayai#5473 §1): a browser sign-in only — each route refuses
|
|
18189
18166
|
// an API token. A link takes org:write over the organization; the rest an organization admin.
|
|
18190
18167
|
/** Whom a person id names in the organization: the hub where a conversation carries it, and that hub's name and email for them. */
|
|
@@ -21465,10 +21442,10 @@ var init_call_openings = __esm({
|
|
|
21465
21442
|
var init_pages = __esm({
|
|
21466
21443
|
"../../packages/core/dist/contracts/pages.js"() {
|
|
21467
21444
|
"use strict";
|
|
21468
|
-
|
|
21445
|
+
init_chunk_FBV7NLKO();
|
|
21469
21446
|
init_chunk_WEXVYJ5H();
|
|
21470
21447
|
init_chunk_HZ6CADSY();
|
|
21471
|
-
|
|
21448
|
+
init_chunk_EV3MAOEX();
|
|
21472
21449
|
init_chunk_WFQDSQJK();
|
|
21473
21450
|
}
|
|
21474
21451
|
});
|
|
@@ -23658,12 +23635,12 @@ function writeBaseFolder(folder, meta, config) {
|
|
|
23658
23635
|
}
|
|
23659
23636
|
return delta;
|
|
23660
23637
|
}
|
|
23661
|
-
function markProductionMirror(folder,
|
|
23638
|
+
function markProductionMirror(folder, baseId) {
|
|
23662
23639
|
const file = path23.join(folder, BASE_META_FILE);
|
|
23663
23640
|
try {
|
|
23664
23641
|
const body = readFileNoFollow(folder, file)?.toString("utf-8");
|
|
23665
23642
|
if (body === void 0 || body.startsWith(MIRROR_MARKER_PREFIX)) return;
|
|
23666
|
-
const banner = `${MIRROR_MARKER_PREFIX} "${
|
|
23643
|
+
const banner = `${MIRROR_MARKER_PREFIX} "${baseId}". Edits are ignored; \`wayai push\` refuses it. Edit the linked preview instead.
|
|
23667
23644
|
`;
|
|
23668
23645
|
writeFileNoFollow(folder, file, Buffer.from(banner + body, "utf-8"));
|
|
23669
23646
|
} catch {
|
|
@@ -23795,10 +23772,10 @@ function createPreview(client, originId, opts) {
|
|
|
23795
23772
|
...opts.analytics ? { analytics: opts.analytics } : {}
|
|
23796
23773
|
});
|
|
23797
23774
|
}
|
|
23798
|
-
function deleteEntity(client,
|
|
23775
|
+
function deleteEntity(client, baseId, kind, id) {
|
|
23799
23776
|
return client.request(
|
|
23800
23777
|
"DELETE",
|
|
23801
|
-
`/v1/${pathSegment(
|
|
23778
|
+
`/v1/${pathSegment(baseId, "base id")}/${ENTITY_DIRS[kind]}/${pathSegment(id, `${kind} id`)}`
|
|
23802
23779
|
);
|
|
23803
23780
|
}
|
|
23804
23781
|
var init_api = __esm({
|
|
@@ -24011,40 +23988,40 @@ async function pullBase(gitRootOrNull, selector, args2) {
|
|
|
24011
23988
|
const gitRoot = requireGitRoot(gitRootOrNull);
|
|
24012
23989
|
const target = resolveBaseTarget(gitRoot, selector);
|
|
24013
23990
|
const basesDir = resolveBasesDir(gitRoot);
|
|
24014
|
-
const
|
|
24015
|
-
if (!
|
|
23991
|
+
const baseId = targetBaseId(target, selector);
|
|
23992
|
+
if (!baseId) {
|
|
24016
23993
|
throw expected(
|
|
24017
23994
|
`Could not determine the base id for ${target.folder}. Pass the base id explicitly.`
|
|
24018
23995
|
);
|
|
24019
23996
|
}
|
|
24020
23997
|
const client = await createDataClient();
|
|
24021
23998
|
console.log("Fetching base configuration...");
|
|
24022
|
-
const record = await getBaseRecord(client,
|
|
23999
|
+
const record = await getBaseRecord(client, baseId);
|
|
24023
24000
|
if (record.environment === "production") {
|
|
24024
|
-
const folder = await writeProductionMirror(client, basesDir, record.id ??
|
|
24001
|
+
const folder = await writeProductionMirror(client, basesDir, record.id ?? baseId, record);
|
|
24025
24002
|
console.log(`Production base mirrored (read-only) \u2192 ${folder}`);
|
|
24026
24003
|
return;
|
|
24027
24004
|
}
|
|
24028
|
-
assertInScope("bases",
|
|
24005
|
+
assertInScope("bases", baseId);
|
|
24029
24006
|
if (target.exists && !autoConfirm) {
|
|
24030
24007
|
const ok = await confirm(
|
|
24031
|
-
`Overwrite local files in ${path25.relative(gitRoot, target.folder)} with the server config for "${sanitizeTerminalText(
|
|
24008
|
+
`Overwrite local files in ${path25.relative(gitRoot, target.folder)} with the server config for "${sanitizeTerminalText(baseId)}"?`
|
|
24032
24009
|
);
|
|
24033
24010
|
if (!ok) {
|
|
24034
24011
|
console.log("Cancelled.");
|
|
24035
24012
|
return;
|
|
24036
24013
|
}
|
|
24037
24014
|
}
|
|
24038
|
-
const config = await getConfig(client,
|
|
24015
|
+
const config = await getConfig(client, baseId);
|
|
24039
24016
|
const isFirstPull = !target.exists;
|
|
24040
|
-
const delta = writeBaseFolder(target.folder, metaFromRecord(record,
|
|
24017
|
+
const delta = writeBaseFolder(target.folder, metaFromRecord(record, baseId), config);
|
|
24041
24018
|
console.log(`Base configuration written to ${target.folder}`);
|
|
24042
24019
|
console.log(
|
|
24043
24020
|
` ${ENTITY_KINDS.map((kind) => `${(config[kind] ?? []).length} ${kind}`).join(", ")}`
|
|
24044
24021
|
);
|
|
24045
24022
|
if (!isFirstPull) printLocalFileChanges(delta);
|
|
24046
24023
|
console.log(" Credential values are not written. Manage them with `wayai bases credentials`.");
|
|
24047
|
-
seedScopeIfEmpty("bases",
|
|
24024
|
+
seedScopeIfEmpty("bases", baseId);
|
|
24048
24025
|
if (record.origin_base_id) {
|
|
24049
24026
|
await mirrorLinkedProduction(client, basesDir, record.origin_base_id);
|
|
24050
24027
|
}
|
|
@@ -24114,25 +24091,25 @@ async function pushBase(gitRootOrNull, selector, args2) {
|
|
|
24114
24091
|
return;
|
|
24115
24092
|
}
|
|
24116
24093
|
const client = await createDataClient();
|
|
24117
|
-
let
|
|
24118
|
-
if (!
|
|
24094
|
+
let baseId = meta.base_id;
|
|
24095
|
+
if (!baseId) {
|
|
24119
24096
|
const created = await createDeclaredPreview(client, target, parsed, autoConfirm);
|
|
24120
24097
|
if (!created) return;
|
|
24121
|
-
|
|
24098
|
+
baseId = created;
|
|
24122
24099
|
} else {
|
|
24123
|
-
const record = await getBaseRecord(client,
|
|
24100
|
+
const record = await getBaseRecord(client, baseId);
|
|
24124
24101
|
if (record.environment && record.environment !== "preview") {
|
|
24125
24102
|
throw expected(
|
|
24126
|
-
`"${sanitizeTerminalText(
|
|
24103
|
+
`"${sanitizeTerminalText(baseId)}" is a ${sanitizeTerminalText(record.environment)} base. Push operates on previews \u2014 promote with \`wayai bases promote\`.`
|
|
24127
24104
|
);
|
|
24128
24105
|
}
|
|
24129
|
-
assertInScope("bases",
|
|
24106
|
+
assertInScope("bases", baseId);
|
|
24130
24107
|
}
|
|
24131
|
-
const diff = await diffConfig(client,
|
|
24108
|
+
const diff = await diffConfig(client, baseId, config);
|
|
24132
24109
|
printLintWarnings(diff.warnings);
|
|
24133
24110
|
if (isDiffEmpty(diff)) {
|
|
24134
|
-
console.log(`No changes \u2014 preview "${sanitizeTerminalText(
|
|
24135
|
-
if (!dryRun) seedScopeIfEmpty("bases",
|
|
24111
|
+
console.log(`No changes \u2014 preview "${sanitizeTerminalText(baseId)}" already matches your files.`);
|
|
24112
|
+
if (!dryRun) seedScopeIfEmpty("bases", baseId);
|
|
24136
24113
|
return;
|
|
24137
24114
|
}
|
|
24138
24115
|
console.log(renderDiff(diff));
|
|
@@ -24142,13 +24119,13 @@ async function pushBase(gitRootOrNull, selector, args2) {
|
|
|
24142
24119
|
}
|
|
24143
24120
|
if (!autoConfirm) {
|
|
24144
24121
|
const ok = await confirm(`
|
|
24145
|
-
Apply these changes to preview "${sanitizeTerminalText(
|
|
24122
|
+
Apply these changes to preview "${sanitizeTerminalText(baseId)}"?`);
|
|
24146
24123
|
if (!ok) {
|
|
24147
24124
|
console.log("Cancelled.");
|
|
24148
24125
|
return;
|
|
24149
24126
|
}
|
|
24150
24127
|
}
|
|
24151
|
-
const result = await applyConfig(client,
|
|
24128
|
+
const result = await applyConfig(client, baseId, config);
|
|
24152
24129
|
const secretGroups = [
|
|
24153
24130
|
["trigger", result.new_trigger_secrets],
|
|
24154
24131
|
["inbound webhook", result.new_inbound_webhook_secrets]
|
|
@@ -24175,7 +24152,7 @@ ${RED}${removals.length} ${word} not in your files were left on the base. Re-run
|
|
|
24175
24152
|
Delete ${removals.length} server ${word} not in your files? Record types cascade to their records, file types to their files.`
|
|
24176
24153
|
)) {
|
|
24177
24154
|
for (const removal of removals) {
|
|
24178
|
-
await deleteEntity(client,
|
|
24155
|
+
await deleteEntity(client, baseId, removal.kind, removal.id);
|
|
24179
24156
|
console.log(` - deleted ${removal.kind} ${sanitizeTerminalText(removal.id)}`);
|
|
24180
24157
|
}
|
|
24181
24158
|
} else {
|
|
@@ -24183,8 +24160,8 @@ Delete ${removals.length} server ${word} not in your files? Record types cascade
|
|
|
24183
24160
|
}
|
|
24184
24161
|
}
|
|
24185
24162
|
console.log(`
|
|
24186
|
-
Pushed to preview "${sanitizeTerminalText(
|
|
24187
|
-
seedScopeIfEmpty("bases",
|
|
24163
|
+
Pushed to preview "${sanitizeTerminalText(baseId)}".`);
|
|
24164
|
+
seedScopeIfEmpty("bases", baseId);
|
|
24188
24165
|
}
|
|
24189
24166
|
var init_sync = __esm({
|
|
24190
24167
|
"src/data/config-as-code/sync.ts"() {
|
|
@@ -28126,7 +28103,7 @@ function scaffoldPage(input) {
|
|
|
28126
28103
|
throw expected(issues.map((issue) => `page "${input.slug}": ${issue}`).join("\n"));
|
|
28127
28104
|
}
|
|
28128
28105
|
const { slug: _slug, ...written } = manifest;
|
|
28129
|
-
const header = customers ? "# The page's manifest: pages.md in the WayAI skill has every field, and its Customer Pages section\n# what a customer page may reach. Hub Users given access on the Users tab open it from their own\n# conversation's header; those an account-mode hub adds automatically are admitted but have no way in\n# from the apps yet.\n#
|
|
28106
|
+
const header = customers ? "# The page's manifest: pages.md in the WayAI skill has every field, and its Customer Pages section\n# what a customer page may reach. Hub Users given access on the Users tab open it from their own\n# conversation's header; those an account-mode hub adds automatically are admitted but have no way in\n# from the apps yet.\n# Each call is for the person using it: add the tool it lists to tools, from a Base Toolset connection\n# whose record types declare person entries or { shared: true }, so each customer reads only their own\n# records and shared ones:\n# tools: - { connection: <a Base Toolset connection in hub.yaml>, tool: <its list tool>, notify: none }\n# It only reads. customer_writes: true lets each customer run its write tools: on their own records, and on\n# every record of a { shared: true } type, which every other customer then sees.\n" : "# The page's manifest: pages.md in the WayAI skill has every field. Add each tool the page calls to\n# tools: - { connection: <a Base Toolset connection in hub.yaml>, tool: <its tool name>, notify: none }\n";
|
|
28130
28107
|
const manifestYaml = header + yaml16.dump(written, YAML_DUMP_OPTIONS);
|
|
28131
28108
|
return { manifestYaml, html: starterHtml(input.slug, parsed.data.title) };
|
|
28132
28109
|
}
|
|
@@ -35576,8 +35553,6 @@ function parse2(args2) {
|
|
|
35576
35553
|
args: args2,
|
|
35577
35554
|
options: {
|
|
35578
35555
|
org: { type: "string" },
|
|
35579
|
-
base: { type: "string" },
|
|
35580
|
-
record: { type: "string" },
|
|
35581
35556
|
to: { type: "string" },
|
|
35582
35557
|
cursor: { type: "string" },
|
|
35583
35558
|
limit: { type: "string" },
|
|
@@ -35633,24 +35608,7 @@ function entryLine(entry) {
|
|
|
35633
35608
|
function print(values, data, lines) {
|
|
35634
35609
|
console.log(values.json ? JSON.stringify(data, null, 2) : lines.join("\n"));
|
|
35635
35610
|
}
|
|
35636
|
-
async function customerRecord(sub, positionals, values) {
|
|
35637
|
-
const [contactId, ...extra] = positionals;
|
|
35638
|
-
if (contactId === void 0 || extra.length > 0) throw usageError3(`${sub} takes one <contact_id>.`);
|
|
35639
|
-
if (!UUID_RE3.test(contactId)) throw usageError3(`Invalid <contact_id> ${JSON.stringify(contactId)}: expected a contact id (a UUID).`);
|
|
35640
|
-
refuseFlags(sub, values, ["to", "cursor", "limit"]);
|
|
35641
|
-
if (!values.base) throw usageError3(`${sub} needs --base <base_id>.`);
|
|
35642
|
-
if (!isValidBaseId(values.base)) throw usageError3(`Invalid --base ${JSON.stringify(values.base)}: a base id is ${BASE_ID_RULE}.`);
|
|
35643
|
-
if (sub === "link-customer" && !values.record) throw usageError3("link-customer needs --record <record_id>.");
|
|
35644
|
-
if (sub === "unlink-customer" && values.record !== void 0) throw usageError3("--record applies only to link-customer.");
|
|
35645
|
-
const orgId = resolveOrgId2(values.org);
|
|
35646
|
-
await withApi(async (api) => {
|
|
35647
|
-
const { customer } = sub === "link-customer" ? await api.linkContactCustomer(orgId, contactId, { base_id: values.base, record_id: values.record }) : await api.unlinkContactCustomer(orgId, contactId, values.base);
|
|
35648
|
-
const where = `base ${text2(customer.base_id)} (${text2(customer.record_type)})`;
|
|
35649
|
-
print(values, customer, [sub === "link-customer" ? `Contact ${customer.contact_id} is linked to customer record ${text2(customer.record_id)} in ${where}.` : `Contact ${customer.contact_id} is unlinked from customer record ${text2(customer.record_id)} in ${where}; the record keeps the contact id under ${customer.external_source}.`]);
|
|
35650
|
-
});
|
|
35651
|
-
}
|
|
35652
35611
|
async function persons(sub, positionals, values) {
|
|
35653
|
-
refuseFlags(sub, values, ["base", "record"]);
|
|
35654
35612
|
const takesTo = sub === "link-person" || sub === "unlink-person";
|
|
35655
35613
|
if (!takesTo) refuseFlags(sub, values, ["to"]);
|
|
35656
35614
|
if (sub !== "denied-persons") refuseFlags(sub, values, ["cursor", "limit"]);
|
|
@@ -35728,9 +35686,7 @@ async function contactsCommand(args2) {
|
|
|
35728
35686
|
const { values, positionals } = parse2(args2);
|
|
35729
35687
|
const [sub, ...rest] = positionals;
|
|
35730
35688
|
if (!SUBCOMMANDS2.includes(sub)) throw usageError3(`Unknown subcommand ${JSON.stringify(sub)}.`);
|
|
35731
|
-
|
|
35732
|
-
if (command2 === "link-customer" || command2 === "unlink-customer") return customerRecord(command2, rest, values);
|
|
35733
|
-
return persons(command2, rest, values);
|
|
35689
|
+
return persons(sub, rest, values);
|
|
35734
35690
|
}
|
|
35735
35691
|
var USAGE4, SUBCOMMANDS2, text2;
|
|
35736
35692
|
var init_contacts = __esm({
|
|
@@ -35743,15 +35699,12 @@ var init_contacts = __esm({
|
|
|
35743
35699
|
init_repo_config();
|
|
35744
35700
|
init_terminal_output();
|
|
35745
35701
|
init_token_store();
|
|
35746
|
-
init_base_id();
|
|
35747
35702
|
init_utils();
|
|
35748
35703
|
init_contracts();
|
|
35749
35704
|
USAGE4 = `
|
|
35750
|
-
wayai contacts \u2014
|
|
35705
|
+
wayai contacts \u2014 the organization's person links and deny list
|
|
35751
35706
|
|
|
35752
35707
|
Usage:
|
|
35753
|
-
wayai contacts link-customer <contact_id> --base <base_id> --record <record_id> [--org <org_id>] [--json]
|
|
35754
|
-
wayai contacts unlink-customer <contact_id> --base <base_id> [--org <org_id>] [--json]
|
|
35755
35708
|
wayai contacts lookup-person <person_id> [--org <org_id>] [--json]
|
|
35756
35709
|
wayai contacts person-links <person_id> [--org <org_id>] [--json]
|
|
35757
35710
|
wayai contacts link-person <person_id> --to <person_id|contact_id> [--org <org_id>] [--json]
|
|
@@ -35760,16 +35713,6 @@ Usage:
|
|
|
35760
35713
|
wayai contacts deny-person <person_id|contact_id> [--org <org_id>] [--json]
|
|
35761
35714
|
wayai contacts undeny-person <person_id|contact_id> [--org <org_id>] [--json]
|
|
35762
35715
|
|
|
35763
|
-
link-customer Make the record the contact's customer record: the contact's customer pages
|
|
35764
|
-
then serve that customer through a customer-scoped toolset (an agent's calls
|
|
35765
|
-
name no customer). The record is one of the base's
|
|
35766
|
-
customer record type (x-customer-scope role root), holding no external key
|
|
35767
|
-
or the contact id under another source. A record keyed under another
|
|
35768
|
-
external_id is refused: re-keying it would orphan its owned records.
|
|
35769
|
-
unlink-customer Unlink the contact's customer record in the base. The record keeps the
|
|
35770
|
-
contact id under the source wayai_contact_unlinked, so its owned records stay
|
|
35771
|
-
its own, and link-customer on the same record links it again.
|
|
35772
|
-
|
|
35773
35716
|
lookup-person Whom a person id (prs_\u2026) names: a hub of the organization where a
|
|
35774
35717
|
conversation carries it, and that hub's name and email for the person. A
|
|
35775
35718
|
person id no conversation carries is unknown.
|
|
@@ -35790,8 +35733,6 @@ admin. These commands need a browser sign-in (\`wayai login\`): an API token
|
|
|
35790
35733
|
(\`wayai login --token\`, or WAYAI_TOKEN) is refused.
|
|
35791
35734
|
`.trim();
|
|
35792
35735
|
SUBCOMMANDS2 = [
|
|
35793
|
-
"link-customer",
|
|
35794
|
-
"unlink-customer",
|
|
35795
35736
|
"lookup-person",
|
|
35796
35737
|
"person-links",
|
|
35797
35738
|
"link-person",
|
|
@@ -37074,14 +37015,14 @@ var init_remote = __esm({
|
|
|
37074
37015
|
function refreshPreviewCommand(orgId, base) {
|
|
37075
37016
|
return `wayai knowledge refresh-preview --org ${orgId} --base ${sanitizeTerminalText(base)}`;
|
|
37076
37017
|
}
|
|
37077
|
-
async function resolveBases(kb,
|
|
37078
|
-
const base = await kb.getBase(
|
|
37079
|
-
if (!base || base.deleted) throw expected(`Base "${sanitizeTerminalText(
|
|
37018
|
+
async function resolveBases(kb, baseId, orgId) {
|
|
37019
|
+
const base = await kb.getBase(baseId);
|
|
37020
|
+
if (!base || base.deleted) throw expected(`Base "${sanitizeTerminalText(baseId)}" not found in this organization.`);
|
|
37080
37021
|
if (base.environment === "preview") {
|
|
37081
37022
|
const origin = base.origin_base_id ? await kb.getBase(base.origin_base_id) : null;
|
|
37082
37023
|
if (!origin || origin.deleted || origin.environment !== "production") {
|
|
37083
37024
|
throw expected(
|
|
37084
|
-
`Base "${sanitizeTerminalText(
|
|
37025
|
+
`Base "${sanitizeTerminalText(baseId)}" is a preview with no production origin, so it has no production files to copy. Name the production knowledge base, or a preview created from it.`
|
|
37085
37026
|
);
|
|
37086
37027
|
}
|
|
37087
37028
|
return { production: origin.id, preview: base.id };
|
|
@@ -37094,7 +37035,7 @@ async function resolveBases(kb, baseId2, orgId) {
|
|
|
37094
37035
|
}
|
|
37095
37036
|
if (previews.length !== 1) {
|
|
37096
37037
|
throw expected(
|
|
37097
|
-
previews.length === 0 ? `Base "${sanitizeTerminalText(
|
|
37038
|
+
previews.length === 0 ? `Base "${sanitizeTerminalText(baseId)}" has no preview. Create one with \`wayai bases create-preview ${sanitizeTerminalText(baseId)} --name <name>\`, then copy production's files into it with \`${refreshPreviewCommand(orgId, baseId)}\`.` : `Base "${sanitizeTerminalText(baseId)}" has ${previews.length} previews (${previews.map(sanitizeTerminalText).join(", ")}). Pass the one to use as --base.`
|
|
37098
37039
|
);
|
|
37099
37040
|
}
|
|
37100
37041
|
return { production: base.id, preview: previews[0] };
|
|
@@ -41119,28 +41060,28 @@ function buildBasesCommand() {
|
|
|
41119
41060
|
bases.command("use <base>").description(
|
|
41120
41061
|
"Deprecated alias of `wayai use bases/<id>` \u2014 scope this worktree to a base"
|
|
41121
41062
|
).action(async function(selector) {
|
|
41122
|
-
const
|
|
41063
|
+
const baseId = resolveBaseSelectorToId(findGitRoot(), selector);
|
|
41123
41064
|
const previous = readScope().bases;
|
|
41124
|
-
const changed = previous.length !== 1 || previous[0] !==
|
|
41065
|
+
const changed = previous.length !== 1 || previous[0] !== baseId;
|
|
41125
41066
|
if (changed) {
|
|
41126
41067
|
try {
|
|
41127
|
-
setScopeAxis("bases", [
|
|
41068
|
+
setScopeAxis("bases", [baseId]);
|
|
41128
41069
|
} catch (err) {
|
|
41129
41070
|
throw expected(err instanceof Error ? err.message : String(err));
|
|
41130
41071
|
}
|
|
41131
41072
|
}
|
|
41132
41073
|
if (outputFormat(this) === "json") {
|
|
41133
41074
|
printOutput(
|
|
41134
|
-
{ base_id:
|
|
41075
|
+
{ base_id: baseId, previous_base_id: previous[0] ?? null, changed },
|
|
41135
41076
|
"json"
|
|
41136
41077
|
);
|
|
41137
41078
|
return;
|
|
41138
41079
|
}
|
|
41139
41080
|
if (!changed) {
|
|
41140
|
-
console.log(`Worktree already bound to base ${
|
|
41081
|
+
console.log(`Worktree already bound to base ${baseId}.`);
|
|
41141
41082
|
} else {
|
|
41142
41083
|
console.log(
|
|
41143
|
-
previous.length > 0 ? `Worktree rebound: ${previous.join(", ")} -> ${
|
|
41084
|
+
previous.length > 0 ? `Worktree rebound: ${previous.join(", ")} -> ${baseId}.` : `Worktree bound to base ${baseId}.`
|
|
41144
41085
|
);
|
|
41145
41086
|
}
|
|
41146
41087
|
});
|
|
@@ -42860,7 +42801,7 @@ Commands:
|
|
|
42860
42801
|
sync-mcp Re-discover an MCP connection's tools (refresh stale schemas)
|
|
42861
42802
|
list List organizations and hubs
|
|
42862
42803
|
communities An organization's communities: list, join link (get/rotate/off), stats, access list (list/add/remove) \u2014 \`wayai communities --help\`
|
|
42863
|
-
contacts
|
|
42804
|
+
contacts Person links, the deny list, person lookup (browser sign-in only) \u2014 \`wayai contacts --help\`
|
|
42864
42805
|
dimensions An organization's access dimensions and their values: list, create, relabel, add/retire values \u2014 \`wayai dimensions --help\`
|
|
42865
42806
|
access explain The access set a hub agent's toolset calls send for a person, and which layer removed each value \u2014 \`wayai access --help\`
|
|
42866
42807
|
knowledge refresh-preview Make the knowledge base's preview hold its production base's files \u2014 \`wayai knowledge --help\`
|