@wayai/cli 0.3.263 → 0.3.264

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 CHANGED
@@ -5700,10 +5700,10 @@ var init_chunk_ACKF2MVU = __esm({
5700
5700
  }
5701
5701
  });
5702
5702
 
5703
- // ../../packages/core/dist/chunk-GPYAZPH7.js
5703
+ // ../../packages/core/dist/chunk-HIGKBEPF.js
5704
5704
  var accessExplainQuery;
5705
- var init_chunk_GPYAZPH7 = __esm({
5706
- "../../packages/core/dist/chunk-GPYAZPH7.js"() {
5705
+ var init_chunk_HIGKBEPF = __esm({
5706
+ "../../packages/core/dist/chunk-HIGKBEPF.js"() {
5707
5707
  "use strict";
5708
5708
  init_chunk_HZ6CADSY();
5709
5709
  init_zod();
@@ -6532,10 +6532,10 @@ var init_chunk_VEERWOZ6 = __esm({
6532
6532
  }
6533
6533
  });
6534
6534
 
6535
- // ../../packages/core/dist/chunk-L55XSECQ.js
6535
+ // ../../packages/core/dist/chunk-35OU33GJ.js
6536
6536
  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;
6537
- var init_chunk_L55XSECQ = __esm({
6538
- "../../packages/core/dist/chunk-L55XSECQ.js"() {
6537
+ var init_chunk_35OU33GJ = __esm({
6538
+ "../../packages/core/dist/chunk-35OU33GJ.js"() {
6539
6539
  "use strict";
6540
6540
  init_zod();
6541
6541
  REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
@@ -6591,7 +6591,7 @@ var init_chunk_L55XSECQ = __esm({
6591
6591
  }
6592
6592
  });
6593
6593
 
6594
- // ../../packages/core/dist/chunk-XAYDRN6A.js
6594
+ // ../../packages/core/dist/chunk-ELIEEYPK.js
6595
6595
  function isPersonAccessAll(lists) {
6596
6596
  return lists !== void 0 && lists.read.length === 1 && lists.read[0] === ACCESS_UNRESTRICTED && lists.write.length === 1 && lists.write[0] === ACCESS_UNRESTRICTED;
6597
6597
  }
@@ -6629,10 +6629,10 @@ function assignmentHasUnrestricted(assignment) {
6629
6629
  return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
6630
6630
  }
6631
6631
  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;
6632
- var init_chunk_XAYDRN6A = __esm({
6633
- "../../packages/core/dist/chunk-XAYDRN6A.js"() {
6632
+ var init_chunk_ELIEEYPK = __esm({
6633
+ "../../packages/core/dist/chunk-ELIEEYPK.js"() {
6634
6634
  "use strict";
6635
- init_chunk_L55XSECQ();
6635
+ init_chunk_35OU33GJ();
6636
6636
  init_chunk_HZ6CADSY();
6637
6637
  init_chunk_YROEDMVZ();
6638
6638
  init_zod();
@@ -6723,7 +6723,7 @@ var init_chunk_XAYDRN6A = __esm({
6723
6723
  }
6724
6724
  });
6725
6725
 
6726
- // ../../packages/core/dist/chunk-BUYOPDSJ.js
6726
+ // ../../packages/core/dist/chunk-WBTBXPD2.js
6727
6727
  function boundCustomerPartyIsValid(audience, parties, customer) {
6728
6728
  return audience !== REKOR_PERSON_AUDIENCE_STAFF && customer < parties.length && Array.isArray(parties[customer]);
6729
6729
  }
@@ -6737,11 +6737,11 @@ function isEncodedBoundPerson(raw) {
6737
6737
  return rekorBoundPersonSchema.safeParse(parsed).success;
6738
6738
  }
6739
6739
  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;
6740
- var init_chunk_BUYOPDSJ = __esm({
6741
- "../../packages/core/dist/chunk-BUYOPDSJ.js"() {
6740
+ var init_chunk_WBTBXPD2 = __esm({
6741
+ "../../packages/core/dist/chunk-WBTBXPD2.js"() {
6742
6742
  "use strict";
6743
- init_chunk_XAYDRN6A();
6744
- init_chunk_L55XSECQ();
6743
+ init_chunk_ELIEEYPK();
6744
+ init_chunk_35OU33GJ();
6745
6745
  init_zod();
6746
6746
  TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
6747
6747
  REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
@@ -6766,11 +6766,11 @@ var init_chunk_BUYOPDSJ = __esm({
6766
6766
  sql_query: external_exports.boolean(),
6767
6767
  batch: external_exports.boolean(),
6768
6768
  /**
6769
- * The toolset serves one customer per call (#5083 RK2): its every call names the customer it serves,
6770
- * and reaches only that customer's records and shared ones. Only an eval run names one; every other call,
6771
- * an agent's (#5473 2b1) or a page's (2b2), names none, so it is refused it. Absent on a surface recorded
6772
- * before it was, which reads as not scoped until the connection's next tool sync or token save records
6773
- * it: its calls name no customer.
6769
+ * The toolset serves one customer per call (#5083 RK2): its every call names the customer it serves. Only an eval
6770
+ * run names one; every other call, an agent's (#5473 2b1) or a page's (2b2), names none, so it is refused it. The
6771
+ * data product reports no toolset as customer-scoped since it removed customer scope (#5473 2c), so a surface
6772
+ * recorded since reads `false`; one recorded before keeps `true` until its next tool sync or token save. Absent on
6773
+ * a surface recorded before it was, which reads as not scoped: its calls name no customer.
6774
6774
  */
6775
6775
  customer_scoped: external_exports.boolean().optional(),
6776
6776
  /**
@@ -6938,7 +6938,10 @@ var init_chunk_BUYOPDSJ = __esm({
6938
6938
  files: external_exports.array(external_exports.unknown()).optional(),
6939
6939
  batch: external_exports.object({ enabled: external_exports.boolean().optional() }).passthrough().nullable().optional(),
6940
6940
  sql_query: external_exports.boolean().optional(),
6941
- /** The toolset serves one customer per call (#5083 RK2). Absent reads as not scoped. */
6941
+ /**
6942
+ * The toolset serves one customer per call (#5083 RK2). Absent reads as not scoped. Always `false` since the data
6943
+ * product removed customer scope (#5473 2c).
6944
+ */
6942
6945
  customer_scope: external_exports.boolean().optional(),
6943
6946
  /**
6944
6947
  * Record types the toolset reaches, by id, as the data product stores them (`json_schema`
@@ -6951,7 +6954,8 @@ var init_chunk_BUYOPDSJ = __esm({
6951
6954
  /**
6952
6955
  * What each record type the toolset's actions, composite steps, SQL Actions and relationship tools reach is to a
6953
6956
  * customer scope (`{ role }`, or null), by id (#5083 RK2). A reviewed type `record_types` carries
6954
- * because only a `batch` entry or `sql_query` reaches it has none.
6957
+ * because only a `batch` entry or `sql_query` reaches it has none. Since the data product removed customer
6958
+ * scope (#5473 2c), `{ role: 'shared' }` is a type whose `x-access` declares `{ shared: true }`.
6955
6959
  */
6956
6960
  record_type_scopes: external_exports.record(external_exports.unknown()).optional(),
6957
6961
  /**
@@ -7001,13 +7005,13 @@ var init_chunk_BUYOPDSJ = __esm({
7001
7005
  }
7002
7006
  });
7003
7007
 
7004
- // ../../packages/core/dist/chunk-OS6EZSUS.js
7008
+ // ../../packages/core/dist/chunk-A7TMHX3E.js
7005
7009
  var TOOLSET_ANSWER_PERSON_PARTIES, toolsetAnswerPersonSchema, toolsetAnswerPersonsSchema;
7006
- var init_chunk_OS6EZSUS = __esm({
7007
- "../../packages/core/dist/chunk-OS6EZSUS.js"() {
7010
+ var init_chunk_A7TMHX3E = __esm({
7011
+ "../../packages/core/dist/chunk-A7TMHX3E.js"() {
7008
7012
  "use strict";
7009
- init_chunk_BUYOPDSJ();
7010
- init_chunk_L55XSECQ();
7013
+ init_chunk_WBTBXPD2();
7014
+ init_chunk_35OU33GJ();
7011
7015
  init_zod();
7012
7016
  TOOLSET_ANSWER_PERSON_PARTIES = ["requester", "originator", "initiator", "delegator"];
7013
7017
  toolsetAnswerPersonSchema = external_exports.object({
@@ -7860,12 +7864,12 @@ var init_chunk_FBV7NLKO = __esm({
7860
7864
  }
7861
7865
  });
7862
7866
 
7863
- // ../../packages/core/dist/chunk-XH4PIFRT.js
7867
+ // ../../packages/core/dist/chunk-WLFAY7KL.js
7864
7868
  var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
7865
- var init_chunk_XH4PIFRT = __esm({
7866
- "../../packages/core/dist/chunk-XH4PIFRT.js"() {
7869
+ var init_chunk_WLFAY7KL = __esm({
7870
+ "../../packages/core/dist/chunk-WLFAY7KL.js"() {
7867
7871
  "use strict";
7868
- init_chunk_BUYOPDSJ();
7872
+ init_chunk_WBTBXPD2();
7869
7873
  init_chunk_FBV7NLKO();
7870
7874
  init_chunk_HZ6CADSY();
7871
7875
  init_zod();
@@ -12765,7 +12769,7 @@ var init_chunk_2ISUBJG7 = __esm({
12765
12769
  }
12766
12770
  });
12767
12771
 
12768
- // ../../packages/core/dist/chunk-GMCEFUWT.js
12772
+ // ../../packages/core/dist/chunk-B7I5PFCN.js
12769
12773
  function describeRole(role) {
12770
12774
  if (typeof role === "string") {
12771
12775
  return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
@@ -12939,8 +12943,8 @@ function terminalRunCount(counts) {
12939
12943
  return counts.successful_runs + counts.failed_runs;
12940
12944
  }
12941
12945
  var evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, runJourneyQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, evalCustomerContactIdSchema, evalBody, EVAL_LIST_MAX_LIMIT, evalListLimit, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, EVAL_MAX_SELECTED_SCENARIOS, evalScenarioSelectionEntrySchema, evalScenarioSelectionSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, evalSessionListConfigSchema, evalSessionListItemSchema, seedReleaseStatusSchema, EVAL_SESSION_NOT_QUIESCENT;
12942
- var init_chunk_GMCEFUWT = __esm({
12943
- "../../packages/core/dist/chunk-GMCEFUWT.js"() {
12946
+ var init_chunk_B7I5PFCN = __esm({
12947
+ "../../packages/core/dist/chunk-B7I5PFCN.js"() {
12944
12948
  "use strict";
12945
12949
  init_chunk_4LXDRTO4();
12946
12950
  init_chunk_WTOA3ANF();
@@ -14008,7 +14012,7 @@ var init_chunk_TU4Y4MEX = __esm({
14008
14012
  }
14009
14013
  });
14010
14014
 
14011
- // ../../packages/core/dist/chunk-E7SXOYHO.js
14015
+ // ../../packages/core/dist/chunk-EHFD6TXQ.js
14012
14016
  function refineHubAsCodeCustomTools(config, ctx) {
14013
14017
  const agents = config.agents;
14014
14018
  if (!Array.isArray(agents)) return;
@@ -14618,12 +14622,12 @@ function skillSectionsAsResources(scope) {
14618
14622
  };
14619
14623
  }
14620
14624
  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;
14621
- var init_chunk_E7SXOYHO = __esm({
14622
- "../../packages/core/dist/chunk-E7SXOYHO.js"() {
14625
+ var init_chunk_EHFD6TXQ = __esm({
14626
+ "../../packages/core/dist/chunk-EHFD6TXQ.js"() {
14623
14627
  "use strict";
14624
14628
  init_chunk_SARVKRZB();
14625
- init_chunk_XAYDRN6A();
14626
- init_chunk_GMCEFUWT();
14629
+ init_chunk_ELIEEYPK();
14630
+ init_chunk_B7I5PFCN();
14627
14631
  init_chunk_LBDH7LCG();
14628
14632
  init_chunk_4LXDRTO4();
14629
14633
  init_chunk_TU4Y4MEX();
@@ -16169,12 +16173,12 @@ var init_contracts = __esm({
16169
16173
  init_chunk_NKLVUTFO();
16170
16174
  init_chunk_ZC6YGHNX();
16171
16175
  init_chunk_ACKF2MVU();
16172
- init_chunk_GPYAZPH7();
16176
+ init_chunk_HIGKBEPF();
16173
16177
  init_chunk_7QJBCQR3();
16174
16178
  init_chunk_IPDOHAZ5();
16175
16179
  init_chunk_GPM7PE44();
16176
16180
  init_chunk_VEERWOZ6();
16177
- init_chunk_OS6EZSUS();
16181
+ init_chunk_A7TMHX3E();
16178
16182
  init_chunk_ZXK6N2HN();
16179
16183
  init_chunk_Y7CFCYX4();
16180
16184
  init_chunk_3GUHAF3O();
@@ -16183,8 +16187,8 @@ var init_contracts = __esm({
16183
16187
  init_chunk_I3O2RACG();
16184
16188
  init_chunk_34LE6P7E();
16185
16189
  init_chunk_FPSDNS2E();
16186
- init_chunk_XH4PIFRT();
16187
- init_chunk_BUYOPDSJ();
16190
+ init_chunk_WLFAY7KL();
16191
+ init_chunk_WBTBXPD2();
16188
16192
  init_chunk_OPETF4GS();
16189
16193
  init_chunk_SY6PLCPK();
16190
16194
  init_chunk_KMAC3O3L();
@@ -16206,11 +16210,11 @@ var init_contracts = __esm({
16206
16210
  init_chunk_E4DIIOOE();
16207
16211
  init_chunk_7CYHPF35();
16208
16212
  init_chunk_BPCNB5RT();
16209
- init_chunk_E7SXOYHO();
16213
+ init_chunk_EHFD6TXQ();
16210
16214
  init_chunk_SARVKRZB();
16211
- init_chunk_XAYDRN6A();
16212
- init_chunk_L55XSECQ();
16213
- init_chunk_GMCEFUWT();
16215
+ init_chunk_ELIEEYPK();
16216
+ init_chunk_35OU33GJ();
16217
+ init_chunk_B7I5PFCN();
16214
16218
  init_chunk_LBDH7LCG();
16215
16219
  init_chunk_4LXDRTO4();
16216
16220
  init_chunk_JDJ4EUOL();
@@ -23714,7 +23718,7 @@ var init_config_writer = __esm({
23714
23718
  "skip_cascade_writes",
23715
23719
  "enabled"
23716
23720
  ],
23717
- toolsets: ["id", "name", "description", "actions", "relationships", "files", "batch", "sql_query", "customer_scope"],
23721
+ toolsets: ["id", "name", "description", "actions", "relationships", "files", "batch", "sql_query"],
23718
23722
  actions: [
23719
23723
  "id",
23720
23724
  "record_type",
@@ -35993,7 +35997,7 @@ function formatExplanation(data) {
35993
35997
  if (data.values_hub_id === null) lines.push("This preview hub was never published: it has no hub values, so it reaches nothing.");
35994
35998
  else if (data.values_hub_id !== data.hub_id) lines.push(`Hub values are those of its production hub ${text3(data.values_hub_id)}.`);
35995
35999
  if (data.customer_only) {
35996
- lines.push("Customer-only: on an agent's call, held only on record types open to customer-facing calls (person rules or shared access); on a call naming its customer, only on record types customer scope narrows to that customer. Every other type that enforces a dimension reaches nothing.");
36000
+ lines.push("Customer-only: on an agent's call, held only on record types open to customer-facing calls (person rules or shared access). Every other type that enforces a dimension reaches nothing.");
35997
36001
  }
35998
36002
  if (data.conversations_reach_nothing) {
35999
36003
  lines.push("This person's own set reaches nothing, whatever the agent: every turn in their conversations, a team member's send or consult there included, reaches nothing either.");
@@ -36078,8 +36082,7 @@ removed it. Every layer only narrows:
36078
36082
  - with a scoped API token and no --user: the hub's \u2229 the agent's, what a hub
36079
36083
  automation's turn of the agent gets.
36080
36084
  Everyone else takes the hub's public values, customer-only: on an agent's call, held only on
36081
- record types open to customer-facing calls (person entries in enforce, or shared access); on a
36082
- call naming its customer, only on record types customer scope narrows to that customer. A turn in another
36085
+ record types open to customer-facing calls (person entries in enforce, or shared access). A turn in another
36083
36086
  person's conversation is also cut to that person's set, a delegated task's to its
36084
36087
  delegation's, and a background agent's side-call's to its host turn's agent's values: those
36085
36088
  are not shown here. Explaining someone else matches no unredeemed team invite by their