@plumeai/plugin-sdk 0.3.0 → 0.4.0

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.
@@ -824,6 +824,67 @@ export declare const en: {
824
824
  other: string;
825
825
  };
826
826
  "step.separator": string;
827
+ "toolNow.view": string;
828
+ "toolNow.list": string;
829
+ "toolNow.find": string;
830
+ "toolNow.search": string;
831
+ "toolNow.create": string;
832
+ "toolNow.modify": string;
833
+ "toolNow.command": string;
834
+ "toolDone.view": string;
835
+ "toolDone.list": string;
836
+ "toolDone.find": string;
837
+ "toolDone.search": string;
838
+ "toolDone.create": string;
839
+ "toolDone.modify": string;
840
+ "toolDone.command": string;
841
+ "toolNowBare.view": string;
842
+ "toolNowBare.list": string;
843
+ "toolNowBare.find": string;
844
+ "toolNowBare.search": string;
845
+ "toolNowBare.create": string;
846
+ "toolNowBare.modify": string;
847
+ "toolNowBare.command": string;
848
+ "toolDoneBare.view": string;
849
+ "toolDoneBare.list": string;
850
+ "toolDoneBare.find": string;
851
+ "toolDoneBare.search": string;
852
+ "toolDoneBare.create": string;
853
+ "toolDoneBare.modify": string;
854
+ "toolDoneBare.command": string;
855
+ "toolSum.view": {
856
+ one: string;
857
+ other: string;
858
+ };
859
+ "toolSum.list": {
860
+ one: string;
861
+ other: string;
862
+ };
863
+ "toolSum.find": {
864
+ one: string;
865
+ other: string;
866
+ };
867
+ "toolSum.search": {
868
+ one: string;
869
+ other: string;
870
+ };
871
+ "toolSum.create": {
872
+ one: string;
873
+ other: string;
874
+ };
875
+ "toolSum.modify": {
876
+ one: string;
877
+ other: string;
878
+ };
879
+ "toolSum.command": {
880
+ one: string;
881
+ other: string;
882
+ };
883
+ "toolSum.failed": string;
884
+ "toolSum.separator": string;
885
+ "toolRow.failed": string;
886
+ "toolRow.noOutput": string;
887
+ "toolRow.running": string;
827
888
  "conversation.showEarlier": {
828
889
  one: string;
829
890
  other: string;
@@ -731,6 +731,46 @@ export declare const zhCN: {
731
731
  readonly "tools.answeredBy": "由 {name} 代答";
732
732
  readonly "step.thinking": "思考 {n} 次";
733
733
  readonly "step.separator": " · ";
734
+ readonly "toolNow.view": "正在查看";
735
+ readonly "toolNow.list": "正在浏览";
736
+ readonly "toolNow.find": "正在查找";
737
+ readonly "toolNow.search": "正在搜索";
738
+ readonly "toolNow.create": "正在新建";
739
+ readonly "toolNow.modify": "正在修改";
740
+ readonly "toolNow.command": "正在运行";
741
+ readonly "toolDone.view": "查看";
742
+ readonly "toolDone.list": "浏览";
743
+ readonly "toolDone.find": "查找";
744
+ readonly "toolDone.search": "搜索";
745
+ readonly "toolDone.create": "新建";
746
+ readonly "toolDone.modify": "修改";
747
+ readonly "toolDone.command": "运行";
748
+ readonly "toolNowBare.view": "正在查看文件";
749
+ readonly "toolNowBare.list": "正在浏览目录";
750
+ readonly "toolNowBare.find": "正在查找文件";
751
+ readonly "toolNowBare.search": "正在搜索内容";
752
+ readonly "toolNowBare.create": "正在新建文件";
753
+ readonly "toolNowBare.modify": "正在修改文件";
754
+ readonly "toolNowBare.command": "正在运行命令";
755
+ readonly "toolDoneBare.view": "查看文件";
756
+ readonly "toolDoneBare.list": "浏览目录";
757
+ readonly "toolDoneBare.find": "查找文件";
758
+ readonly "toolDoneBare.search": "搜索内容";
759
+ readonly "toolDoneBare.create": "新建文件";
760
+ readonly "toolDoneBare.modify": "修改文件";
761
+ readonly "toolDoneBare.command": "运行命令";
762
+ readonly "toolSum.view": "查看 {n} 个文件";
763
+ readonly "toolSum.list": "浏览 {n} 个目录";
764
+ readonly "toolSum.find": "查找文件 {n} 次";
765
+ readonly "toolSum.search": "搜索 {n} 次";
766
+ readonly "toolSum.create": "新建 {n} 个文件";
767
+ readonly "toolSum.modify": "修改 {n} 个文件";
768
+ readonly "toolSum.command": "运行 {n} 个命令";
769
+ readonly "toolSum.failed": "({n} 个失败)";
770
+ readonly "toolSum.separator": ",";
771
+ readonly "toolRow.failed": "失败";
772
+ readonly "toolRow.noOutput": "没有输出";
773
+ readonly "toolRow.running": "运行中";
734
774
  readonly "conversation.showEarlier": "显示更早的 {n} 轮(共 {total} 轮)";
735
775
  readonly "conversation.showEarlierRest": "显示更早的 {n} 轮";
736
776
  readonly "conversation.showLaterN": "显示后面的 {n} 轮";
@@ -838,9 +838,9 @@ export interface AgentService {
838
838
  listDirectory(sessionId: string, path: string): Promise<FileEntry[]>;
839
839
  /**
840
840
  * 在会话工作目录里找一个写得不全的路径:裸文件名(`approvals.ts`)或相对于某个子目录的路径。
841
- * 返回找到的绝对路径,按路径排好;跳过依赖和构建产物目录。
841
+ * 返回找到的绝对路径,按路径排好;跳过依赖和构建产物目录。绝对路径不找,本机有它就原样返回。
842
842
  */
843
- locateFiles(sessionId: string, relative: string): Promise<string[]>;
843
+ locateFiles(sessionId: string, written: string): Promise<string[]>;
844
844
  stop(sessionId: string): void;
845
845
  /** 答弹着的那张卡。对 `HumanRequest` 只认 `"reject"`(人不答),别的不理。 */
846
846
  respond(sessionId: string, toolCallId: string, decision: ApprovalDecision): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeai/plugin-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "写 Plume 插件用的类型、命令(新建、检查、构建、安装)、插件模板和给 agent 的 skill。随 Plume 应用带一份,也发在 npm 上(插件仓库按版本依赖)。",
5
5
  "license": "MIT",
6
6
  "repository": {