@work-shape/catalyst-asset-schemas 0.8.0-rc.36 → 0.8.0-rc.38
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 +5 -4
- package/dist/index.js +9 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,10 +52,11 @@ interface AgentConfig {
|
|
|
52
52
|
*/
|
|
53
53
|
ownServers?: boolean;
|
|
54
54
|
/**
|
|
55
|
-
* The other agents this agent may start as subagents with `run_agent`, besides itself
|
|
56
|
-
* is started only where the person may use it in the
|
|
55
|
+
* The other agents this agent may start as subagents with `run_agent`, besides itself, or
|
|
56
|
+
* `"*"` for every agent (CR-3m). Each is started only where the person may use it in the
|
|
57
|
+
* conversation's workspace.
|
|
57
58
|
*/
|
|
58
|
-
subagentNames?: string[];
|
|
59
|
+
subagentNames?: string[] | "*";
|
|
59
60
|
skillNames: string[];
|
|
60
61
|
/**
|
|
61
62
|
* The Knowledge Bases the agent answers from, by id. However many it lists, the agent has one
|
|
@@ -1056,7 +1057,7 @@ declare const agentConfigSchema: z.ZodObject<{
|
|
|
1056
1057
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
1057
1058
|
toolNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1058
1059
|
ownServers: z.ZodOptional<z.ZodBoolean>;
|
|
1059
|
-
subagentNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1060
|
+
subagentNames: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
1060
1061
|
skillNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1061
1062
|
knowledgeBases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1062
1063
|
initialPrompts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -1267,12 +1267,16 @@ var agentConfigSchema = z.object({
|
|
|
1267
1267
|
*/
|
|
1268
1268
|
ownServers: z.boolean().optional(),
|
|
1269
1269
|
/**
|
|
1270
|
-
* The agents this agent may start as subagents through `run_agent`, beside itself
|
|
1271
|
-
* agent whose `toolNames` lists
|
|
1270
|
+
* The agents this agent may start as subagents through `run_agent`, beside itself, or `"*"`
|
|
1271
|
+
* for every agent the person may use (CR-3m). Only an agent whose `toolNames` lists
|
|
1272
|
+
* `run_agent` starts any.
|
|
1272
1273
|
*/
|
|
1273
|
-
subagentNames: z.
|
|
1274
|
-
|
|
1275
|
-
|
|
1274
|
+
subagentNames: z.union([
|
|
1275
|
+
z.literal("*"),
|
|
1276
|
+
z.array(agentNameSchema).refine((names) => new Set(names).size === names.length, {
|
|
1277
|
+
message: "A subagent is listed once"
|
|
1278
|
+
})
|
|
1279
|
+
]).optional(),
|
|
1276
1280
|
skillNames: z.array(skillNameSchema).default([]),
|
|
1277
1281
|
knowledgeBases: z.array(z.string().min(1)).refine((names) => new Set(names).size === names.length, {
|
|
1278
1282
|
message: "A Knowledge Base is listed once"
|