perstack 0.0.118 → 0.0.119

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.
package/dist/bin/cli.js CHANGED
@@ -16304,7 +16304,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
16304
16304
  //#endregion
16305
16305
  //#region ../base/package.json
16306
16306
  var name$6 = "@perstack/base";
16307
- var version$2 = "0.0.78";
16307
+ var version$2 = "0.0.79";
16308
16308
 
16309
16309
  //#endregion
16310
16310
  //#region ../base/src/tools/todo.ts
@@ -16376,8 +16376,23 @@ function registerClearTodo(server) {
16376
16376
  //#region ../base/src/tools/attempt-completion.ts
16377
16377
  async function attemptCompletion() {
16378
16378
  const remainingTodos = getRemainingTodos();
16379
- if (remainingTodos.length > 0) return { remainingTodos };
16380
- return {};
16379
+ if (remainingTodos.length > 0) return {
16380
+ isError: true,
16381
+ content: [{
16382
+ type: "text",
16383
+ text: [
16384
+ "Cannot complete: there are incomplete todos remaining.",
16385
+ "",
16386
+ "Remaining todos:",
16387
+ remainingTodos.map((t) => ` - [id=${t.id}] ${t.title}`).join("\n"),
16388
+ "",
16389
+ "You must either:",
16390
+ "1. Complete the remaining work, then mark each todo as done using the todo tool (e.g., todo({ completedTodos: [id1, id2] }))",
16391
+ "2. If the work for a todo is already done, mark it as completed using the todo tool before calling attemptCompletion again"
16392
+ ].join("\n")
16393
+ }]
16394
+ };
16395
+ return successToolResult({});
16381
16396
  }
16382
16397
  function registerAttemptCompletion(server) {
16383
16398
  server.registerTool("attemptCompletion", {
@@ -16386,7 +16401,7 @@ function registerAttemptCompletion(server) {
16386
16401
  inputSchema: object$2({ result: string().optional() }).strict()
16387
16402
  }, async () => {
16388
16403
  try {
16389
- return successToolResult(await attemptCompletion());
16404
+ return await attemptCompletion();
16390
16405
  } catch (e) {
16391
16406
  if (e instanceof Error) return errorToolResult(e);
16392
16407
  throw e;
@@ -21312,7 +21327,7 @@ async function expertVersionsHandler(scopeName, options) {
21312
21327
 
21313
21328
  //#endregion
21314
21329
  //#region ../../packages/runtime/package.json
21315
- var version$1 = "0.0.132";
21330
+ var version$1 = "0.0.133";
21316
21331
 
21317
21332
  //#endregion
21318
21333
  //#region ../../packages/runtime/src/helpers/usage.ts
@@ -122881,7 +122896,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
122881
122896
  //#endregion
122882
122897
  //#region package.json
122883
122898
  var name = "perstack";
122884
- var version = "0.0.118";
122899
+ var version = "0.0.119";
122885
122900
  var description = "PerStack CLI";
122886
122901
 
122887
122902
  //#endregion