dsh-cohub 0.5.0 → 0.6.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.
@@ -168,7 +168,10 @@ function apply(ctx) {
168
168
  name: "co_stop",
169
169
  description: "停止一个正在运行的动态 Plugin。保留其定义、版本指针与审批记录,可以后续用 co_run 重新激活或回滚。要彻底删除用 co_remove。",
170
170
  parameters: { pluginId: { type: "string", required: true, description: "要停止的 Plugin ID" } },
171
- output: { schema: { type: "object", properties: { stopped: { type: "boolean" } }, additionalProperties: false } },
171
+ output: {
172
+ schema: { type: "object", properties: { stopped: { type: "boolean" } }, additionalProperties: false },
173
+ render: (_a, v) => [{ type: "text", text: JSON.stringify(v) }]
174
+ },
172
175
  async execute(args, exec) {
173
176
  await ctx.dynamicCordisRunner.stop(requireAgent(exec), args.pluginId);
174
177
  return { stopped: true };
@@ -178,7 +181,10 @@ function apply(ctx) {
178
181
  name: "co_remove",
179
182
  description: "彻底删除一个动态 Plugin:先停止运行、取消审批请求,然后删除所有版本与授权。执行后其 pluginId、packageId 和 @ 引用全部失效。要保留版本以便重新激活用 co_stop。",
180
183
  parameters: { pluginId: { type: "string", required: true, description: "要彻底删除的 Plugin ID" } },
181
- output: { schema: { type: "object", properties: { removed: { type: "boolean" } }, additionalProperties: false } },
184
+ output: {
185
+ schema: { type: "object", properties: { removed: { type: "boolean" } }, additionalProperties: false },
186
+ render: (_a, v) => [{ type: "text", text: JSON.stringify(v) }]
187
+ },
182
188
  async execute(args, exec) {
183
189
  await ctx.dynamicCordisRunner.undefine(requireAgent(exec), args.pluginId);
184
190
  return { removed: true };