@wayai/cli 0.3.268 → 0.3.270
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 +29 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5799,7 +5799,7 @@ var init_chunk_HRKVCI5A = __esm({
|
|
|
5799
5799
|
}
|
|
5800
5800
|
});
|
|
5801
5801
|
|
|
5802
|
-
// ../../packages/core/dist/chunk-
|
|
5802
|
+
// ../../packages/core/dist/chunk-2DXRB6DR.js
|
|
5803
5803
|
function boundCustomerPartyIsValid(audience, parties, customer) {
|
|
5804
5804
|
return audience !== REKOR_PERSON_AUDIENCE_STAFF && customer < parties.length && Array.isArray(parties[customer]);
|
|
5805
5805
|
}
|
|
@@ -5812,9 +5812,9 @@ function isEncodedBoundPerson(raw) {
|
|
|
5812
5812
|
}
|
|
5813
5813
|
return rekorBoundPersonSchema.safeParse(parsed).success;
|
|
5814
5814
|
}
|
|
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;
|
|
5816
|
-
var
|
|
5817
|
-
"../../packages/core/dist/chunk-
|
|
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, BASE_TOOLSET_ONLY_FOR_CUSTOMER_FACING, GENERIC_DATA_MCP_CUSTOMER_FACING_REFUSAL, GENERIC_DATA_API_CUSTOMER_FACING_REFUSAL;
|
|
5816
|
+
var init_chunk_2DXRB6DR = __esm({
|
|
5817
|
+
"../../packages/core/dist/chunk-2DXRB6DR.js"() {
|
|
5818
5818
|
"use strict";
|
|
5819
5819
|
init_chunk_HRKVCI5A();
|
|
5820
5820
|
init_chunk_4D6K4P4K();
|
|
@@ -6070,15 +6070,18 @@ var init_chunk_VWREGZ7S = __esm({
|
|
|
6070
6070
|
rekorToolsetFilePutSchema = external_exports.object({ data: rekorToolsetFileSchema });
|
|
6071
6071
|
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";
|
|
6072
6072
|
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`;
|
|
6073
|
+
BASE_TOOLSET_ONLY_FOR_CUSTOMER_FACING = "A customer-facing agent (a pilot, pilot specialist or pilot advisor) can reach a data toolset only through a Base Toolset connection, ";
|
|
6074
|
+
GENERIC_DATA_MCP_CUSTOMER_FACING_REFUSAL = `${BASE_TOOLSET_ONLY_FOR_CUSTOMER_FACING}never through a generic MCP connection to the data MCP server`;
|
|
6075
|
+
GENERIC_DATA_API_CUSTOMER_FACING_REFUSAL = `${BASE_TOOLSET_ONLY_FOR_CUSTOMER_FACING}never through an HTTP tool or REST API connection to the data API`;
|
|
6073
6076
|
}
|
|
6074
6077
|
});
|
|
6075
6078
|
|
|
6076
|
-
// ../../packages/core/dist/chunk-
|
|
6079
|
+
// ../../packages/core/dist/chunk-5YNUTCJ2.js
|
|
6077
6080
|
var TOOLSET_ANSWER_PERSON_PARTIES, toolsetAnswerPersonSchema, toolsetAnswerPersonsSchema;
|
|
6078
|
-
var
|
|
6079
|
-
"../../packages/core/dist/chunk-
|
|
6081
|
+
var init_chunk_5YNUTCJ2 = __esm({
|
|
6082
|
+
"../../packages/core/dist/chunk-5YNUTCJ2.js"() {
|
|
6080
6083
|
"use strict";
|
|
6081
|
-
|
|
6084
|
+
init_chunk_2DXRB6DR();
|
|
6082
6085
|
init_chunk_4D6K4P4K();
|
|
6083
6086
|
init_zod();
|
|
6084
6087
|
TOOLSET_ANSWER_PERSON_PARTIES = ["requester", "originator", "initiator", "delegator"];
|
|
@@ -7334,10 +7337,10 @@ var init_chunk_S5SVBLGT = __esm({
|
|
|
7334
7337
|
}
|
|
7335
7338
|
});
|
|
7336
7339
|
|
|
7337
|
-
// ../../packages/core/dist/chunk-
|
|
7338
|
-
var PERSON_LINKS_MAX, PERSON_DENY_PAGE_MAX, personParam, personLinkParam, deniedPersonParam, listDeniedPersonsQuery;
|
|
7339
|
-
var
|
|
7340
|
-
"../../packages/core/dist/chunk-
|
|
7340
|
+
// ../../packages/core/dist/chunk-YNK5TWWS.js
|
|
7341
|
+
var PERSON_LINKS_MAX, PERSON_DENY_PAGE_MAX, personParam, personLinkParam, deniedPersonParam, listDeniedPersonsQuery, conversationCustomerPersonParam;
|
|
7342
|
+
var init_chunk_YNK5TWWS = __esm({
|
|
7343
|
+
"../../packages/core/dist/chunk-YNK5TWWS.js"() {
|
|
7341
7344
|
"use strict";
|
|
7342
7345
|
init_chunk_2YEGUQR7();
|
|
7343
7346
|
init_chunk_S5SVBLGT();
|
|
@@ -7357,6 +7360,10 @@ var init_chunk_L4SFHNKQ = __esm({
|
|
|
7357
7360
|
cursor: personIdSchema.optional(),
|
|
7358
7361
|
limit: external_exports.coerce.number().int().min(1).max(PERSON_DENY_PAGE_MAX).default(50)
|
|
7359
7362
|
});
|
|
7363
|
+
conversationCustomerPersonParam = external_exports.object({
|
|
7364
|
+
hubId: external_exports.string().uuid(),
|
|
7365
|
+
conversationId: external_exports.string().uuid()
|
|
7366
|
+
});
|
|
7360
7367
|
}
|
|
7361
7368
|
});
|
|
7362
7369
|
|
|
@@ -7863,12 +7870,12 @@ var init_chunk_FBV7NLKO = __esm({
|
|
|
7863
7870
|
}
|
|
7864
7871
|
});
|
|
7865
7872
|
|
|
7866
|
-
// ../../packages/core/dist/chunk-
|
|
7873
|
+
// ../../packages/core/dist/chunk-NZ6RQW6R.js
|
|
7867
7874
|
var hubPageWatchParam, pageWatchedBaseSchema, hubPageWatchResponseSchema;
|
|
7868
|
-
var
|
|
7869
|
-
"../../packages/core/dist/chunk-
|
|
7875
|
+
var init_chunk_NZ6RQW6R = __esm({
|
|
7876
|
+
"../../packages/core/dist/chunk-NZ6RQW6R.js"() {
|
|
7870
7877
|
"use strict";
|
|
7871
|
-
|
|
7878
|
+
init_chunk_2DXRB6DR();
|
|
7872
7879
|
init_chunk_FBV7NLKO();
|
|
7873
7880
|
init_chunk_HZ6CADSY();
|
|
7874
7881
|
init_zod();
|
|
@@ -16181,7 +16188,7 @@ var init_contracts = __esm({
|
|
|
16181
16188
|
init_chunk_HA7CRZMX();
|
|
16182
16189
|
init_chunk_MF2VVXBR();
|
|
16183
16190
|
init_chunk_IPXBFWUU();
|
|
16184
|
-
|
|
16191
|
+
init_chunk_5YNUTCJ2();
|
|
16185
16192
|
init_chunk_ZC6YGHNX();
|
|
16186
16193
|
init_chunk_ACKF2MVU();
|
|
16187
16194
|
init_chunk_5DGHIY7L();
|
|
@@ -16191,13 +16198,13 @@ var init_contracts = __esm({
|
|
|
16191
16198
|
init_chunk_VEERWOZ6();
|
|
16192
16199
|
init_chunk_ZXK6N2HN();
|
|
16193
16200
|
init_chunk_Y7CFCYX4();
|
|
16194
|
-
|
|
16201
|
+
init_chunk_YNK5TWWS();
|
|
16195
16202
|
init_chunk_YUZFHVB2();
|
|
16196
16203
|
init_chunk_I3O2RACG();
|
|
16197
16204
|
init_chunk_34LE6P7E();
|
|
16198
16205
|
init_chunk_FPSDNS2E();
|
|
16199
|
-
|
|
16200
|
-
|
|
16206
|
+
init_chunk_NZ6RQW6R();
|
|
16207
|
+
init_chunk_2DXRB6DR();
|
|
16201
16208
|
init_chunk_OPETF4GS();
|
|
16202
16209
|
init_chunk_SY6PLCPK();
|
|
16203
16210
|
init_chunk_KMAC3O3L();
|
|
@@ -23516,6 +23523,7 @@ function historyQuery(opts) {
|
|
|
23516
23523
|
if (opts.limit) qs.set("limit", opts.limit);
|
|
23517
23524
|
if (opts.offset) qs.set("offset", opts.offset);
|
|
23518
23525
|
if (opts.diff) qs.set("diff", "true");
|
|
23526
|
+
if (opts.recordType) qs.set("record_type", opts.recordType);
|
|
23519
23527
|
const q = qs.toString();
|
|
23520
23528
|
return q ? `?${q}` : "";
|
|
23521
23529
|
}
|
|
@@ -41765,7 +41773,7 @@ function buildRecordsCommand() {
|
|
|
41765
41773
|
});
|
|
41766
41774
|
records.command("history <id>").description(
|
|
41767
41775
|
"View the change history (audit log) for a record \u2014 every version, who changed it, and when"
|
|
41768
|
-
).option("--limit <n>", "Max results").option("--offset <n>", "Pagination offset").option("--diff", "Include field-level diffs between versions").action(async function(id, opts) {
|
|
41776
|
+
).option("--limit <n>", "Max results").option("--offset <n>", "Pagination offset").option("--diff", "Include field-level diffs between versions").option("--record-type <type>", "The record's record_type (required when records of several types share the id)").action(async function(id, opts) {
|
|
41769
41777
|
const base = pathSegment(requireBase(this), "--base");
|
|
41770
41778
|
const client = await createDataClient();
|
|
41771
41779
|
printOutput(
|