@wayai/cli 0.3.240 → 0.3.242
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 +1325 -1272
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4687,8 +4687,8 @@ var init_resource_paths = __esm({
|
|
|
4687
4687
|
"../../packages/core/dist/resource-paths.js"() {
|
|
4688
4688
|
"use strict";
|
|
4689
4689
|
init_chunk_S4VDZ7PZ();
|
|
4690
|
-
init_chunk_LD6U3CDG();
|
|
4691
4690
|
init_chunk_CJ3L46X6();
|
|
4691
|
+
init_chunk_LD6U3CDG();
|
|
4692
4692
|
init_chunk_6TSQ5HXC();
|
|
4693
4693
|
SKILL_NAMESPACE = "skills";
|
|
4694
4694
|
FALLBACK_SLUG = "resource";
|
|
@@ -4888,10 +4888,10 @@ var init_fs_safety = __esm({
|
|
|
4888
4888
|
}
|
|
4889
4889
|
});
|
|
4890
4890
|
|
|
4891
|
-
// ../../packages/core/dist/chunk-
|
|
4892
|
-
var BASE_CREDENTIAL_MANAGED_BY, BASE_CREDENTIAL_NAME_MAX, baseCredentialNameSchema, createBaseCredentialLinkBody, baseCredentialLinkParams, baseCredentialLinkQuery;
|
|
4893
|
-
var
|
|
4894
|
-
"../../packages/core/dist/chunk-
|
|
4891
|
+
// ../../packages/core/dist/chunk-NKLVUTFO.js
|
|
4892
|
+
var BASE_CREDENTIAL_MANAGED_BY, BASE_CREDENTIAL_NAME_MAX, BASE_CREDENTIAL_NAME_PATTERN, BASE_CREDENTIAL_NAME_CHARSET, baseCredentialNameSchema, createBaseCredentialLinkBody, baseCredentialLinkParams, baseCredentialLinkQuery;
|
|
4893
|
+
var init_chunk_NKLVUTFO = __esm({
|
|
4894
|
+
"../../packages/core/dist/chunk-NKLVUTFO.js"() {
|
|
4895
4895
|
"use strict";
|
|
4896
4896
|
init_zod();
|
|
4897
4897
|
BASE_CREDENTIAL_MANAGED_BY = {
|
|
@@ -4899,10 +4899,9 @@ var init_chunk_GK27ENTT = __esm({
|
|
|
4899
4899
|
ORG_LINK: "org-link"
|
|
4900
4900
|
};
|
|
4901
4901
|
BASE_CREDENTIAL_NAME_MAX = 100;
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
);
|
|
4902
|
+
BASE_CREDENTIAL_NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:@+~=-]*$/;
|
|
4903
|
+
BASE_CREDENTIAL_NAME_CHARSET = "letters, digits and '. _ : @ + ~ = -', starting with a letter or digit";
|
|
4904
|
+
baseCredentialNameSchema = external_exports.string().min(1).max(BASE_CREDENTIAL_NAME_MAX).regex(BASE_CREDENTIAL_NAME_PATTERN, `name must use ${BASE_CREDENTIAL_NAME_CHARSET}`);
|
|
4906
4905
|
createBaseCredentialLinkBody = external_exports.object({
|
|
4907
4906
|
organization_id: external_exports.string().uuid(),
|
|
4908
4907
|
base_id: external_exports.string().min(1),
|
|
@@ -4920,14 +4919,14 @@ var init_chunk_GK27ENTT = __esm({
|
|
|
4920
4919
|
}
|
|
4921
4920
|
});
|
|
4922
4921
|
|
|
4923
|
-
// ../../packages/core/dist/chunk-
|
|
4922
|
+
// ../../packages/core/dist/chunk-WNLWNFHH.js
|
|
4924
4923
|
function normalizeAuthType(raw) {
|
|
4925
4924
|
if (VALID_AUTH_TYPES.has(raw)) return raw;
|
|
4926
4925
|
return LEGACY_AUTH_TYPE_MAP[raw] ?? raw;
|
|
4927
4926
|
}
|
|
4928
4927
|
var AUTH_TYPE, ORG_CREDENTIAL_AUTH_TYPES, AUTH_TYPE_DISPLAY, LEGACY_AUTH_TYPE_MAP, VALID_AUTH_TYPES, AGENT_ROLES, PILOT_TRACK_ROLES, COPILOT_TRACK_ROLES, CUSTOMER_FACING_AGENT_ROLES, SAFE_USER_ID_REGEX, SUPPORTED_LOCALES, SKILL_INSTALL_COMMAND;
|
|
4929
|
-
var
|
|
4930
|
-
"../../packages/core/dist/chunk-
|
|
4928
|
+
var init_chunk_WNLWNFHH = __esm({
|
|
4929
|
+
"../../packages/core/dist/chunk-WNLWNFHH.js"() {
|
|
4931
4930
|
"use strict";
|
|
4932
4931
|
AUTH_TYPE = {
|
|
4933
4932
|
OAUTH: "oauth",
|
|
@@ -4981,12 +4980,12 @@ var init_chunk_DHPUPI4Y = __esm({
|
|
|
4981
4980
|
}
|
|
4982
4981
|
});
|
|
4983
4982
|
|
|
4984
|
-
// ../../packages/core/dist/chunk-
|
|
4983
|
+
// ../../packages/core/dist/chunk-GLJSJX5R.js
|
|
4985
4984
|
var orgCredentialIdParam, listOrgCredentialsQuery, createOrgCredentialBody, updateOrgCredentialBody;
|
|
4986
|
-
var
|
|
4987
|
-
"../../packages/core/dist/chunk-
|
|
4985
|
+
var init_chunk_GLJSJX5R = __esm({
|
|
4986
|
+
"../../packages/core/dist/chunk-GLJSJX5R.js"() {
|
|
4988
4987
|
"use strict";
|
|
4989
|
-
|
|
4988
|
+
init_chunk_WNLWNFHH();
|
|
4990
4989
|
init_zod();
|
|
4991
4990
|
orgCredentialIdParam = external_exports.object({
|
|
4992
4991
|
id: external_exports.string().uuid()
|
|
@@ -5397,6 +5396,38 @@ var init_chunk_Q7KIQHAZ = __esm({
|
|
|
5397
5396
|
}
|
|
5398
5397
|
});
|
|
5399
5398
|
|
|
5399
|
+
// ../../packages/core/dist/chunk-ACKF2MVU.js
|
|
5400
|
+
var MAX_NAME_LENGTH, MAX_VALUE_LENGTH, MAX_TAGS, MAX_TAG_LENGTH, MAX_SCOPE_HUBS, MAX_SCOPE_TAGS, vaultSecretScopeSchema, vaultCreateBody, vaultUpdateBody;
|
|
5401
|
+
var init_chunk_ACKF2MVU = __esm({
|
|
5402
|
+
"../../packages/core/dist/chunk-ACKF2MVU.js"() {
|
|
5403
|
+
"use strict";
|
|
5404
|
+
init_chunk_HZ6CADSY();
|
|
5405
|
+
init_zod();
|
|
5406
|
+
MAX_NAME_LENGTH = 100;
|
|
5407
|
+
MAX_VALUE_LENGTH = 32 * 1024;
|
|
5408
|
+
MAX_TAGS = 20;
|
|
5409
|
+
MAX_TAG_LENGTH = 50;
|
|
5410
|
+
MAX_SCOPE_HUBS = 100;
|
|
5411
|
+
MAX_SCOPE_TAGS = 50;
|
|
5412
|
+
vaultSecretScopeSchema = external_exports.object({
|
|
5413
|
+
hubs: external_exports.array(external_exports.string().min(1)).max(MAX_SCOPE_HUBS).optional(),
|
|
5414
|
+
tags: external_exports.array(external_exports.string().min(1).max(MAX_TAG_LENGTH)).max(MAX_SCOPE_TAGS).optional()
|
|
5415
|
+
}).strict();
|
|
5416
|
+
vaultCreateBody = external_exports.object({
|
|
5417
|
+
name: external_exports.string().trim().min(1, "name is required").max(MAX_NAME_LENGTH, `name must be ${MAX_NAME_LENGTH} characters or fewer`),
|
|
5418
|
+
value: external_exports.string().min(1, "value is required").max(MAX_VALUE_LENGTH, `value must be ${MAX_VALUE_LENGTH} characters or fewer`),
|
|
5419
|
+
tags: external_exports.array(external_exports.string().min(1).max(MAX_TAG_LENGTH, `Tag must be ${MAX_TAG_LENGTH} characters or fewer`)).max(MAX_TAGS, `Maximum ${MAX_TAGS} tags allowed`).optional().default([]),
|
|
5420
|
+
scope: vaultSecretScopeSchema.optional().default({})
|
|
5421
|
+
}).strict();
|
|
5422
|
+
vaultUpdateBody = external_exports.object({
|
|
5423
|
+
name: external_exports.string().trim().min(1).max(MAX_NAME_LENGTH).optional(),
|
|
5424
|
+
value: external_exports.string().min(1).max(MAX_VALUE_LENGTH).optional(),
|
|
5425
|
+
tags: external_exports.array(external_exports.string().min(1).max(MAX_TAG_LENGTH)).max(MAX_TAGS).optional(),
|
|
5426
|
+
scope: vaultSecretScopeSchema.optional()
|
|
5427
|
+
}).strict();
|
|
5428
|
+
}
|
|
5429
|
+
});
|
|
5430
|
+
|
|
5400
5431
|
// ../../packages/core/dist/chunk-WBFLPPDI.js
|
|
5401
5432
|
var connectionIdParam, connectorIdParam, listConnectionsQuery, deleteConnectionQuery, addConnectionBody, editConnectionBody, PRODUCTION_DIRECT_FIELDS, BESIDE_LINK_FIELDS, setProductionCredentialBody, registerWhatsappQuery, registerWhatsappBody, retryProvisioningQuery, resendDomainStatusQuery;
|
|
5402
5433
|
var init_chunk_WBFLPPDI = __esm({
|
|
@@ -5540,141 +5571,537 @@ var init_chunk_IPXBFWUU = __esm({
|
|
|
5540
5571
|
}
|
|
5541
5572
|
});
|
|
5542
5573
|
|
|
5543
|
-
// ../../packages/core/dist/chunk-
|
|
5544
|
-
var
|
|
5545
|
-
var
|
|
5546
|
-
"../../packages/core/dist/chunk-
|
|
5574
|
+
// ../../packages/core/dist/chunk-VTFFO3RA.js
|
|
5575
|
+
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, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH;
|
|
5576
|
+
var init_chunk_VTFFO3RA = __esm({
|
|
5577
|
+
"../../packages/core/dist/chunk-VTFFO3RA.js"() {
|
|
5547
5578
|
"use strict";
|
|
5548
5579
|
init_zod();
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5580
|
+
REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
|
|
5581
|
+
REKOR_ACTOR_ID_HEADER = "X-Rekor-Actor-Id";
|
|
5582
|
+
REKOR_ACTOR_LABEL_HEADER = "X-Rekor-Actor-Label";
|
|
5583
|
+
REKOR_ACTOR_ORG_HEADER = "X-Rekor-Actor-Org";
|
|
5584
|
+
REKOR_ACTOR_ADMIN_HEADER = "X-Rekor-Actor-Admin";
|
|
5585
|
+
REKOR_CLIENT_HEADER = "X-Rekor-Client";
|
|
5586
|
+
REKOR_TOOL_ID_HEADER = "X-Rekor-Tool-Id";
|
|
5587
|
+
REKOR_CLIENTS = ["api", "cli", "mcp"];
|
|
5588
|
+
rekorClientSchema = external_exports.enum(REKOR_CLIENTS);
|
|
5589
|
+
MAX_REKOR_TOOL_ID_LENGTH = 128;
|
|
5590
|
+
rekorToolIdSchema = external_exports.string().trim().min(1).max(MAX_REKOR_TOOL_ID_LENGTH);
|
|
5591
|
+
REKOR_V1_PREFIX = "/v1";
|
|
5592
|
+
DATA_PROXY_ORG_QUERY_PARAM = "org_id";
|
|
5593
|
+
MAX_PROVISIONING_BODY_BYTES = 256 * 1024;
|
|
5594
|
+
dataProxyQuery = external_exports.object({
|
|
5595
|
+
[DATA_PROXY_ORG_QUERY_PARAM]: external_exports.string().uuid().optional()
|
|
5558
5596
|
});
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
PERMISSIONS = [
|
|
5568
|
-
"hub:read",
|
|
5569
|
-
"hub:write",
|
|
5570
|
-
"hub:admin",
|
|
5571
|
-
"conversation:read",
|
|
5572
|
-
"conversation:write",
|
|
5573
|
-
"analytics:read",
|
|
5574
|
-
"billing:read",
|
|
5575
|
-
"billing:write",
|
|
5576
|
-
"org:read",
|
|
5577
|
-
"org:write",
|
|
5578
|
-
"org:admin",
|
|
5579
|
-
"contacts:write",
|
|
5580
|
-
"platform:admin",
|
|
5581
|
-
"*"
|
|
5582
|
-
];
|
|
5583
|
-
}
|
|
5584
|
-
});
|
|
5585
|
-
|
|
5586
|
-
// ../../packages/core/dist/chunk-DGKMMFIR.js
|
|
5587
|
-
var MAX_NAME_LENGTH, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam;
|
|
5588
|
-
var init_chunk_DGKMMFIR = __esm({
|
|
5589
|
-
"../../packages/core/dist/chunk-DGKMMFIR.js"() {
|
|
5590
|
-
"use strict";
|
|
5591
|
-
init_chunk_VORPHGDT();
|
|
5592
|
-
init_chunk_HZ6CADSY();
|
|
5593
|
-
init_zod();
|
|
5594
|
-
MAX_NAME_LENGTH = 100;
|
|
5595
|
-
MAX_HUBS_PER_GRANT = 50;
|
|
5596
|
-
MAX_HUB_TAGS_PER_GRANT = 20;
|
|
5597
|
-
MAX_GRANTS = 20;
|
|
5598
|
-
permissionEnum = external_exports.enum(PERMISSIONS).refine(
|
|
5599
|
-
(p) => p !== "platform:admin",
|
|
5600
|
-
{ message: "platform:admin cannot be delegated via token creation" }
|
|
5601
|
-
);
|
|
5602
|
-
grantScopeSchema = external_exports.object({
|
|
5603
|
-
// Required: every token grant must declare its org tenancy. The handler
|
|
5604
|
-
// also strict-checks this as defense-in-depth, but failing at the Zod
|
|
5605
|
-
// boundary keeps the generated client type honest (org_id: string).
|
|
5606
|
-
org_id: external_exports.string().min(1),
|
|
5607
|
-
hubs: external_exports.array(external_exports.string().min(1)).min(1, "Each grant must have scope.hubs as a non-empty array").max(MAX_HUBS_PER_GRANT),
|
|
5608
|
-
hub_tags: external_exports.array(external_exports.string().min(1)).min(1, "scope.hub_tags must be a non-empty array if provided").max(MAX_HUB_TAGS_PER_GRANT).optional(),
|
|
5609
|
-
environments: external_exports.array(external_exports.enum(["production", "preview"])).min(1, "scope.environments must be a non-empty array if provided").optional()
|
|
5610
|
-
}).strict();
|
|
5611
|
-
grantSchema = external_exports.object({
|
|
5612
|
-
scope: grantScopeSchema,
|
|
5613
|
-
permissions: external_exports.array(permissionEnum).min(1, "Each grant must have permissions as a non-empty array")
|
|
5614
|
-
}).strict();
|
|
5615
|
-
createTokenBody = external_exports.object({
|
|
5616
|
-
name: external_exports.string().trim().min(1, "name is required").max(MAX_NAME_LENGTH, `name must be ${MAX_NAME_LENGTH} characters or fewer`),
|
|
5617
|
-
grants: external_exports.array(grantSchema).min(1, "grants must be a non-empty array").max(MAX_GRANTS),
|
|
5618
|
-
expires_at: external_exports.string().datetime({ message: "expires_at must be a valid ISO 8601 date" }).refine(
|
|
5619
|
-
(s) => new Date(s).getTime() > Date.now(),
|
|
5620
|
-
{ message: "expires_at must be in the future" }
|
|
5621
|
-
).optional()
|
|
5597
|
+
rekorAttestation = external_exports.object({
|
|
5598
|
+
[REKOR_ACTOR_TYPE_HEADER]: external_exports.enum(["user", "token"]),
|
|
5599
|
+
[REKOR_ACTOR_ID_HEADER]: external_exports.string().min(1),
|
|
5600
|
+
[REKOR_ACTOR_LABEL_HEADER]: external_exports.string(),
|
|
5601
|
+
[REKOR_ACTOR_ORG_HEADER]: external_exports.string().uuid(),
|
|
5602
|
+
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.enum(["0", "1"]),
|
|
5603
|
+
[REKOR_CLIENT_HEADER]: rekorClientSchema,
|
|
5604
|
+
[REKOR_TOOL_ID_HEADER]: rekorToolIdSchema.optional()
|
|
5622
5605
|
});
|
|
5623
|
-
|
|
5606
|
+
REQUIRED_REKOR_ATTESTATION_HEADERS = Object.entries(rekorAttestation.shape).filter(([, field]) => !field.isOptional()).map(([header]) => header);
|
|
5607
|
+
REKOR_BOUND_BASE_HEADER = "X-Rekor-Bound-Base";
|
|
5608
|
+
REKOR_BOUND_TOOLSET_HEADER = "X-Rekor-Bound-Toolset";
|
|
5609
|
+
REKOR_BOUND_TOKEN_HEADER = "X-Rekor-Bound-Token";
|
|
5610
|
+
REKOR_BOUND_CUSTOMER_HEADER = "X-Rekor-Bound-Customer";
|
|
5611
|
+
DATA_BASE_GENERATION_HEADER = "X-Data-Base-Generation";
|
|
5612
|
+
REKOR_MAX_ACTOR_ID_LENGTH = 256;
|
|
5613
|
+
REKOR_MAX_ACTOR_LABEL_LENGTH = 256;
|
|
5624
5614
|
}
|
|
5625
5615
|
});
|
|
5626
5616
|
|
|
5627
|
-
// ../../packages/core/dist/chunk-
|
|
5628
|
-
var
|
|
5629
|
-
var
|
|
5630
|
-
"../../packages/core/dist/chunk-
|
|
5617
|
+
// ../../packages/core/dist/chunk-VZA6NHCH.js
|
|
5618
|
+
var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, rekorToolsetToolsSchema, rekorBoundAttestation, rekorResolvedToolsetSchema, resolvedRecordTypeSchema, reviewWritersSchema, sharedScopeSchema, resolvedFileToolSchema, rekorToolsetFileSchema, rekorToolsetFileUrlAnswerSchema, rekorToolsetFileListSchema, rekorToolsetFileGetSchema, rekorToolsetFilePutSchema, TOOLSET_CUSTOMER_FACING_REFUSAL_MARK, TOOLSET_CUSTOMER_FACING_REFUSAL;
|
|
5619
|
+
var init_chunk_VZA6NHCH = __esm({
|
|
5620
|
+
"../../packages/core/dist/chunk-VZA6NHCH.js"() {
|
|
5631
5621
|
"use strict";
|
|
5622
|
+
init_chunk_VTFFO3RA();
|
|
5623
|
+
init_chunk_WNLWNFHH();
|
|
5632
5624
|
init_zod();
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
(
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
opened_guide: external_exports.boolean().optional()
|
|
5656
|
-
}).passthrough();
|
|
5657
|
-
registerPushTokenBody = external_exports.object({
|
|
5658
|
-
token: external_exports.string().min(1).max(512),
|
|
5659
|
-
platform: external_exports.enum(["ios", "android"]),
|
|
5660
|
-
/** Stable per-install id so re-registration replaces the prior token for the device. */
|
|
5661
|
-
device_id: external_exports.string().min(1).max(128).optional(),
|
|
5625
|
+
TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
5626
|
+
REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
|
|
5627
|
+
baseEnvironmentSchema = external_exports.enum(["preview", "production"]);
|
|
5628
|
+
toolsetFileToolSchema = external_exports.object({
|
|
5629
|
+
file_type: external_exports.string().min(1),
|
|
5630
|
+
path_prefix: external_exports.string(),
|
|
5631
|
+
/** The entry's authored description of its tools (`description_override`), when it has one. */
|
|
5632
|
+
description: external_exports.string().min(1).optional(),
|
|
5633
|
+
tools: external_exports.object({
|
|
5634
|
+
list: external_exports.string().min(1).optional(),
|
|
5635
|
+
get: external_exports.string().min(1).optional(),
|
|
5636
|
+
put: external_exports.string().min(1).optional(),
|
|
5637
|
+
delete: external_exports.string().min(1).optional(),
|
|
5638
|
+
get_url: external_exports.string().min(1).optional(),
|
|
5639
|
+
put_url: external_exports.string().min(1).optional()
|
|
5640
|
+
})
|
|
5641
|
+
});
|
|
5642
|
+
toolsetSurfaceSchema = external_exports.object({
|
|
5643
|
+
/** Any record, composite, relationship or SQL Action tool: the toolset reaches records. */
|
|
5644
|
+
records: external_exports.boolean(),
|
|
5645
|
+
sql_query: external_exports.boolean(),
|
|
5646
|
+
batch: external_exports.boolean(),
|
|
5662
5647
|
/**
|
|
5663
|
-
* The
|
|
5664
|
-
*
|
|
5665
|
-
*
|
|
5648
|
+
* The toolset serves one customer per call (#5083 RK2): its every call names the customer it serves,
|
|
5649
|
+
* and reaches only that customer's records and shared ones. Absent on a surface recorded before it
|
|
5650
|
+
* was, which reads as not scoped until the connection's next tool sync or token save records it: its
|
|
5651
|
+
* calls name no customer, and the customer-facing rule admits none of its record tools.
|
|
5666
5652
|
*/
|
|
5667
|
-
|
|
5653
|
+
customer_scoped: external_exports.boolean().optional(),
|
|
5668
5654
|
/**
|
|
5669
|
-
*
|
|
5670
|
-
*
|
|
5671
|
-
*
|
|
5672
|
-
*
|
|
5655
|
+
* A key of the resolve this side neither describes nor classifies exposes something: a kind of tool
|
|
5656
|
+
* the data product added later, counted in `records`. The customer-facing rule never admits it, a
|
|
5657
|
+
* customer scope included, until it is classified here. Absent on a surface recorded before it was,
|
|
5658
|
+
* which reads as present.
|
|
5673
5659
|
*/
|
|
5674
|
-
|
|
5660
|
+
unclassified_tools: external_exports.boolean().optional(),
|
|
5661
|
+
/**
|
|
5662
|
+
* Any of its file tools writes: an operation other than `list`, `get` and `get_url` (`put`, `delete`,
|
|
5663
|
+
* `put_url`, or one the data product adds later), or an entry this side cannot read. Absent on a surface recorded
|
|
5664
|
+
* before it was, which the customer-facing rule reads as writing until the connection's next tool
|
|
5665
|
+
* sync or token save records it.
|
|
5666
|
+
*/
|
|
5667
|
+
file_writes: external_exports.boolean().optional(),
|
|
5668
|
+
/**
|
|
5669
|
+
* A record type the resolve's `record_types` carries names the toolset among its writers
|
|
5670
|
+
* (`x-review.writers`, #5083 RK4): the toolset writes the type's drafts and reads its every record,
|
|
5671
|
+
* drafts included. Those are the types its actions and composite record steps reach, and every
|
|
5672
|
+
* reviewed type it reaches otherwise: at a relationship tool's or a composite relationship step's
|
|
5673
|
+
* end, in a `batch` entry, or, through `sql_query`, all of them (decision 198). Or such a type's
|
|
5674
|
+
* declaration this side cannot read, or a resolve reaching records that carries no record types.
|
|
5675
|
+
* Absent on a surface recorded before it was, which the customer-facing rule reads as writing, for a
|
|
5676
|
+
* toolset reaching records, until the connection's next tool sync or token save records it.
|
|
5677
|
+
*/
|
|
5678
|
+
review_writes: external_exports.boolean().optional(),
|
|
5679
|
+
/**
|
|
5680
|
+
* Every record type the toolset reaches, at least one, is reviewed (`x-review`), holds no customer data
|
|
5681
|
+
* (`shared`), and does not name it among its writers: each call reads only that type's approved
|
|
5682
|
+
* records (#5083 decision 182, Q9). Never with a SQL Action, whose query reads its types' every
|
|
5683
|
+
* record, drafts included. Absent on a surface recorded before it was, which reads as false.
|
|
5684
|
+
*/
|
|
5685
|
+
approved_reads_only: external_exports.boolean().optional(),
|
|
5686
|
+
/**
|
|
5687
|
+
* The toolset's file tools. Absent when it has none, and on a surface recorded before they were.
|
|
5688
|
+
* A list this side cannot read is dropped rather than failing the binding, which every call and
|
|
5689
|
+
* the customer-facing rule read: the next tool sync records it again.
|
|
5690
|
+
*/
|
|
5691
|
+
files: external_exports.array(toolsetFileToolSchema).optional().catch(void 0)
|
|
5675
5692
|
});
|
|
5676
|
-
|
|
5677
|
-
|
|
5693
|
+
toolsetConnectionBindingSchema = external_exports.object({
|
|
5694
|
+
base_id: external_exports.string().min(1),
|
|
5695
|
+
/** The slug the token was resolved against — `settings.toolset` at that write. */
|
|
5696
|
+
toolset: external_exports.string().min(1),
|
|
5697
|
+
/** The base's incarnation when the token was written; a bound attested call states it. */
|
|
5698
|
+
base_generation: external_exports.number().int().min(1),
|
|
5699
|
+
environment: baseEnvironmentSchema,
|
|
5700
|
+
surface: toolsetSurfaceSchema,
|
|
5701
|
+
/**
|
|
5702
|
+
* The id of the token the binding was resolved from, as its resolve reports it; a bound attested
|
|
5703
|
+
* call names it (`REKOR_BOUND_TOKEN_HEADER`), so the data product refuses the binding once the token
|
|
5704
|
+
* is revoked or expires (owner decision 41). Absent on a binding recorded before the report carried
|
|
5705
|
+
* it: its calls name none until a token save, or a tool sync while the token still stands, records it.
|
|
5706
|
+
* One that does not read is dropped rather than failing the binding.
|
|
5707
|
+
*/
|
|
5708
|
+
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
5709
|
+
});
|
|
5710
|
+
rekorToolsetToolsSchema = external_exports.object({
|
|
5711
|
+
data: external_exports.object({
|
|
5712
|
+
tools: external_exports.array(external_exports.object({
|
|
5713
|
+
name: external_exports.string(),
|
|
5714
|
+
description: external_exports.string().optional(),
|
|
5715
|
+
inputSchema: external_exports.record(external_exports.unknown()).optional()
|
|
5716
|
+
}))
|
|
5717
|
+
})
|
|
5718
|
+
});
|
|
5719
|
+
rekorBoundAttestation = rekorAttestation.extend({
|
|
5720
|
+
[REKOR_ACTOR_TYPE_HEADER]: external_exports.literal("token"),
|
|
5721
|
+
/** Trimmed and checked as the far side trims and checks it. */
|
|
5722
|
+
[REKOR_ACTOR_ID_HEADER]: external_exports.string().trim().min(1).max(REKOR_MAX_ACTOR_ID_LENGTH),
|
|
5723
|
+
[REKOR_ACTOR_LABEL_HEADER]: external_exports.string().max(REKOR_MAX_ACTOR_LABEL_LENGTH),
|
|
5724
|
+
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.literal("0"),
|
|
5725
|
+
[REKOR_BOUND_BASE_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
5726
|
+
[REKOR_BOUND_TOOLSET_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
5727
|
+
/**
|
|
5728
|
+
* Decimal digits only, as the far side parses it, and at most 15 of them: its `Number()` reads
|
|
5729
|
+
* every such value back exactly, where a longer one may round or overflow to `Infinity` (a 400).
|
|
5730
|
+
*/
|
|
5731
|
+
[DATA_BASE_GENERATION_HEADER]: external_exports.string().regex(/^[1-9]\d{0,14}$/),
|
|
5732
|
+
/** The token the binding was resolved from, when the connection records it (owner decision 41). */
|
|
5733
|
+
[REKOR_BOUND_TOKEN_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional(),
|
|
5734
|
+
/**
|
|
5735
|
+
* The customer the call serves (#5083 RK2): a contact id, which the contact book mints as a UUID.
|
|
5736
|
+
* Every UUID is an id the far side reads back as the customer's external id.
|
|
5737
|
+
*/
|
|
5738
|
+
[REKOR_BOUND_CUSTOMER_HEADER]: external_exports.string().uuid().optional()
|
|
5739
|
+
});
|
|
5740
|
+
rekorResolvedToolsetSchema = external_exports.object({
|
|
5741
|
+
data: external_exports.object({
|
|
5742
|
+
base_id: external_exports.string().min(1),
|
|
5743
|
+
environment: baseEnvironmentSchema,
|
|
5744
|
+
base_generation: external_exports.number().int().min(1),
|
|
5745
|
+
/**
|
|
5746
|
+
* The calling token's binding, or null for a token bound to none. A bound token can call only
|
|
5747
|
+
* its toolset's tools, which is what a toolset connection stores (#5083 decision 14). Its org
|
|
5748
|
+
* is the token's own: base ids are unique only per org, so the base id alone does not say
|
|
5749
|
+
* which base the token reaches.
|
|
5750
|
+
*/
|
|
5751
|
+
toolset_binding: external_exports.object({
|
|
5752
|
+
org_id: external_exports.string().optional(),
|
|
5753
|
+
base_id: external_exports.string(),
|
|
5754
|
+
toolset_id: external_exports.string(),
|
|
5755
|
+
/**
|
|
5756
|
+
* The token's own id, which a bound call names (`REKOR_BOUND_TOKEN_HEADER`); absent when the
|
|
5757
|
+
* caller has none (owner decision 41), and dropped when it is not an id the far side reads back.
|
|
5758
|
+
*/
|
|
5759
|
+
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
5760
|
+
}).nullable().optional(),
|
|
5761
|
+
actions: external_exports.array(external_exports.unknown()).optional(),
|
|
5762
|
+
composites: external_exports.array(external_exports.unknown()).optional(),
|
|
5763
|
+
relationships: external_exports.array(external_exports.unknown()).optional(),
|
|
5764
|
+
/**
|
|
5765
|
+
* The toolset's SQL Actions (#5311): each a fixed, read-only query over the record types it
|
|
5766
|
+
* declares, which the resolve also carries in `record_types` and `record_type_scopes`.
|
|
5767
|
+
*/
|
|
5768
|
+
sql_actions: external_exports.array(external_exports.unknown()).optional(),
|
|
5769
|
+
files: external_exports.array(external_exports.unknown()).optional(),
|
|
5770
|
+
batch: external_exports.object({ enabled: external_exports.boolean().optional() }).passthrough().nullable().optional(),
|
|
5771
|
+
sql_query: external_exports.boolean().optional(),
|
|
5772
|
+
/** The toolset serves one customer per call (#5083 RK2). Absent reads as not scoped. */
|
|
5773
|
+
customer_scope: external_exports.boolean().optional(),
|
|
5774
|
+
/**
|
|
5775
|
+
* Record types the toolset reaches, by id, as the data product stores them (`json_schema`
|
|
5776
|
+
* included): each one its actions, composite record steps and SQL Actions reach, and each reviewed one it
|
|
5777
|
+
* reaches otherwise (relationship ends, `batch` entries, every one through `sql_query`; #5083
|
|
5778
|
+
* decision 198). An unreviewed type it reaches only otherwise is not here. A reviewed type's
|
|
5779
|
+
* `x-review` names its writers (RK4).
|
|
5780
|
+
*/
|
|
5781
|
+
record_types: external_exports.record(external_exports.unknown()).optional(),
|
|
5782
|
+
/**
|
|
5783
|
+
* What each record type the toolset's actions, composite steps, SQL Actions and relationship tools reach is to a
|
|
5784
|
+
* customer scope (`{ role }`, or null), by id (#5083 RK2). A reviewed type `record_types` carries
|
|
5785
|
+
* because only a `batch` entry or `sql_query` reaches it has none.
|
|
5786
|
+
*/
|
|
5787
|
+
record_type_scopes: external_exports.record(external_exports.unknown()).optional()
|
|
5788
|
+
}).passthrough()
|
|
5789
|
+
});
|
|
5790
|
+
resolvedRecordTypeSchema = external_exports.object({ json_schema: external_exports.record(external_exports.unknown()) });
|
|
5791
|
+
reviewWritersSchema = external_exports.object({ writers: external_exports.array(external_exports.string()).optional() });
|
|
5792
|
+
sharedScopeSchema = external_exports.object({ role: external_exports.literal("shared") });
|
|
5793
|
+
resolvedFileToolSchema = external_exports.object({
|
|
5794
|
+
file_type: external_exports.string().min(1),
|
|
5795
|
+
path_prefix: external_exports.string().nullish(),
|
|
5796
|
+
operations: external_exports.array(external_exports.unknown()),
|
|
5797
|
+
name: external_exports.unknown().optional(),
|
|
5798
|
+
names: external_exports.unknown().optional(),
|
|
5799
|
+
description_override: external_exports.unknown().optional()
|
|
5800
|
+
});
|
|
5801
|
+
rekorToolsetFileSchema = external_exports.object({
|
|
5802
|
+
path: external_exports.string().min(1),
|
|
5803
|
+
version: external_exports.number().int().min(1),
|
|
5804
|
+
content_type: external_exports.string().optional()
|
|
5805
|
+
}).passthrough();
|
|
5806
|
+
rekorToolsetFileUrlAnswerSchema = external_exports.object({
|
|
5807
|
+
data: external_exports.object({
|
|
5808
|
+
url: external_exports.string(),
|
|
5809
|
+
expires_at: external_exports.string(),
|
|
5810
|
+
path: external_exports.string(),
|
|
5811
|
+
content_sha256: external_exports.string()
|
|
5812
|
+
}).passthrough()
|
|
5813
|
+
});
|
|
5814
|
+
rekorToolsetFileListSchema = external_exports.object({ data: external_exports.array(rekorToolsetFileSchema) });
|
|
5815
|
+
rekorToolsetFileGetSchema = external_exports.object({
|
|
5816
|
+
data: rekorToolsetFileSchema.extend({
|
|
5817
|
+
content: external_exports.string(),
|
|
5818
|
+
encoding: external_exports.enum(["utf-8", "base64"])
|
|
5819
|
+
})
|
|
5820
|
+
});
|
|
5821
|
+
rekorToolsetFilePutSchema = external_exports.object({ data: rekorToolsetFileSchema });
|
|
5822
|
+
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";
|
|
5823
|
+
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 \u2014 unless the toolset is customer-scoped, which admits its record, composite, relationship and SQL Action tools, since each of their calls reaches only the conversation's customer and shared records, or they only read approved records of reviewed shared record types`;
|
|
5824
|
+
}
|
|
5825
|
+
});
|
|
5826
|
+
|
|
5827
|
+
// ../../packages/core/dist/chunk-IPDOHAZ5.js
|
|
5828
|
+
var reportSourceSchema, intakeReportSourceSchema, reportClassificationSchema, reportStatusSchema, reportLocaleSchema, reportMessageAuthorRoleSchema, reportMessageSchema, sentryRefStatusSchema, createReportBody, editReportBody, reporterReportSummarySchema, reporterListResponseSchema, getReportResponseSchema, reporterTransitionResponseSchema, contestReportBody, reporterListQuery, listReportsQuery, GITHUB_ISSUE_URL_REGEX, githubIssueUrlSchema, transitionReportBody, groupReportsBody, holdReportBody;
|
|
5829
|
+
var init_chunk_IPDOHAZ5 = __esm({
|
|
5830
|
+
"../../packages/core/dist/chunk-IPDOHAZ5.js"() {
|
|
5831
|
+
"use strict";
|
|
5832
|
+
init_chunk_HZ6CADSY();
|
|
5833
|
+
init_zod();
|
|
5834
|
+
reportSourceSchema = external_exports.enum(["sentry", "cli", "review", "security_audit"]);
|
|
5835
|
+
intakeReportSourceSchema = external_exports.enum(["cli", "review", "security_audit"]);
|
|
5836
|
+
reportClassificationSchema = external_exports.enum(["bug", "flaky_test", "security", "enhancement"]);
|
|
5837
|
+
reportStatusSchema = external_exports.enum([
|
|
5838
|
+
"pending",
|
|
5839
|
+
"grouped",
|
|
5840
|
+
"escalated",
|
|
5841
|
+
"shipped",
|
|
5842
|
+
"contested",
|
|
5843
|
+
"addressed",
|
|
5844
|
+
"dismissed"
|
|
5845
|
+
]);
|
|
5846
|
+
reportLocaleSchema = external_exports.enum(["en", "pt", "es"]);
|
|
5847
|
+
reportMessageAuthorRoleSchema = external_exports.enum(["reporter", "triage", "fixer", "system"]);
|
|
5848
|
+
reportMessageSchema = external_exports.object({
|
|
5849
|
+
message_id: external_exports.string(),
|
|
5850
|
+
author_role: reportMessageAuthorRoleSchema,
|
|
5851
|
+
/** The status transition this note accompanied (e.g. 'shipped'); null for a free/system note. */
|
|
5852
|
+
transition: external_exports.string().nullable(),
|
|
5853
|
+
body: external_exports.string(),
|
|
5854
|
+
created_at: timestampSchema,
|
|
5855
|
+
/**
|
|
5856
|
+
* Visibility: `false` = reporter-facing (the default for every narrative entry); `true` =
|
|
5857
|
+
* triage-internal (e.g. a `hold` rationale) — surfaced to platform admins only and NEVER
|
|
5858
|
+
* returned on the reporter read path. The reporter's `GET /api/reports/:id` filters these out.
|
|
5859
|
+
*/
|
|
5860
|
+
internal: external_exports.boolean()
|
|
5861
|
+
});
|
|
5862
|
+
sentryRefStatusSchema = external_exports.enum(["valid", "not_found", "mismatch", "unverified"]);
|
|
5863
|
+
createReportBody = external_exports.object({
|
|
5864
|
+
title: external_exports.string().min(5).max(256),
|
|
5865
|
+
description: external_exports.string().min(10).max(5e3),
|
|
5866
|
+
steps_to_reproduce: external_exports.string().max(3e3).optional(),
|
|
5867
|
+
error_message: external_exports.string().max(2e3).optional(),
|
|
5868
|
+
// Taxonomy (server defaults: source=cli, classification=bug when absent).
|
|
5869
|
+
source: intakeReportSourceSchema.optional(),
|
|
5870
|
+
classification: reportClassificationSchema.optional(),
|
|
5871
|
+
// Stable dedup key (e.g. "<file>::<test>" for flaky, "<file>:<line>" for
|
|
5872
|
+
// security). When present, the fingerprint uses it instead of the body hash.
|
|
5873
|
+
dedup_key: external_exports.string().min(1).max(256).optional(),
|
|
5874
|
+
// Context fields (auto-captured by the CLI)
|
|
5875
|
+
organization_id: external_exports.string().optional(),
|
|
5876
|
+
hub_id: external_exports.string().uuid().optional(),
|
|
5877
|
+
hub_name: external_exports.string().max(256).optional(),
|
|
5878
|
+
conversation_id: external_exports.string().uuid().optional(),
|
|
5879
|
+
agent_id: external_exports.string().uuid().optional(),
|
|
5880
|
+
agent_name: external_exports.string().max(256).optional(),
|
|
5881
|
+
client_version: external_exports.string().max(64).optional(),
|
|
5882
|
+
additional_context: external_exports.string().max(2e3).optional()
|
|
5883
|
+
});
|
|
5884
|
+
editReportBody = external_exports.object({
|
|
5885
|
+
title: external_exports.string().min(5).max(256).optional(),
|
|
5886
|
+
description: external_exports.string().min(10).max(5e3).optional(),
|
|
5887
|
+
steps_to_reproduce: external_exports.string().max(3e3).optional(),
|
|
5888
|
+
error_message: external_exports.string().max(2e3).optional(),
|
|
5889
|
+
additional_context: external_exports.string().max(2e3).optional()
|
|
5890
|
+
}).strict().refine((b) => Object.keys(b).length > 0, {
|
|
5891
|
+
message: "at least one field must be provided"
|
|
5892
|
+
});
|
|
5893
|
+
reporterReportSummarySchema = external_exports.object({
|
|
5894
|
+
report_id: external_exports.string(),
|
|
5895
|
+
title: external_exports.string(),
|
|
5896
|
+
description: external_exports.string(),
|
|
5897
|
+
classification: reportClassificationSchema,
|
|
5898
|
+
status: reportStatusSchema,
|
|
5899
|
+
created_at: timestampSchema,
|
|
5900
|
+
triaged_at: timestampSchema.nullable(),
|
|
5901
|
+
resolved_at: timestampSchema.nullable(),
|
|
5902
|
+
/** How many times the reporter has contested (gates the hard cap). */
|
|
5903
|
+
contest_count: external_exports.number(),
|
|
5904
|
+
/** True once triage issued a non-contestable (final) dismissal. */
|
|
5905
|
+
dismissal_final: external_exports.boolean()
|
|
5906
|
+
});
|
|
5907
|
+
reporterListResponseSchema = external_exports.object({
|
|
5908
|
+
data: external_exports.array(reporterReportSummarySchema)
|
|
5909
|
+
});
|
|
5910
|
+
getReportResponseSchema = external_exports.object({
|
|
5911
|
+
report: reporterReportSummarySchema,
|
|
5912
|
+
messages: external_exports.array(reportMessageSchema)
|
|
5913
|
+
});
|
|
5914
|
+
reporterTransitionResponseSchema = external_exports.object({
|
|
5915
|
+
report: reporterReportSummarySchema
|
|
5916
|
+
});
|
|
5917
|
+
contestReportBody = external_exports.object({
|
|
5918
|
+
reason: external_exports.string().min(1).max(5e3)
|
|
5919
|
+
});
|
|
5920
|
+
reporterListQuery = external_exports.object({
|
|
5921
|
+
status: reportStatusSchema.optional()
|
|
5922
|
+
});
|
|
5923
|
+
listReportsQuery = external_exports.object({
|
|
5924
|
+
status: reportStatusSchema.optional(),
|
|
5925
|
+
source: reportSourceSchema.optional(),
|
|
5926
|
+
limit: external_exports.coerce.number().int().min(1).max(200).optional(),
|
|
5927
|
+
offset: external_exports.coerce.number().int().min(0).optional(),
|
|
5928
|
+
/** ISO 8601 lower bound on created_at. */
|
|
5929
|
+
since: external_exports.string().datetime().optional(),
|
|
5930
|
+
/**
|
|
5931
|
+
* ISO 8601 lower bound on resolution time — "what did we resolve recently", which `since`
|
|
5932
|
+
* (a created_at filter) cannot answer for a long-lived report resolved yesterday. Implies
|
|
5933
|
+
* a terminal status (`addressed`/`dismissed`) and orders on that same axis.
|
|
5934
|
+
*/
|
|
5935
|
+
resolved_since: external_exports.string().datetime().optional()
|
|
5936
|
+
});
|
|
5937
|
+
GITHUB_ISSUE_URL_REGEX = /^https:\/\/github\.com\/[^/]+\/[^/]+\/issues\/\d+(?:[/?#]|$)/;
|
|
5938
|
+
githubIssueUrlSchema = external_exports.string().url().refine((u) => GITHUB_ISSUE_URL_REGEX.test(u), {
|
|
5939
|
+
message: "must be an https://github.com/<owner>/<repo>/issues/<number> URL"
|
|
5940
|
+
});
|
|
5941
|
+
transitionReportBody = external_exports.discriminatedUnion("target", [
|
|
5942
|
+
external_exports.object({
|
|
5943
|
+
target: external_exports.literal("escalated"),
|
|
5944
|
+
gh_issue_url: githubIssueUrlSchema,
|
|
5945
|
+
ai_verdict: external_exports.string().max(2e3).optional()
|
|
5946
|
+
}),
|
|
5947
|
+
external_exports.object({
|
|
5948
|
+
target: external_exports.literal("shipped"),
|
|
5949
|
+
note: external_exports.string().min(1).max(2e3).optional()
|
|
5950
|
+
}),
|
|
5951
|
+
external_exports.object({
|
|
5952
|
+
target: external_exports.literal("addressed")
|
|
5953
|
+
}),
|
|
5954
|
+
external_exports.object({
|
|
5955
|
+
target: external_exports.literal("dismissed"),
|
|
5956
|
+
dismissal_reason: external_exports.string().min(1).max(5e3),
|
|
5957
|
+
ai_verdict: external_exports.string().max(2e3).optional(),
|
|
5958
|
+
final: external_exports.boolean().optional()
|
|
5959
|
+
})
|
|
5960
|
+
]);
|
|
5961
|
+
groupReportsBody = external_exports.object({
|
|
5962
|
+
member_ids: external_exports.array(external_exports.string().uuid()).min(1).max(100)
|
|
5963
|
+
});
|
|
5964
|
+
holdReportBody = external_exports.object({
|
|
5965
|
+
reason: external_exports.string().min(1).max(5e3)
|
|
5966
|
+
});
|
|
5967
|
+
}
|
|
5968
|
+
});
|
|
5969
|
+
|
|
5970
|
+
// ../../packages/core/dist/chunk-GPM7PE44.js
|
|
5971
|
+
var bootstrapQuery;
|
|
5972
|
+
var init_chunk_GPM7PE44 = __esm({
|
|
5973
|
+
"../../packages/core/dist/chunk-GPM7PE44.js"() {
|
|
5974
|
+
"use strict";
|
|
5975
|
+
init_zod();
|
|
5976
|
+
bootstrapQuery = external_exports.object({
|
|
5977
|
+
active_hub_id: external_exports.string().uuid().optional(),
|
|
5978
|
+
active_conversation_id: external_exports.string().uuid().optional(),
|
|
5979
|
+
active_nav: external_exports.enum(["chat", "task", "support"]).optional(),
|
|
5980
|
+
/**
|
|
5981
|
+
* The people thread the URL names (`/chat/threads/:threadId`, gh #4661): the snapshot
|
|
5982
|
+
* preloads it as `people.active_thread` when the viewer is a member.
|
|
5983
|
+
*/
|
|
5984
|
+
active_thread_id: external_exports.string().uuid().optional()
|
|
5985
|
+
});
|
|
5986
|
+
}
|
|
5987
|
+
});
|
|
5988
|
+
|
|
5989
|
+
// ../../packages/core/dist/chunk-5VL6LBFD.js
|
|
5990
|
+
var PERMISSIONS;
|
|
5991
|
+
var init_chunk_5VL6LBFD = __esm({
|
|
5992
|
+
"../../packages/core/dist/chunk-5VL6LBFD.js"() {
|
|
5993
|
+
"use strict";
|
|
5994
|
+
PERMISSIONS = [
|
|
5995
|
+
"hub:read",
|
|
5996
|
+
"hub:write",
|
|
5997
|
+
"hub:admin",
|
|
5998
|
+
"conversation:read",
|
|
5999
|
+
"conversation:write",
|
|
6000
|
+
"analytics:read",
|
|
6001
|
+
"billing:read",
|
|
6002
|
+
"billing:write",
|
|
6003
|
+
"org:read",
|
|
6004
|
+
"org:write",
|
|
6005
|
+
"org:admin",
|
|
6006
|
+
"contacts:write",
|
|
6007
|
+
"platform:admin",
|
|
6008
|
+
"*"
|
|
6009
|
+
];
|
|
6010
|
+
}
|
|
6011
|
+
});
|
|
6012
|
+
|
|
6013
|
+
// ../../packages/core/dist/chunk-VEERWOZ6.js
|
|
6014
|
+
var MAX_NAME_LENGTH2, MAX_HUBS_PER_GRANT, MAX_HUB_TAGS_PER_GRANT, MAX_GRANTS, permissionEnum, grantScopeSchema, grantSchema, createTokenBody, tokenOrgIdParam;
|
|
6015
|
+
var init_chunk_VEERWOZ6 = __esm({
|
|
6016
|
+
"../../packages/core/dist/chunk-VEERWOZ6.js"() {
|
|
6017
|
+
"use strict";
|
|
6018
|
+
init_chunk_5VL6LBFD();
|
|
6019
|
+
init_chunk_HZ6CADSY();
|
|
6020
|
+
init_zod();
|
|
6021
|
+
MAX_NAME_LENGTH2 = 100;
|
|
6022
|
+
MAX_HUBS_PER_GRANT = 50;
|
|
6023
|
+
MAX_HUB_TAGS_PER_GRANT = 20;
|
|
6024
|
+
MAX_GRANTS = 20;
|
|
6025
|
+
permissionEnum = external_exports.enum(PERMISSIONS).refine(
|
|
6026
|
+
(p) => p !== "platform:admin",
|
|
6027
|
+
{ message: "platform:admin cannot be delegated via token creation" }
|
|
6028
|
+
);
|
|
6029
|
+
grantScopeSchema = external_exports.object({
|
|
6030
|
+
// Required: every token grant must declare its org tenancy. The handler
|
|
6031
|
+
// also strict-checks this as defense-in-depth, but failing at the Zod
|
|
6032
|
+
// boundary keeps the generated client type honest (org_id: string).
|
|
6033
|
+
org_id: external_exports.string().min(1),
|
|
6034
|
+
hubs: external_exports.array(external_exports.string().min(1)).min(1, "Each grant must have scope.hubs as a non-empty array").max(MAX_HUBS_PER_GRANT),
|
|
6035
|
+
hub_tags: external_exports.array(external_exports.string().min(1)).min(1, "scope.hub_tags must be a non-empty array if provided").max(MAX_HUB_TAGS_PER_GRANT).optional(),
|
|
6036
|
+
environments: external_exports.array(external_exports.enum(["production", "preview"])).min(1, "scope.environments must be a non-empty array if provided").optional()
|
|
6037
|
+
}).strict();
|
|
6038
|
+
grantSchema = external_exports.object({
|
|
6039
|
+
scope: grantScopeSchema,
|
|
6040
|
+
permissions: external_exports.array(permissionEnum).min(1, "Each grant must have permissions as a non-empty array")
|
|
6041
|
+
}).strict();
|
|
6042
|
+
createTokenBody = external_exports.object({
|
|
6043
|
+
name: external_exports.string().trim().min(1, "name is required").max(MAX_NAME_LENGTH2, `name must be ${MAX_NAME_LENGTH2} characters or fewer`),
|
|
6044
|
+
grants: external_exports.array(grantSchema).min(1, "grants must be a non-empty array").max(MAX_GRANTS),
|
|
6045
|
+
expires_at: external_exports.string().datetime({ message: "expires_at must be a valid ISO 8601 date" }).refine(
|
|
6046
|
+
(s) => new Date(s).getTime() > Date.now(),
|
|
6047
|
+
{ message: "expires_at must be in the future" }
|
|
6048
|
+
).optional()
|
|
6049
|
+
});
|
|
6050
|
+
tokenOrgIdParam = external_exports.object({ orgId: uuidSchema });
|
|
6051
|
+
}
|
|
6052
|
+
});
|
|
6053
|
+
|
|
6054
|
+
// ../../packages/core/dist/chunk-ZC6YGHNX.js
|
|
6055
|
+
var updateUserBody, updateProfileBody, pathnameRegex, updatePreferencesBody, registerPushTokenBody, deletePushTokenQuery, recordAiDisclosureAcceptanceBody, activityQuery, deletionModeSchema, deletionRequestBody;
|
|
6056
|
+
var init_chunk_ZC6YGHNX = __esm({
|
|
6057
|
+
"../../packages/core/dist/chunk-ZC6YGHNX.js"() {
|
|
6058
|
+
"use strict";
|
|
6059
|
+
init_zod();
|
|
6060
|
+
updateUserBody = external_exports.object({
|
|
6061
|
+
user_language: external_exports.string().optional(),
|
|
6062
|
+
/** true: dark; false: light; null: follow each device's own setting (`AppearanceMode`). */
|
|
6063
|
+
ui_dark_mode: external_exports.boolean().nullable().optional(),
|
|
6064
|
+
profile_name: external_exports.string().optional(),
|
|
6065
|
+
link_email_to_identities: external_exports.boolean().optional()
|
|
6066
|
+
}).refine(
|
|
6067
|
+
(data) => Object.values(data).some((v) => v !== void 0),
|
|
6068
|
+
{ message: "At least one field must be provided" }
|
|
6069
|
+
);
|
|
6070
|
+
updateProfileBody = external_exports.object({
|
|
6071
|
+
display_name: external_exports.string().optional(),
|
|
6072
|
+
avatar_url: external_exports.string().optional(),
|
|
6073
|
+
preferences: external_exports.record(external_exports.unknown()).optional()
|
|
6074
|
+
}).refine(
|
|
6075
|
+
(data) => Object.values(data).some((v) => v !== void 0),
|
|
6076
|
+
{ message: "At least one field must be provided" }
|
|
6077
|
+
);
|
|
6078
|
+
pathnameRegex = /^\/(?!\/)[A-Za-z0-9\-._~!$&'()*+,;=:@/?%]*$/;
|
|
6079
|
+
updatePreferencesBody = external_exports.object({
|
|
6080
|
+
last_viewed_nav: external_exports.string().regex(pathnameRegex, "Must be a URL pathname").max(2048).optional(),
|
|
6081
|
+
dismissed_agentic_shortcut: external_exports.boolean().optional(),
|
|
6082
|
+
opened_guide: external_exports.boolean().optional()
|
|
6083
|
+
}).passthrough();
|
|
6084
|
+
registerPushTokenBody = external_exports.object({
|
|
6085
|
+
token: external_exports.string().min(1).max(512),
|
|
6086
|
+
platform: external_exports.enum(["ios", "android"]),
|
|
6087
|
+
/** Stable per-install id so re-registration replaces the prior token for the device. */
|
|
6088
|
+
device_id: external_exports.string().min(1).max(128).optional(),
|
|
6089
|
+
/**
|
|
6090
|
+
* The build opens a person-to-person thread from a push (gh #4661): only a token registered
|
|
6091
|
+
* with it receives thread pushes, whose `data` carries `thread_id` and no `conversation_id`.
|
|
6092
|
+
* Each registration states it afresh, so a build that sends none clears it.
|
|
6093
|
+
*/
|
|
6094
|
+
supports_threads: external_exports.boolean().optional(),
|
|
6095
|
+
/**
|
|
6096
|
+
* The build opens a community from a push (gh #4872 Decision 8): only a token registered with it
|
|
6097
|
+
* receives a community's pushes (an announcement, a reply to the member's forum post), whose
|
|
6098
|
+
* `data` is `CommunityPushData` — never a `conversation_id` or a `thread_id`. Each registration
|
|
6099
|
+
* states it afresh, so a build that sends none clears it.
|
|
6100
|
+
*/
|
|
6101
|
+
supports_communities: external_exports.boolean().optional()
|
|
6102
|
+
});
|
|
6103
|
+
deletePushTokenQuery = external_exports.object({
|
|
6104
|
+
token: external_exports.string().min(1).max(512)
|
|
5678
6105
|
});
|
|
5679
6106
|
recordAiDisclosureAcceptanceBody = external_exports.object({
|
|
5680
6107
|
version: external_exports.number().int().positive(),
|
|
@@ -5694,35 +6121,41 @@ var init_chunk_ZC6YGHNX = __esm({
|
|
|
5694
6121
|
}
|
|
5695
6122
|
});
|
|
5696
6123
|
|
|
5697
|
-
// ../../packages/core/dist/chunk-
|
|
5698
|
-
var
|
|
5699
|
-
var
|
|
5700
|
-
"../../packages/core/dist/chunk-
|
|
6124
|
+
// ../../packages/core/dist/chunk-FPSDNS2E.js
|
|
6125
|
+
var noticeSeveritySchema, noticeStatusSchema, NOTICE_SCOPE_REGEX, noticeScopeSchema, noticeLinkSchema, createNoticeBody, updateNoticeBody, listNoticesQuery, noticeIdParamSchema;
|
|
6126
|
+
var init_chunk_FPSDNS2E = __esm({
|
|
6127
|
+
"../../packages/core/dist/chunk-FPSDNS2E.js"() {
|
|
5701
6128
|
"use strict";
|
|
5702
|
-
init_chunk_HZ6CADSY();
|
|
5703
6129
|
init_zod();
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
6130
|
+
noticeSeveritySchema = external_exports.enum(["critical", "warn", "info"]);
|
|
6131
|
+
noticeStatusSchema = external_exports.enum(["active", "resolved"]);
|
|
6132
|
+
NOTICE_SCOPE_REGEX = /^(global|provider:[a-z0-9_-]{1,40}|service:[a-z0-9_-]{1,40})$/;
|
|
6133
|
+
noticeScopeSchema = external_exports.string().regex(NOTICE_SCOPE_REGEX, "scope must be 'global', 'provider:<x>', or 'service:<x>'");
|
|
6134
|
+
noticeLinkSchema = external_exports.string().url().refine((u) => /^https?:\/\//i.test(u), { message: "link must be an http(s) URL" });
|
|
6135
|
+
createNoticeBody = external_exports.object({
|
|
6136
|
+
severity: noticeSeveritySchema.default("info"),
|
|
6137
|
+
scope: noticeScopeSchema.default("global"),
|
|
6138
|
+
title: external_exports.string().trim().min(1).max(200),
|
|
6139
|
+
body: external_exports.string().max(2e3).optional(),
|
|
6140
|
+
link: noticeLinkSchema.optional(),
|
|
6141
|
+
starts_at: external_exports.string().datetime().optional(),
|
|
6142
|
+
ends_at: external_exports.string().datetime().optional()
|
|
6143
|
+
});
|
|
6144
|
+
updateNoticeBody = external_exports.object({
|
|
6145
|
+
severity: noticeSeveritySchema.optional(),
|
|
6146
|
+
scope: noticeScopeSchema.optional(),
|
|
6147
|
+
title: external_exports.string().trim().min(1).max(200).optional(),
|
|
6148
|
+
body: external_exports.string().max(2e3).nullable().optional(),
|
|
6149
|
+
link: noticeLinkSchema.nullable().optional(),
|
|
6150
|
+
starts_at: external_exports.string().datetime().optional(),
|
|
6151
|
+
ends_at: external_exports.string().datetime().nullable().optional()
|
|
6152
|
+
}).refine((b) => Object.keys(b).length > 0, { message: "at least one field must be provided" });
|
|
6153
|
+
listNoticesQuery = external_exports.object({
|
|
6154
|
+
status: noticeStatusSchema.optional(),
|
|
6155
|
+
limit: external_exports.coerce.number().int().min(1).max(200).optional(),
|
|
6156
|
+
offset: external_exports.coerce.number().int().min(0).optional()
|
|
6157
|
+
});
|
|
6158
|
+
noticeIdParamSchema = external_exports.object({ id: external_exports.string().min(1) });
|
|
5726
6159
|
}
|
|
5727
6160
|
});
|
|
5728
6161
|
|
|
@@ -5874,7 +6307,7 @@ var init_chunk_5XEJSR22 = __esm({
|
|
|
5874
6307
|
}
|
|
5875
6308
|
});
|
|
5876
6309
|
|
|
5877
|
-
// ../../packages/core/dist/chunk-
|
|
6310
|
+
// ../../packages/core/dist/chunk-KKA642DR.js
|
|
5878
6311
|
function matchPath(pattern, path42) {
|
|
5879
6312
|
const normalizedPath = path42.replace(/\/$/, "");
|
|
5880
6313
|
if (pattern.endsWith("/*")) {
|
|
@@ -5902,8 +6335,8 @@ function getEndpointConfig(path42) {
|
|
|
5902
6335
|
return { tier: "STANDARD" };
|
|
5903
6336
|
}
|
|
5904
6337
|
var ENDPOINT_CONFIGS, EXCLUDED_PATHS;
|
|
5905
|
-
var
|
|
5906
|
-
"../../packages/core/dist/chunk-
|
|
6338
|
+
var init_chunk_KKA642DR = __esm({
|
|
6339
|
+
"../../packages/core/dist/chunk-KKA642DR.js"() {
|
|
5907
6340
|
"use strict";
|
|
5908
6341
|
init_chunk_5XEJSR22();
|
|
5909
6342
|
ENDPOINT_CONFIGS = {
|
|
@@ -6229,7 +6662,7 @@ var init_chunk_QUKTIJKE = __esm({
|
|
|
6229
6662
|
// (pull, diff, push, pull) and a GitOps job may push every hub at once with one token; when
|
|
6230
6663
|
// each path held its own 100, that ran to 100 hubs a minute.
|
|
6231
6664
|
"/api/ci/*": { tier: "STANDARD", userLimit: 500, skipAuthenticatedUsers: true, userLimitKey: "/api/ci/*" },
|
|
6232
|
-
// Attested `/v1` proxy onto the
|
|
6665
|
+
// Attested `/v1` proxy onto the data API's `AttestedEntrypoint`. `userLimitKey` is load-bearing here: the
|
|
6233
6666
|
// per-user budget defaults to the full request path, and this surface's paths carry base,
|
|
6234
6667
|
// record, and file ids — so without a pinned key every distinct resource would get its own
|
|
6235
6668
|
// fresh budget and the per-user limit would bound nothing. One shared budget across the
|
|
@@ -6375,7 +6808,7 @@ var init_chunk_QUKTIJKE = __esm({
|
|
|
6375
6808
|
}
|
|
6376
6809
|
});
|
|
6377
6810
|
|
|
6378
|
-
// ../../packages/core/dist/chunk-
|
|
6811
|
+
// ../../packages/core/dist/chunk-TUHJ5PQH.js
|
|
6379
6812
|
function fileSnapshotChanged(run) {
|
|
6380
6813
|
return run.written + run.removed > 0;
|
|
6381
6814
|
}
|
|
@@ -6416,418 +6849,83 @@ async function sendWithRetry(opts, cursor) {
|
|
|
6416
6849
|
}
|
|
6417
6850
|
}
|
|
6418
6851
|
var rekorFileSnapshotAnswerSchema, FILE_SNAPSHOT_MAX_PAGES, FILE_SNAPSHOT_CONFLICT_ATTEMPTS, FILE_SNAPSHOT_PAGE_SPACING_MS, FILE_SNAPSHOT_CONFLICT_STATUS;
|
|
6419
|
-
var
|
|
6420
|
-
"../../packages/core/dist/chunk-
|
|
6852
|
+
var init_chunk_TUHJ5PQH = __esm({
|
|
6853
|
+
"../../packages/core/dist/chunk-TUHJ5PQH.js"() {
|
|
6421
6854
|
"use strict";
|
|
6422
|
-
|
|
6855
|
+
init_chunk_KKA642DR();
|
|
6423
6856
|
init_chunk_5XEJSR22();
|
|
6424
6857
|
init_zod();
|
|
6425
|
-
rekorFileSnapshotAnswerSchema = external_exports.object({
|
|
6426
|
-
data: external_exports.object({
|
|
6427
|
-
next_cursor: external_exports.string().nullable(),
|
|
6428
|
-
/** Files the page created or replaced on the preview. */
|
|
6429
|
-
written: external_exports.number().int(),
|
|
6430
|
-
/** The preview's own files, ones production does not hold, the page removed. */
|
|
6431
|
-
removed: external_exports.number().int(),
|
|
6432
|
-
/** Files the page found already equal to production's. */
|
|
6433
|
-
unchanged: external_exports.number().int()
|
|
6434
|
-
})
|
|
6435
|
-
});
|
|
6436
|
-
FILE_SNAPSHOT_MAX_PAGES = 1e4;
|
|
6437
|
-
FILE_SNAPSHOT_CONFLICT_ATTEMPTS = 3;
|
|
6438
|
-
FILE_SNAPSHOT_PAGE_SPACING_MS = Math.ceil(
|
|
6439
|
-
6e4 / Math.max(1, Math.floor((getEndpointConfig(`${DATA_PROXY_PREFIX}/files/snapshot`)?.userLimit ?? 60) * 4 / 5))
|
|
6440
|
-
);
|
|
6441
|
-
FILE_SNAPSHOT_CONFLICT_STATUS = 409;
|
|
6442
|
-
}
|
|
6443
|
-
});
|
|
6444
|
-
|
|
6445
|
-
// ../../packages/core/dist/chunk-BEOHBREG.js
|
|
6446
|
-
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, DATA_BASE_GENERATION_HEADER, REKOR_MAX_ACTOR_ID_LENGTH, REKOR_MAX_ACTOR_LABEL_LENGTH;
|
|
6447
|
-
var init_chunk_BEOHBREG = __esm({
|
|
6448
|
-
"../../packages/core/dist/chunk-BEOHBREG.js"() {
|
|
6449
|
-
"use strict";
|
|
6450
|
-
init_zod();
|
|
6451
|
-
REKOR_ACTOR_TYPE_HEADER = "X-Rekor-Actor-Type";
|
|
6452
|
-
REKOR_ACTOR_ID_HEADER = "X-Rekor-Actor-Id";
|
|
6453
|
-
REKOR_ACTOR_LABEL_HEADER = "X-Rekor-Actor-Label";
|
|
6454
|
-
REKOR_ACTOR_ORG_HEADER = "X-Rekor-Actor-Org";
|
|
6455
|
-
REKOR_ACTOR_ADMIN_HEADER = "X-Rekor-Actor-Admin";
|
|
6456
|
-
REKOR_CLIENT_HEADER = "X-Rekor-Client";
|
|
6457
|
-
REKOR_TOOL_ID_HEADER = "X-Rekor-Tool-Id";
|
|
6458
|
-
REKOR_CLIENTS = ["api", "cli", "mcp"];
|
|
6459
|
-
rekorClientSchema = external_exports.enum(REKOR_CLIENTS);
|
|
6460
|
-
MAX_REKOR_TOOL_ID_LENGTH = 128;
|
|
6461
|
-
rekorToolIdSchema = external_exports.string().trim().min(1).max(MAX_REKOR_TOOL_ID_LENGTH);
|
|
6462
|
-
REKOR_V1_PREFIX = "/v1";
|
|
6463
|
-
DATA_PROXY_ORG_QUERY_PARAM = "org_id";
|
|
6464
|
-
MAX_PROVISIONING_BODY_BYTES = 256 * 1024;
|
|
6465
|
-
dataProxyQuery = external_exports.object({
|
|
6466
|
-
[DATA_PROXY_ORG_QUERY_PARAM]: external_exports.string().uuid().optional()
|
|
6467
|
-
});
|
|
6468
|
-
rekorAttestation = external_exports.object({
|
|
6469
|
-
[REKOR_ACTOR_TYPE_HEADER]: external_exports.enum(["user", "token"]),
|
|
6470
|
-
[REKOR_ACTOR_ID_HEADER]: external_exports.string().min(1),
|
|
6471
|
-
[REKOR_ACTOR_LABEL_HEADER]: external_exports.string(),
|
|
6472
|
-
[REKOR_ACTOR_ORG_HEADER]: external_exports.string().uuid(),
|
|
6473
|
-
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.enum(["0", "1"]),
|
|
6474
|
-
[REKOR_CLIENT_HEADER]: rekorClientSchema,
|
|
6475
|
-
[REKOR_TOOL_ID_HEADER]: rekorToolIdSchema.optional()
|
|
6476
|
-
});
|
|
6477
|
-
REQUIRED_REKOR_ATTESTATION_HEADERS = Object.entries(rekorAttestation.shape).filter(([, field]) => !field.isOptional()).map(([header]) => header);
|
|
6478
|
-
REKOR_BOUND_BASE_HEADER = "X-Rekor-Bound-Base";
|
|
6479
|
-
REKOR_BOUND_TOOLSET_HEADER = "X-Rekor-Bound-Toolset";
|
|
6480
|
-
REKOR_BOUND_TOKEN_HEADER = "X-Rekor-Bound-Token";
|
|
6481
|
-
REKOR_BOUND_CUSTOMER_HEADER = "X-Rekor-Bound-Customer";
|
|
6482
|
-
DATA_BASE_GENERATION_HEADER = "X-Data-Base-Generation";
|
|
6483
|
-
REKOR_MAX_ACTOR_ID_LENGTH = 256;
|
|
6484
|
-
REKOR_MAX_ACTOR_LABEL_LENGTH = 256;
|
|
6485
|
-
}
|
|
6486
|
-
});
|
|
6487
|
-
|
|
6488
|
-
// ../../packages/core/dist/chunk-TPFTFBLF.js
|
|
6489
|
-
var TOOLSET_SLUG_PATTERN, REKOR_STRUCTURAL_ID_PATTERN, baseEnvironmentSchema, toolsetFileToolSchema, toolsetSurfaceSchema, toolsetConnectionBindingSchema, rekorToolsetToolsSchema, rekorBoundAttestation, rekorResolvedToolsetSchema, resolvedRecordTypeSchema, reviewWritersSchema, sharedScopeSchema, resolvedFileToolSchema, rekorToolsetFileSchema, rekorToolsetFileUrlAnswerSchema, rekorToolsetFileListSchema, rekorToolsetFileGetSchema, rekorToolsetFilePutSchema, TOOLSET_CUSTOMER_FACING_REFUSAL_MARK, TOOLSET_CUSTOMER_FACING_REFUSAL;
|
|
6490
|
-
var init_chunk_TPFTFBLF = __esm({
|
|
6491
|
-
"../../packages/core/dist/chunk-TPFTFBLF.js"() {
|
|
6492
|
-
"use strict";
|
|
6493
|
-
init_chunk_BEOHBREG();
|
|
6494
|
-
init_chunk_DHPUPI4Y();
|
|
6495
|
-
init_zod();
|
|
6496
|
-
TOOLSET_SLUG_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
|
|
6497
|
-
REKOR_STRUCTURAL_ID_PATTERN = TOOLSET_SLUG_PATTERN;
|
|
6498
|
-
baseEnvironmentSchema = external_exports.enum(["preview", "production"]);
|
|
6499
|
-
toolsetFileToolSchema = external_exports.object({
|
|
6500
|
-
file_type: external_exports.string().min(1),
|
|
6501
|
-
path_prefix: external_exports.string(),
|
|
6502
|
-
/** The entry's authored description of its tools (`description_override`), when it has one. */
|
|
6503
|
-
description: external_exports.string().min(1).optional(),
|
|
6504
|
-
tools: external_exports.object({
|
|
6505
|
-
list: external_exports.string().min(1).optional(),
|
|
6506
|
-
get: external_exports.string().min(1).optional(),
|
|
6507
|
-
put: external_exports.string().min(1).optional(),
|
|
6508
|
-
delete: external_exports.string().min(1).optional(),
|
|
6509
|
-
get_url: external_exports.string().min(1).optional(),
|
|
6510
|
-
put_url: external_exports.string().min(1).optional()
|
|
6511
|
-
})
|
|
6512
|
-
});
|
|
6513
|
-
toolsetSurfaceSchema = external_exports.object({
|
|
6514
|
-
/** Any record, composite or relationship tool: the toolset reaches records. */
|
|
6515
|
-
records: external_exports.boolean(),
|
|
6516
|
-
sql_query: external_exports.boolean(),
|
|
6517
|
-
batch: external_exports.boolean(),
|
|
6518
|
-
/**
|
|
6519
|
-
* The toolset serves one customer per call (#5083 RK2): its every call names the customer it serves,
|
|
6520
|
-
* and reaches only that customer's records and shared ones. Absent on a surface recorded before it
|
|
6521
|
-
* was, which reads as not scoped until the connection's next tool sync or token save records it: its
|
|
6522
|
-
* calls name no customer, and the customer-facing rule admits none of its record tools.
|
|
6523
|
-
*/
|
|
6524
|
-
customer_scoped: external_exports.boolean().optional(),
|
|
6525
|
-
/**
|
|
6526
|
-
* A key of the resolve this side neither describes nor classifies exposes something: a kind of tool
|
|
6527
|
-
* the data product added later, counted in `records`. The customer-facing rule never admits it, a
|
|
6528
|
-
* customer scope included, until it is classified here. Absent on a surface recorded before it was,
|
|
6529
|
-
* which reads as present.
|
|
6530
|
-
*/
|
|
6531
|
-
unclassified_tools: external_exports.boolean().optional(),
|
|
6532
|
-
/**
|
|
6533
|
-
* Any of its file tools writes: an operation other than `list`, `get` and `get_url` (`put`, `delete`,
|
|
6534
|
-
* `put_url`, or one the data product adds later), or an entry this side cannot read. Absent on a surface recorded
|
|
6535
|
-
* before it was, which the customer-facing rule reads as writing until the connection's next tool
|
|
6536
|
-
* sync or token save records it.
|
|
6537
|
-
*/
|
|
6538
|
-
file_writes: external_exports.boolean().optional(),
|
|
6539
|
-
/**
|
|
6540
|
-
* A record type the resolve's `record_types` carries names the toolset among its writers
|
|
6541
|
-
* (`x-review.writers`, #5083 RK4): the toolset writes the type's drafts and reads its every record,
|
|
6542
|
-
* drafts included. Those are the types its actions and composite record steps reach, and every
|
|
6543
|
-
* reviewed type it reaches otherwise: at a relationship tool's or a composite relationship step's
|
|
6544
|
-
* end, in a `batch` entry, or, through `sql_query`, all of them (decision 198). Or such a type's
|
|
6545
|
-
* declaration this side cannot read, or a resolve reaching records that carries no record types.
|
|
6546
|
-
* Absent on a surface recorded before it was, which the customer-facing rule reads as writing, for a
|
|
6547
|
-
* toolset reaching records, until the connection's next tool sync or token save records it.
|
|
6548
|
-
*/
|
|
6549
|
-
review_writes: external_exports.boolean().optional(),
|
|
6550
|
-
/**
|
|
6551
|
-
* Every record type the toolset reaches, at least one, is reviewed (`x-review`), holds no customer data
|
|
6552
|
-
* (`shared`), and does not name it among its writers: each call reads only that type's approved
|
|
6553
|
-
* records (#5083 decision 182, Q9). Absent on a surface recorded before it was, which reads as false.
|
|
6554
|
-
*/
|
|
6555
|
-
approved_reads_only: external_exports.boolean().optional(),
|
|
6556
|
-
/**
|
|
6557
|
-
* The toolset's file tools. Absent when it has none, and on a surface recorded before they were.
|
|
6558
|
-
* A list this side cannot read is dropped rather than failing the binding, which every call and
|
|
6559
|
-
* the customer-facing rule read: the next tool sync records it again.
|
|
6560
|
-
*/
|
|
6561
|
-
files: external_exports.array(toolsetFileToolSchema).optional().catch(void 0)
|
|
6562
|
-
});
|
|
6563
|
-
toolsetConnectionBindingSchema = external_exports.object({
|
|
6564
|
-
base_id: external_exports.string().min(1),
|
|
6565
|
-
/** The slug the token was resolved against — `settings.toolset` at that write. */
|
|
6566
|
-
toolset: external_exports.string().min(1),
|
|
6567
|
-
/** The base's incarnation when the token was written; a bound attested call states it. */
|
|
6568
|
-
base_generation: external_exports.number().int().min(1),
|
|
6569
|
-
environment: baseEnvironmentSchema,
|
|
6570
|
-
surface: toolsetSurfaceSchema,
|
|
6571
|
-
/**
|
|
6572
|
-
* The id of the token the binding was resolved from, as its resolve reports it; a bound attested
|
|
6573
|
-
* call names it (`REKOR_BOUND_TOKEN_HEADER`), so the data product refuses the binding once the token
|
|
6574
|
-
* is revoked or expires (owner decision 41). Absent on a binding recorded before the report carried
|
|
6575
|
-
* it: its calls name none until a token save, or a tool sync while the token still stands, records it.
|
|
6576
|
-
* One that does not read is dropped rather than failing the binding.
|
|
6577
|
-
*/
|
|
6578
|
-
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
6579
|
-
});
|
|
6580
|
-
rekorToolsetToolsSchema = external_exports.object({
|
|
6581
|
-
data: external_exports.object({
|
|
6582
|
-
tools: external_exports.array(external_exports.object({
|
|
6583
|
-
name: external_exports.string(),
|
|
6584
|
-
description: external_exports.string().optional(),
|
|
6585
|
-
inputSchema: external_exports.record(external_exports.unknown()).optional()
|
|
6586
|
-
}))
|
|
6587
|
-
})
|
|
6588
|
-
});
|
|
6589
|
-
rekorBoundAttestation = rekorAttestation.extend({
|
|
6590
|
-
[REKOR_ACTOR_TYPE_HEADER]: external_exports.literal("token"),
|
|
6591
|
-
/** Trimmed and checked as the far side trims and checks it. */
|
|
6592
|
-
[REKOR_ACTOR_ID_HEADER]: external_exports.string().trim().min(1).max(REKOR_MAX_ACTOR_ID_LENGTH),
|
|
6593
|
-
[REKOR_ACTOR_LABEL_HEADER]: external_exports.string().max(REKOR_MAX_ACTOR_LABEL_LENGTH),
|
|
6594
|
-
[REKOR_ACTOR_ADMIN_HEADER]: external_exports.literal("0"),
|
|
6595
|
-
[REKOR_BOUND_BASE_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6596
|
-
[REKOR_BOUND_TOOLSET_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN),
|
|
6597
|
-
/**
|
|
6598
|
-
* Decimal digits only, as the far side parses it, and at most 15 of them: its `Number()` reads
|
|
6599
|
-
* every such value back exactly, where a longer one may round or overflow to `Infinity` (a 400).
|
|
6600
|
-
*/
|
|
6601
|
-
[DATA_BASE_GENERATION_HEADER]: external_exports.string().regex(/^[1-9]\d{0,14}$/),
|
|
6602
|
-
/** The token the binding was resolved from, when the connection records it (owner decision 41). */
|
|
6603
|
-
[REKOR_BOUND_TOKEN_HEADER]: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional(),
|
|
6604
|
-
/**
|
|
6605
|
-
* The customer the call serves (#5083 RK2): a contact id, which the contact book mints as a UUID.
|
|
6606
|
-
* Every UUID is an id the far side reads back as the customer's external id.
|
|
6607
|
-
*/
|
|
6608
|
-
[REKOR_BOUND_CUSTOMER_HEADER]: external_exports.string().uuid().optional()
|
|
6609
|
-
});
|
|
6610
|
-
rekorResolvedToolsetSchema = external_exports.object({
|
|
6611
|
-
data: external_exports.object({
|
|
6612
|
-
base_id: external_exports.string().min(1),
|
|
6613
|
-
environment: baseEnvironmentSchema,
|
|
6614
|
-
base_generation: external_exports.number().int().min(1),
|
|
6615
|
-
/**
|
|
6616
|
-
* The calling token's binding, or null for a token bound to none. A bound token can call only
|
|
6617
|
-
* its toolset's tools, which is what a toolset connection stores (#5083 decision 14). Its org
|
|
6618
|
-
* is the token's own: base ids are unique only per org, so the base id alone does not say
|
|
6619
|
-
* which base the token reaches.
|
|
6620
|
-
*/
|
|
6621
|
-
toolset_binding: external_exports.object({
|
|
6622
|
-
org_id: external_exports.string().optional(),
|
|
6623
|
-
base_id: external_exports.string(),
|
|
6624
|
-
toolset_id: external_exports.string(),
|
|
6625
|
-
/**
|
|
6626
|
-
* The token's own id, which a bound call names (`REKOR_BOUND_TOKEN_HEADER`); absent when the
|
|
6627
|
-
* caller has none (owner decision 41), and dropped when it is not an id the far side reads back.
|
|
6628
|
-
*/
|
|
6629
|
-
token_id: external_exports.string().regex(REKOR_STRUCTURAL_ID_PATTERN).optional().catch(void 0)
|
|
6630
|
-
}).nullable().optional(),
|
|
6631
|
-
actions: external_exports.array(external_exports.unknown()).optional(),
|
|
6632
|
-
composites: external_exports.array(external_exports.unknown()).optional(),
|
|
6633
|
-
relationships: external_exports.array(external_exports.unknown()).optional(),
|
|
6634
|
-
files: external_exports.array(external_exports.unknown()).optional(),
|
|
6635
|
-
batch: external_exports.object({ enabled: external_exports.boolean().optional() }).passthrough().nullable().optional(),
|
|
6636
|
-
sql_query: external_exports.boolean().optional(),
|
|
6637
|
-
/** The toolset serves one customer per call (#5083 RK2). Absent reads as not scoped. */
|
|
6638
|
-
customer_scope: external_exports.boolean().optional(),
|
|
6639
|
-
/**
|
|
6640
|
-
* Record types the toolset reaches, by id, as the data product stores them (`json_schema`
|
|
6641
|
-
* included): each one its actions and composite record steps reach, and each reviewed one it
|
|
6642
|
-
* reaches otherwise (relationship ends, `batch` entries, every one through `sql_query`; #5083
|
|
6643
|
-
* decision 198). An unreviewed type it reaches only otherwise is not here. A reviewed type's
|
|
6644
|
-
* `x-review` names its writers (RK4).
|
|
6645
|
-
*/
|
|
6646
|
-
record_types: external_exports.record(external_exports.unknown()).optional(),
|
|
6647
|
-
/**
|
|
6648
|
-
* What each record type the toolset's actions, composite steps and relationship tools reach is to a
|
|
6649
|
-
* customer scope (`{ role }`, or null), by id (#5083 RK2). A reviewed type `record_types` carries
|
|
6650
|
-
* because only a `batch` entry or `sql_query` reaches it has none.
|
|
6651
|
-
*/
|
|
6652
|
-
record_type_scopes: external_exports.record(external_exports.unknown()).optional()
|
|
6653
|
-
}).passthrough()
|
|
6654
|
-
});
|
|
6655
|
-
resolvedRecordTypeSchema = external_exports.object({ json_schema: external_exports.record(external_exports.unknown()) });
|
|
6656
|
-
reviewWritersSchema = external_exports.object({ writers: external_exports.array(external_exports.string()).optional() });
|
|
6657
|
-
sharedScopeSchema = external_exports.object({ role: external_exports.literal("shared") });
|
|
6658
|
-
resolvedFileToolSchema = external_exports.object({
|
|
6659
|
-
file_type: external_exports.string().min(1),
|
|
6660
|
-
path_prefix: external_exports.string().nullish(),
|
|
6661
|
-
operations: external_exports.array(external_exports.unknown()),
|
|
6662
|
-
name: external_exports.unknown().optional(),
|
|
6663
|
-
names: external_exports.unknown().optional(),
|
|
6664
|
-
description_override: external_exports.unknown().optional()
|
|
6665
|
-
});
|
|
6666
|
-
rekorToolsetFileSchema = external_exports.object({
|
|
6667
|
-
path: external_exports.string().min(1),
|
|
6668
|
-
version: external_exports.number().int().min(1),
|
|
6669
|
-
content_type: external_exports.string().optional()
|
|
6670
|
-
}).passthrough();
|
|
6671
|
-
rekorToolsetFileUrlAnswerSchema = external_exports.object({
|
|
6858
|
+
rekorFileSnapshotAnswerSchema = external_exports.object({
|
|
6672
6859
|
data: external_exports.object({
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
rekorToolsetFileGetSchema = external_exports.object({
|
|
6681
|
-
data: rekorToolsetFileSchema.extend({
|
|
6682
|
-
content: external_exports.string(),
|
|
6683
|
-
encoding: external_exports.enum(["utf-8", "base64"])
|
|
6860
|
+
next_cursor: external_exports.string().nullable(),
|
|
6861
|
+
/** Files the page created or replaced on the preview. */
|
|
6862
|
+
written: external_exports.number().int(),
|
|
6863
|
+
/** The preview's own files, ones production does not hold, the page removed. */
|
|
6864
|
+
removed: external_exports.number().int(),
|
|
6865
|
+
/** Files the page found already equal to production's. */
|
|
6866
|
+
unchanged: external_exports.number().int()
|
|
6684
6867
|
})
|
|
6685
6868
|
});
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6869
|
+
FILE_SNAPSHOT_MAX_PAGES = 1e4;
|
|
6870
|
+
FILE_SNAPSHOT_CONFLICT_ATTEMPTS = 3;
|
|
6871
|
+
FILE_SNAPSHOT_PAGE_SPACING_MS = Math.ceil(
|
|
6872
|
+
6e4 / Math.max(1, Math.floor((getEndpointConfig(`${DATA_PROXY_PREFIX}/files/snapshot`)?.userLimit ?? 60) * 4 / 5))
|
|
6873
|
+
);
|
|
6874
|
+
FILE_SNAPSHOT_CONFLICT_STATUS = 409;
|
|
6689
6875
|
}
|
|
6690
6876
|
});
|
|
6691
6877
|
|
|
6692
|
-
// ../../packages/core/dist/chunk-
|
|
6693
|
-
var
|
|
6694
|
-
var
|
|
6695
|
-
"../../packages/core/dist/chunk-
|
|
6878
|
+
// ../../packages/core/dist/chunk-SY6PLCPK.js
|
|
6879
|
+
var jsonSchemaSchema, hubUserIdentity, stateValueEntry, getHubUserContextResponse, updateHubUserBody, updateHubUserResponse, unlockHubUserNameResponse, stateResetParams, stateResetResponse;
|
|
6880
|
+
var init_chunk_SY6PLCPK = __esm({
|
|
6881
|
+
"../../packages/core/dist/chunk-SY6PLCPK.js"() {
|
|
6696
6882
|
"use strict";
|
|
6697
|
-
|
|
6883
|
+
init_chunk_6TSQ5HXC();
|
|
6698
6884
|
init_zod();
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
reportLocaleSchema = external_exports.enum(["en", "pt", "es"]);
|
|
6712
|
-
reportMessageAuthorRoleSchema = external_exports.enum(["reporter", "triage", "fixer", "system"]);
|
|
6713
|
-
reportMessageSchema = external_exports.object({
|
|
6714
|
-
message_id: external_exports.string(),
|
|
6715
|
-
author_role: reportMessageAuthorRoleSchema,
|
|
6716
|
-
/** The status transition this note accompanied (e.g. 'shipped'); null for a free/system note. */
|
|
6717
|
-
transition: external_exports.string().nullable(),
|
|
6718
|
-
body: external_exports.string(),
|
|
6719
|
-
created_at: timestampSchema,
|
|
6720
|
-
/**
|
|
6721
|
-
* Visibility: `false` = reporter-facing (the default for every narrative entry); `true` =
|
|
6722
|
-
* triage-internal (e.g. a `hold` rationale) — surfaced to platform admins only and NEVER
|
|
6723
|
-
* returned on the reporter read path. The reporter's `GET /api/reports/:id` filters these out.
|
|
6724
|
-
*/
|
|
6725
|
-
internal: external_exports.boolean()
|
|
6726
|
-
});
|
|
6727
|
-
sentryRefStatusSchema = external_exports.enum(["valid", "not_found", "mismatch", "unverified"]);
|
|
6728
|
-
createReportBody = external_exports.object({
|
|
6729
|
-
title: external_exports.string().min(5).max(256),
|
|
6730
|
-
description: external_exports.string().min(10).max(5e3),
|
|
6731
|
-
steps_to_reproduce: external_exports.string().max(3e3).optional(),
|
|
6732
|
-
error_message: external_exports.string().max(2e3).optional(),
|
|
6733
|
-
// Taxonomy (server defaults: source=cli, classification=bug when absent).
|
|
6734
|
-
source: intakeReportSourceSchema.optional(),
|
|
6735
|
-
classification: reportClassificationSchema.optional(),
|
|
6736
|
-
// Stable dedup key (e.g. "<file>::<test>" for flaky, "<file>:<line>" for
|
|
6737
|
-
// security). When present, the fingerprint uses it instead of the body hash.
|
|
6738
|
-
dedup_key: external_exports.string().min(1).max(256).optional(),
|
|
6739
|
-
// Context fields (auto-captured by the CLI)
|
|
6740
|
-
organization_id: external_exports.string().optional(),
|
|
6741
|
-
hub_id: external_exports.string().uuid().optional(),
|
|
6742
|
-
hub_name: external_exports.string().max(256).optional(),
|
|
6743
|
-
conversation_id: external_exports.string().uuid().optional(),
|
|
6744
|
-
agent_id: external_exports.string().uuid().optional(),
|
|
6745
|
-
agent_name: external_exports.string().max(256).optional(),
|
|
6746
|
-
client_version: external_exports.string().max(64).optional(),
|
|
6747
|
-
additional_context: external_exports.string().max(2e3).optional()
|
|
6748
|
-
});
|
|
6749
|
-
editReportBody = external_exports.object({
|
|
6750
|
-
title: external_exports.string().min(5).max(256).optional(),
|
|
6751
|
-
description: external_exports.string().min(10).max(5e3).optional(),
|
|
6752
|
-
steps_to_reproduce: external_exports.string().max(3e3).optional(),
|
|
6753
|
-
error_message: external_exports.string().max(2e3).optional(),
|
|
6754
|
-
additional_context: external_exports.string().max(2e3).optional()
|
|
6755
|
-
}).strict().refine((b) => Object.keys(b).length > 0, {
|
|
6756
|
-
message: "at least one field must be provided"
|
|
6757
|
-
});
|
|
6758
|
-
reporterReportSummarySchema = external_exports.object({
|
|
6759
|
-
report_id: external_exports.string(),
|
|
6760
|
-
title: external_exports.string(),
|
|
6761
|
-
description: external_exports.string(),
|
|
6762
|
-
classification: reportClassificationSchema,
|
|
6763
|
-
status: reportStatusSchema,
|
|
6764
|
-
created_at: timestampSchema,
|
|
6765
|
-
triaged_at: timestampSchema.nullable(),
|
|
6766
|
-
resolved_at: timestampSchema.nullable(),
|
|
6767
|
-
/** How many times the reporter has contested (gates the hard cap). */
|
|
6768
|
-
contest_count: external_exports.number(),
|
|
6769
|
-
/** True once triage issued a non-contestable (final) dismissal. */
|
|
6770
|
-
dismissal_final: external_exports.boolean()
|
|
6771
|
-
});
|
|
6772
|
-
reporterListResponseSchema = external_exports.object({
|
|
6773
|
-
data: external_exports.array(reporterReportSummarySchema)
|
|
6774
|
-
});
|
|
6775
|
-
getReportResponseSchema = external_exports.object({
|
|
6776
|
-
report: reporterReportSummarySchema,
|
|
6777
|
-
messages: external_exports.array(reportMessageSchema)
|
|
6885
|
+
jsonSchemaSchema = external_exports.record(external_exports.unknown());
|
|
6886
|
+
hubUserIdentity = external_exports.object({
|
|
6887
|
+
user_id: external_exports.string().nullable(),
|
|
6888
|
+
user_name: external_exports.string().nullable(),
|
|
6889
|
+
user_email: external_exports.string().nullable(),
|
|
6890
|
+
user_name_locked: external_exports.boolean(),
|
|
6891
|
+
created_at: external_exports.string(),
|
|
6892
|
+
updated_at: external_exports.string().nullable(),
|
|
6893
|
+
hub_user_id: external_exports.string().optional(),
|
|
6894
|
+
enabled: external_exports.boolean().optional(),
|
|
6895
|
+
hub_team_id: external_exports.string().nullable().optional(),
|
|
6896
|
+
source: external_exports.enum(["grant", "auto"]).optional()
|
|
6778
6897
|
});
|
|
6779
|
-
|
|
6780
|
-
|
|
6898
|
+
stateValueEntry = external_exports.object({
|
|
6899
|
+
state_slug: external_exports.string(),
|
|
6900
|
+
state_name: external_exports.string(),
|
|
6901
|
+
state_description: external_exports.string().nullable().optional(),
|
|
6902
|
+
scope: external_exports.enum(["user", "conversation"]),
|
|
6903
|
+
json_schema: jsonSchemaSchema,
|
|
6904
|
+
initial_value: external_exports.unknown(),
|
|
6905
|
+
value: external_exports.unknown(),
|
|
6906
|
+
is_reserved: external_exports.boolean()
|
|
6781
6907
|
});
|
|
6782
|
-
|
|
6783
|
-
|
|
6908
|
+
getHubUserContextResponse = external_exports.object({
|
|
6909
|
+
user: hubUserIdentity,
|
|
6910
|
+
user_states: external_exports.array(stateValueEntry),
|
|
6911
|
+
conversation_states: external_exports.array(stateValueEntry)
|
|
6784
6912
|
});
|
|
6785
|
-
|
|
6786
|
-
|
|
6913
|
+
updateHubUserBody = external_exports.object({
|
|
6914
|
+
// Non-empty, non-null. `.nullable()` here would bypass `.min(1)` and let an
|
|
6915
|
+
// admin arm the lock on a null name — see hub-do.ts updateHubUser null-guard.
|
|
6916
|
+
user_name: external_exports.string().min(1).max(120)
|
|
6787
6917
|
});
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
source: reportSourceSchema.optional(),
|
|
6791
|
-
limit: external_exports.coerce.number().int().min(1).max(200).optional(),
|
|
6792
|
-
offset: external_exports.coerce.number().int().min(0).optional(),
|
|
6793
|
-
/** ISO 8601 lower bound on created_at. */
|
|
6794
|
-
since: external_exports.string().datetime().optional(),
|
|
6795
|
-
/**
|
|
6796
|
-
* ISO 8601 lower bound on resolution time — "what did we resolve recently", which `since`
|
|
6797
|
-
* (a created_at filter) cannot answer for a long-lived report resolved yesterday. Implies
|
|
6798
|
-
* a terminal status (`addressed`/`dismissed`) and orders on that same axis.
|
|
6799
|
-
*/
|
|
6800
|
-
resolved_since: external_exports.string().datetime().optional()
|
|
6918
|
+
updateHubUserResponse = external_exports.object({
|
|
6919
|
+
user: hubUserIdentity
|
|
6801
6920
|
});
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
message: "must be an https://github.com/<owner>/<repo>/issues/<number> URL"
|
|
6921
|
+
unlockHubUserNameResponse = external_exports.object({
|
|
6922
|
+
user: hubUserIdentity
|
|
6805
6923
|
});
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
target: external_exports.literal("escalated"),
|
|
6809
|
-
gh_issue_url: githubIssueUrlSchema,
|
|
6810
|
-
ai_verdict: external_exports.string().max(2e3).optional()
|
|
6811
|
-
}),
|
|
6812
|
-
external_exports.object({
|
|
6813
|
-
target: external_exports.literal("shipped"),
|
|
6814
|
-
note: external_exports.string().min(1).max(2e3).optional()
|
|
6815
|
-
}),
|
|
6816
|
-
external_exports.object({
|
|
6817
|
-
target: external_exports.literal("addressed")
|
|
6818
|
-
}),
|
|
6819
|
-
external_exports.object({
|
|
6820
|
-
target: external_exports.literal("dismissed"),
|
|
6821
|
-
dismissal_reason: external_exports.string().min(1).max(5e3),
|
|
6822
|
-
ai_verdict: external_exports.string().max(2e3).optional(),
|
|
6823
|
-
final: external_exports.boolean().optional()
|
|
6824
|
-
})
|
|
6825
|
-
]);
|
|
6826
|
-
groupReportsBody = external_exports.object({
|
|
6827
|
-
member_ids: external_exports.array(external_exports.string().uuid()).min(1).max(100)
|
|
6924
|
+
stateResetParams = external_exports.object({
|
|
6925
|
+
stateSlug: slugSchema
|
|
6828
6926
|
});
|
|
6829
|
-
|
|
6830
|
-
|
|
6927
|
+
stateResetResponse = external_exports.object({
|
|
6928
|
+
ok: external_exports.literal(true)
|
|
6831
6929
|
});
|
|
6832
6930
|
}
|
|
6833
6931
|
});
|
|
@@ -6912,41 +7010,98 @@ var init_chunk_34LE6P7E = __esm({
|
|
|
6912
7010
|
}
|
|
6913
7011
|
});
|
|
6914
7012
|
|
|
6915
|
-
// ../../packages/core/dist/chunk-
|
|
6916
|
-
var
|
|
6917
|
-
var
|
|
6918
|
-
"../../packages/core/dist/chunk-
|
|
7013
|
+
// ../../packages/core/dist/chunk-LKBSHANA.js
|
|
7014
|
+
var DESKTOP_SHELL_VERSION_RE, DESKTOP_PLATFORMS, DESKTOP_FLAVORS, desktopShellInfoSchema, DESKTOP_PRESENCE_STATES, desktopPresenceSchema, desktopUpdateSchema, DESKTOP_SIGN_IN_URL_MAX_LENGTH, DESKTOP_APP_PATH_MAX_LENGTH, desktopAppPathSchema, DESKTOP_NOTIFICATION_KINDS, DESKTOP_NOTIFICATION_TITLE_MAX_LENGTH, DESKTOP_NOTIFICATION_BODY_MAX_LENGTH, notificationTitleSchema, notificationBodySchema, desktopNotificationSchema, DESKTOP_BADGE_MAX_COUNT, DESKTOP_BADGE_LABEL_MAX_LENGTH, desktopBadgeSchema, desktopNavigateSchema, desktopSettingsSchema, desktopSettingsChangeSchema, desktopBridgeArgsSchemas;
|
|
7015
|
+
var init_chunk_LKBSHANA = __esm({
|
|
7016
|
+
"../../packages/core/dist/chunk-LKBSHANA.js"() {
|
|
6919
7017
|
"use strict";
|
|
6920
7018
|
init_zod();
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
7019
|
+
DESKTOP_SHELL_VERSION_RE = /^(0|[1-9]\d{0,5})\.(0|[1-9]\d{0,5})\.(0|[1-9]\d{0,5})(-[0-9A-Za-z.-]{1,32})?$/;
|
|
7020
|
+
DESKTOP_PLATFORMS = ["darwin", "win32"];
|
|
7021
|
+
DESKTOP_FLAVORS = ["production", "development"];
|
|
7022
|
+
desktopShellInfoSchema = external_exports.object({
|
|
7023
|
+
/** The shell's own release version, independent of the web deploy. */
|
|
7024
|
+
shellVersion: external_exports.string().regex(DESKTOP_SHELL_VERSION_RE),
|
|
7025
|
+
/** The Electron runtime the shell was built with. */
|
|
7026
|
+
electronVersion: external_exports.string().regex(/^\d{1,4}\.\d{1,4}\.\d{1,4}(-[0-9A-Za-z.-]{1,32})?$/),
|
|
7027
|
+
platform: external_exports.enum(DESKTOP_PLATFORMS),
|
|
7028
|
+
/** CPU architecture as Node reports it (`arm64`, `x64`). */
|
|
7029
|
+
arch: external_exports.string().regex(/^[a-z0-9_]{1,16}$/),
|
|
7030
|
+
flavor: external_exports.enum(DESKTOP_FLAVORS),
|
|
7031
|
+
/**
|
|
7032
|
+
* Present, and true, when the shell runs from the Microsoft Store's package: the Store updates it,
|
|
7033
|
+
* and Windows alone opens it at login (the package's startup task, which the person turns on in
|
|
7034
|
+
* Windows' settings). An optional field, so no new `bridgeVersion`: an older page ignores it, and
|
|
7035
|
+
* its absence is every other shell.
|
|
7036
|
+
*/
|
|
7037
|
+
store: external_exports.literal(true).optional()
|
|
7038
|
+
});
|
|
7039
|
+
DESKTOP_PRESENCE_STATES = ["present", "away"];
|
|
7040
|
+
desktopPresenceSchema = external_exports.object({
|
|
7041
|
+
presence: external_exports.enum(DESKTOP_PRESENCE_STATES),
|
|
7042
|
+
mainWindow: external_exports.object({
|
|
7043
|
+
shown: external_exports.boolean(),
|
|
7044
|
+
focused: external_exports.boolean()
|
|
7045
|
+
})
|
|
7046
|
+
});
|
|
7047
|
+
desktopUpdateSchema = external_exports.object({
|
|
7048
|
+
ready: external_exports.object({
|
|
7049
|
+
version: external_exports.string().regex(DESKTOP_SHELL_VERSION_RE),
|
|
7050
|
+
offerRestart: external_exports.boolean()
|
|
7051
|
+
}).nullable()
|
|
7052
|
+
});
|
|
7053
|
+
DESKTOP_SIGN_IN_URL_MAX_LENGTH = 4096;
|
|
7054
|
+
DESKTOP_APP_PATH_MAX_LENGTH = 512;
|
|
7055
|
+
desktopAppPathSchema = external_exports.string().max(DESKTOP_APP_PATH_MAX_LENGTH).regex(/^\/(?![/\\])[^\s\\]*$/);
|
|
7056
|
+
DESKTOP_NOTIFICATION_KINDS = ["handoff", "message", "summary"];
|
|
7057
|
+
DESKTOP_NOTIFICATION_TITLE_MAX_LENGTH = 200;
|
|
7058
|
+
DESKTOP_NOTIFICATION_BODY_MAX_LENGTH = 500;
|
|
7059
|
+
notificationTitleSchema = external_exports.string().min(1).max(DESKTOP_NOTIFICATION_TITLE_MAX_LENGTH);
|
|
7060
|
+
notificationBodySchema = external_exports.string().max(DESKTOP_NOTIFICATION_BODY_MAX_LENGTH);
|
|
7061
|
+
desktopNotificationSchema = external_exports.object({
|
|
7062
|
+
kind: external_exports.enum(DESKTOP_NOTIFICATION_KINDS),
|
|
7063
|
+
title: notificationTitleSchema,
|
|
7064
|
+
body: notificationBodySchema,
|
|
7065
|
+
path: desktopAppPathSchema,
|
|
7066
|
+
withoutPreview: external_exports.object({ title: notificationTitleSchema, body: notificationBodySchema }).optional()
|
|
6934
7067
|
});
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
link: noticeLinkSchema.nullable().optional(),
|
|
6941
|
-
starts_at: external_exports.string().datetime().optional(),
|
|
6942
|
-
ends_at: external_exports.string().datetime().nullable().optional()
|
|
6943
|
-
}).refine((b) => Object.keys(b).length > 0, { message: "at least one field must be provided" });
|
|
6944
|
-
listNoticesQuery = external_exports.object({
|
|
6945
|
-
status: noticeStatusSchema.optional(),
|
|
6946
|
-
limit: external_exports.coerce.number().int().min(1).max(200).optional(),
|
|
6947
|
-
offset: external_exports.coerce.number().int().min(0).optional()
|
|
7068
|
+
DESKTOP_BADGE_MAX_COUNT = 1e6;
|
|
7069
|
+
DESKTOP_BADGE_LABEL_MAX_LENGTH = 200;
|
|
7070
|
+
desktopBadgeSchema = external_exports.object({
|
|
7071
|
+
count: external_exports.number().int().min(0).max(DESKTOP_BADGE_MAX_COUNT),
|
|
7072
|
+
label: external_exports.string().max(DESKTOP_BADGE_LABEL_MAX_LENGTH)
|
|
6948
7073
|
});
|
|
6949
|
-
|
|
7074
|
+
desktopNavigateSchema = external_exports.object({
|
|
7075
|
+
path: desktopAppPathSchema
|
|
7076
|
+
});
|
|
7077
|
+
desktopSettingsSchema = external_exports.object({
|
|
7078
|
+
/** The app opens when the person logs in to the computer: the operating system's own login item. */
|
|
7079
|
+
openAtLogin: external_exports.boolean(),
|
|
7080
|
+
/** Closing the window keeps the app running in the tray (true), or quits it (false). */
|
|
7081
|
+
closeToTray: external_exports.boolean(),
|
|
7082
|
+
/** The shell shows notifications (true), or none (false). The badge is not a notification. */
|
|
7083
|
+
notifications: external_exports.boolean(),
|
|
7084
|
+
/**
|
|
7085
|
+
* A customer message's notification shows the customer's name and words, where the platform
|
|
7086
|
+
* allows them at all (`desktopShowsCustomerWords`: macOS); elsewhere the shell never shows them.
|
|
7087
|
+
*/
|
|
7088
|
+
messagePreview: external_exports.boolean()
|
|
7089
|
+
});
|
|
7090
|
+
desktopSettingsChangeSchema = desktopSettingsSchema.partial().strict().refine((change) => Object.values(change).every((value) => typeof value === "boolean"), {
|
|
7091
|
+
message: "each setting changed is true or false"
|
|
7092
|
+
});
|
|
7093
|
+
desktopBridgeArgsSchemas = {
|
|
7094
|
+
getShellInfo: external_exports.tuple([]),
|
|
7095
|
+
getPresence: external_exports.tuple([]),
|
|
7096
|
+
openSignIn: external_exports.tuple([external_exports.string().max(DESKTOP_SIGN_IN_URL_MAX_LENGTH)]),
|
|
7097
|
+
getUpdate: external_exports.tuple([]),
|
|
7098
|
+
restartToUpdate: external_exports.tuple([]),
|
|
7099
|
+
notify: external_exports.tuple([desktopNotificationSchema]),
|
|
7100
|
+
setBadge: external_exports.tuple([desktopBadgeSchema]),
|
|
7101
|
+
clearAll: external_exports.tuple([]),
|
|
7102
|
+
getSettings: external_exports.tuple([]),
|
|
7103
|
+
setSettings: external_exports.tuple([desktopSettingsChangeSchema])
|
|
7104
|
+
};
|
|
6950
7105
|
}
|
|
6951
7106
|
});
|
|
6952
7107
|
|
|
@@ -7105,16 +7260,16 @@ var init_chunk_E4DIIOOE = __esm({
|
|
|
7105
7260
|
}
|
|
7106
7261
|
});
|
|
7107
7262
|
|
|
7108
|
-
// ../../packages/core/dist/chunk-
|
|
7263
|
+
// ../../packages/core/dist/chunk-7FHLACC7.js
|
|
7109
7264
|
var GIT_CHECKOUT_MAX_LENGTH;
|
|
7110
|
-
var
|
|
7111
|
-
"../../packages/core/dist/chunk-
|
|
7265
|
+
var init_chunk_7FHLACC7 = __esm({
|
|
7266
|
+
"../../packages/core/dist/chunk-7FHLACC7.js"() {
|
|
7112
7267
|
"use strict";
|
|
7113
7268
|
GIT_CHECKOUT_MAX_LENGTH = 255;
|
|
7114
7269
|
}
|
|
7115
7270
|
});
|
|
7116
7271
|
|
|
7117
|
-
// ../../packages/core/dist/chunk-
|
|
7272
|
+
// ../../packages/core/dist/chunk-ILGGO4PT.js
|
|
7118
7273
|
function spokenLineField(label, description2) {
|
|
7119
7274
|
return { type: "text", label, maxLength: SPOKEN_LINE_MAX_CHARS, default: "", description: description2 };
|
|
7120
7275
|
}
|
|
@@ -7123,11 +7278,11 @@ function byLowercaseName(a, b) {
|
|
|
7123
7278
|
const y = b.connector_name.toLowerCase();
|
|
7124
7279
|
return x < y ? -1 : x > y ? 1 : 0;
|
|
7125
7280
|
}
|
|
7126
|
-
var CALLER_LANGUAGE, TTS_VOICE_REPLY_ENABLED_FIELD, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS,
|
|
7127
|
-
var
|
|
7128
|
-
"../../packages/core/dist/chunk-
|
|
7281
|
+
var CALLER_LANGUAGE, TTS_VOICE_REPLY_ENABLED_FIELD, COPILOT_TRIGGER_FIELD, SANDBOX_AGENT_FIELDS, AUDIO_LANGUAGE_OPTIONS, whatsapp, instagram, resend, telegram, API_CHANNEL_DELIVERY_EVENTS, apiChannel, OPENAI_REASONING_MODELS, openai, anthropic, googleAiStudio, openRouter, xai, groqStt, openaiStt, elevenLabsStt, openaiTts, groqTts, elevenLabsTts, GEMINI_TTS_VOICES, googleTts, wayai, externalResources, restApiTool, mcpServer, REKOR_TOOLSET_SERVICE_NAME, rekorToolset, CLAUDE_HARNESS_MODELS, CLAUDE_HARNESS_MODEL_OPTIONS, HARNESS_EGRESS_FIELDS, claudeManagedAgents, SPOKEN_LINE_MAX_CHARS, gptLive, CONNECTORS;
|
|
7282
|
+
var init_chunk_ILGGO4PT = __esm({
|
|
7283
|
+
"../../packages/core/dist/chunk-ILGGO4PT.js"() {
|
|
7129
7284
|
"use strict";
|
|
7130
|
-
|
|
7285
|
+
init_chunk_7FHLACC7();
|
|
7131
7286
|
CALLER_LANGUAGE = "caller";
|
|
7132
7287
|
TTS_VOICE_REPLY_ENABLED_FIELD = {
|
|
7133
7288
|
voice_reply_enabled: {
|
|
@@ -7906,6 +8061,17 @@ var init_chunk_VMAX5YRT = __esm({
|
|
|
7906
8061
|
default: 6e4,
|
|
7907
8062
|
min: 0,
|
|
7908
8063
|
description: "How long to cache this server's tool schemas before re-fetching at turn time. 0 = always fetch fresh every turn (highest latency). The server's own freshness hint overrides this when present."
|
|
8064
|
+
},
|
|
8065
|
+
// wayai-pro/wayai#5083 owner decision 35, exception 1: a hosted agent's vendor calls this
|
|
8066
|
+
// server itself, outside WayAI's tool plane, instead of WayAI running its tools as custom
|
|
8067
|
+
// tools. Only for a server that holds no credential: refused at write otherwise
|
|
8068
|
+
// (`VENDOR_DIRECT_CREDENTIAL_REFUSAL`), and dropped at launch should one appear. Native
|
|
8069
|
+
// agents never read it. The web shows its label and description in the viewer's language.
|
|
8070
|
+
vendor_direct: {
|
|
8071
|
+
type: "toggle",
|
|
8072
|
+
label: "Called by the vendor directly",
|
|
8073
|
+
default: false,
|
|
8074
|
+
description: "Hosted agents (Claude Agent (Managed)) only: the vendor calls this server itself, for its own MCP features and less latency, instead of WayAI running its tools. Only for a server that needs no credential: no token, no OAuth and no custom headers."
|
|
7909
8075
|
}
|
|
7910
8076
|
},
|
|
7911
8077
|
agent_settings_schema: null,
|
|
@@ -7961,9 +8127,6 @@ var init_chunk_VMAX5YRT = __esm({
|
|
|
7961
8127
|
};
|
|
7962
8128
|
CLAUDE_HARNESS_MODELS = ["claude-opus-5-5", "claude-opus-4-8", "claude-opus-4-7", "claude-sonnet-5", "claude-sonnet-4-6", "claude-haiku-4-5"];
|
|
7963
8129
|
CLAUDE_HARNESS_MODEL_OPTIONS = [{ value: "claude-opus-5-5", label: "Claude Opus 5.5" }, { value: "claude-opus-4-8", label: "Claude Opus 4.8" }, { value: "claude-opus-4-7", label: "Claude Opus 4.7" }, { value: "claude-sonnet-5", label: "Claude Sonnet 5" }, { value: "claude-sonnet-4-6", label: "Claude Sonnet 4.6" }, { value: "claude-haiku-4-5", label: "Claude Haiku 4.5" }];
|
|
7964
|
-
HARNESS_MCP_SERVERS_FIELD = {
|
|
7965
|
-
mcp_servers: { type: "array", itemType: "text", maxItems: 32, label: "MCP Servers", description: "MCP server connection IDs (on this hub) the agent may call from inside the sandbox." }
|
|
7966
|
-
};
|
|
7967
8130
|
HARNESS_EGRESS_FIELDS = {
|
|
7968
8131
|
network_egress_policy: { type: "select", label: "Network Egress", options: [{ value: "allowlist", label: "Allowlist (deny-all unless listed)" }, { value: "isolated", label: "Isolated (control host only)" }, { value: "open", label: "Open (internet)" }], default: "allowlist", description: "Sandbox egress posture. Empty allowlist \u21D2 deny-all." },
|
|
7969
8132
|
network_egress_allowlist: { type: "array", itemType: "text", maxItems: 64, label: "Egress Allowlist", description: "Hosts reachable under Allowlist, or the single control host under Isolated. Ignored under Open." }
|
|
@@ -7986,9 +8149,8 @@ var init_chunk_VMAX5YRT = __esm({
|
|
|
7986
8149
|
connector_settings_schema: null,
|
|
7987
8150
|
agent_settings_schema: {
|
|
7988
8151
|
model: { type: "select", label: "Model", allowCustomValue: true, options: CLAUDE_HARNESS_MODEL_OPTIONS, default: "claude-sonnet-5", description: "Claude model the Anthropic-hosted managed agent loop drives.", required: true },
|
|
7989
|
-
...HARNESS_MCP_SERVERS_FIELD,
|
|
7990
8152
|
// The managed session is conversation-lifetime and is NOT reaped at this deadline.
|
|
7991
|
-
max_session_minutes: { type: "number", label: "Max Turn (minutes)", min: 1, max: 480, default: 60, description: "Hard cap on a single turn's drain wall-clock
|
|
8153
|
+
max_session_minutes: { type: "number", label: "Max Turn (minutes)", min: 1, max: 480, default: 60, description: "Hard cap on a single turn's drain wall-clock. The managed session itself lives for the conversation \u2014 it is not reaped at this deadline." },
|
|
7992
8154
|
...HARNESS_EGRESS_FIELDS,
|
|
7993
8155
|
repo_url: { type: "text", label: "Repository URL", description: "Optional GitHub repository (https://github.com/<owner>/<repo>) cloned into the managed workspace at session start. Needs the connection's GitHub App installed on it." },
|
|
7994
8156
|
// The vendor's `checkout` on the session's `github_repository` resource (a branch, or a
|
|
@@ -8092,13 +8254,13 @@ var init_chunk_VMAX5YRT = __esm({
|
|
|
8092
8254
|
}
|
|
8093
8255
|
});
|
|
8094
8256
|
|
|
8095
|
-
// ../../packages/core/dist/chunk-
|
|
8257
|
+
// ../../packages/core/dist/chunk-SGYHEHIO.js
|
|
8096
8258
|
var evalCallInstant, EVAL_CALL_MIN_SECONDS, EVAL_CALL_MAX_SECONDS, EVAL_CALL_SPOKEN_LINE_MAX_CHARS, hubScoped2, createEvalCallBody, createEvalCallResponse, evalCallConversationQuery, evalCallRecordQuery, evalCallSpeaker, evalCallUtterance, evalCallTurn, evalCallRecording, evalCallRecordResponse, evalCallFinishResponse;
|
|
8097
|
-
var
|
|
8098
|
-
"../../packages/core/dist/chunk-
|
|
8259
|
+
var init_chunk_SGYHEHIO = __esm({
|
|
8260
|
+
"../../packages/core/dist/chunk-SGYHEHIO.js"() {
|
|
8099
8261
|
"use strict";
|
|
8100
8262
|
init_chunk_E4DIIOOE();
|
|
8101
|
-
|
|
8263
|
+
init_chunk_ILGGO4PT();
|
|
8102
8264
|
init_chunk_HZ6CADSY();
|
|
8103
8265
|
init_chunk_MIWZOSPI();
|
|
8104
8266
|
init_zod();
|
|
@@ -8322,58 +8484,72 @@ var init_chunk_EA23LSDS = __esm({
|
|
|
8322
8484
|
}
|
|
8323
8485
|
});
|
|
8324
8486
|
|
|
8325
|
-
// ../../packages/core/dist/chunk-
|
|
8326
|
-
var
|
|
8327
|
-
var
|
|
8328
|
-
"../../packages/core/dist/chunk-
|
|
8487
|
+
// ../../packages/core/dist/chunk-YULHXJ5M.js
|
|
8488
|
+
var COMMUNITY_LESSON_TREE_MAX_BYTES, COMMUNITY_LESSON_LINK_PROTOCOLS, COMMUNITY_LESSON_TREE_TOO_LARGE_REASON, COMMUNITY_LESSON_TREE_TOO_DEEP_REASON, COMMUNITY_LESSON_LINE_PREFIX_TOO_WIDE_REASON, LINK_SCHEME;
|
|
8489
|
+
var init_chunk_YULHXJ5M = __esm({
|
|
8490
|
+
"../../packages/core/dist/chunk-YULHXJ5M.js"() {
|
|
8491
|
+
"use strict";
|
|
8492
|
+
COMMUNITY_LESSON_TREE_MAX_BYTES = 512 * 1024;
|
|
8493
|
+
COMMUNITY_LESSON_LINK_PROTOCOLS = ["http", "https", "mailto"];
|
|
8494
|
+
COMMUNITY_LESSON_TREE_TOO_LARGE_REASON = "lesson_tree_too_large";
|
|
8495
|
+
COMMUNITY_LESSON_TREE_TOO_DEEP_REASON = "lesson_tree_too_deep";
|
|
8496
|
+
COMMUNITY_LESSON_LINE_PREFIX_TOO_WIDE_REASON = "lesson_line_prefix_too_wide";
|
|
8497
|
+
LINK_SCHEME = new RegExp(`^(${COMMUNITY_LESSON_LINK_PROTOCOLS.join("|")}):`, "i");
|
|
8498
|
+
}
|
|
8499
|
+
});
|
|
8500
|
+
|
|
8501
|
+
// ../../packages/core/dist/chunk-V4FRPRH5.js
|
|
8502
|
+
var CONSULT_THREAD_STATUSES, consultThreadStatus, CONSULT_THREAD_TITLE_MAX, consultThreadTitle, consultThreadSummary, listConsultThreadsQuery, listConsultThreadsResponse, createConsultThreadBody, createConsultThreadResponse, consultThreadIdParam, updateConsultThreadBody, updateConsultThreadResponse, CONSULT_AWAIT_TIMEOUT_MS;
|
|
8503
|
+
var init_chunk_V4FRPRH5 = __esm({
|
|
8504
|
+
"../../packages/core/dist/chunk-V4FRPRH5.js"() {
|
|
8329
8505
|
"use strict";
|
|
8330
|
-
init_chunk_6TSQ5HXC();
|
|
8331
8506
|
init_zod();
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8507
|
+
CONSULT_THREAD_STATUSES = ["open", "awaiting", "resolved", "cancelled_at_close"];
|
|
8508
|
+
consultThreadStatus = external_exports.enum(CONSULT_THREAD_STATUSES);
|
|
8509
|
+
CONSULT_THREAD_TITLE_MAX = 120;
|
|
8510
|
+
consultThreadTitle = external_exports.string().trim().min(1).max(CONSULT_THREAD_TITLE_MAX);
|
|
8511
|
+
consultThreadSummary = external_exports.object({
|
|
8512
|
+
consult_thread_id: external_exports.string(),
|
|
8513
|
+
conversation_id: external_exports.string(),
|
|
8514
|
+
initiator_type: external_exports.enum(["team", "agent"]),
|
|
8515
|
+
initiator_id: external_exports.string(),
|
|
8516
|
+
engaged_agent_id: external_exports.string().nullable(),
|
|
8517
|
+
engaged_agent_name: external_exports.string().nullable(),
|
|
8518
|
+
title: external_exports.string().nullable(),
|
|
8519
|
+
status: consultThreadStatus,
|
|
8520
|
+
created_at: external_exports.string()
|
|
8344
8521
|
});
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
state_name: external_exports.string(),
|
|
8348
|
-
state_description: external_exports.string().nullable().optional(),
|
|
8349
|
-
scope: external_exports.enum(["user", "conversation"]),
|
|
8350
|
-
json_schema: jsonSchemaSchema,
|
|
8351
|
-
initial_value: external_exports.unknown(),
|
|
8352
|
-
value: external_exports.unknown(),
|
|
8353
|
-
is_reserved: external_exports.boolean()
|
|
8522
|
+
listConsultThreadsQuery = external_exports.object({
|
|
8523
|
+
hub_id: external_exports.string().uuid()
|
|
8354
8524
|
});
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
user_states: external_exports.array(stateValueEntry),
|
|
8358
|
-
conversation_states: external_exports.array(stateValueEntry)
|
|
8525
|
+
listConsultThreadsResponse = external_exports.object({
|
|
8526
|
+
threads: external_exports.array(consultThreadSummary)
|
|
8359
8527
|
});
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8528
|
+
createConsultThreadBody = external_exports.object({
|
|
8529
|
+
hub_id: external_exports.string().uuid(),
|
|
8530
|
+
title: consultThreadTitle.optional(),
|
|
8531
|
+
// Optionally engage a consultant on creation. Validated server-side against the
|
|
8532
|
+
// hub's `consultant`-role agents; a non-consultant / unknown id is rejected.
|
|
8533
|
+
engaged_agent_id: external_exports.string().uuid().optional()
|
|
8364
8534
|
});
|
|
8365
|
-
|
|
8366
|
-
|
|
8535
|
+
createConsultThreadResponse = external_exports.object({
|
|
8536
|
+
thread: consultThreadSummary
|
|
8367
8537
|
});
|
|
8368
|
-
|
|
8369
|
-
|
|
8538
|
+
consultThreadIdParam = external_exports.object({
|
|
8539
|
+
id: external_exports.string().uuid(),
|
|
8540
|
+
threadId: external_exports.string().uuid()
|
|
8370
8541
|
});
|
|
8371
|
-
|
|
8372
|
-
|
|
8542
|
+
updateConsultThreadBody = external_exports.object({
|
|
8543
|
+
hub_id: external_exports.string().uuid(),
|
|
8544
|
+
title: consultThreadTitle.optional(),
|
|
8545
|
+
engaged_agent_id: external_exports.string().uuid().optional()
|
|
8546
|
+
}).refine((v) => v.title !== void 0 || v.engaged_agent_id !== void 0, {
|
|
8547
|
+
message: "Provide a title and/or an engaged_agent_id to update"
|
|
8373
8548
|
});
|
|
8374
|
-
|
|
8375
|
-
|
|
8549
|
+
updateConsultThreadResponse = external_exports.object({
|
|
8550
|
+
thread: consultThreadSummary
|
|
8376
8551
|
});
|
|
8552
|
+
CONSULT_AWAIT_TIMEOUT_MS = 15 * 6e4;
|
|
8377
8553
|
}
|
|
8378
8554
|
});
|
|
8379
8555
|
|
|
@@ -8434,17 +8610,17 @@ var init_chunk_MH4O3YEX = __esm({
|
|
|
8434
8610
|
}
|
|
8435
8611
|
});
|
|
8436
8612
|
|
|
8437
|
-
// ../../packages/core/dist/chunk-
|
|
8613
|
+
// ../../packages/core/dist/chunk-MHTDXCCS.js
|
|
8438
8614
|
function catalogToolSideEffects(toolName) {
|
|
8439
8615
|
const sideEffects = CATALOG_SIDE_EFFECTS.get(toolName);
|
|
8440
8616
|
if (sideEffects === void 0) return "unknown";
|
|
8441
8617
|
return sideEffects ? "side_effects" : "none";
|
|
8442
8618
|
}
|
|
8443
8619
|
var NATIVE_TOOL_SCHEMAS, WAYAI_CONNECTOR, SANDBOX_AGENT_ROLES, BASE_NATIVE_TOOLS, NATIVE_TOOLS, CATALOG_SIDE_EFFECTS;
|
|
8444
|
-
var
|
|
8445
|
-
"../../packages/core/dist/chunk-
|
|
8620
|
+
var init_chunk_MHTDXCCS = __esm({
|
|
8621
|
+
"../../packages/core/dist/chunk-MHTDXCCS.js"() {
|
|
8446
8622
|
"use strict";
|
|
8447
|
-
|
|
8623
|
+
init_chunk_WNLWNFHH();
|
|
8448
8624
|
NATIVE_TOOL_SCHEMAS = {
|
|
8449
8625
|
"close_conversation": {
|
|
8450
8626
|
"tool_config": {
|
|
@@ -8757,6 +8933,44 @@ var init_chunk_VZTO5ZM7 = __esm({
|
|
|
8757
8933
|
},
|
|
8758
8934
|
"tool_instructions": "Use to change part of a document under data/: read it with read_file, then pass the exact text, its replacement and the version you read."
|
|
8759
8935
|
},
|
|
8936
|
+
"open_pull_request": {
|
|
8937
|
+
"tool_config": {
|
|
8938
|
+
"name": "open_pull_request",
|
|
8939
|
+
"description": "Opens a pull request on your repository (the one you were cloned from), from a branch you pushed. Answers its number and URL.",
|
|
8940
|
+
"strict": false,
|
|
8941
|
+
"parameters": {
|
|
8942
|
+
"type": "object",
|
|
8943
|
+
"properties": {
|
|
8944
|
+
"head": {
|
|
8945
|
+
"type": "string",
|
|
8946
|
+
"description": "The branch you pushed, holding the changes, e.g. agent/fix-login-timeout."
|
|
8947
|
+
},
|
|
8948
|
+
"base": {
|
|
8949
|
+
"type": "string",
|
|
8950
|
+
"description": "The branch to merge into. Omit it for the branch your session started from, or the repository's default branch when it started from a commit or the default branch."
|
|
8951
|
+
},
|
|
8952
|
+
"title": {
|
|
8953
|
+
"type": "string",
|
|
8954
|
+
"description": "The pull request's title: what it changes, in one line."
|
|
8955
|
+
},
|
|
8956
|
+
"body": {
|
|
8957
|
+
"type": "string",
|
|
8958
|
+
"description": "The pull request's description: what changed and why, and how it was tested."
|
|
8959
|
+
},
|
|
8960
|
+
"draft": {
|
|
8961
|
+
"type": "boolean",
|
|
8962
|
+
"description": "Open it as a draft. Default false."
|
|
8963
|
+
}
|
|
8964
|
+
},
|
|
8965
|
+
"required": [
|
|
8966
|
+
"head",
|
|
8967
|
+
"title"
|
|
8968
|
+
],
|
|
8969
|
+
"additionalProperties": false
|
|
8970
|
+
}
|
|
8971
|
+
},
|
|
8972
|
+
"tool_instructions": "Use once your branch is pushed, to open its pull request. Push the branch first; one branch has one open pull request."
|
|
8973
|
+
},
|
|
8760
8974
|
// The code sandbox (wayai#5083 Phase 3). The figures in its description are the backend's
|
|
8761
8975
|
// sandbox limits (`apps/backend/src/sandbox/limits.ts`), pinned there by a test, so the model is
|
|
8762
8976
|
// told the limits the sandbox enforces.
|
|
@@ -9351,7 +9565,14 @@ var init_chunk_VZTO5ZM7 = __esm({
|
|
|
9351
9565
|
// write, which is not the no-op `keyed` re-runs promise (owner decision 74). A first write of the
|
|
9352
9566
|
// content the file already held kept its version, so its re-run is that same no-op.
|
|
9353
9567
|
{ tool_native_id: "nt-033", tool_name: "write_file", tool_display_name: "Write File", tool_description: "Create or replace a Base Toolset document under data/, with a version check", connector_id: WAYAI_CONNECTOR, operation: "write_file", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: true, replay: "reconcile", hosted: false },
|
|
9354
|
-
{ tool_native_id: "nt-034", tool_name: "edit_file", tool_display_name: "Edit File", tool_description: "Replace text in a Base Toolset document under data/, with a version check", connector_id: WAYAI_CONNECTOR, operation: "edit_file", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: true, replay: "reconcile", hosted: false }
|
|
9568
|
+
{ tool_native_id: "nt-034", tool_name: "edit_file", tool_display_name: "Edit File", tool_description: "Replace text in a Base Toolset document under data/, with a version check", connector_id: WAYAI_CONNECTOR, operation: "edit_file", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: true, replay: "reconcile", hosted: false },
|
|
9569
|
+
// A hosted repository agent's pull request (wayai#5083 Phase 4, owner decision 167): opened on the
|
|
9570
|
+
// repository its session was launched with, through GitHub's REST API, with an installation token
|
|
9571
|
+
// minted for that call from its connection's own GitHub App (contents and pull requests only). The
|
|
9572
|
+
// model names the branch, the base, the title and the body, never the repository. Any other agent is
|
|
9573
|
+
// refused at the call. `reconcile`, not `keyed`: a re-run after a first run that opened it is refused by
|
|
9574
|
+
// GitHub (one open pull request per branch and base), never opened twice, but answers that refusal.
|
|
9575
|
+
{ tool_native_id: "nt-035", tool_name: "open_pull_request", tool_display_name: "Open Pull Request", tool_description: "Open a pull request on a hosted repository agent's repository, from the branch it pushed", connector_id: WAYAI_CONNECTOR, operation: "open_pull_request", tool_method: "internal", tool_group: "Native Tools", is_delegation: false, is_auto_set: false, execution_config: null, side_effects: true, replay: "reconcile", hosted: true }
|
|
9355
9576
|
];
|
|
9356
9577
|
NATIVE_TOOLS = BASE_NATIVE_TOOLS.map((base) => {
|
|
9357
9578
|
const schema = NATIVE_TOOL_SCHEMAS[base.tool_name];
|
|
@@ -9569,7 +9790,7 @@ var init_chunk_T7KQKDET = __esm({
|
|
|
9569
9790
|
}
|
|
9570
9791
|
});
|
|
9571
9792
|
|
|
9572
|
-
// ../../packages/core/dist/chunk-
|
|
9793
|
+
// ../../packages/core/dist/chunk-2LE72ZC7.js
|
|
9573
9794
|
function resolveMonitorTrigger(monitorConfig) {
|
|
9574
9795
|
if (!monitorConfig || typeof monitorConfig !== "object") return "idle";
|
|
9575
9796
|
const raw = monitorConfig.trigger;
|
|
@@ -9875,15 +10096,15 @@ function refineMonitorRulesStructuredOutput(body, ctx) {
|
|
|
9875
10096
|
if (refusal2) ctx.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["response_format"], message: refusal2 });
|
|
9876
10097
|
}
|
|
9877
10098
|
var NATIVE_TOOL_NAMES, previousConversationsCountField, summarizationThresholdField, flagConditionSchema, MONITOR_TRIGGERS, monitorTriggerSchema, AUTOMATION_GATE_TRIGGERS, NON_FIRING_TRIGGERS, MONITOR_FIRING_TRIGGERS, MONITOR_DELAY_SECONDS_MIN, MONITOR_IDLE_DELAY_REQUIRED_MESSAGE, MONITOR_HISTORY_MESSAGES_MAX, monitorHistoryMessagesSchema, monitorIncludeToolResultsSchema, MONITOR_INPUT_SHAPING_KEYS, MONITOR_INPUT_SHAPING_SCHEMAS, MONITOR_INPUT_SHAPING_IDLE_MESSAGE, monitorArgumentSourceSchema, MONITOR_NOTE_TEMPLATE_MAX, MONITOR_STEER_NOTE_MAX, MONITOR_GATE_AGENT_NAME_MAX, monitorActionSchema, monitorRuleSchema, MONITOR_RULE_KEYS, MONITOR_RULE_SCHEMAS, MONITOR_RULE_TRIGGERS, MONITOR_RULE_TRIGGER_MESSAGE, CALL_UTTERANCE_SPEAKERS, callUtteranceSpeakerSchema, MONITOR_CALL_KEYS, MONITOR_CALL_SCHEMAS, MONITOR_CALL_KEY_MESSAGE, CALL_STEERING_MIN_CONFIDENCE, CALL_UTTERANCE_RULE_NOT_CONFIDENT_MESSAGE, CALL_UTTERANCE_FALLBACK_MESSAGE, CALL_UTTERANCE_FLAG_CONDITIONS_MESSAGE, CALL_STEER_NOTE_BLANK_MESSAGE, MONITOR_USER_MESSAGE_ACTION_KINDS, MONITOR_ASSISTANT_REPLY_ACTION_KINDS, MONITOR_CALL_UTTERANCE_ACTION_KINDS, MONITOR_AUTOMATION_FIRE_ACTION_KINDS, MONITOR_AUTOMATION_ITEM_ACTION_KINDS, INSERT_NOTE_TOOL_NAME, RUN_MONITOR_TOOL_NAME, MONITOR_RULE_ALLOWED_NATIVE_TOOLS, MONITOR_RULE_REENTRY_TOOLS, MONITOR_RULE_REENTRY_TRACKS, AUTOMATION_FIRE_FLAG_CONDITIONS_MESSAGE, AUTOMATION_FIRE_INPUT_SHAPING_MESSAGE, AUTOMATION_ITEM_FLAG_CONDITIONS_MESSAGE, AUTOMATION_ITEM_INPUT_SHAPING_MESSAGE, AUTOMATION_GATE_KEY_MESSAGES, monitorConfigField, flagConditionsField, agentIdParam, listAgentsQuery, agentConnectionsQuery, createAgentBody, updateAgentBody, AGENT_PARAMETER_TYPES, AGENT_PARAMETER_NAME_REGEX, agentParameterCreateSchema, MAX_AGENT_PARAMETERS_PER_REQUEST, createAgentParametersBody;
|
|
9878
|
-
var
|
|
9879
|
-
"../../packages/core/dist/chunk-
|
|
10099
|
+
var init_chunk_2LE72ZC7 = __esm({
|
|
10100
|
+
"../../packages/core/dist/chunk-2LE72ZC7.js"() {
|
|
9880
10101
|
"use strict";
|
|
9881
|
-
|
|
10102
|
+
init_chunk_MHTDXCCS();
|
|
9882
10103
|
init_chunk_IBL7FANV();
|
|
9883
10104
|
init_chunk_HZ6CADSY();
|
|
9884
10105
|
init_chunk_C2UEA2KW();
|
|
9885
10106
|
init_chunk_LD6U3CDG();
|
|
9886
|
-
|
|
10107
|
+
init_chunk_WNLWNFHH();
|
|
9887
10108
|
init_chunk_T7KQKDET();
|
|
9888
10109
|
init_chunk_L5F7ZOUJ();
|
|
9889
10110
|
init_zod();
|
|
@@ -10101,14 +10322,14 @@ var init_chunk_E32ZC76C = __esm({
|
|
|
10101
10322
|
}
|
|
10102
10323
|
});
|
|
10103
10324
|
|
|
10104
|
-
// ../../packages/core/dist/chunk-
|
|
10325
|
+
// ../../packages/core/dist/chunk-2NEZIDGC.js
|
|
10105
10326
|
var conversationIdParam, conversationHubQuery, claimBody, releaseBody, transferBody, closeBody, additionalContextPayloadSchema, kanbanUpdateBody, annotateConversationBody, observabilityParams, observabilityListParams, deleteUserConversationsBody, deleteUserConversationsResponse, sendMessageBody, listConversationsQuery, flagSourceSchema, getConversationsResponse, getConversationDetailParams, getConversationDetailQuery, getConversationDetailResponse, listWhatsAppTemplatesQuery, sendWhatsAppTemplateBody;
|
|
10106
|
-
var
|
|
10107
|
-
"../../packages/core/dist/chunk-
|
|
10327
|
+
var init_chunk_2NEZIDGC = __esm({
|
|
10328
|
+
"../../packages/core/dist/chunk-2NEZIDGC.js"() {
|
|
10108
10329
|
"use strict";
|
|
10109
|
-
|
|
10330
|
+
init_chunk_2LE72ZC7();
|
|
10110
10331
|
init_chunk_HZ6CADSY();
|
|
10111
|
-
|
|
10332
|
+
init_chunk_WNLWNFHH();
|
|
10112
10333
|
init_zod();
|
|
10113
10334
|
conversationIdParam = external_exports.object({
|
|
10114
10335
|
id: external_exports.string().uuid()
|
|
@@ -10387,114 +10608,131 @@ var init_chunk_SURLRMEK = __esm({
|
|
|
10387
10608
|
}
|
|
10388
10609
|
});
|
|
10389
10610
|
|
|
10390
|
-
// ../../packages/core/dist/chunk-KSTYTQ7I.js
|
|
10391
|
-
var copilotSuggestBody, copilotSuggestResponse;
|
|
10392
|
-
var init_chunk_KSTYTQ7I = __esm({
|
|
10393
|
-
"../../packages/core/dist/chunk-KSTYTQ7I.js"() {
|
|
10394
|
-
"use strict";
|
|
10395
|
-
init_zod();
|
|
10396
|
-
copilotSuggestBody = external_exports.object({
|
|
10397
|
-
hub_id: external_exports.string().uuid()
|
|
10398
|
-
});
|
|
10399
|
-
copilotSuggestResponse = external_exports.object({
|
|
10400
|
-
status: external_exports.enum(["processing", "skipped"]),
|
|
10401
|
-
reason: external_exports.string().optional()
|
|
10402
|
-
});
|
|
10403
|
-
}
|
|
10404
|
-
});
|
|
10405
|
-
|
|
10406
|
-
// ../../packages/core/dist/chunk-LKBSHANA.js
|
|
10407
|
-
var DESKTOP_SHELL_VERSION_RE, DESKTOP_PLATFORMS, DESKTOP_FLAVORS, desktopShellInfoSchema, DESKTOP_PRESENCE_STATES, desktopPresenceSchema, desktopUpdateSchema, DESKTOP_SIGN_IN_URL_MAX_LENGTH, DESKTOP_APP_PATH_MAX_LENGTH, desktopAppPathSchema, DESKTOP_NOTIFICATION_KINDS, DESKTOP_NOTIFICATION_TITLE_MAX_LENGTH, DESKTOP_NOTIFICATION_BODY_MAX_LENGTH, notificationTitleSchema, notificationBodySchema, desktopNotificationSchema, DESKTOP_BADGE_MAX_COUNT, DESKTOP_BADGE_LABEL_MAX_LENGTH, desktopBadgeSchema, desktopNavigateSchema, desktopSettingsSchema, desktopSettingsChangeSchema, desktopBridgeArgsSchemas;
|
|
10408
|
-
var init_chunk_LKBSHANA = __esm({
|
|
10409
|
-
"../../packages/core/dist/chunk-LKBSHANA.js"() {
|
|
10410
|
-
"use strict";
|
|
10411
|
-
init_zod();
|
|
10412
|
-
DESKTOP_SHELL_VERSION_RE = /^(0|[1-9]\d{0,5})\.(0|[1-9]\d{0,5})\.(0|[1-9]\d{0,5})(-[0-9A-Za-z.-]{1,32})?$/;
|
|
10413
|
-
DESKTOP_PLATFORMS = ["darwin", "win32"];
|
|
10414
|
-
DESKTOP_FLAVORS = ["production", "development"];
|
|
10415
|
-
desktopShellInfoSchema = external_exports.object({
|
|
10416
|
-
/** The shell's own release version, independent of the web deploy. */
|
|
10417
|
-
shellVersion: external_exports.string().regex(DESKTOP_SHELL_VERSION_RE),
|
|
10418
|
-
/** The Electron runtime the shell was built with. */
|
|
10419
|
-
electronVersion: external_exports.string().regex(/^\d{1,4}\.\d{1,4}\.\d{1,4}(-[0-9A-Za-z.-]{1,32})?$/),
|
|
10420
|
-
platform: external_exports.enum(DESKTOP_PLATFORMS),
|
|
10421
|
-
/** CPU architecture as Node reports it (`arm64`, `x64`). */
|
|
10422
|
-
arch: external_exports.string().regex(/^[a-z0-9_]{1,16}$/),
|
|
10423
|
-
flavor: external_exports.enum(DESKTOP_FLAVORS),
|
|
10424
|
-
/**
|
|
10425
|
-
* Present, and true, when the shell runs from the Microsoft Store's package: the Store updates it,
|
|
10426
|
-
* and Windows alone opens it at login (the package's startup task, which the person turns on in
|
|
10427
|
-
* Windows' settings). An optional field, so no new `bridgeVersion`: an older page ignores it, and
|
|
10428
|
-
* its absence is every other shell.
|
|
10429
|
-
*/
|
|
10430
|
-
store: external_exports.literal(true).optional()
|
|
10431
|
-
});
|
|
10432
|
-
DESKTOP_PRESENCE_STATES = ["present", "away"];
|
|
10433
|
-
desktopPresenceSchema = external_exports.object({
|
|
10434
|
-
presence: external_exports.enum(DESKTOP_PRESENCE_STATES),
|
|
10435
|
-
mainWindow: external_exports.object({
|
|
10436
|
-
shown: external_exports.boolean(),
|
|
10437
|
-
focused: external_exports.boolean()
|
|
10438
|
-
})
|
|
10439
|
-
});
|
|
10440
|
-
desktopUpdateSchema = external_exports.object({
|
|
10441
|
-
ready: external_exports.object({
|
|
10442
|
-
version: external_exports.string().regex(DESKTOP_SHELL_VERSION_RE),
|
|
10443
|
-
offerRestart: external_exports.boolean()
|
|
10444
|
-
}).nullable()
|
|
10445
|
-
});
|
|
10446
|
-
DESKTOP_SIGN_IN_URL_MAX_LENGTH = 4096;
|
|
10447
|
-
DESKTOP_APP_PATH_MAX_LENGTH = 512;
|
|
10448
|
-
desktopAppPathSchema = external_exports.string().max(DESKTOP_APP_PATH_MAX_LENGTH).regex(/^\/(?![/\\])[^\s\\]*$/);
|
|
10449
|
-
DESKTOP_NOTIFICATION_KINDS = ["handoff", "message", "summary"];
|
|
10450
|
-
DESKTOP_NOTIFICATION_TITLE_MAX_LENGTH = 200;
|
|
10451
|
-
DESKTOP_NOTIFICATION_BODY_MAX_LENGTH = 500;
|
|
10452
|
-
notificationTitleSchema = external_exports.string().min(1).max(DESKTOP_NOTIFICATION_TITLE_MAX_LENGTH);
|
|
10453
|
-
notificationBodySchema = external_exports.string().max(DESKTOP_NOTIFICATION_BODY_MAX_LENGTH);
|
|
10454
|
-
desktopNotificationSchema = external_exports.object({
|
|
10455
|
-
kind: external_exports.enum(DESKTOP_NOTIFICATION_KINDS),
|
|
10456
|
-
title: notificationTitleSchema,
|
|
10457
|
-
body: notificationBodySchema,
|
|
10458
|
-
path: desktopAppPathSchema,
|
|
10459
|
-
withoutPreview: external_exports.object({ title: notificationTitleSchema, body: notificationBodySchema }).optional()
|
|
10611
|
+
// ../../packages/core/dist/chunk-KSTYTQ7I.js
|
|
10612
|
+
var copilotSuggestBody, copilotSuggestResponse;
|
|
10613
|
+
var init_chunk_KSTYTQ7I = __esm({
|
|
10614
|
+
"../../packages/core/dist/chunk-KSTYTQ7I.js"() {
|
|
10615
|
+
"use strict";
|
|
10616
|
+
init_zod();
|
|
10617
|
+
copilotSuggestBody = external_exports.object({
|
|
10618
|
+
hub_id: external_exports.string().uuid()
|
|
10460
10619
|
});
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
|
|
10464
|
-
count: external_exports.number().int().min(0).max(DESKTOP_BADGE_MAX_COUNT),
|
|
10465
|
-
label: external_exports.string().max(DESKTOP_BADGE_LABEL_MAX_LENGTH)
|
|
10620
|
+
copilotSuggestResponse = external_exports.object({
|
|
10621
|
+
status: external_exports.enum(["processing", "skipped"]),
|
|
10622
|
+
reason: external_exports.string().optional()
|
|
10466
10623
|
});
|
|
10467
|
-
|
|
10468
|
-
|
|
10624
|
+
}
|
|
10625
|
+
});
|
|
10626
|
+
|
|
10627
|
+
// ../../packages/core/dist/chunk-7CYHPF35.js
|
|
10628
|
+
var appMessageSenderType, appMessageReceiverType, apiChannelMessage, apiChannelMessageBody, appMessageBody, appMessageResponse;
|
|
10629
|
+
var init_chunk_7CYHPF35 = __esm({
|
|
10630
|
+
"../../packages/core/dist/chunk-7CYHPF35.js"() {
|
|
10631
|
+
"use strict";
|
|
10632
|
+
init_chunk_HZ6CADSY();
|
|
10633
|
+
init_zod();
|
|
10634
|
+
appMessageSenderType = external_exports.enum(["user", "team"]);
|
|
10635
|
+
appMessageReceiverType = external_exports.enum(["user", "team", "agent", "assistant"]).transform((v) => v === "assistant" ? "agent" : v);
|
|
10636
|
+
apiChannelMessage = external_exports.object({
|
|
10637
|
+
text: clientOptionalString,
|
|
10638
|
+
attachments: external_exports.array(messageAttachment).max(MAX_ATTACHMENTS_PER_MESSAGE).nullish().transform((v) => v ?? void 0)
|
|
10639
|
+
}).refine((m) => m.text && m.text.length > 0 || m.attachments && m.attachments.length > 0, {
|
|
10640
|
+
message: "message must have text or at least one attachment"
|
|
10469
10641
|
});
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10642
|
+
apiChannelMessageBody = external_exports.object({
|
|
10643
|
+
// Correlation id (task hubs): new → new conversation, repeat → continue. min 1 so an
|
|
10644
|
+
// empty string can't masquerade as a ref. Mutually exclusive with conversation_id.
|
|
10645
|
+
external_ref: external_exports.string().min(1).max(256).optional(),
|
|
10646
|
+
// Continue a specific WayAI conversation (authorized against the hub/channel + owner).
|
|
10647
|
+
// UUID-validated here (unlike the app channel, whose client we control): allocation
|
|
10648
|
+
// only treats a UUID-shaped id as a provided conversation, so a malformed id would
|
|
10649
|
+
// otherwise skip the owner guard and silently MINT a new conversation instead of
|
|
10650
|
+
// rejecting. A format 400 is shape-only — not an existence oracle (a valid-but-unknown
|
|
10651
|
+
// UUID still collapses to the opaque authorization error downstream).
|
|
10652
|
+
conversation_id: external_exports.string().uuid().optional(),
|
|
10653
|
+
// On-behalf-of end-user identity. Absent → per-connection service principal (task-hub
|
|
10654
|
+
// only; chat hub rejects with 422 in the route).
|
|
10655
|
+
user: external_exports.object({
|
|
10656
|
+
id: external_exports.string().min(1),
|
|
10657
|
+
email: clientOptionalString,
|
|
10658
|
+
name: clientOptionalString
|
|
10659
|
+
}).optional(),
|
|
10660
|
+
message: apiChannelMessage,
|
|
10661
|
+
// Idempotency key: maps to channel_message_sid, deduped within one conversation
|
|
10662
|
+
// (ConversationDO.storeMessage). A retried POST resolves to the same conversation (a chat
|
|
10663
|
+
// hub's user, the external_ref, the conversation_id, or on a task hub with neither, this key
|
|
10664
|
+
// scoped by the sender), so it echoes the original message_id and skips billing / turn
|
|
10665
|
+
// dispatch. A failed store answers a retryable 503 only when this key is set; without it a
|
|
10666
|
+
// retry could store the message twice, so it answers 400.
|
|
10667
|
+
client_message_id: external_exports.string().min(1).max(256).optional()
|
|
10668
|
+
}).refine((b) => !(b.external_ref && b.conversation_id), {
|
|
10669
|
+
message: "provide external_ref or conversation_id, not both",
|
|
10670
|
+
path: ["external_ref"]
|
|
10482
10671
|
});
|
|
10483
|
-
|
|
10484
|
-
|
|
10672
|
+
appMessageBody = external_exports.object({
|
|
10673
|
+
// Message content — three historical aliases. All optional: an attachment-only
|
|
10674
|
+
// or voice-only message carries no text.
|
|
10675
|
+
content: clientOptionalString,
|
|
10676
|
+
message_text: clientOptionalString,
|
|
10677
|
+
message_body: clientOptionalString,
|
|
10678
|
+
// Conversation context. Ids are plain strings rather than `.uuid()` on purpose:
|
|
10679
|
+
// they are AUTHORIZED downstream, which is the stronger guarantee — a well-formed
|
|
10680
|
+
// uuid belonging to another tenant must fail just as hard as junk. `hub_id` is
|
|
10681
|
+
// gated by `assertHubEndUserAccess` (gh #3286) and `conversation_id` by HubDO's
|
|
10682
|
+
// conversation_index owner check (gh #2781, #3281). The route's own falsy guards
|
|
10683
|
+
// ('hub_id is required') still reject an empty one.
|
|
10684
|
+
hub_id: clientOptionalString,
|
|
10685
|
+
channel_id: clientOptionalString,
|
|
10686
|
+
conversation_id: clientOptionalString,
|
|
10687
|
+
hub_type: external_exports.enum(["chat", "task"]).nullish().transform((v) => v ?? void 0),
|
|
10688
|
+
// Stable idempotency key for one explicit task-hub launcher. HubDO scopes it
|
|
10689
|
+
// to the authenticated user and resolves retries/tabs to one conversation.
|
|
10690
|
+
task_start_id: external_exports.string().uuid().nullish().transform((v) => v ?? void 0),
|
|
10691
|
+
// Routing.
|
|
10692
|
+
sender_type: appMessageSenderType.nullish().transform((v) => v ?? void 0),
|
|
10693
|
+
receiver_type: appMessageReceiverType.nullish().transform((v) => v ?? void 0),
|
|
10694
|
+
// Only meaningful on a team send, where `validateAppTeamSendContext` proves the
|
|
10695
|
+
// caller may send to this receiver. Absent on a team send to a conversation with no
|
|
10696
|
+
// person, which names its `conversation_id` instead. The end-user branch ignores it —
|
|
10697
|
+
// see the receiver derivation in the route.
|
|
10698
|
+
user_receiver_id: clientOptionalString,
|
|
10699
|
+
// ── Internal consult (consultant-agents PR 2 — H1.0) ──────────────────────
|
|
10700
|
+
// A team member handling a customer conversation can tag a `consultant`-role
|
|
10701
|
+
// agent for a PRIVATE, team-only exchange that never reaches the customer. A
|
|
10702
|
+
// consult send is a team send with `receiver_type: 'agent'` targeting the
|
|
10703
|
+
// consultant; `user_receiver_id` identifies the customer whose conversation this is
|
|
10704
|
+
// (and is authorized by `validateAppTeamSendContext`, exactly as a team→user send is),
|
|
10705
|
+
// and is absent, as on a team→user send, when the conversation has no person. The consultant is resolved from `agent_receiver_id`
|
|
10706
|
+
// when supplied, else from an `@mention` parsed out of the message text against
|
|
10707
|
+
// the hub's consultant agents. `consult_thread_id` continues an existing thread;
|
|
10708
|
+
// absent, the route creates/reuses the single implicit thread. These fields are
|
|
10709
|
+
// inert on every non-consult send (end-user send, team→user send).
|
|
10710
|
+
agent_receiver_id: clientOptionalString,
|
|
10711
|
+
consult_thread_id: clientOptionalString,
|
|
10712
|
+
is_first_message: clientOptionalBoolean,
|
|
10713
|
+
end_conversation: clientOptionalBoolean,
|
|
10714
|
+
// Pre-generated by the client so the optimistic bubble and the stored row share
|
|
10715
|
+
// a key (transcription live-updates land on the same row instead of duplicating).
|
|
10716
|
+
message_id: clientOptionalString,
|
|
10717
|
+
attachments: external_exports.array(messageAttachment).max(MAX_ATTACHMENTS_PER_MESSAGE).nullish().transform((v) => v ?? void 0),
|
|
10718
|
+
// Base64-encoded audio for STT. Size-capped in the route (the cap is a byte
|
|
10719
|
+
// budget tied to the /channels/* bodyLimit, not a shape rule).
|
|
10720
|
+
audio_file: clientOptionalString
|
|
10721
|
+
});
|
|
10722
|
+
appMessageResponse = external_exports.object({
|
|
10723
|
+
success: external_exports.boolean(),
|
|
10724
|
+
message: external_exports.string(),
|
|
10725
|
+
result: external_exports.object({
|
|
10726
|
+
conversation_id: external_exports.string().optional(),
|
|
10727
|
+
message_id: external_exports.string().optional(),
|
|
10728
|
+
status: external_exports.string().optional(),
|
|
10729
|
+
files: external_exports.array(external_exports.record(external_exports.string(), external_exports.unknown())).optional(),
|
|
10730
|
+
// True when this request reused a task-start/message id already accepted by
|
|
10731
|
+
// the server. Clients must replace their optimistic payload with a fresh
|
|
10732
|
+
// authoritative read because another tab may have won with different text.
|
|
10733
|
+
deduped: external_exports.boolean().optional()
|
|
10734
|
+
}).optional()
|
|
10485
10735
|
});
|
|
10486
|
-
desktopBridgeArgsSchemas = {
|
|
10487
|
-
getShellInfo: external_exports.tuple([]),
|
|
10488
|
-
getPresence: external_exports.tuple([]),
|
|
10489
|
-
openSignIn: external_exports.tuple([external_exports.string().max(DESKTOP_SIGN_IN_URL_MAX_LENGTH)]),
|
|
10490
|
-
getUpdate: external_exports.tuple([]),
|
|
10491
|
-
restartToUpdate: external_exports.tuple([]),
|
|
10492
|
-
notify: external_exports.tuple([desktopNotificationSchema]),
|
|
10493
|
-
setBadge: external_exports.tuple([desktopBadgeSchema]),
|
|
10494
|
-
clearAll: external_exports.tuple([]),
|
|
10495
|
-
getSettings: external_exports.tuple([]),
|
|
10496
|
-
setSettings: external_exports.tuple([desktopSettingsChangeSchema])
|
|
10497
|
-
};
|
|
10498
10736
|
}
|
|
10499
10737
|
});
|
|
10500
10738
|
|
|
@@ -10562,7 +10800,7 @@ var init_chunk_BPCNB5RT = __esm({
|
|
|
10562
10800
|
}
|
|
10563
10801
|
});
|
|
10564
10802
|
|
|
10565
|
-
// ../../packages/core/dist/chunk-
|
|
10803
|
+
// ../../packages/core/dist/chunk-EY6R7A6I.js
|
|
10566
10804
|
function idempotencyHeaderRefusal(value) {
|
|
10567
10805
|
if (typeof value !== "string" || !/^[A-Za-z0-9][A-Za-z0-9-]{0,63}$/.test(value)) {
|
|
10568
10806
|
return "idempotency_header must be a header name: letters, digits and dashes, at most 64";
|
|
@@ -10573,10 +10811,10 @@ function idempotencyHeaderRefusal(value) {
|
|
|
10573
10811
|
return null;
|
|
10574
10812
|
}
|
|
10575
10813
|
var CATALOG_REPLAY, REPLAY_OVERRIDES, RESERVED_HEADERS;
|
|
10576
|
-
var
|
|
10577
|
-
"../../packages/core/dist/chunk-
|
|
10814
|
+
var init_chunk_EY6R7A6I = __esm({
|
|
10815
|
+
"../../packages/core/dist/chunk-EY6R7A6I.js"() {
|
|
10578
10816
|
"use strict";
|
|
10579
|
-
|
|
10817
|
+
init_chunk_MHTDXCCS();
|
|
10580
10818
|
CATALOG_REPLAY = new Map(
|
|
10581
10819
|
NATIVE_TOOLS.map((tool) => [tool.tool_name, tool.replay])
|
|
10582
10820
|
);
|
|
@@ -10809,7 +11047,7 @@ var init_chunk_WEXVYJ5H = __esm({
|
|
|
10809
11047
|
}
|
|
10810
11048
|
});
|
|
10811
11049
|
|
|
10812
|
-
// ../../packages/core/dist/chunk-
|
|
11050
|
+
// ../../packages/core/dist/chunk-DEHF7GCX.js
|
|
10813
11051
|
function refineToolConfig(value, ctx) {
|
|
10814
11052
|
const raw = value.tool_config;
|
|
10815
11053
|
if (raw == null) return;
|
|
@@ -10845,10 +11083,10 @@ function refineToolConfig(value, ctx) {
|
|
|
10845
11083
|
}
|
|
10846
11084
|
}
|
|
10847
11085
|
var toolIdParam, listToolsQuery, toolAgentQuery, deleteToolQuery, toolConnectionsQuery, nativeToolIdSchema, CONTEXT_BOUNDARIES, contextBoundarySchema, addNativeToolBody, addMcpToolBody, toolReplaySettingsFields, toolReplaySettingsSchema, createCustomToolBody, updateCustomToolBody, updateToolExecutionConfigBody;
|
|
10848
|
-
var
|
|
10849
|
-
"../../packages/core/dist/chunk-
|
|
11086
|
+
var init_chunk_DEHF7GCX = __esm({
|
|
11087
|
+
"../../packages/core/dist/chunk-DEHF7GCX.js"() {
|
|
10850
11088
|
"use strict";
|
|
10851
|
-
|
|
11089
|
+
init_chunk_EY6R7A6I();
|
|
10852
11090
|
init_chunk_WEXVYJ5H();
|
|
10853
11091
|
init_chunk_HZ6CADSY();
|
|
10854
11092
|
init_zod();
|
|
@@ -10917,7 +11155,7 @@ var init_chunk_4LXDRTO4 = __esm({
|
|
|
10917
11155
|
}
|
|
10918
11156
|
});
|
|
10919
11157
|
|
|
10920
|
-
// ../../packages/core/dist/chunk-
|
|
11158
|
+
// ../../packages/core/dist/chunk-C552TQHI.js
|
|
10921
11159
|
function isIanaTimezone(timezone) {
|
|
10922
11160
|
try {
|
|
10923
11161
|
new Intl.DateTimeFormat("en-US", { timeZone: timezone }).format(0);
|
|
@@ -10927,13 +11165,13 @@ function isIanaTimezone(timezone) {
|
|
|
10927
11165
|
}
|
|
10928
11166
|
}
|
|
10929
11167
|
var evalDateContextSchema;
|
|
10930
|
-
var
|
|
10931
|
-
"../../packages/core/dist/chunk-
|
|
11168
|
+
var init_chunk_C552TQHI = __esm({
|
|
11169
|
+
"../../packages/core/dist/chunk-C552TQHI.js"() {
|
|
10932
11170
|
"use strict";
|
|
10933
11171
|
init_chunk_HZ6CADSY();
|
|
10934
11172
|
init_chunk_MIWZOSPI();
|
|
10935
11173
|
init_chunk_LD6U3CDG();
|
|
10936
|
-
|
|
11174
|
+
init_chunk_WNLWNFHH();
|
|
10937
11175
|
init_zod();
|
|
10938
11176
|
evalDateContextSchema = external_exports.object({
|
|
10939
11177
|
base_time: timestampSchema.refine(isIsoTimestamp, "Expected a canonical ISO timestamp"),
|
|
@@ -10957,7 +11195,7 @@ var init_chunk_2ISUBJG7 = __esm({
|
|
|
10957
11195
|
}
|
|
10958
11196
|
});
|
|
10959
11197
|
|
|
10960
|
-
// ../../packages/core/dist/chunk-
|
|
11198
|
+
// ../../packages/core/dist/chunk-VQIITUAJ.js
|
|
10961
11199
|
function describeRole(role) {
|
|
10962
11200
|
if (typeof role === "string") {
|
|
10963
11201
|
return JSON.stringify(role.length > ROLE_ECHO_MAX ? `${role.slice(0, ROLE_ECHO_MAX)}\u2026` : role);
|
|
@@ -11131,11 +11369,11 @@ function terminalRunCount(counts) {
|
|
|
11131
11369
|
return counts.successful_runs + counts.failed_runs;
|
|
11132
11370
|
}
|
|
11133
11371
|
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;
|
|
11134
|
-
var
|
|
11135
|
-
"../../packages/core/dist/chunk-
|
|
11372
|
+
var init_chunk_VQIITUAJ = __esm({
|
|
11373
|
+
"../../packages/core/dist/chunk-VQIITUAJ.js"() {
|
|
11136
11374
|
"use strict";
|
|
11137
11375
|
init_chunk_4LXDRTO4();
|
|
11138
|
-
|
|
11376
|
+
init_chunk_C552TQHI();
|
|
11139
11377
|
init_chunk_HZ6CADSY();
|
|
11140
11378
|
init_chunk_2ISUBJG7();
|
|
11141
11379
|
init_zod();
|
|
@@ -11937,7 +12175,7 @@ var init_chunk_AMG6HKUQ = __esm({
|
|
|
11937
12175
|
}
|
|
11938
12176
|
});
|
|
11939
12177
|
|
|
11940
|
-
// ../../packages/core/dist/chunk-
|
|
12178
|
+
// ../../packages/core/dist/chunk-XQBFXSYS.js
|
|
11941
12179
|
function byLocale(entry) {
|
|
11942
12180
|
const shape = Object.fromEntries(SUPPORTED_LOCALES.map((locale) => [locale, entry.optional()]));
|
|
11943
12181
|
return external_exports.object(shape).strict();
|
|
@@ -11948,10 +12186,10 @@ function writeField(map) {
|
|
|
11948
12186
|
);
|
|
11949
12187
|
}
|
|
11950
12188
|
var HUB_DISPLAY_NAME_MAX_CHARS, HUB_WELCOME_MESSAGE_MAX_CHARS, HUB_STARTER_QUESTIONS_MAX, HUB_STARTER_QUESTION_MAX_CHARS, displayName, welcomeMessage, starterQuestions, hubDisplayNamesSchema, hubWelcomeMessagesSchema, hubStarterQuestionsSchema, hubDisplayNamesField, hubWelcomeMessagesField, hubStarterQuestionsField, HUB_PRESENTATION_FIELDS, HUB_PRESENTATION_SCHEMAS;
|
|
11951
|
-
var
|
|
11952
|
-
"../../packages/core/dist/chunk-
|
|
12189
|
+
var init_chunk_XQBFXSYS = __esm({
|
|
12190
|
+
"../../packages/core/dist/chunk-XQBFXSYS.js"() {
|
|
11953
12191
|
"use strict";
|
|
11954
|
-
|
|
12192
|
+
init_chunk_WNLWNFHH();
|
|
11955
12193
|
init_zod();
|
|
11956
12194
|
HUB_DISPLAY_NAME_MAX_CHARS = 120;
|
|
11957
12195
|
HUB_WELCOME_MESSAGE_MAX_CHARS = 1e3;
|
|
@@ -11975,7 +12213,7 @@ var init_chunk_ACN6GXU6 = __esm({
|
|
|
11975
12213
|
}
|
|
11976
12214
|
});
|
|
11977
12215
|
|
|
11978
|
-
// ../../packages/core/dist/chunk-
|
|
12216
|
+
// ../../packages/core/dist/chunk-R555PBKV.js
|
|
11979
12217
|
function refineLaneReferences(val, ctx) {
|
|
11980
12218
|
const lanes = val.lanes;
|
|
11981
12219
|
const statuses = val.kanban_statuses;
|
|
@@ -11999,12 +12237,12 @@ function describeSyncWarning(warning) {
|
|
|
11999
12237
|
return `${label}: ${parts.join("; ")}. Promote the base so production's tools match the preview's.`;
|
|
12000
12238
|
}
|
|
12001
12239
|
var hubIdParam, hubAdminIdParam, hubUserIdParam, hubIdentityIdParam, hubTeamIdParam, hubTeamUserDeleteParam, hubSchemaQuery, HUB_USERS_PAGE_SIZE_MAX, HUB_USERS_SEARCH_MAX, HUB_USERS_CHANNEL_TYPES, getHubUsersQuery, PREVIEW_LABEL_MAX_LENGTH, MAX_ENDED_INDEX_RETENTION_DAYS, MAX_EVAL_RETENTION_DAYS, MAX_END_USER_DAILY_MESSAGE_LIMIT, endUserDailyMessageLimitField, previewLabelField, hubTagsField, createHubBody, updateHubBody, HUB_TAG_CHANGE_REFUSED, hubTagChangeRefusalSchema, addHubAdminBody, addHubIdentityAuthorizationBody, contactDecisionBody, approveContactBody, CONTACT_ACCESS_PAGE_SIZE_MAX, listContactAccessQuery, createHubTeamBody, updateHubTeamBody, addHubTeamUserBody, reassignHubUserBody, replicatePreviewBody, HUB_DIFF_SECTION_SET, HUB_DIFF_SECTIONS, updateChannelTestIdentitiesBody, claimCodeChannelParam, claimCodeDeleteParam;
|
|
12002
|
-
var
|
|
12003
|
-
"../../packages/core/dist/chunk-
|
|
12240
|
+
var init_chunk_R555PBKV = __esm({
|
|
12241
|
+
"../../packages/core/dist/chunk-R555PBKV.js"() {
|
|
12004
12242
|
"use strict";
|
|
12005
12243
|
init_chunk_3VHMUK4W();
|
|
12006
12244
|
init_chunk_AMG6HKUQ();
|
|
12007
|
-
|
|
12245
|
+
init_chunk_XQBFXSYS();
|
|
12008
12246
|
init_chunk_HZ6CADSY();
|
|
12009
12247
|
init_zod();
|
|
12010
12248
|
hubIdParam = external_exports.object({ id: uuidSchema });
|
|
@@ -12197,7 +12435,7 @@ var init_chunk_T4Q5COKJ = __esm({
|
|
|
12197
12435
|
}
|
|
12198
12436
|
});
|
|
12199
12437
|
|
|
12200
|
-
// ../../packages/core/dist/chunk-
|
|
12438
|
+
// ../../packages/core/dist/chunk-ZANV2H25.js
|
|
12201
12439
|
function refineHubAsCodeCustomTools(config, ctx) {
|
|
12202
12440
|
const agents = config.agents;
|
|
12203
12441
|
if (!Array.isArray(agents)) return;
|
|
@@ -12781,17 +13019,17 @@ function skillSectionsAsResources(scope) {
|
|
|
12781
13019
|
};
|
|
12782
13020
|
}
|
|
12783
13021
|
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_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;
|
|
12784
|
-
var
|
|
12785
|
-
"../../packages/core/dist/chunk-
|
|
13022
|
+
var init_chunk_ZANV2H25 = __esm({
|
|
13023
|
+
"../../packages/core/dist/chunk-ZANV2H25.js"() {
|
|
12786
13024
|
"use strict";
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
13025
|
+
init_chunk_DEHF7GCX();
|
|
13026
|
+
init_chunk_VQIITUAJ();
|
|
13027
|
+
init_chunk_2LE72ZC7();
|
|
12790
13028
|
init_chunk_LBDH7LCG();
|
|
12791
13029
|
init_chunk_4LXDRTO4();
|
|
12792
|
-
|
|
13030
|
+
init_chunk_R555PBKV();
|
|
12793
13031
|
init_chunk_AMG6HKUQ();
|
|
12794
|
-
|
|
13032
|
+
init_chunk_XQBFXSYS();
|
|
12795
13033
|
init_chunk_WEXVYJ5H();
|
|
12796
13034
|
init_chunk_C2UEA2KW();
|
|
12797
13035
|
init_chunk_S4VDZ7PZ();
|
|
@@ -13618,79 +13856,147 @@ var init_chunk_ZLJP22IA = __esm({
|
|
|
13618
13856
|
}
|
|
13619
13857
|
});
|
|
13620
13858
|
|
|
13621
|
-
// ../../packages/core/dist/chunk-
|
|
13622
|
-
var
|
|
13623
|
-
var
|
|
13624
|
-
"../../packages/core/dist/chunk-
|
|
13859
|
+
// ../../packages/core/dist/chunk-2PZIF56U.js
|
|
13860
|
+
var analyticsHubIdParam, analyticsVariableIdParam, updateVariablePinBody, updateAnalyticsViewBody, NUMERIC_FILTER_OPS, TEXT_FILTER_OPS, CATEGORICAL_FILTER_OPS, VARIABLE_FILTER_OPS, STRUCTURED_QUERY_OPS, STRUCTURED_QUERY_AGGREGATIONS, filterValueSchema, conversationsBody, analyticsConversationIdParam, messagesQuery, conversationDetailDataQuery, analyticsDataBody, structuredQueryBody, analyticsSqlBody, analyticsSqlTable, analyticsSqlSchemaQuery;
|
|
13861
|
+
var init_chunk_2PZIF56U = __esm({
|
|
13862
|
+
"../../packages/core/dist/chunk-2PZIF56U.js"() {
|
|
13625
13863
|
"use strict";
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13864
|
+
init_zod();
|
|
13865
|
+
analyticsHubIdParam = external_exports.object({
|
|
13866
|
+
hubId: external_exports.string().uuid()
|
|
13867
|
+
});
|
|
13868
|
+
analyticsVariableIdParam = external_exports.object({
|
|
13869
|
+
variableId: external_exports.string().uuid()
|
|
13870
|
+
});
|
|
13871
|
+
updateVariablePinBody = external_exports.object({
|
|
13872
|
+
pin: external_exports.union([external_exports.boolean(), external_exports.string()])
|
|
13873
|
+
});
|
|
13874
|
+
updateAnalyticsViewBody = external_exports.object({
|
|
13875
|
+
// 64 covers UUIDs (36) and the `sys:{name}` synthetic IDs for system variables.
|
|
13876
|
+
selected_variable_ids: external_exports.array(external_exports.string().min(1).max(64)).max(200)
|
|
13877
|
+
});
|
|
13878
|
+
NUMERIC_FILTER_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
|
|
13879
|
+
TEXT_FILTER_OPS = ["equals", "not_equals", "contains", "not_contains", "starts_with", "ends_with"];
|
|
13880
|
+
CATEGORICAL_FILTER_OPS = ["is", "is_not", "in", "not_in"];
|
|
13881
|
+
VARIABLE_FILTER_OPS = [
|
|
13882
|
+
...NUMERIC_FILTER_OPS,
|
|
13883
|
+
...TEXT_FILTER_OPS,
|
|
13884
|
+
...CATEGORICAL_FILTER_OPS
|
|
13885
|
+
];
|
|
13886
|
+
STRUCTURED_QUERY_OPS = ["eq", "neq", "gt", "gte", "lt", "lte", "in", "not_in", "like"];
|
|
13887
|
+
STRUCTURED_QUERY_AGGREGATIONS = ["avg", "sum", "min", "max", "count", "quantile", "stddevPop", "corr", "uniq"];
|
|
13888
|
+
filterValueSchema = external_exports.object({
|
|
13889
|
+
variable_id: external_exports.string(),
|
|
13890
|
+
filter_type: external_exports.enum(VARIABLE_FILTER_OPS),
|
|
13891
|
+
filter_value: external_exports.union([external_exports.string(), external_exports.number()])
|
|
13892
|
+
});
|
|
13893
|
+
conversationsBody = external_exports.object({
|
|
13894
|
+
hub_id: external_exports.string().uuid(),
|
|
13895
|
+
time_interval: external_exports.object({
|
|
13896
|
+
start: external_exports.string().optional(),
|
|
13897
|
+
end: external_exports.string().optional()
|
|
13898
|
+
}).optional(),
|
|
13899
|
+
filters: external_exports.array(filterValueSchema).optional(),
|
|
13900
|
+
limit: external_exports.number().int().positive().max(500).default(50),
|
|
13901
|
+
offset: external_exports.number().int().min(0).default(0)
|
|
13902
|
+
});
|
|
13903
|
+
analyticsConversationIdParam = external_exports.object({
|
|
13904
|
+
conversationId: external_exports.string().uuid()
|
|
13905
|
+
});
|
|
13906
|
+
messagesQuery = external_exports.object({
|
|
13907
|
+
hub_id: external_exports.string().uuid(),
|
|
13908
|
+
limit: external_exports.string().regex(/^\d+$/).optional(),
|
|
13909
|
+
offset: external_exports.string().regex(/^\d+$/).optional()
|
|
13910
|
+
});
|
|
13911
|
+
conversationDetailDataQuery = external_exports.object({
|
|
13912
|
+
hub_id: external_exports.string().uuid()
|
|
13913
|
+
});
|
|
13914
|
+
analyticsDataBody = external_exports.object({
|
|
13915
|
+
hub_id: external_exports.string().uuid(),
|
|
13916
|
+
periodicity: external_exports.enum(["daily", "weekly", "monthly", "yearly"]),
|
|
13917
|
+
time_interval: external_exports.object({
|
|
13918
|
+
start: external_exports.string(),
|
|
13919
|
+
end: external_exports.string()
|
|
13920
|
+
}),
|
|
13921
|
+
trend_analysis: external_exports.boolean(),
|
|
13922
|
+
filters: external_exports.array(filterValueSchema).optional(),
|
|
13923
|
+
selected_variables: external_exports.array(external_exports.string()),
|
|
13924
|
+
include_summary: external_exports.boolean().optional(),
|
|
13925
|
+
include_variables: external_exports.boolean().optional(),
|
|
13926
|
+
variable_origin: external_exports.enum(["agent", "system", "annotation"]).optional(),
|
|
13927
|
+
variable_category: external_exports.string().optional(),
|
|
13928
|
+
variables_only: external_exports.boolean().optional()
|
|
13929
|
+
});
|
|
13930
|
+
structuredQueryBody = external_exports.object({
|
|
13931
|
+
hub_id: external_exports.string().uuid(),
|
|
13932
|
+
metrics: external_exports.array(external_exports.object({
|
|
13933
|
+
column: external_exports.string(),
|
|
13934
|
+
aggregation: external_exports.enum(STRUCTURED_QUERY_AGGREGATIONS),
|
|
13935
|
+
alias: external_exports.string().optional(),
|
|
13936
|
+
corr_with: external_exports.string().optional(),
|
|
13937
|
+
quantile_level: external_exports.number().min(0).max(1).optional()
|
|
13938
|
+
})).min(1),
|
|
13939
|
+
group_by: external_exports.array(external_exports.string()).optional(),
|
|
13940
|
+
order_by: external_exports.array(external_exports.object({
|
|
13941
|
+
column: external_exports.string(),
|
|
13942
|
+
direction: external_exports.enum(["asc", "desc"]).optional()
|
|
13943
|
+
})).optional(),
|
|
13944
|
+
filters: external_exports.array(external_exports.object({
|
|
13945
|
+
column: external_exports.string(),
|
|
13946
|
+
operator: external_exports.enum(STRUCTURED_QUERY_OPS),
|
|
13947
|
+
value: external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])
|
|
13948
|
+
})).optional(),
|
|
13949
|
+
time_range: external_exports.object({
|
|
13950
|
+
start: external_exports.string(),
|
|
13951
|
+
end: external_exports.string()
|
|
13952
|
+
}).optional(),
|
|
13953
|
+
limit: external_exports.number().int().positive().max(1e4).optional()
|
|
13954
|
+
});
|
|
13955
|
+
analyticsSqlBody = external_exports.object({
|
|
13956
|
+
hub_id: external_exports.string().uuid(),
|
|
13957
|
+
// Hard size cap before the validator runs — keeps lex/parse work bounded.
|
|
13958
|
+
sql: external_exports.string().min(1).max(8e3),
|
|
13959
|
+
limit: external_exports.number().int().positive().max(1e4).optional()
|
|
13960
|
+
});
|
|
13961
|
+
analyticsSqlTable = external_exports.enum(["conversation", "message"]);
|
|
13962
|
+
analyticsSqlSchemaQuery = external_exports.object({
|
|
13963
|
+
hub_id: external_exports.string().uuid(),
|
|
13964
|
+
// Defaulted so a client that predates the message table keeps its old response.
|
|
13965
|
+
table: analyticsSqlTable.default("conversation")
|
|
13966
|
+
});
|
|
13632
13967
|
}
|
|
13633
13968
|
});
|
|
13634
13969
|
|
|
13635
|
-
// ../../packages/core/dist/chunk-
|
|
13636
|
-
var
|
|
13637
|
-
var
|
|
13638
|
-
"../../packages/core/dist/chunk-
|
|
13970
|
+
// ../../packages/core/dist/chunk-UEJOG2Q7.js
|
|
13971
|
+
var archiveHubIdParam, archiveConversationParams, archiveListQuery, archiveMessageObservabilityParams;
|
|
13972
|
+
var init_chunk_UEJOG2Q7 = __esm({
|
|
13973
|
+
"../../packages/core/dist/chunk-UEJOG2Q7.js"() {
|
|
13639
13974
|
"use strict";
|
|
13640
13975
|
init_zod();
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
CONSULT_THREAD_TITLE_MAX = 120;
|
|
13644
|
-
consultThreadTitle = external_exports.string().trim().min(1).max(CONSULT_THREAD_TITLE_MAX);
|
|
13645
|
-
consultThreadSummary = external_exports.object({
|
|
13646
|
-
consult_thread_id: external_exports.string(),
|
|
13647
|
-
conversation_id: external_exports.string(),
|
|
13648
|
-
initiator_type: external_exports.enum(["team", "agent"]),
|
|
13649
|
-
initiator_id: external_exports.string(),
|
|
13650
|
-
engaged_agent_id: external_exports.string().nullable(),
|
|
13651
|
-
engaged_agent_name: external_exports.string().nullable(),
|
|
13652
|
-
title: external_exports.string().nullable(),
|
|
13653
|
-
status: consultThreadStatus,
|
|
13654
|
-
created_at: external_exports.string()
|
|
13655
|
-
});
|
|
13656
|
-
listConsultThreadsQuery = external_exports.object({
|
|
13657
|
-
hub_id: external_exports.string().uuid()
|
|
13658
|
-
});
|
|
13659
|
-
listConsultThreadsResponse = external_exports.object({
|
|
13660
|
-
threads: external_exports.array(consultThreadSummary)
|
|
13661
|
-
});
|
|
13662
|
-
createConsultThreadBody = external_exports.object({
|
|
13663
|
-
hub_id: external_exports.string().uuid(),
|
|
13664
|
-
title: consultThreadTitle.optional(),
|
|
13665
|
-
// Optionally engage a consultant on creation. Validated server-side against the
|
|
13666
|
-
// hub's `consultant`-role agents; a non-consultant / unknown id is rejected.
|
|
13667
|
-
engaged_agent_id: external_exports.string().uuid().optional()
|
|
13668
|
-
});
|
|
13669
|
-
createConsultThreadResponse = external_exports.object({
|
|
13670
|
-
thread: consultThreadSummary
|
|
13976
|
+
archiveHubIdParam = external_exports.object({
|
|
13977
|
+
hubId: external_exports.string().uuid()
|
|
13671
13978
|
});
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13979
|
+
archiveConversationParams = external_exports.object({
|
|
13980
|
+
hubId: external_exports.string().uuid(),
|
|
13981
|
+
conversationId: external_exports.string().uuid()
|
|
13675
13982
|
});
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13983
|
+
archiveListQuery = external_exports.object({
|
|
13984
|
+
user_id: external_exports.string().optional(),
|
|
13985
|
+
start: external_exports.string().optional(),
|
|
13986
|
+
end: external_exports.string().optional(),
|
|
13987
|
+
page: external_exports.string().regex(/^\d+$/).optional(),
|
|
13988
|
+
page_size: external_exports.string().regex(/^\d+$/).optional()
|
|
13682
13989
|
});
|
|
13683
|
-
|
|
13684
|
-
|
|
13990
|
+
archiveMessageObservabilityParams = archiveConversationParams.extend({
|
|
13991
|
+
messageId: external_exports.string().uuid()
|
|
13685
13992
|
});
|
|
13686
|
-
CONSULT_AWAIT_TIMEOUT_MS = 15 * 6e4;
|
|
13687
13993
|
}
|
|
13688
13994
|
});
|
|
13689
13995
|
|
|
13690
|
-
// ../../packages/core/dist/chunk-
|
|
13996
|
+
// ../../packages/core/dist/chunk-JO53JB35.js
|
|
13691
13997
|
var META_ENTITY_ID_PATTERN, metaEntityId, whatsappCallbackBody, authMeResponse, wsTicketResponse, sessionCheckResponse, logoutResponse, magicCodeSendBody, magicCodeSendResponse, magicCodeVerifyBody, magicCodeVerifyResponse, passwordLoginBody, normalizeEmail, REVIEW_ACCOUNT_EMAILS;
|
|
13692
|
-
var
|
|
13693
|
-
"../../packages/core/dist/chunk-
|
|
13998
|
+
var init_chunk_JO53JB35 = __esm({
|
|
13999
|
+
"../../packages/core/dist/chunk-JO53JB35.js"() {
|
|
13694
14000
|
"use strict";
|
|
13695
14001
|
init_zod();
|
|
13696
14002
|
META_ENTITY_ID_PATTERN = /^\d{1,32}$/;
|
|
@@ -13716,12 +14022,7 @@ var init_chunk_ZHJEQBXJ = __esm({
|
|
|
13716
14022
|
user_id: external_exports.string(),
|
|
13717
14023
|
email: external_exports.string(),
|
|
13718
14024
|
org_id: external_exports.string().nullable(),
|
|
13719
|
-
is_platform_admin: external_exports.boolean()
|
|
13720
|
-
// Present so the MCP server can conversation-scope + harness-gate the wayai-conversation
|
|
13721
|
-
// control surface (harness-agents PR 2.7c): session_id = conversation_id for a harness
|
|
13722
|
-
// token; is_harness marks the synthetic in-sandbox principal. Optional/back-compat.
|
|
13723
|
-
session_id: external_exports.string().optional(),
|
|
13724
|
-
is_harness: external_exports.boolean().optional()
|
|
14025
|
+
is_platform_admin: external_exports.boolean()
|
|
13725
14026
|
});
|
|
13726
14027
|
wsTicketResponse = external_exports.object({
|
|
13727
14028
|
ticket: external_exports.string(),
|
|
@@ -13800,16 +14101,16 @@ var init_chunk_LQY2OCQL = __esm({
|
|
|
13800
14101
|
}
|
|
13801
14102
|
});
|
|
13802
14103
|
|
|
13803
|
-
// ../../packages/core/dist/chunk-
|
|
14104
|
+
// ../../packages/core/dist/chunk-NTWMYWVH.js
|
|
13804
14105
|
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;
|
|
13805
|
-
var
|
|
13806
|
-
"../../packages/core/dist/chunk-
|
|
14106
|
+
var init_chunk_NTWMYWVH = __esm({
|
|
14107
|
+
"../../packages/core/dist/chunk-NTWMYWVH.js"() {
|
|
13807
14108
|
"use strict";
|
|
13808
14109
|
init_chunk_LQY2OCQL();
|
|
13809
|
-
|
|
14110
|
+
init_chunk_2LE72ZC7();
|
|
13810
14111
|
init_chunk_3HSB6J4J();
|
|
13811
14112
|
init_chunk_5XEJSR22();
|
|
13812
|
-
|
|
14113
|
+
init_chunk_WNLWNFHH();
|
|
13813
14114
|
init_chunk_T7KQKDET();
|
|
13814
14115
|
init_zod();
|
|
13815
14116
|
AUTOMATION_TRIGGER_TYPES = ["schedule", "event", "webhook"];
|
|
@@ -13969,202 +14270,90 @@ var init_chunk_IG6QBZMA = __esm({
|
|
|
13969
14270
|
confirm_expires_at: external_exports.string(),
|
|
13970
14271
|
/** Failed mark attempts. Non-zero means the timer is retrying under backoff. */
|
|
13971
14272
|
attempts: external_exports.number(),
|
|
13972
|
-
last_error: external_exports.string().nullable()
|
|
13973
|
-
});
|
|
13974
|
-
baseDestructionListResponse = external_exports.object({
|
|
13975
|
-
destructions: external_exports.array(baseDestructionRequest)
|
|
13976
|
-
});
|
|
13977
|
-
baseDestructionInitiateResponse = external_exports.object({
|
|
13978
|
-
destruction: baseDestructionRequest,
|
|
13979
|
-
/** How many org admins the confirmation link went to. Zero is a refusal, not a state. */
|
|
13980
|
-
notified_admins: external_exports.number()
|
|
13981
|
-
});
|
|
13982
|
-
baseDestructionConfirmResponse = external_exports.object({
|
|
13983
|
-
destruction: baseDestructionRequest
|
|
13984
|
-
});
|
|
13985
|
-
baseDestructionCancelResponse = external_exports.object({
|
|
13986
|
-
/** False when there was nothing pending — the cancel button is idempotent by design. */
|
|
13987
|
-
cancelled: external_exports.boolean(),
|
|
13988
|
-
base_id: external_exports.string()
|
|
13989
|
-
});
|
|
13990
|
-
}
|
|
13991
|
-
});
|
|
13992
|
-
|
|
13993
|
-
// ../../packages/core/dist/chunk-PZPOUXJR.js
|
|
13994
|
-
var navItemSchema, hubCountResetBody, navItemCountResetBody, typingBody;
|
|
13995
|
-
var init_chunk_PZPOUXJR = __esm({
|
|
13996
|
-
"../../packages/core/dist/chunk-PZPOUXJR.js"() {
|
|
13997
|
-
"use strict";
|
|
13998
|
-
init_zod();
|
|
13999
|
-
navItemSchema = external_exports.enum(["chat", "support", "task"]);
|
|
14000
|
-
hubCountResetBody = external_exports.object({
|
|
14001
|
-
hub_id: external_exports.string().uuid(),
|
|
14002
|
-
nav_item: navItemSchema,
|
|
14003
|
-
conversation_id: external_exports.string().uuid().optional(),
|
|
14004
|
-
hub_user_id: external_exports.string().optional(),
|
|
14005
|
-
current_team_user_id: external_exports.string().optional()
|
|
14006
|
-
});
|
|
14007
|
-
navItemCountResetBody = external_exports.object({
|
|
14008
|
-
nav_item: navItemSchema
|
|
14009
|
-
});
|
|
14010
|
-
typingBody = external_exports.object({
|
|
14011
|
-
conversationId: external_exports.string().uuid(),
|
|
14012
|
-
hubId: external_exports.string().uuid(),
|
|
14013
|
-
action: external_exports.enum(["start", "stop"])
|
|
14014
|
-
});
|
|
14015
|
-
}
|
|
14016
|
-
});
|
|
14017
|
-
|
|
14018
|
-
// ../../packages/core/dist/chunk-ZJJ5ODOD.js
|
|
14019
|
-
function cacheReconcileIdCount(body) {
|
|
14020
|
-
return body.conversations.length + body.histories.reduce((n, history) => n + history.conversation_ids.length, 0) + body.threads.length;
|
|
14021
|
-
}
|
|
14022
|
-
var CACHE_RECONCILE_MAX_IDS, CACHE_RECONCILE_MAX_HUBS, cacheReconcileScopeSchema, cachedConversationPageSchema, cachedHistoryThreadSchema, cachedPeopleThreadSchema, cacheReconcileBody;
|
|
14023
|
-
var init_chunk_ZJJ5ODOD = __esm({
|
|
14024
|
-
"../../packages/core/dist/chunk-ZJJ5ODOD.js"() {
|
|
14025
|
-
"use strict";
|
|
14026
|
-
init_chunk_PZPOUXJR();
|
|
14027
|
-
init_chunk_HZ6CADSY();
|
|
14028
|
-
init_zod();
|
|
14029
|
-
CACHE_RECONCILE_MAX_IDS = 300;
|
|
14030
|
-
CACHE_RECONCILE_MAX_HUBS = 15;
|
|
14031
|
-
cacheReconcileScopeSchema = navItemSchema;
|
|
14032
|
-
cachedConversationPageSchema = external_exports.object({
|
|
14033
|
-
conversation_id: uuidSchema,
|
|
14034
|
-
hub_id: uuidSchema,
|
|
14035
|
-
scope: cacheReconcileScopeSchema
|
|
14036
|
-
}).strict();
|
|
14037
|
-
cachedHistoryThreadSchema = external_exports.object({
|
|
14038
|
-
hub_id: uuidSchema,
|
|
14039
|
-
hub_user_id: external_exports.string().min(1).max(128),
|
|
14040
|
-
nav: cacheReconcileScopeSchema,
|
|
14041
|
-
conversation_ids: external_exports.array(uuidSchema).min(1).max(CACHE_RECONCILE_MAX_IDS)
|
|
14042
|
-
}).strict();
|
|
14043
|
-
cachedPeopleThreadSchema = external_exports.object({ thread_id: uuidSchema }).strict();
|
|
14044
|
-
cacheReconcileBody = external_exports.object({
|
|
14045
|
-
conversations: external_exports.array(cachedConversationPageSchema).max(CACHE_RECONCILE_MAX_IDS).default([]),
|
|
14046
|
-
histories: external_exports.array(cachedHistoryThreadSchema).max(CACHE_RECONCILE_MAX_IDS).default([]),
|
|
14047
|
-
threads: external_exports.array(cachedPeopleThreadSchema).max(CACHE_RECONCILE_MAX_IDS).default([])
|
|
14048
|
-
}).strict().superRefine((body, ctx) => {
|
|
14049
|
-
if (cacheReconcileIdCount(body) > CACHE_RECONCILE_MAX_IDS) {
|
|
14050
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: `At most ${CACHE_RECONCILE_MAX_IDS} ids in all` });
|
|
14051
|
-
}
|
|
14052
|
-
const hubs = new Set([...body.conversations, ...body.histories].map((entry) => entry.hub_id));
|
|
14053
|
-
if (hubs.size > CACHE_RECONCILE_MAX_HUBS) {
|
|
14054
|
-
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: `At most ${CACHE_RECONCILE_MAX_HUBS} distinct hubs` });
|
|
14055
|
-
}
|
|
14056
|
-
});
|
|
14057
|
-
}
|
|
14058
|
-
});
|
|
14059
|
-
|
|
14060
|
-
// ../../packages/core/dist/chunk-7CYHPF35.js
|
|
14061
|
-
var appMessageSenderType, appMessageReceiverType, apiChannelMessage, apiChannelMessageBody, appMessageBody, appMessageResponse;
|
|
14062
|
-
var init_chunk_7CYHPF35 = __esm({
|
|
14063
|
-
"../../packages/core/dist/chunk-7CYHPF35.js"() {
|
|
14064
|
-
"use strict";
|
|
14065
|
-
init_chunk_HZ6CADSY();
|
|
14066
|
-
init_zod();
|
|
14067
|
-
appMessageSenderType = external_exports.enum(["user", "team"]);
|
|
14068
|
-
appMessageReceiverType = external_exports.enum(["user", "team", "agent", "assistant"]).transform((v) => v === "assistant" ? "agent" : v);
|
|
14069
|
-
apiChannelMessage = external_exports.object({
|
|
14070
|
-
text: clientOptionalString,
|
|
14071
|
-
attachments: external_exports.array(messageAttachment).max(MAX_ATTACHMENTS_PER_MESSAGE).nullish().transform((v) => v ?? void 0)
|
|
14072
|
-
}).refine((m) => m.text && m.text.length > 0 || m.attachments && m.attachments.length > 0, {
|
|
14073
|
-
message: "message must have text or at least one attachment"
|
|
14074
|
-
});
|
|
14075
|
-
apiChannelMessageBody = external_exports.object({
|
|
14076
|
-
// Correlation id (task hubs): new → new conversation, repeat → continue. min 1 so an
|
|
14077
|
-
// empty string can't masquerade as a ref. Mutually exclusive with conversation_id.
|
|
14078
|
-
external_ref: external_exports.string().min(1).max(256).optional(),
|
|
14079
|
-
// Continue a specific WayAI conversation (authorized against the hub/channel + owner).
|
|
14080
|
-
// UUID-validated here (unlike the app channel, whose client we control): allocation
|
|
14081
|
-
// only treats a UUID-shaped id as a provided conversation, so a malformed id would
|
|
14082
|
-
// otherwise skip the owner guard and silently MINT a new conversation instead of
|
|
14083
|
-
// rejecting. A format 400 is shape-only — not an existence oracle (a valid-but-unknown
|
|
14084
|
-
// UUID still collapses to the opaque authorization error downstream).
|
|
14085
|
-
conversation_id: external_exports.string().uuid().optional(),
|
|
14086
|
-
// On-behalf-of end-user identity. Absent → per-connection service principal (task-hub
|
|
14087
|
-
// only; chat hub rejects with 422 in the route).
|
|
14088
|
-
user: external_exports.object({
|
|
14089
|
-
id: external_exports.string().min(1),
|
|
14090
|
-
email: clientOptionalString,
|
|
14091
|
-
name: clientOptionalString
|
|
14092
|
-
}).optional(),
|
|
14093
|
-
message: apiChannelMessage,
|
|
14094
|
-
// Idempotency key: maps to channel_message_sid, deduped within one conversation
|
|
14095
|
-
// (ConversationDO.storeMessage). A retried POST resolves to the same conversation (a chat
|
|
14096
|
-
// hub's user, the external_ref, the conversation_id, or on a task hub with neither, this key
|
|
14097
|
-
// scoped by the sender), so it echoes the original message_id and skips billing / turn
|
|
14098
|
-
// dispatch. A failed store answers a retryable 503 only when this key is set; without it a
|
|
14099
|
-
// retry could store the message twice, so it answers 400.
|
|
14100
|
-
client_message_id: external_exports.string().min(1).max(256).optional()
|
|
14101
|
-
}).refine((b) => !(b.external_ref && b.conversation_id), {
|
|
14102
|
-
message: "provide external_ref or conversation_id, not both",
|
|
14103
|
-
path: ["external_ref"]
|
|
14104
|
-
});
|
|
14105
|
-
appMessageBody = external_exports.object({
|
|
14106
|
-
// Message content — three historical aliases. All optional: an attachment-only
|
|
14107
|
-
// or voice-only message carries no text.
|
|
14108
|
-
content: clientOptionalString,
|
|
14109
|
-
message_text: clientOptionalString,
|
|
14110
|
-
message_body: clientOptionalString,
|
|
14111
|
-
// Conversation context. Ids are plain strings rather than `.uuid()` on purpose:
|
|
14112
|
-
// they are AUTHORIZED downstream, which is the stronger guarantee — a well-formed
|
|
14113
|
-
// uuid belonging to another tenant must fail just as hard as junk. `hub_id` is
|
|
14114
|
-
// gated by `assertHubEndUserAccess` (gh #3286) and `conversation_id` by HubDO's
|
|
14115
|
-
// conversation_index owner check (gh #2781, #3281). The route's own falsy guards
|
|
14116
|
-
// ('hub_id is required') still reject an empty one.
|
|
14117
|
-
hub_id: clientOptionalString,
|
|
14118
|
-
channel_id: clientOptionalString,
|
|
14119
|
-
conversation_id: clientOptionalString,
|
|
14120
|
-
hub_type: external_exports.enum(["chat", "task"]).nullish().transform((v) => v ?? void 0),
|
|
14121
|
-
// Stable idempotency key for one explicit task-hub launcher. HubDO scopes it
|
|
14122
|
-
// to the authenticated user and resolves retries/tabs to one conversation.
|
|
14123
|
-
task_start_id: external_exports.string().uuid().nullish().transform((v) => v ?? void 0),
|
|
14124
|
-
// Routing.
|
|
14125
|
-
sender_type: appMessageSenderType.nullish().transform((v) => v ?? void 0),
|
|
14126
|
-
receiver_type: appMessageReceiverType.nullish().transform((v) => v ?? void 0),
|
|
14127
|
-
// Only meaningful on a team send, where `validateAppTeamSendContext` proves the
|
|
14128
|
-
// caller may send to this receiver. Absent on a team send to a conversation with no
|
|
14129
|
-
// person, which names its `conversation_id` instead. The end-user branch ignores it —
|
|
14130
|
-
// see the receiver derivation in the route.
|
|
14131
|
-
user_receiver_id: clientOptionalString,
|
|
14132
|
-
// ── Internal consult (consultant-agents PR 2 — H1.0) ──────────────────────
|
|
14133
|
-
// A team member handling a customer conversation can tag a `consultant`-role
|
|
14134
|
-
// agent for a PRIVATE, team-only exchange that never reaches the customer. A
|
|
14135
|
-
// consult send is a team send with `receiver_type: 'agent'` targeting the
|
|
14136
|
-
// consultant; `user_receiver_id` identifies the customer whose conversation this is
|
|
14137
|
-
// (and is authorized by `validateAppTeamSendContext`, exactly as a team→user send is),
|
|
14138
|
-
// and is absent, as on a team→user send, when the conversation has no person. The consultant is resolved from `agent_receiver_id`
|
|
14139
|
-
// when supplied, else from an `@mention` parsed out of the message text against
|
|
14140
|
-
// the hub's consultant agents. `consult_thread_id` continues an existing thread;
|
|
14141
|
-
// absent, the route creates/reuses the single implicit thread. These fields are
|
|
14142
|
-
// inert on every non-consult send (end-user send, team→user send).
|
|
14143
|
-
agent_receiver_id: clientOptionalString,
|
|
14144
|
-
consult_thread_id: clientOptionalString,
|
|
14145
|
-
is_first_message: clientOptionalBoolean,
|
|
14146
|
-
end_conversation: clientOptionalBoolean,
|
|
14147
|
-
// Pre-generated by the client so the optimistic bubble and the stored row share
|
|
14148
|
-
// a key (transcription live-updates land on the same row instead of duplicating).
|
|
14149
|
-
message_id: clientOptionalString,
|
|
14150
|
-
attachments: external_exports.array(messageAttachment).max(MAX_ATTACHMENTS_PER_MESSAGE).nullish().transform((v) => v ?? void 0),
|
|
14151
|
-
// Base64-encoded audio for STT. Size-capped in the route (the cap is a byte
|
|
14152
|
-
// budget tied to the /channels/* bodyLimit, not a shape rule).
|
|
14153
|
-
audio_file: clientOptionalString
|
|
14273
|
+
last_error: external_exports.string().nullable()
|
|
14154
14274
|
});
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14275
|
+
baseDestructionListResponse = external_exports.object({
|
|
14276
|
+
destructions: external_exports.array(baseDestructionRequest)
|
|
14277
|
+
});
|
|
14278
|
+
baseDestructionInitiateResponse = external_exports.object({
|
|
14279
|
+
destruction: baseDestructionRequest,
|
|
14280
|
+
/** How many org admins the confirmation link went to. Zero is a refusal, not a state. */
|
|
14281
|
+
notified_admins: external_exports.number()
|
|
14282
|
+
});
|
|
14283
|
+
baseDestructionConfirmResponse = external_exports.object({
|
|
14284
|
+
destruction: baseDestructionRequest
|
|
14285
|
+
});
|
|
14286
|
+
baseDestructionCancelResponse = external_exports.object({
|
|
14287
|
+
/** False when there was nothing pending — the cancel button is idempotent by design. */
|
|
14288
|
+
cancelled: external_exports.boolean(),
|
|
14289
|
+
base_id: external_exports.string()
|
|
14290
|
+
});
|
|
14291
|
+
}
|
|
14292
|
+
});
|
|
14293
|
+
|
|
14294
|
+
// ../../packages/core/dist/chunk-PZPOUXJR.js
|
|
14295
|
+
var navItemSchema, hubCountResetBody, navItemCountResetBody, typingBody;
|
|
14296
|
+
var init_chunk_PZPOUXJR = __esm({
|
|
14297
|
+
"../../packages/core/dist/chunk-PZPOUXJR.js"() {
|
|
14298
|
+
"use strict";
|
|
14299
|
+
init_zod();
|
|
14300
|
+
navItemSchema = external_exports.enum(["chat", "support", "task"]);
|
|
14301
|
+
hubCountResetBody = external_exports.object({
|
|
14302
|
+
hub_id: external_exports.string().uuid(),
|
|
14303
|
+
nav_item: navItemSchema,
|
|
14304
|
+
conversation_id: external_exports.string().uuid().optional(),
|
|
14305
|
+
hub_user_id: external_exports.string().optional(),
|
|
14306
|
+
current_team_user_id: external_exports.string().optional()
|
|
14307
|
+
});
|
|
14308
|
+
navItemCountResetBody = external_exports.object({
|
|
14309
|
+
nav_item: navItemSchema
|
|
14310
|
+
});
|
|
14311
|
+
typingBody = external_exports.object({
|
|
14312
|
+
conversationId: external_exports.string().uuid(),
|
|
14313
|
+
hubId: external_exports.string().uuid(),
|
|
14314
|
+
action: external_exports.enum(["start", "stop"])
|
|
14315
|
+
});
|
|
14316
|
+
}
|
|
14317
|
+
});
|
|
14318
|
+
|
|
14319
|
+
// ../../packages/core/dist/chunk-YWZFB34T.js
|
|
14320
|
+
function cacheReconcileIdCount(body) {
|
|
14321
|
+
return body.conversations.length + body.histories.reduce((n, history) => n + history.conversation_ids.length, 0) + body.threads.length;
|
|
14322
|
+
}
|
|
14323
|
+
var CACHE_RECONCILE_MAX_IDS, CACHE_RECONCILE_MAX_HUBS, cacheReconcileScopeSchema, cachedConversationPageSchema, cachedHistoryThreadSchema, cachedPeopleThreadSchema, cacheReconcileBody;
|
|
14324
|
+
var init_chunk_YWZFB34T = __esm({
|
|
14325
|
+
"../../packages/core/dist/chunk-YWZFB34T.js"() {
|
|
14326
|
+
"use strict";
|
|
14327
|
+
init_chunk_PZPOUXJR();
|
|
14328
|
+
init_chunk_HZ6CADSY();
|
|
14329
|
+
init_zod();
|
|
14330
|
+
CACHE_RECONCILE_MAX_IDS = 300;
|
|
14331
|
+
CACHE_RECONCILE_MAX_HUBS = 15;
|
|
14332
|
+
cacheReconcileScopeSchema = navItemSchema;
|
|
14333
|
+
cachedConversationPageSchema = external_exports.object({
|
|
14334
|
+
conversation_id: uuidSchema,
|
|
14335
|
+
hub_id: uuidSchema,
|
|
14336
|
+
scope: cacheReconcileScopeSchema
|
|
14337
|
+
}).strict();
|
|
14338
|
+
cachedHistoryThreadSchema = external_exports.object({
|
|
14339
|
+
hub_id: uuidSchema,
|
|
14340
|
+
hub_user_id: external_exports.string().min(1).max(128),
|
|
14341
|
+
nav: cacheReconcileScopeSchema,
|
|
14342
|
+
conversation_ids: external_exports.array(uuidSchema).min(1).max(CACHE_RECONCILE_MAX_IDS)
|
|
14343
|
+
}).strict();
|
|
14344
|
+
cachedPeopleThreadSchema = external_exports.object({ thread_id: uuidSchema }).strict();
|
|
14345
|
+
cacheReconcileBody = external_exports.object({
|
|
14346
|
+
conversations: external_exports.array(cachedConversationPageSchema).max(CACHE_RECONCILE_MAX_IDS).default([]),
|
|
14347
|
+
histories: external_exports.array(cachedHistoryThreadSchema).max(CACHE_RECONCILE_MAX_IDS).default([]),
|
|
14348
|
+
threads: external_exports.array(cachedPeopleThreadSchema).max(CACHE_RECONCILE_MAX_IDS).default([])
|
|
14349
|
+
}).strict().superRefine((body, ctx) => {
|
|
14350
|
+
if (cacheReconcileIdCount(body) > CACHE_RECONCILE_MAX_IDS) {
|
|
14351
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: `At most ${CACHE_RECONCILE_MAX_IDS} ids in all` });
|
|
14352
|
+
}
|
|
14353
|
+
const hubs = new Set([...body.conversations, ...body.histories].map((entry) => entry.hub_id));
|
|
14354
|
+
if (hubs.size > CACHE_RECONCILE_MAX_HUBS) {
|
|
14355
|
+
ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: `At most ${CACHE_RECONCILE_MAX_HUBS} distinct hubs` });
|
|
14356
|
+
}
|
|
14168
14357
|
});
|
|
14169
14358
|
}
|
|
14170
14359
|
});
|
|
@@ -14332,7 +14521,7 @@ var init_chunk_OMPT4ZHR = __esm({
|
|
|
14332
14521
|
}
|
|
14333
14522
|
});
|
|
14334
14523
|
|
|
14335
|
-
// ../../packages/core/dist/chunk-
|
|
14524
|
+
// ../../packages/core/dist/chunk-I5J3BRUB.js
|
|
14336
14525
|
function refineScopedTarget(data, ctx) {
|
|
14337
14526
|
if (data.scope === "org") {
|
|
14338
14527
|
if (!data.org_id) {
|
|
@@ -14358,13 +14547,13 @@ function refineScopedTarget(data, ctx) {
|
|
|
14358
14547
|
}
|
|
14359
14548
|
}
|
|
14360
14549
|
var adminOrgIdParam, adminOrgAdminIdParam, adminUserIdParam, PRICING_PLAN_ID_RE, adminPlanIdParam, adminOrganizationsQuery, adminUserSearchQuery, kanbanSlugMigrationQuery, adjustQuotaBody, updatePlanBody, addAdminUserBody, MAX_VOICE_CALL_MINUTE_OPS, voiceCallMinuteOps, AUTOMATION_GATE_EVALUATIONS_PER_OPERATION_BOUND, automationGateEvaluationsPerOperation, AUTOMATION_RUN_RETENTION_DAYS_MAX, automationRunRetentionDays, turnDeadlineSeconds, updatePlatformConfigBody, updateFreeOrgLimitBody, adminScopedTargetShape, adminScopedTargetBody, adminRepairKnowledgeBlobsBody, BRANCHING_ORPHAN_ENTITY_TYPES, BRANCHING_ORPHAN_MAX_TARGETS, adminRepairBranchingOrphansBody, adminRepairLegacyOrgGrantsBody, adminRepairCompedPlansBody, updatePricingPlanBody, dataExplorerSearchQuery, dataExplorerOrgIdParam, dataExplorerHubIdParam, dataExplorerConvIdParam, dataExplorerDoInstancesQuery, dataExplorerNsIdParam, dataExplorerKvKeysBody, dataExplorerKvKeyBody, uuidOrHexId, dataExplorerDeleteOrgParam, dataExplorerDeleteHubParam, dataExplorerDeleteConvParam, dataExplorerDeleteUserParam, dataExplorerDeleteQuery, dataExplorerKvDeleteBody, pitrDoNamespace, pitrBookmarkParam, pitrRestoreBody, healthSamplingTriggerBody, DEBUG_DO_HEX_PREFIX, debugDoEntityId, debugTableName, dataExplorerDebugTablesParam, dataExplorerDebugRowsParam, dataExplorerDebugRowsQuery, dataExplorerDebugAnalyticsTable, debugUuid, dataExplorerDebugAnalyticsRowsParam, dataExplorerDebugAnalyticsRowsQuery, dataExplorerDebugCountsDoType, dataExplorerDebugCountsParam, debugHubConvParam, debugMessageIdQuery;
|
|
14361
|
-
var
|
|
14362
|
-
"../../packages/core/dist/chunk-
|
|
14550
|
+
var init_chunk_I5J3BRUB = __esm({
|
|
14551
|
+
"../../packages/core/dist/chunk-I5J3BRUB.js"() {
|
|
14363
14552
|
"use strict";
|
|
14364
14553
|
init_chunk_FECLIZTY();
|
|
14365
14554
|
init_chunk_BFG4ZWR4();
|
|
14366
14555
|
init_chunk_YZAIZJTO();
|
|
14367
|
-
|
|
14556
|
+
init_chunk_R555PBKV();
|
|
14368
14557
|
init_chunk_OMPT4ZHR();
|
|
14369
14558
|
init_chunk_HZ6CADSY();
|
|
14370
14559
|
init_chunk_MIWZOSPI();
|
|
@@ -14706,143 +14895,6 @@ var init_chunk_7LN3OG3F = __esm({
|
|
|
14706
14895
|
}
|
|
14707
14896
|
});
|
|
14708
14897
|
|
|
14709
|
-
// ../../packages/core/dist/chunk-2PZIF56U.js
|
|
14710
|
-
var analyticsHubIdParam, analyticsVariableIdParam, updateVariablePinBody, updateAnalyticsViewBody, NUMERIC_FILTER_OPS, TEXT_FILTER_OPS, CATEGORICAL_FILTER_OPS, VARIABLE_FILTER_OPS, STRUCTURED_QUERY_OPS, STRUCTURED_QUERY_AGGREGATIONS, filterValueSchema, conversationsBody, analyticsConversationIdParam, messagesQuery, conversationDetailDataQuery, analyticsDataBody, structuredQueryBody, analyticsSqlBody, analyticsSqlTable, analyticsSqlSchemaQuery;
|
|
14711
|
-
var init_chunk_2PZIF56U = __esm({
|
|
14712
|
-
"../../packages/core/dist/chunk-2PZIF56U.js"() {
|
|
14713
|
-
"use strict";
|
|
14714
|
-
init_zod();
|
|
14715
|
-
analyticsHubIdParam = external_exports.object({
|
|
14716
|
-
hubId: external_exports.string().uuid()
|
|
14717
|
-
});
|
|
14718
|
-
analyticsVariableIdParam = external_exports.object({
|
|
14719
|
-
variableId: external_exports.string().uuid()
|
|
14720
|
-
});
|
|
14721
|
-
updateVariablePinBody = external_exports.object({
|
|
14722
|
-
pin: external_exports.union([external_exports.boolean(), external_exports.string()])
|
|
14723
|
-
});
|
|
14724
|
-
updateAnalyticsViewBody = external_exports.object({
|
|
14725
|
-
// 64 covers UUIDs (36) and the `sys:{name}` synthetic IDs for system variables.
|
|
14726
|
-
selected_variable_ids: external_exports.array(external_exports.string().min(1).max(64)).max(200)
|
|
14727
|
-
});
|
|
14728
|
-
NUMERIC_FILTER_OPS = ["eq", "neq", "gt", "gte", "lt", "lte"];
|
|
14729
|
-
TEXT_FILTER_OPS = ["equals", "not_equals", "contains", "not_contains", "starts_with", "ends_with"];
|
|
14730
|
-
CATEGORICAL_FILTER_OPS = ["is", "is_not", "in", "not_in"];
|
|
14731
|
-
VARIABLE_FILTER_OPS = [
|
|
14732
|
-
...NUMERIC_FILTER_OPS,
|
|
14733
|
-
...TEXT_FILTER_OPS,
|
|
14734
|
-
...CATEGORICAL_FILTER_OPS
|
|
14735
|
-
];
|
|
14736
|
-
STRUCTURED_QUERY_OPS = ["eq", "neq", "gt", "gte", "lt", "lte", "in", "not_in", "like"];
|
|
14737
|
-
STRUCTURED_QUERY_AGGREGATIONS = ["avg", "sum", "min", "max", "count", "quantile", "stddevPop", "corr", "uniq"];
|
|
14738
|
-
filterValueSchema = external_exports.object({
|
|
14739
|
-
variable_id: external_exports.string(),
|
|
14740
|
-
filter_type: external_exports.enum(VARIABLE_FILTER_OPS),
|
|
14741
|
-
filter_value: external_exports.union([external_exports.string(), external_exports.number()])
|
|
14742
|
-
});
|
|
14743
|
-
conversationsBody = external_exports.object({
|
|
14744
|
-
hub_id: external_exports.string().uuid(),
|
|
14745
|
-
time_interval: external_exports.object({
|
|
14746
|
-
start: external_exports.string().optional(),
|
|
14747
|
-
end: external_exports.string().optional()
|
|
14748
|
-
}).optional(),
|
|
14749
|
-
filters: external_exports.array(filterValueSchema).optional(),
|
|
14750
|
-
limit: external_exports.number().int().positive().max(500).default(50),
|
|
14751
|
-
offset: external_exports.number().int().min(0).default(0)
|
|
14752
|
-
});
|
|
14753
|
-
analyticsConversationIdParam = external_exports.object({
|
|
14754
|
-
conversationId: external_exports.string().uuid()
|
|
14755
|
-
});
|
|
14756
|
-
messagesQuery = external_exports.object({
|
|
14757
|
-
hub_id: external_exports.string().uuid(),
|
|
14758
|
-
limit: external_exports.string().regex(/^\d+$/).optional(),
|
|
14759
|
-
offset: external_exports.string().regex(/^\d+$/).optional()
|
|
14760
|
-
});
|
|
14761
|
-
conversationDetailDataQuery = external_exports.object({
|
|
14762
|
-
hub_id: external_exports.string().uuid()
|
|
14763
|
-
});
|
|
14764
|
-
analyticsDataBody = external_exports.object({
|
|
14765
|
-
hub_id: external_exports.string().uuid(),
|
|
14766
|
-
periodicity: external_exports.enum(["daily", "weekly", "monthly", "yearly"]),
|
|
14767
|
-
time_interval: external_exports.object({
|
|
14768
|
-
start: external_exports.string(),
|
|
14769
|
-
end: external_exports.string()
|
|
14770
|
-
}),
|
|
14771
|
-
trend_analysis: external_exports.boolean(),
|
|
14772
|
-
filters: external_exports.array(filterValueSchema).optional(),
|
|
14773
|
-
selected_variables: external_exports.array(external_exports.string()),
|
|
14774
|
-
include_summary: external_exports.boolean().optional(),
|
|
14775
|
-
include_variables: external_exports.boolean().optional(),
|
|
14776
|
-
variable_origin: external_exports.enum(["agent", "system", "annotation"]).optional(),
|
|
14777
|
-
variable_category: external_exports.string().optional(),
|
|
14778
|
-
variables_only: external_exports.boolean().optional()
|
|
14779
|
-
});
|
|
14780
|
-
structuredQueryBody = external_exports.object({
|
|
14781
|
-
hub_id: external_exports.string().uuid(),
|
|
14782
|
-
metrics: external_exports.array(external_exports.object({
|
|
14783
|
-
column: external_exports.string(),
|
|
14784
|
-
aggregation: external_exports.enum(STRUCTURED_QUERY_AGGREGATIONS),
|
|
14785
|
-
alias: external_exports.string().optional(),
|
|
14786
|
-
corr_with: external_exports.string().optional(),
|
|
14787
|
-
quantile_level: external_exports.number().min(0).max(1).optional()
|
|
14788
|
-
})).min(1),
|
|
14789
|
-
group_by: external_exports.array(external_exports.string()).optional(),
|
|
14790
|
-
order_by: external_exports.array(external_exports.object({
|
|
14791
|
-
column: external_exports.string(),
|
|
14792
|
-
direction: external_exports.enum(["asc", "desc"]).optional()
|
|
14793
|
-
})).optional(),
|
|
14794
|
-
filters: external_exports.array(external_exports.object({
|
|
14795
|
-
column: external_exports.string(),
|
|
14796
|
-
operator: external_exports.enum(STRUCTURED_QUERY_OPS),
|
|
14797
|
-
value: external_exports.union([external_exports.string(), external_exports.number(), external_exports.boolean()])
|
|
14798
|
-
})).optional(),
|
|
14799
|
-
time_range: external_exports.object({
|
|
14800
|
-
start: external_exports.string(),
|
|
14801
|
-
end: external_exports.string()
|
|
14802
|
-
}).optional(),
|
|
14803
|
-
limit: external_exports.number().int().positive().max(1e4).optional()
|
|
14804
|
-
});
|
|
14805
|
-
analyticsSqlBody = external_exports.object({
|
|
14806
|
-
hub_id: external_exports.string().uuid(),
|
|
14807
|
-
// Hard size cap before the validator runs — keeps lex/parse work bounded.
|
|
14808
|
-
sql: external_exports.string().min(1).max(8e3),
|
|
14809
|
-
limit: external_exports.number().int().positive().max(1e4).optional()
|
|
14810
|
-
});
|
|
14811
|
-
analyticsSqlTable = external_exports.enum(["conversation", "message"]);
|
|
14812
|
-
analyticsSqlSchemaQuery = external_exports.object({
|
|
14813
|
-
hub_id: external_exports.string().uuid(),
|
|
14814
|
-
// Defaulted so a client that predates the message table keeps its old response.
|
|
14815
|
-
table: analyticsSqlTable.default("conversation")
|
|
14816
|
-
});
|
|
14817
|
-
}
|
|
14818
|
-
});
|
|
14819
|
-
|
|
14820
|
-
// ../../packages/core/dist/chunk-UEJOG2Q7.js
|
|
14821
|
-
var archiveHubIdParam, archiveConversationParams, archiveListQuery, archiveMessageObservabilityParams;
|
|
14822
|
-
var init_chunk_UEJOG2Q7 = __esm({
|
|
14823
|
-
"../../packages/core/dist/chunk-UEJOG2Q7.js"() {
|
|
14824
|
-
"use strict";
|
|
14825
|
-
init_zod();
|
|
14826
|
-
archiveHubIdParam = external_exports.object({
|
|
14827
|
-
hubId: external_exports.string().uuid()
|
|
14828
|
-
});
|
|
14829
|
-
archiveConversationParams = external_exports.object({
|
|
14830
|
-
hubId: external_exports.string().uuid(),
|
|
14831
|
-
conversationId: external_exports.string().uuid()
|
|
14832
|
-
});
|
|
14833
|
-
archiveListQuery = external_exports.object({
|
|
14834
|
-
user_id: external_exports.string().optional(),
|
|
14835
|
-
start: external_exports.string().optional(),
|
|
14836
|
-
end: external_exports.string().optional(),
|
|
14837
|
-
page: external_exports.string().regex(/^\d+$/).optional(),
|
|
14838
|
-
page_size: external_exports.string().regex(/^\d+$/).optional()
|
|
14839
|
-
});
|
|
14840
|
-
archiveMessageObservabilityParams = archiveConversationParams.extend({
|
|
14841
|
-
messageId: external_exports.string().uuid()
|
|
14842
|
-
});
|
|
14843
|
-
}
|
|
14844
|
-
});
|
|
14845
|
-
|
|
14846
14898
|
// ../../packages/core/dist/chunk-SOJMWM63.js
|
|
14847
14899
|
var init_chunk_SOJMWM63 = __esm({
|
|
14848
14900
|
"../../packages/core/dist/chunk-SOJMWM63.js"() {
|
|
@@ -14850,12 +14902,12 @@ var init_chunk_SOJMWM63 = __esm({
|
|
|
14850
14902
|
}
|
|
14851
14903
|
});
|
|
14852
14904
|
|
|
14853
|
-
// ../../packages/core/dist/chunk-
|
|
14905
|
+
// ../../packages/core/dist/chunk-WFQDSQJK.js
|
|
14854
14906
|
function isPublicIdentifier(value) {
|
|
14855
14907
|
return UUID_RE.test(value) || HEX_RE.test(value) || WORKOS_ID_RE.test(value) || TRACE_HEADER_RE.test(value);
|
|
14856
14908
|
}
|
|
14857
14909
|
function redactTokenShapes(input) {
|
|
14858
|
-
return input.replace(TOKEN_RE, REDACTED).replace(PROVIDER_TOKEN_RE, `$1${REDACTED}`).replace(JSON_CREDENTIAL_RE, `$1"${REDACTED}"`).replace(QUERY_CREDENTIAL_RE, `$1${REDACTED}`);
|
|
14910
|
+
return input.replace(FILE_URL_TOKEN_RE, REDACTED).replace(TOKEN_RE, REDACTED).replace(PROVIDER_TOKEN_RE, `$1${REDACTED}`).replace(JSON_CREDENTIAL_RE, `$1"${REDACTED}"`).replace(QUERY_CREDENTIAL_RE, `$1${REDACTED}`);
|
|
14859
14911
|
}
|
|
14860
14912
|
function redactSecrets(value) {
|
|
14861
14913
|
if (isPublicIdentifier(value)) {
|
|
@@ -14869,9 +14921,9 @@ function redactSecrets(value) {
|
|
|
14869
14921
|
}
|
|
14870
14922
|
return redactTokenShapes(value);
|
|
14871
14923
|
}
|
|
14872
|
-
var UUID_RE, HEX_RE, WORKOS_ID_RE, TRACE_HEADER_RE, OPAQUE_SECRET_RE, BASE64_SECRET_RE, BASE64_MARKER_RE, TOKEN_RE, SENSITIVE_FIELDS, SENSITIVE_KEY_ALTERNATION, SENSITIVE_KEY_PATTERN, JSON_CREDENTIAL_RE, QUERY_CREDENTIAL_RE, REDACTED, PROVIDER_TOKEN_RE;
|
|
14873
|
-
var
|
|
14874
|
-
"../../packages/core/dist/chunk-
|
|
14924
|
+
var UUID_RE, HEX_RE, WORKOS_ID_RE, TRACE_HEADER_RE, OPAQUE_SECRET_RE, BASE64_SECRET_RE, BASE64_MARKER_RE, TOKEN_RE, SENSITIVE_FIELDS, SENSITIVE_KEY_ALTERNATION, SENSITIVE_KEY_PATTERN, JSON_CREDENTIAL_RE, QUERY_CREDENTIAL_RE, REDACTED, PROVIDER_TOKEN_RE, FILE_URL_TOKEN_RE;
|
|
14925
|
+
var init_chunk_WFQDSQJK = __esm({
|
|
14926
|
+
"../../packages/core/dist/chunk-WFQDSQJK.js"() {
|
|
14875
14927
|
"use strict";
|
|
14876
14928
|
UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
14877
14929
|
HEX_RE = /^[0-9a-f]{16,}$/;
|
|
@@ -14938,15 +14990,16 @@ var init_chunk_R7VSUKKX = __esm({
|
|
|
14938
14990
|
].join("|") + ")",
|
|
14939
14991
|
"g"
|
|
14940
14992
|
);
|
|
14993
|
+
FILE_URL_TOKEN_RE = /v[0-9]+\.[gp]\.[0-9]+\.[A-Za-z0-9_-]{43}\.[A-Za-z0-9_-]{43}/g;
|
|
14941
14994
|
}
|
|
14942
14995
|
});
|
|
14943
14996
|
|
|
14944
|
-
// ../../packages/core/dist/chunk-
|
|
14997
|
+
// ../../packages/core/dist/chunk-Y66JOKZI.js
|
|
14945
14998
|
var APP_ERROR_BRAND, AppError, 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;
|
|
14946
|
-
var
|
|
14947
|
-
"../../packages/core/dist/chunk-
|
|
14999
|
+
var init_chunk_Y66JOKZI = __esm({
|
|
15000
|
+
"../../packages/core/dist/chunk-Y66JOKZI.js"() {
|
|
14948
15001
|
"use strict";
|
|
14949
|
-
|
|
15002
|
+
init_chunk_WFQDSQJK();
|
|
14950
15003
|
APP_ERROR_BRAND = /* @__PURE__ */ Symbol.for("wayai.AppError");
|
|
14951
15004
|
AppError = class extends Error {
|
|
14952
15005
|
constructor(message, code, statusCode = 500, details) {
|
|
@@ -15057,112 +15110,112 @@ var init_chunk_TS4EYU3W = __esm({
|
|
|
15057
15110
|
var init_contracts = __esm({
|
|
15058
15111
|
"../../packages/core/dist/contracts/index.js"() {
|
|
15059
15112
|
"use strict";
|
|
15060
|
-
|
|
15061
|
-
|
|
15113
|
+
init_chunk_NKLVUTFO();
|
|
15114
|
+
init_chunk_GLJSJX5R();
|
|
15062
15115
|
init_chunk_YVY2TZK2();
|
|
15063
15116
|
init_chunk_VXEAR36B();
|
|
15064
15117
|
init_chunk_RACEDHG6();
|
|
15065
15118
|
init_chunk_Q7KIQHAZ();
|
|
15119
|
+
init_chunk_ACKF2MVU();
|
|
15066
15120
|
init_chunk_WBFLPPDI();
|
|
15067
15121
|
init_chunk_IPXBFWUU();
|
|
15122
|
+
init_chunk_VZA6NHCH();
|
|
15123
|
+
init_chunk_IPDOHAZ5();
|
|
15068
15124
|
init_chunk_GPM7PE44();
|
|
15069
|
-
|
|
15125
|
+
init_chunk_VEERWOZ6();
|
|
15070
15126
|
init_chunk_ZC6YGHNX();
|
|
15071
|
-
|
|
15127
|
+
init_chunk_FPSDNS2E();
|
|
15072
15128
|
init_chunk_ZXK6N2HN();
|
|
15073
15129
|
init_chunk_Y7CFCYX4();
|
|
15130
|
+
init_chunk_VTFFO3RA();
|
|
15074
15131
|
init_chunk_5DGHIY7L();
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
init_chunk_BEOHBREG();
|
|
15078
|
-
init_chunk_IPDOHAZ5();
|
|
15132
|
+
init_chunk_TUHJ5PQH();
|
|
15133
|
+
init_chunk_SY6PLCPK();
|
|
15079
15134
|
init_chunk_YUZFHVB2();
|
|
15080
15135
|
init_chunk_I3O2RACG();
|
|
15081
15136
|
init_chunk_34LE6P7E();
|
|
15082
|
-
|
|
15083
|
-
|
|
15137
|
+
init_chunk_LKBSHANA();
|
|
15138
|
+
init_chunk_SGYHEHIO();
|
|
15084
15139
|
init_chunk_C4HEZ7ZI();
|
|
15085
15140
|
init_chunk_IR2NOSI3();
|
|
15086
15141
|
init_chunk_EA23LSDS();
|
|
15087
|
-
|
|
15142
|
+
init_chunk_YULHXJ5M();
|
|
15143
|
+
init_chunk_V4FRPRH5();
|
|
15088
15144
|
init_chunk_LWMLR2WI();
|
|
15089
15145
|
init_chunk_ACGAI25T();
|
|
15090
15146
|
init_chunk_MH4O3YEX();
|
|
15091
|
-
|
|
15147
|
+
init_chunk_2NEZIDGC();
|
|
15092
15148
|
init_chunk_KSTYTQ7I();
|
|
15093
|
-
|
|
15149
|
+
init_chunk_E4DIIOOE();
|
|
15150
|
+
init_chunk_7CYHPF35();
|
|
15094
15151
|
init_chunk_BPCNB5RT();
|
|
15095
|
-
|
|
15096
|
-
|
|
15097
|
-
|
|
15152
|
+
init_chunk_ZANV2H25();
|
|
15153
|
+
init_chunk_DEHF7GCX();
|
|
15154
|
+
init_chunk_VQIITUAJ();
|
|
15098
15155
|
init_chunk_JDJ4EUOL();
|
|
15099
15156
|
init_chunk_ZLJP22IA();
|
|
15100
15157
|
init_chunk_6IKFJ3GW();
|
|
15101
15158
|
init_chunk_6J742GLA();
|
|
15102
15159
|
init_chunk_ZVXO3XL6();
|
|
15103
|
-
|
|
15104
|
-
|
|
15105
|
-
|
|
15106
|
-
|
|
15160
|
+
init_chunk_2PZIF56U();
|
|
15161
|
+
init_chunk_UEJOG2Q7();
|
|
15162
|
+
init_chunk_JO53JB35();
|
|
15163
|
+
init_chunk_NTWMYWVH();
|
|
15107
15164
|
init_chunk_LQY2OCQL();
|
|
15108
|
-
|
|
15165
|
+
init_chunk_2LE72ZC7();
|
|
15109
15166
|
init_chunk_3HSB6J4J();
|
|
15110
15167
|
init_chunk_IG6QBZMA();
|
|
15111
|
-
|
|
15168
|
+
init_chunk_YWZFB34T();
|
|
15112
15169
|
init_chunk_PZPOUXJR();
|
|
15113
15170
|
init_chunk_LBDH7LCG();
|
|
15114
15171
|
init_chunk_4LXDRTO4();
|
|
15115
|
-
|
|
15116
|
-
|
|
15117
|
-
|
|
15118
|
-
init_chunk_CGQWQYWY();
|
|
15119
|
-
init_chunk_VZTO5ZM7();
|
|
15172
|
+
init_chunk_ILGGO4PT();
|
|
15173
|
+
init_chunk_EY6R7A6I();
|
|
15174
|
+
init_chunk_MHTDXCCS();
|
|
15120
15175
|
init_chunk_NVKU5PPQ();
|
|
15121
|
-
|
|
15176
|
+
init_chunk_I5J3BRUB();
|
|
15122
15177
|
init_chunk_FECLIZTY();
|
|
15123
15178
|
init_chunk_BFG4ZWR4();
|
|
15124
15179
|
init_chunk_YZAIZJTO();
|
|
15125
|
-
|
|
15180
|
+
init_chunk_R555PBKV();
|
|
15126
15181
|
init_chunk_3VHMUK4W();
|
|
15127
15182
|
init_chunk_AMG6HKUQ();
|
|
15128
|
-
|
|
15183
|
+
init_chunk_XQBFXSYS();
|
|
15129
15184
|
init_chunk_OMPT4ZHR();
|
|
15130
|
-
|
|
15131
|
-
init_chunk_UEJOG2Q7();
|
|
15132
|
-
init_chunk_QUKTIJKE();
|
|
15185
|
+
init_chunk_KKA642DR();
|
|
15133
15186
|
init_chunk_SOJMWM63();
|
|
15134
15187
|
init_chunk_WEXVYJ5H();
|
|
15135
|
-
|
|
15188
|
+
init_chunk_C552TQHI();
|
|
15136
15189
|
init_chunk_5XEJSR22();
|
|
15137
15190
|
init_chunk_IBL7FANV();
|
|
15138
|
-
|
|
15139
|
-
|
|
15191
|
+
init_chunk_5VL6LBFD();
|
|
15192
|
+
init_chunk_7FHLACC7();
|
|
15140
15193
|
init_chunk_HZ6CADSY();
|
|
15141
15194
|
init_chunk_MIWZOSPI();
|
|
15142
15195
|
init_chunk_2ISUBJG7();
|
|
15143
15196
|
init_chunk_C2UEA2KW();
|
|
15144
15197
|
init_chunk_S4VDZ7PZ();
|
|
15145
|
-
init_chunk_LD6U3CDG();
|
|
15146
15198
|
init_chunk_CJ3L46X6();
|
|
15199
|
+
init_chunk_LD6U3CDG();
|
|
15147
15200
|
init_chunk_6TSQ5HXC();
|
|
15148
|
-
|
|
15201
|
+
init_chunk_WNLWNFHH();
|
|
15149
15202
|
init_chunk_T7KQKDET();
|
|
15150
15203
|
init_chunk_L5F7ZOUJ();
|
|
15151
|
-
|
|
15152
|
-
|
|
15204
|
+
init_chunk_Y66JOKZI();
|
|
15205
|
+
init_chunk_WFQDSQJK();
|
|
15153
15206
|
}
|
|
15154
15207
|
});
|
|
15155
15208
|
|
|
15156
|
-
// ../../packages/core/dist/chunk-
|
|
15209
|
+
// ../../packages/core/dist/chunk-R2F7OLXZ.js
|
|
15157
15210
|
function identifyTokenType(token) {
|
|
15158
15211
|
if (token.startsWith("way_")) return "way_token";
|
|
15159
15212
|
if (token.startsWith("eyJ")) return "jwt";
|
|
15160
15213
|
return "unknown";
|
|
15161
15214
|
}
|
|
15162
|
-
var
|
|
15163
|
-
"../../packages/core/dist/chunk-
|
|
15215
|
+
var init_chunk_R2F7OLXZ = __esm({
|
|
15216
|
+
"../../packages/core/dist/chunk-R2F7OLXZ.js"() {
|
|
15164
15217
|
"use strict";
|
|
15165
|
-
|
|
15218
|
+
init_chunk_5VL6LBFD();
|
|
15166
15219
|
}
|
|
15167
15220
|
});
|
|
15168
15221
|
|
|
@@ -15282,15 +15335,15 @@ var UUID_RE2, WAYAI_WORKSPACE_LAYOUT;
|
|
|
15282
15335
|
var init_dist = __esm({
|
|
15283
15336
|
"../../packages/core/dist/index.js"() {
|
|
15284
15337
|
"use strict";
|
|
15285
|
-
|
|
15338
|
+
init_chunk_KKA642DR();
|
|
15286
15339
|
init_chunk_SOJMWM63();
|
|
15287
15340
|
init_chunk_WEXVYJ5H();
|
|
15288
|
-
|
|
15341
|
+
init_chunk_C552TQHI();
|
|
15289
15342
|
init_chunk_5XEJSR22();
|
|
15290
15343
|
init_chunk_IBL7FANV();
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
|
|
15344
|
+
init_chunk_R2F7OLXZ();
|
|
15345
|
+
init_chunk_5VL6LBFD();
|
|
15346
|
+
init_chunk_7FHLACC7();
|
|
15294
15347
|
init_chunk_HZ6CADSY();
|
|
15295
15348
|
init_chunk_MIWZOSPI();
|
|
15296
15349
|
init_chunk_ERFR7IRY();
|
|
@@ -15299,15 +15352,15 @@ var init_dist = __esm({
|
|
|
15299
15352
|
init_chunk_RPGBR5IN();
|
|
15300
15353
|
init_chunk_C2UEA2KW();
|
|
15301
15354
|
init_chunk_S4VDZ7PZ();
|
|
15302
|
-
init_chunk_LD6U3CDG();
|
|
15303
15355
|
init_chunk_CJ3L46X6();
|
|
15356
|
+
init_chunk_LD6U3CDG();
|
|
15304
15357
|
init_chunk_6TSQ5HXC();
|
|
15305
|
-
|
|
15358
|
+
init_chunk_WNLWNFHH();
|
|
15306
15359
|
init_chunk_BF4WRSOQ();
|
|
15307
15360
|
init_chunk_T7KQKDET();
|
|
15308
15361
|
init_chunk_L5F7ZOUJ();
|
|
15309
|
-
|
|
15310
|
-
|
|
15362
|
+
init_chunk_Y66JOKZI();
|
|
15363
|
+
init_chunk_WFQDSQJK();
|
|
15311
15364
|
UUID_RE2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
15312
15365
|
WAYAI_WORKSPACE_LAYOUT = {
|
|
15313
15366
|
/** Product-namespaced root dir at the git root. */
|
|
@@ -19711,7 +19764,7 @@ var init_whoami = __esm({
|
|
|
19711
19764
|
var init_constants = __esm({
|
|
19712
19765
|
"../../packages/core/dist/constants.js"() {
|
|
19713
19766
|
"use strict";
|
|
19714
|
-
|
|
19767
|
+
init_chunk_WNLWNFHH();
|
|
19715
19768
|
}
|
|
19716
19769
|
});
|
|
19717
19770
|
|