@wayai/cli 0.3.266 → 0.3.268
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 +79 -84
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5611,10 +5611,10 @@ var init_chunk_IPXBFWUU = __esm({
|
|
|
5611
5611
|
}
|
|
5612
5612
|
});
|
|
5613
5613
|
|
|
5614
|
-
// ../../packages/core/dist/chunk-
|
|
5615
|
-
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,
|
|
5616
|
-
var
|
|
5617
|
-
"../../packages/core/dist/chunk-
|
|
5614
|
+
// ../../packages/core/dist/chunk-4D6K4P4K.js
|
|
5615
|
+
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_ACCESS_HEADER, REKOR_BOUND_PAGE_HEADER, REKOR_BOUND_PERSON_HEADER, REKOR_PERSON_AUDIENCE_STAFF, REKOR_PERSON_AUDIENCE_CUSTOMER, REKOR_PERSON_ALL, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH, REKOR_MAX_ACCESS_DIMENSIONS, REKOR_MAX_ACCESS_VALUES, REKOR_MAX_ACCESS_ID_LENGTH, REKOR_MAX_ACCESS_HEADER_LENGTH, REKOR_MAX_PERSON_PARTIES, REKOR_MAX_PERSON_IDS, REKOR_MAX_PERSON_ID_LENGTH, REKOR_MAX_PERSON_HEADER_LENGTH;
|
|
5616
|
+
var init_chunk_4D6K4P4K = __esm({
|
|
5617
|
+
"../../packages/core/dist/chunk-4D6K4P4K.js"() {
|
|
5618
5618
|
"use strict";
|
|
5619
5619
|
init_zod();
|
|
5620
5620
|
REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
|
|
@@ -5647,15 +5647,12 @@ var init_chunk_7GDM456L = __esm({
|
|
|
5647
5647
|
REKOR_BOUND_BASE_HEADER = "X-Rekor-Bound-Base";
|
|
5648
5648
|
REKOR_BOUND_TOOLSET_HEADER = "X-Rekor-Bound-Toolset";
|
|
5649
5649
|
REKOR_BOUND_TOKEN_HEADER = "X-Rekor-Bound-Token";
|
|
5650
|
-
REKOR_BOUND_CUSTOMER_HEADER = "X-Rekor-Bound-Customer";
|
|
5651
5650
|
REKOR_BOUND_ACCESS_HEADER = "X-Rekor-Bound-Access";
|
|
5652
|
-
REKOR_BOUND_ACCESS_SCOPE_HEADER = "X-Rekor-Bound-Access-Scope";
|
|
5653
5651
|
REKOR_BOUND_PAGE_HEADER = "X-Rekor-Bound-Page";
|
|
5654
5652
|
REKOR_BOUND_PERSON_HEADER = "X-Rekor-Bound-Person";
|
|
5655
5653
|
REKOR_PERSON_AUDIENCE_STAFF = "staff";
|
|
5656
5654
|
REKOR_PERSON_AUDIENCE_CUSTOMER = "customer";
|
|
5657
5655
|
REKOR_PERSON_ALL = "*";
|
|
5658
|
-
REKOR_ACCESS_SCOPE_CUSTOMER = "customer";
|
|
5659
5656
|
DATA_BASE_GENERATION_HEADER = "X-Data-Base-Generation";
|
|
5660
5657
|
REKOR_MAX_ACTOR_ID_LENGTH = 256;
|
|
5661
5658
|
REKOR_MAX_ACTOR_LABEL_LENGTH = 256;
|
|
@@ -5670,7 +5667,7 @@ var init_chunk_7GDM456L = __esm({
|
|
|
5670
5667
|
}
|
|
5671
5668
|
});
|
|
5672
5669
|
|
|
5673
|
-
// ../../packages/core/dist/chunk-
|
|
5670
|
+
// ../../packages/core/dist/chunk-HRKVCI5A.js
|
|
5674
5671
|
function isPersonAccessAll(lists) {
|
|
5675
5672
|
return lists !== void 0 && lists.read.length === 1 && lists.read[0] === ACCESS_UNRESTRICTED && lists.write.length === 1 && lists.write[0] === ACCESS_UNRESTRICTED;
|
|
5676
5673
|
}
|
|
@@ -5708,10 +5705,10 @@ function assignmentHasUnrestricted(assignment) {
|
|
|
5708
5705
|
return Object.values(assignment).some((lists) => lists.read.includes(ACCESS_UNRESTRICTED) || lists.write.includes(ACCESS_UNRESTRICTED));
|
|
5709
5706
|
}
|
|
5710
5707
|
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;
|
|
5711
|
-
var
|
|
5712
|
-
"../../packages/core/dist/chunk-
|
|
5708
|
+
var init_chunk_HRKVCI5A = __esm({
|
|
5709
|
+
"../../packages/core/dist/chunk-HRKVCI5A.js"() {
|
|
5713
5710
|
"use strict";
|
|
5714
|
-
|
|
5711
|
+
init_chunk_4D6K4P4K();
|
|
5715
5712
|
init_chunk_HZ6CADSY();
|
|
5716
5713
|
init_chunk_YROEDMVZ();
|
|
5717
5714
|
init_zod();
|
|
@@ -5802,7 +5799,7 @@ var init_chunk_CRZFVWXY = __esm({
|
|
|
5802
5799
|
}
|
|
5803
5800
|
});
|
|
5804
5801
|
|
|
5805
|
-
// ../../packages/core/dist/chunk-
|
|
5802
|
+
// ../../packages/core/dist/chunk-VWREGZ7S.js
|
|
5806
5803
|
function boundCustomerPartyIsValid(audience, parties, customer) {
|
|
5807
5804
|
return audience !== REKOR_PERSON_AUDIENCE_STAFF && customer < parties.length && Array.isArray(parties[customer]);
|
|
5808
5805
|
}
|
|
@@ -5816,11 +5813,11 @@ function isEncodedBoundPerson(raw) {
|
|
|
5816
5813
|
return rekorBoundPersonSchema.safeParse(parsed).success;
|
|
5817
5814
|
}
|
|
5818
5815
|
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;
|
|
5819
|
-
var
|
|
5820
|
-
"../../packages/core/dist/chunk-
|
|
5816
|
+
var init_chunk_VWREGZ7S = __esm({
|
|
5817
|
+
"../../packages/core/dist/chunk-VWREGZ7S.js"() {
|
|
5821
5818
|
"use strict";
|
|
5822
|
-
|
|
5823
|
-
|
|
5819
|
+
init_chunk_HRKVCI5A();
|
|
5820
|
+
init_chunk_4D6K4P4K();
|
|
5824
5821
|
init_zod();
|
|
5825
5822
|
TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
5826
5823
|
REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
|
|
@@ -5946,11 +5943,6 @@ var init_chunk_Q6CHATUL = __esm({
|
|
|
5946
5943
|
[DATA_BASE_GENERATION_HEADER]: external_exports.string().regex(/^[1-9]\d{0,14}$/),
|
|
5947
5944
|
/** The token the binding was resolved from, when the connection records it (owner decision 41). */
|
|
5948
5945
|
[REKOR_BOUND_TOKEN_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional(),
|
|
5949
|
-
/**
|
|
5950
|
-
* The customer the call serves (#5083 RK2): a contact id, which the contact book mints as a UUID.
|
|
5951
|
-
* Every UUID is an id the far side reads back as the customer's external id.
|
|
5952
|
-
*/
|
|
5953
|
-
[REKOR_BOUND_CUSTOMER_HEADER]: external_exports.string().uuid().optional(),
|
|
5954
5946
|
/**
|
|
5955
5947
|
* The access set the call carries (#5358): an access set's header text (`encodeAccessSet`), within
|
|
5956
5948
|
* the far side's header cap. Tool calls carry one; the config reads (resolve, tool definitions) do not.
|
|
@@ -5958,11 +5950,6 @@ var init_chunk_Q6CHATUL = __esm({
|
|
|
5958
5950
|
[REKOR_BOUND_ACCESS_HEADER]: external_exports.string().max(REKOR_MAX_ACCESS_HEADER_LENGTH).refine(isEncodedAccessSet, {
|
|
5959
5951
|
message: "Not an access set"
|
|
5960
5952
|
}).optional(),
|
|
5961
|
-
/**
|
|
5962
|
-
* Where the access set applies (#5358), when only on the call's customer's own records: its one value.
|
|
5963
|
-
* Sent only beside the set, which the far side holds it to (the refinement below).
|
|
5964
|
-
*/
|
|
5965
|
-
[REKOR_BOUND_ACCESS_SCOPE_HEADER]: external_exports.literal(REKOR_ACCESS_SCOPE_CUSTOMER).optional(),
|
|
5966
5953
|
/**
|
|
5967
5954
|
* The hub whose page makes the call (#5333): sent on every call of the page bridge, and on no other.
|
|
5968
5955
|
* A hub id, read by the far side under the same structural charset as the other bound ids.
|
|
@@ -5978,10 +5965,7 @@ var init_chunk_Q6CHATUL = __esm({
|
|
|
5978
5965
|
message: "Not the persons a bound call is for"
|
|
5979
5966
|
}).optional()
|
|
5980
5967
|
}).superRefine((bag, ctx) => {
|
|
5981
|
-
if (bag[
|
|
5982
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [REKOR_BOUND_ACCESS_SCOPE_HEADER], message: "Accepted only beside an access set" });
|
|
5983
|
-
}
|
|
5984
|
-
if (bag[REKOR_ACTOR_TYPE_HEADER] === "user" && (bag[REKOR_BOUND_PAGE_HEADER] === void 0 || bag[REKOR_BOUND_CUSTOMER_HEADER] !== void 0)) {
|
|
5968
|
+
if (bag[REKOR_ACTOR_TYPE_HEADER] === "user" && bag[REKOR_BOUND_PAGE_HEADER] === void 0) {
|
|
5985
5969
|
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: [REKOR_ACTOR_TYPE_HEADER], message: "A person is attested only on a team page's call" });
|
|
5986
5970
|
}
|
|
5987
5971
|
});
|
|
@@ -6089,13 +6073,13 @@ var init_chunk_Q6CHATUL = __esm({
|
|
|
6089
6073
|
}
|
|
6090
6074
|
});
|
|
6091
6075
|
|
|
6092
|
-
// ../../packages/core/dist/chunk-
|
|
6076
|
+
// ../../packages/core/dist/chunk-76RFJ4XA.js
|
|
6093
6077
|
var TOOLSET_ANSWER_PERSON_PARTIES, toolsetAnswerPersonSchema, toolsetAnswerPersonsSchema;
|
|
6094
|
-
var
|
|
6095
|
-
"../../packages/core/dist/chunk-
|
|
6078
|
+
var init_chunk_76RFJ4XA = __esm({
|
|
6079
|
+
"../../packages/core/dist/chunk-76RFJ4XA.js"() {
|
|
6096
6080
|
"use strict";
|
|
6097
|
-
|
|
6098
|
-
|
|
6081
|
+
init_chunk_VWREGZ7S();
|
|
6082
|
+
init_chunk_4D6K4P4K();
|
|
6099
6083
|
init_zod();
|
|
6100
6084
|
TOOLSET_ANSWER_PERSON_PARTIES = ["requester", "originator", "initiator", "delegator"];
|
|
6101
6085
|
toolsetAnswerPersonSchema = external_exports.object({
|
|
@@ -7879,12 +7863,12 @@ var init_chunk_FBV7NLKO = __esm({
|
|
|
7879
7863
|
}
|
|
7880
7864
|
});
|
|
7881
7865
|
|
|
7882
|
-
// ../../packages/core/dist/chunk-
|
|
7866
|
+
// ../../packages/core/dist/chunk-AMQKOFAH.js
|
|
7883
7867
|
var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
|
|
7884
|
-
var
|
|
7885
|
-
"../../packages/core/dist/chunk-
|
|
7868
|
+
var init_chunk_AMQKOFAH = __esm({
|
|
7869
|
+
"../../packages/core/dist/chunk-AMQKOFAH.js"() {
|
|
7886
7870
|
"use strict";
|
|
7887
|
-
|
|
7871
|
+
init_chunk_VWREGZ7S();
|
|
7888
7872
|
init_chunk_FBV7NLKO();
|
|
7889
7873
|
init_chunk_HZ6CADSY();
|
|
7890
7874
|
init_zod();
|
|
@@ -12784,7 +12768,7 @@ var init_chunk_2ISUBJG7 = __esm({
|
|
|
12784
12768
|
}
|
|
12785
12769
|
});
|
|
12786
12770
|
|
|
12787
|
-
// ../../packages/core/dist/chunk-
|
|
12771
|
+
// ../../packages/core/dist/chunk-ICE6SQZO.js
|
|
12788
12772
|
function describeRole(role) {
|
|
12789
12773
|
if (typeof role === "string") {
|
|
12790
12774
|
return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
|
|
@@ -12875,26 +12859,16 @@ function evalInitialStateError(input) {
|
|
|
12875
12859
|
function evalPersonIssue(input) {
|
|
12876
12860
|
const record = asEvalInputRecord(input);
|
|
12877
12861
|
if (record === null) return null;
|
|
12862
|
+
if (record.customer_contact_id !== void 0) return { key: "customer_contact_id", message: EVAL_PERSON_ALIAS_REFUSED };
|
|
12878
12863
|
const person = record.person;
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
if (declaresPerson && declaresAlias) {
|
|
12883
|
-
return { key: "person", message: "declare person or customer_contact_id (its deprecated alias), not both" };
|
|
12884
|
-
}
|
|
12885
|
-
if (declaresPerson) {
|
|
12886
|
-
if (Array.isArray(person) && person.includes("*")) {
|
|
12887
|
-
return { key: "person", message: 'person never holds "*": declare the person ids the runs are for' };
|
|
12888
|
-
}
|
|
12889
|
-
return evalPersonSchema.safeParse(person).success ? null : {
|
|
12890
|
-
key: "person",
|
|
12891
|
-
message: `person must be a list of 1 to ${EVAL_PERSON_MAX} person ids (prs_\u2026) or contact ids (lowercase UUIDs), each once`
|
|
12892
|
-
};
|
|
12893
|
-
}
|
|
12894
|
-
if (declaresAlias && !evalCustomerContactIdAliasSchema.safeParse(alias).success) {
|
|
12895
|
-
return { key: "customer_contact_id", message: "customer_contact_id must be a contact id (a UUID) or a person id (prs_\u2026)" };
|
|
12864
|
+
if (person === void 0 || person === null) return null;
|
|
12865
|
+
if (Array.isArray(person) && person.includes("*")) {
|
|
12866
|
+
return { key: "person", message: 'person never holds "*": declare the person ids the runs are for' };
|
|
12896
12867
|
}
|
|
12897
|
-
return null
|
|
12868
|
+
return evalPersonSchema.safeParse(person).success ? null : {
|
|
12869
|
+
key: "person",
|
|
12870
|
+
message: `person must be a list of 1 to ${EVAL_PERSON_MAX} person ids (prs_\u2026) or contact ids (lowercase UUIDs), each once`
|
|
12871
|
+
};
|
|
12898
12872
|
}
|
|
12899
12873
|
function evalNameError(name) {
|
|
12900
12874
|
if (name === void 0) return null;
|
|
@@ -12972,12 +12946,12 @@ function unprovenRunCount(counts) {
|
|
|
12972
12946
|
function terminalRunCount(counts) {
|
|
12973
12947
|
return counts.successful_runs + counts.failed_runs;
|
|
12974
12948
|
}
|
|
12975
|
-
var evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, runJourneyQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, EVAL_PERSON_MAX, evalPersonSchema,
|
|
12976
|
-
var
|
|
12977
|
-
"../../packages/core/dist/chunk-
|
|
12949
|
+
var evalIdParam, sessionIdParam, scenarioSetIdParam, hubIdQuery, EVAL_FIXTURE_NAME_MAX_LENGTH, evalFixtureOverrideSchema, runSessionQuery, runJourneyQuery, EVAL_INPUT_ROLES, EVAL_INPUT_ROLE_LIST, ROLE_ECHO_MAX, EVAL_INITIAL_STATE_SCOPES, MAX_INITIAL_STATE_ENTRIES, evalInitialStateEntry, EVAL_PERSON_MAX, evalPersonSchema, EVAL_PERSON_ALIAS_RETIRED, EVAL_PERSON_ALIAS_REFUSED, evalBody, EVAL_LIST_MAX_LIMIT, evalListLimit, getEvalsQuery, toggleEvalBody, bulkToggleEvalsBody, pacingConfigSchema, EVAL_MAX_SELECTED_SCENARIOS, evalScenarioSelectionEntrySchema, evalScenarioSelectionSchema, sessionConfigSchema, createSessionBody, getSessionsQuery, getSessionResultsQuery, getSessionRunsQuery, evalAnalyticsQuery, getSessionCostQuery, compareSessionsQuery, evalsSqlBody, evalsSqlSchemaQuery, exportResultsQuery, validateEvalBody, hubAgentsQuery, createScenarioSetBody, updateScenarioSetBody, scenarioSetsHubQuery, createScenarioFromConversationBody, createJourneyFromConversationBody, evalAttachmentRef, turnMayCarryAttachments, ATTACHMENTS_USER_ONLY_MESSAGE, journeyIdParam, journeyToolCallSchema, journeyTurnSchema, journeyStepOverrideSchema, fixtureField, createJourneyBody, updateJourneyBody, evalSessionConfigResponseSchema, evalSessionResponseSchema, evalSessionListConfigSchema, evalSessionListItemSchema, seedReleaseStatusSchema, EVAL_SESSION_NOT_QUIESCENT;
|
|
12950
|
+
var init_chunk_ICE6SQZO = __esm({
|
|
12951
|
+
"../../packages/core/dist/chunk-ICE6SQZO.js"() {
|
|
12978
12952
|
"use strict";
|
|
12979
12953
|
init_chunk_2YEGUQR7();
|
|
12980
|
-
|
|
12954
|
+
init_chunk_4D6K4P4K();
|
|
12981
12955
|
init_chunk_4LXDRTO4();
|
|
12982
12956
|
init_chunk_WTOA3ANF();
|
|
12983
12957
|
init_chunk_2ISUBJG7();
|
|
@@ -13015,7 +12989,8 @@ var init_chunk_EKL5AOYR = __esm({
|
|
|
13015
12989
|
});
|
|
13016
12990
|
EVAL_PERSON_MAX = REKOR_MAX_PERSON_IDS;
|
|
13017
12991
|
evalPersonSchema = external_exports.array(personIdSchema).min(1).max(EVAL_PERSON_MAX).refine((ids) => new Set(ids).size === ids.length, { message: "Each person id is declared once" });
|
|
13018
|
-
|
|
12992
|
+
EVAL_PERSON_ALIAS_RETIRED = "customer_contact_id is no longer accepted: declare person: [<id>] instead";
|
|
12993
|
+
EVAL_PERSON_ALIAS_REFUSED = `${EVAL_PERSON_ALIAS_RETIRED} (@wayai/cli 0.3.265 or later reads it)`;
|
|
13019
12994
|
evalBody = external_exports.object({
|
|
13020
12995
|
eval: external_exports.record(external_exports.unknown())
|
|
13021
12996
|
}).superRefine(refineEvalName).superRefine(refineEvalMessageTextRole).superRefine(refineEvalAttachments).superRefine(refineEvalInitialState).superRefine(refineEvalPerson);
|
|
@@ -14046,7 +14021,7 @@ var init_chunk_TU4Y4MEX = __esm({
|
|
|
14046
14021
|
}
|
|
14047
14022
|
});
|
|
14048
14023
|
|
|
14049
|
-
// ../../packages/core/dist/chunk-
|
|
14024
|
+
// ../../packages/core/dist/chunk-KY3JYP4A.js
|
|
14050
14025
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
14051
14026
|
const agents = config.agents;
|
|
14052
14027
|
if (!Array.isArray(agents)) return;
|
|
@@ -14656,12 +14631,12 @@ function skillSectionsAsResources(scope) {
|
|
|
14656
14631
|
};
|
|
14657
14632
|
}
|
|
14658
14633
|
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;
|
|
14659
|
-
var
|
|
14660
|
-
"../../packages/core/dist/chunk-
|
|
14634
|
+
var init_chunk_KY3JYP4A = __esm({
|
|
14635
|
+
"../../packages/core/dist/chunk-KY3JYP4A.js"() {
|
|
14661
14636
|
"use strict";
|
|
14662
14637
|
init_chunk_SARVKRZB();
|
|
14663
|
-
|
|
14664
|
-
|
|
14638
|
+
init_chunk_HRKVCI5A();
|
|
14639
|
+
init_chunk_ICE6SQZO();
|
|
14665
14640
|
init_chunk_LBDH7LCG();
|
|
14666
14641
|
init_chunk_4LXDRTO4();
|
|
14667
14642
|
init_chunk_TU4Y4MEX();
|
|
@@ -16206,7 +16181,7 @@ var init_contracts = __esm({
|
|
|
16206
16181
|
init_chunk_HA7CRZMX();
|
|
16207
16182
|
init_chunk_MF2VVXBR();
|
|
16208
16183
|
init_chunk_IPXBFWUU();
|
|
16209
|
-
|
|
16184
|
+
init_chunk_76RFJ4XA();
|
|
16210
16185
|
init_chunk_ZC6YGHNX();
|
|
16211
16186
|
init_chunk_ACKF2MVU();
|
|
16212
16187
|
init_chunk_5DGHIY7L();
|
|
@@ -16221,8 +16196,8 @@ var init_contracts = __esm({
|
|
|
16221
16196
|
init_chunk_I3O2RACG();
|
|
16222
16197
|
init_chunk_34LE6P7E();
|
|
16223
16198
|
init_chunk_FPSDNS2E();
|
|
16224
|
-
|
|
16225
|
-
|
|
16199
|
+
init_chunk_AMQKOFAH();
|
|
16200
|
+
init_chunk_VWREGZ7S();
|
|
16226
16201
|
init_chunk_OPETF4GS();
|
|
16227
16202
|
init_chunk_SY6PLCPK();
|
|
16228
16203
|
init_chunk_KMAC3O3L();
|
|
@@ -16244,12 +16219,12 @@ var init_contracts = __esm({
|
|
|
16244
16219
|
init_chunk_E4DIIOOE();
|
|
16245
16220
|
init_chunk_7CYHPF35();
|
|
16246
16221
|
init_chunk_BPCNB5RT();
|
|
16247
|
-
|
|
16222
|
+
init_chunk_KY3JYP4A();
|
|
16248
16223
|
init_chunk_SARVKRZB();
|
|
16249
|
-
|
|
16250
|
-
|
|
16224
|
+
init_chunk_HRKVCI5A();
|
|
16225
|
+
init_chunk_ICE6SQZO();
|
|
16251
16226
|
init_chunk_2YEGUQR7();
|
|
16252
|
-
|
|
16227
|
+
init_chunk_4D6K4P4K();
|
|
16253
16228
|
init_chunk_LBDH7LCG();
|
|
16254
16229
|
init_chunk_4LXDRTO4();
|
|
16255
16230
|
init_chunk_JDJ4EUOL();
|
|
@@ -21565,6 +21540,23 @@ var init_pages2 = __esm({
|
|
|
21565
21540
|
}
|
|
21566
21541
|
});
|
|
21567
21542
|
|
|
21543
|
+
// ../../packages/core/dist/contracts/evals.js
|
|
21544
|
+
var init_evals = __esm({
|
|
21545
|
+
"../../packages/core/dist/contracts/evals.js"() {
|
|
21546
|
+
"use strict";
|
|
21547
|
+
init_chunk_ICE6SQZO();
|
|
21548
|
+
init_chunk_2YEGUQR7();
|
|
21549
|
+
init_chunk_4D6K4P4K();
|
|
21550
|
+
init_chunk_4LXDRTO4();
|
|
21551
|
+
init_chunk_WTOA3ANF();
|
|
21552
|
+
init_chunk_KB5RK3RP();
|
|
21553
|
+
init_chunk_2ISUBJG7();
|
|
21554
|
+
init_chunk_HZ6CADSY();
|
|
21555
|
+
init_chunk_MIWZOSPI();
|
|
21556
|
+
init_chunk_YROEDMVZ();
|
|
21557
|
+
}
|
|
21558
|
+
});
|
|
21559
|
+
|
|
21568
21560
|
// src/lib/parser.ts
|
|
21569
21561
|
import * as fs14 from "fs";
|
|
21570
21562
|
import * as path17 from "path";
|
|
@@ -21841,23 +21833,22 @@ function parseVariablesMap(raw, label2) {
|
|
|
21841
21833
|
}
|
|
21842
21834
|
return vars;
|
|
21843
21835
|
}
|
|
21844
|
-
function parseFixtureField(raw, label2, key
|
|
21836
|
+
function parseFixtureField(raw, label2, key) {
|
|
21845
21837
|
if (raw === void 0 || raw === null) return void 0;
|
|
21846
21838
|
if (typeof raw !== "string") {
|
|
21847
|
-
throw expected(`${label2}: "${key}" must be a string (
|
|
21839
|
+
throw expected(`${label2}: "${key}" must be a string (the Rekor fixture name).`);
|
|
21848
21840
|
}
|
|
21849
21841
|
const trimmed = raw.trim();
|
|
21850
21842
|
return trimmed.length > 0 ? trimmed : void 0;
|
|
21851
21843
|
}
|
|
21852
21844
|
function parsePersonFields(data, label2) {
|
|
21853
|
-
|
|
21854
|
-
|
|
21845
|
+
if (data.customer_contact_id !== void 0) {
|
|
21846
|
+
throw expected(`${label2}: ${EVAL_PERSON_ALIAS_RETIRED}.`);
|
|
21847
|
+
}
|
|
21848
|
+
if (data.person === void 0 || data.person === null) return {};
|
|
21855
21849
|
if (!Array.isArray(data.person) || !data.person.every((id) => typeof id === "string")) {
|
|
21856
21850
|
throw expected(`${label2}: "person" must be a list of ids (person ids or contact ids).`);
|
|
21857
21851
|
}
|
|
21858
|
-
if (alias) {
|
|
21859
|
-
throw expected(`${label2}: declare "person" or "customer_contact_id" (its deprecated alias), not both.`);
|
|
21860
|
-
}
|
|
21861
21852
|
return { person: data.person };
|
|
21862
21853
|
}
|
|
21863
21854
|
function scanJourneyYamlFiles(hubFolder, bytesByHash, unreadable) {
|
|
@@ -22044,6 +22035,7 @@ var init_parser = __esm({
|
|
|
22044
22035
|
init_eval_attachments();
|
|
22045
22036
|
init_call_openings();
|
|
22046
22037
|
init_pages2();
|
|
22038
|
+
init_evals();
|
|
22047
22039
|
init_expected();
|
|
22048
22040
|
init_fs_safety();
|
|
22049
22041
|
NOT_A_YAML_OBJECT = "not a YAML object";
|
|
@@ -23778,6 +23770,9 @@ var init_config_writer = __esm({
|
|
|
23778
23770
|
"record_types",
|
|
23779
23771
|
"params",
|
|
23780
23772
|
"limit",
|
|
23773
|
+
// A privileged SQL Action (#5473 §7): the flag and the answer it declares.
|
|
23774
|
+
"privileged",
|
|
23775
|
+
"output",
|
|
23781
23776
|
"sql"
|
|
23782
23777
|
],
|
|
23783
23778
|
seeds: ["id", "description", "records", "relationships", "exclusive_record_types"]
|
|
@@ -30770,7 +30765,7 @@ async function evalsSqlSubcommand(args2) {
|
|
|
30770
30765
|
}
|
|
30771
30766
|
printQueryRows(result.data);
|
|
30772
30767
|
}
|
|
30773
|
-
var
|
|
30768
|
+
var init_evals2 = __esm({
|
|
30774
30769
|
"src/commands/evals.ts"() {
|
|
30775
30770
|
"use strict";
|
|
30776
30771
|
init_auth();
|
|
@@ -42696,7 +42691,7 @@ async function main() {
|
|
|
42696
42691
|
break;
|
|
42697
42692
|
}
|
|
42698
42693
|
case "evals": {
|
|
42699
|
-
const { evalsCommand: evalsCommand2 } = await Promise.resolve().then(() => (
|
|
42694
|
+
const { evalsCommand: evalsCommand2 } = await Promise.resolve().then(() => (init_evals2(), evals_exports));
|
|
42700
42695
|
await evalsCommand2(args);
|
|
42701
42696
|
break;
|
|
42702
42697
|
}
|