SuperAPI AI 工具集

space

数据与分析

查看项目

更新于 10-15 19:57

技能介绍

用途:DID Space 是 Arc 的持久化数据平面,提供路径寻址对象,让应用把它当作默认持久化层,从而不必再单独搭建数据库加对象存储。它是针对该模型优化的 AFS 实现,而非普通云盘。

主要能力:以路径对象作为一等应用数据(内容对象)而非附属文件;支持 /spaces、/user、/instance 等路径投影;提供离线安全的 CRUD 命令面。

使用方式:先启动 daemon,再优先使用实时 explain 与 /.knowledge。常用命令包括 arc space --help、arc space list、arc afs ls /spaces --instance <name>、arc afs explain /spaces --instance <name>、arc afs read /.knowledge --instance <name>;按空间下钻可用 arc afs ls /spaces/<scope> --instance <name> 与 arc afs explain /spaces/<scope> --instance <name>。本地文件夹空间可用 arc space init <dir>、arc space check、arc space path <app-did> [subpath]、arc space tree <app-did>。写入仍走 AFS,例如 arc afs write /user/notes/hello.md "hello from space" --instance <name>,随后可 read、ls。除默认实例外,每个 arc afs 调用需加 --instance <name>。安装:arc skill install space。

适用场景:需要存储、列出、持久化应用状态,且希望复用 Space 与 AFS API 的任务。

限制:不要在此重新发明 CID 或认证协议;不要臆造本体或子命令,具体标志需用 --help 确认;索引与搜索是独立层,见 arc skill show index;路径操作与 WM 见 arc skill show afs;daemon 见 arc skill show daemon。