fix: remove cas list, add title to schemas

- Remove uwf cas list (CAS grows unbounded, listing all hashes is useless)
- Add title to Workflow/StartNode/StepNode schemas so schema list shows names

小橘 🍊(NEKO Team)
This commit is contained in:
2026-05-18 12:54:00 +00:00
parent 3434e2b2be
commit c9010a024f
2 changed files with 3 additions and 9 deletions
-9
View File
@@ -15,7 +15,6 @@ import {
cmdCasCat,
cmdCasGet,
cmdCasHas,
cmdCasList,
cmdCasPut,
cmdCasRefs,
cmdCasSchemaGet,
@@ -222,14 +221,6 @@ cas
runAction(() => cmdCasHas(storageRoot, hash));
});
cas
.command("list")
.description("List all CAS hashes")
.action(() => {
const storageRoot = resolveStorageRoot();
runAction(() => cmdCasList(storageRoot));
});
cas
.command("refs")
.description("List direct CAS references from a node")
+3
View File
@@ -32,6 +32,7 @@ const TRANSITION: JSONSchema = {
};
export const WORKFLOW_SCHEMA: JSONSchema = {
title: "Workflow",
type: "object",
required: ["name", "description", "roles", "conditions", "graph"],
properties: {
@@ -57,6 +58,7 @@ export const WORKFLOW_SCHEMA: JSONSchema = {
};
export const START_NODE_SCHEMA: JSONSchema = {
title: "StartNode",
type: "object",
required: ["workflow", "prompt"],
properties: {
@@ -67,6 +69,7 @@ export const START_NODE_SCHEMA: JSONSchema = {
};
export const STEP_NODE_SCHEMA: JSONSchema = {
title: "StepNode",
type: "object",
required: ["start", "prev", "role", "output", "detail", "agent"],
properties: {