diff --git a/packages/cli-uwf/package.json b/packages/cli-uwf/package.json index e4dbf6f..baef34b 100644 --- a/packages/cli-uwf/package.json +++ b/packages/cli-uwf/package.json @@ -11,8 +11,8 @@ "uwf": "./src/cli.ts" }, "dependencies": { - "@uncaged/json-cas": "^0.1.3", - "@uncaged/json-cas-fs": "^0.1.2", + "@uncaged/json-cas": "^0.2.0", + "@uncaged/json-cas-fs": "^0.2.0", "@uncaged/uwf-agent-kit": "workspace:^", "@uncaged/uwf-moderator": "workspace:^", "@uncaged/uwf-protocol": "workspace:^", diff --git a/packages/cli-uwf/src/commands/cas.ts b/packages/cli-uwf/src/commands/cas.ts index a580dc5..1a7bec6 100644 --- a/packages/cli-uwf/src/commands/cas.ts +++ b/packages/cli-uwf/src/commands/cas.ts @@ -100,10 +100,10 @@ export async function cmdCasSchemaList( // Include meta-schema itself entries.push({ hash: metaHash, title: "(meta-schema)" }); - for (const hash of store.list()) { + for (const hash of store.listByType(metaHash)) { if (hash === metaHash) continue; const node = store.get(hash); - if (node !== null && node.type === metaHash) { + if (node !== null) { const schema = node.payload as JSONSchema; const title = (schema.title as string | undefined) ?? diff --git a/packages/uwf-agent-kit/package.json b/packages/uwf-agent-kit/package.json index 970989c..ab23e2b 100644 --- a/packages/uwf-agent-kit/package.json +++ b/packages/uwf-agent-kit/package.json @@ -18,8 +18,8 @@ "test": "bun test" }, "dependencies": { - "@uncaged/json-cas": "^0.1.3", - "@uncaged/json-cas-fs": "^0.1.2", + "@uncaged/json-cas": "^0.2.0", + "@uncaged/json-cas-fs": "^0.2.0", "@uncaged/uwf-protocol": "workspace:^", "dotenv": "^16.6.1", "yaml": "^2.8.4" diff --git a/packages/uwf-protocol/package.json b/packages/uwf-protocol/package.json index 604b230..4350656 100644 --- a/packages/uwf-protocol/package.json +++ b/packages/uwf-protocol/package.json @@ -15,7 +15,7 @@ } }, "dependencies": { -"@uncaged/json-cas-fs": "^0.1.3" +"@uncaged/json-cas-fs": "^0.2.0" }, "devDependencies": { "typescript": "^5.8.3"