@work-shape/catalyst-cli 0.8.0-rc.37 → 0.8.0-rc.39
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.d.ts +10 -3
- package/dist/index.js +31 -12
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -72,10 +72,11 @@ interface AgentConfig {
|
|
|
72
72
|
*/
|
|
73
73
|
ownServers?: boolean;
|
|
74
74
|
/**
|
|
75
|
-
* The other agents this agent may start as subagents with `run_agent`, besides itself
|
|
76
|
-
* is started only where the person may use it in the
|
|
75
|
+
* The other agents this agent may start as subagents with `run_agent`, besides itself, or
|
|
76
|
+
* `"*"` for every agent (CR-3m). Each is started only where the person may use it in the
|
|
77
|
+
* conversation's workspace.
|
|
77
78
|
*/
|
|
78
|
-
subagentNames?: string[];
|
|
79
|
+
subagentNames?: string[] | "*";
|
|
79
80
|
skillNames: string[];
|
|
80
81
|
/**
|
|
81
82
|
* The Knowledge Bases the agent answers from, by id. However many it lists, the agent has one
|
|
@@ -13546,6 +13547,7 @@ declare const connectionOperations: {
|
|
|
13546
13547
|
}>;
|
|
13547
13548
|
lastTestedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
13548
13549
|
lastErrorCode: z.ZodOptional<z.ZodString>;
|
|
13550
|
+
recordedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
13549
13551
|
secret: z.ZodObject<{
|
|
13550
13552
|
state: z.ZodEnum<{
|
|
13551
13553
|
set: "set";
|
|
@@ -19094,6 +19096,11 @@ declare const conversationOperations: {
|
|
|
19094
19096
|
parentRunId: z.ZodString;
|
|
19095
19097
|
toolCallId: z.ZodString;
|
|
19096
19098
|
agentName: z.ZodString;
|
|
19099
|
+
agentDisplayName: z.ZodOptional<z.ZodString>;
|
|
19100
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
19101
|
+
model: z.ZodString;
|
|
19102
|
+
label: z.ZodOptional<z.ZodString>;
|
|
19103
|
+
}, z.core.$strip>>;
|
|
19097
19104
|
description: z.ZodString;
|
|
19098
19105
|
status: z.ZodEnum<{
|
|
19099
19106
|
failed: "failed";
|
package/dist/index.js
CHANGED
|
@@ -638,7 +638,8 @@ var KNOWLEDGE_EMBEDDING_STATES = [
|
|
|
638
638
|
"none"
|
|
639
639
|
];
|
|
640
640
|
var KNOWLEDGE_DOCUMENT_STATES = ["pending", "indexed", "failed"];
|
|
641
|
-
var KNOWLEDGE_FILE_MAX_BYTES =
|
|
641
|
+
var KNOWLEDGE_FILE_MAX_BYTES = 100 * 1024 * 1024;
|
|
642
|
+
var KNOWLEDGE_DOCUMENT_TEXT_MAX_BYTES = 25 * 1024 * 1024;
|
|
642
643
|
var KNOWLEDGE_FILE_MAX_BYTES_CEILING = 256 * 1024 * 1024;
|
|
643
644
|
var KNOWLEDGE_DOCUMENT_FAILURE_CODES = [
|
|
644
645
|
// The extractor does not read the file's format.
|
|
@@ -1051,12 +1052,16 @@ var agentConfigSchema = z.object({
|
|
|
1051
1052
|
*/
|
|
1052
1053
|
ownServers: z.boolean().optional(),
|
|
1053
1054
|
/**
|
|
1054
|
-
* The agents this agent may start as subagents through `run_agent`, beside itself
|
|
1055
|
-
* agent whose `toolNames` lists
|
|
1055
|
+
* The agents this agent may start as subagents through `run_agent`, beside itself, or `"*"`
|
|
1056
|
+
* for every agent the person may use (CR-3m). Only an agent whose `toolNames` lists
|
|
1057
|
+
* `run_agent` starts any.
|
|
1056
1058
|
*/
|
|
1057
|
-
subagentNames: z.
|
|
1058
|
-
|
|
1059
|
-
|
|
1059
|
+
subagentNames: z.union([
|
|
1060
|
+
z.literal("*"),
|
|
1061
|
+
z.array(agentNameSchema).refine((names2) => new Set(names2).size === names2.length, {
|
|
1062
|
+
message: "A subagent is listed once"
|
|
1063
|
+
})
|
|
1064
|
+
]).optional(),
|
|
1060
1065
|
skillNames: z.array(skillNameSchema).default([]),
|
|
1061
1066
|
knowledgeBases: z.array(z.string().min(1)).refine((names2) => new Set(names2).size === names2.length, {
|
|
1062
1067
|
message: "A Knowledge Base is listed once"
|
|
@@ -1350,9 +1355,12 @@ var operationBatchResultSchema = z2.strictObject({
|
|
|
1350
1355
|
var id = z3.string().min(1).max(200);
|
|
1351
1356
|
var count = z3.number().int().min(0);
|
|
1352
1357
|
var hash = z3.string().regex(/^[a-f0-9]{64}$/u);
|
|
1353
|
-
var text = z3.string().max(
|
|
1354
|
-
|
|
1355
|
-
|
|
1358
|
+
var text = z3.string().max(KNOWLEDGE_DOCUMENT_TEXT_MAX_BYTES).refine(
|
|
1359
|
+
(value) => new TextEncoder().encode(value).byteLength <= KNOWLEDGE_DOCUMENT_TEXT_MAX_BYTES,
|
|
1360
|
+
{
|
|
1361
|
+
message: `Document text exceeds ${KNOWLEDGE_DOCUMENT_TEXT_MAX_BYTES} bytes`
|
|
1362
|
+
}
|
|
1363
|
+
);
|
|
1356
1364
|
var KNOWLEDGE_ORIGIN_LINK_MAX_CHARS = 4e3;
|
|
1357
1365
|
var KNOWLEDGE_ORIGIN_LINK_CHANGES = ["set", "cleared"];
|
|
1358
1366
|
var CREDENTIAL_PARAMETERS = /* @__PURE__ */ new Set([
|
|
@@ -1482,7 +1490,7 @@ var knowledgeProcessorOutputSchema = processorMetadataSchema.extend({
|
|
|
1482
1490
|
(size, page2) => size + new TextEncoder().encode(page2.text).byteLength,
|
|
1483
1491
|
0
|
|
1484
1492
|
);
|
|
1485
|
-
if (bytes >
|
|
1493
|
+
if (bytes > KNOWLEDGE_DOCUMENT_TEXT_MAX_BYTES)
|
|
1486
1494
|
context.addIssue({
|
|
1487
1495
|
code: "custom",
|
|
1488
1496
|
path: ["pages"],
|
|
@@ -2849,7 +2857,7 @@ import { z as z68 } from "zod";
|
|
|
2849
2857
|
// ../api-contract/package.json
|
|
2850
2858
|
var package_default = {
|
|
2851
2859
|
name: "@work-shape/catalyst-api-contract",
|
|
2852
|
-
version: "0.8.0-rc.
|
|
2860
|
+
version: "0.8.0-rc.39",
|
|
2853
2861
|
license: "MIT",
|
|
2854
2862
|
repository: {
|
|
2855
2863
|
type: "git",
|
|
@@ -4577,7 +4585,9 @@ var assetSummarySchema = z30.object({
|
|
|
4577
4585
|
/**
|
|
4578
4586
|
* What the kind says of the asset beside its name, by the kind's own keys: a Connection
|
|
4579
4587
|
* names its `connectorType`, its `origin`, whether it is `enabled` and, where it has one, its
|
|
4580
|
-
* `service`, which picks its icon. Connection lists also carry runtime `health
|
|
4588
|
+
* `service`, which picks its icon. Connection lists also carry runtime `health`, and of a
|
|
4589
|
+
* person's own server `ownServer`: `reader` where it is the reader's own, `other` where it is
|
|
4590
|
+
* another person's, then with `ownerLabel`, its owner's name (empty for a deleted account). A skill names its
|
|
4581
4591
|
* `origin`, who ships it: `instance` for a skill of the instance's own, `release` for one a
|
|
4582
4592
|
* release ships. It names its `summary`, the sentence for people, where it has one. A skill
|
|
4583
4593
|
* a release ships also names its `icon`, a key of the interface's icon registry; no other
|
|
@@ -6470,6 +6480,10 @@ var subagentSummarySchema = z33.object({
|
|
|
6470
6480
|
parentRunId: z33.string(),
|
|
6471
6481
|
toolCallId: z33.string(),
|
|
6472
6482
|
agentName: z33.string(),
|
|
6483
|
+
/** The agent's display name in the reader's locale; its name for an agent that is gone. */
|
|
6484
|
+
agentDisplayName: z33.string().optional(),
|
|
6485
|
+
/** The model the subagent runs on: its id, and the label release config gives it. */
|
|
6486
|
+
model: z33.object({ model: z33.string(), label: z33.string().optional() }).optional(),
|
|
6473
6487
|
description: z33.string(),
|
|
6474
6488
|
status: agentRunStatusSchema,
|
|
6475
6489
|
startedAt: timestampSchema,
|
|
@@ -9099,6 +9113,11 @@ var connectionDetailSchema = z44.object({
|
|
|
9099
9113
|
health: z44.enum(CONNECTION_HEALTH_STATES),
|
|
9100
9114
|
lastTestedAt: timestampSchema.optional(),
|
|
9101
9115
|
lastErrorCode: z44.string().optional(),
|
|
9116
|
+
/**
|
|
9117
|
+
* When the instance last wrote the Connection's state: a test, a discovery, a call that
|
|
9118
|
+
* failed, or a write that reset it. Absent while nothing was written.
|
|
9119
|
+
*/
|
|
9120
|
+
recordedAt: timestampSchema.optional(),
|
|
9102
9121
|
secret: connectionSecretStateSchema,
|
|
9103
9122
|
/** One credential for everyone who may use the Connection. The page says so. */
|
|
9104
9123
|
sharedCredential: z44.boolean(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@work-shape/catalyst-cli",
|
|
3
|
-
"version": "0.8.0-rc.
|
|
3
|
+
"version": "0.8.0-rc.39",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@types/node": "^24.13.1",
|
|
41
41
|
"tsup": "^8.5.1",
|
|
42
42
|
"typescript": "^6.0.3",
|
|
43
|
-
"@work-shape/catalyst-api-
|
|
44
|
-
"@work-shape/catalyst-api-
|
|
45
|
-
"@work-shape/catalyst-asset-schemas": "0.8.0-rc.
|
|
43
|
+
"@work-shape/catalyst-api-contract": "0.8.0-rc.39",
|
|
44
|
+
"@work-shape/catalyst-api-client": "0.8.0-rc.39",
|
|
45
|
+
"@work-shape/catalyst-asset-schemas": "0.8.0-rc.39"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup",
|