buckyos 0.7.183 → 0.7.185

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.
Files changed (33) hide show
  1. package/cli/dist/cli.mjs +115 -28
  2. package/cli/dist/cli.mjs.map +1 -1
  3. package/cli/modules/aiws.ts +93 -21
  4. package/cli/modules/aiws_place.ts +3 -1
  5. package/cli/modules/pikg_protocol.ts +1 -1
  6. package/cli/version.ts +1 -1
  7. package/dist/aiworkspace_client.d.ts +19 -5
  8. package/dist/aiworkspace_client.d.ts.map +1 -1
  9. package/dist/{aiws_bind-82bace11.js → aiws_bind-0654c24e.js} +2 -2
  10. package/dist/aiws_bind-0654c24e.js.map +1 -0
  11. package/dist/{aiws_bind-3b874f77.mjs → aiws_bind-0885ff99.mjs} +7 -5
  12. package/dist/aiws_bind-0885ff99.mjs.map +1 -0
  13. package/dist/aiws_ext.cjs +1 -1
  14. package/dist/aiws_ext.mjs +1 -1
  15. package/dist/{aiws_write-c2de498e.mjs → aiws_write-675664eb.mjs} +5 -3
  16. package/dist/{aiws_write-c2de498e.mjs.map → aiws_write-675664eb.mjs.map} +1 -1
  17. package/dist/{aiws_write-89b5cc2a.js → aiws_write-b0333ca1.js} +3 -3
  18. package/dist/{aiws_write-89b5cc2a.js.map → aiws_write-b0333ca1.js.map} +1 -1
  19. package/dist/aiws_write.d.ts +5 -1
  20. package/dist/aiws_write.d.ts.map +1 -1
  21. package/dist/browser.cjs +1 -1
  22. package/dist/browser.mjs +4 -4
  23. package/dist/{content_objid-dff803ff.js → content_objid-252bd154.js} +2 -2
  24. package/dist/{content_objid-dff803ff.js.map → content_objid-252bd154.js.map} +1 -1
  25. package/dist/{content_objid-a2cafba9.mjs → content_objid-39f4f273.mjs} +2 -2
  26. package/dist/{content_objid-a2cafba9.mjs.map → content_objid-39f4f273.mjs.map} +1 -1
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.mjs +4 -4
  29. package/dist/node.cjs +1 -1
  30. package/dist/node.mjs +3 -3
  31. package/package.json +1 -1
  32. package/dist/aiws_bind-3b874f77.mjs.map +0 -1
  33. package/dist/aiws_bind-82bace11.js.map +0 -1
package/cli/dist/cli.mjs CHANGED
@@ -4,7 +4,7 @@ import * as nodePath from "node:path";
4
4
  import { resolve as resolve$5, dirname as dirname$3 } from "node:path";
5
5
  import { BuckyOSSDK, RuntimeType, buckyos, namelib, VerifyHubClient, createAppInstanceId, parseSessionTokenClaims, ndn, verifyBundle, controlSkeleton, aiwsContentDigest, AIWS_MANIFEST_VERSION, AIWS_MANIFEST_FILE, taskMgrTaskEventPath, ndm_proxy, objectUrl as objectUrl$1, ExecutorCommandStream, AiwsFailure, viewerTimeZone, localDate, calendarOccurrences, ScheduleClient, resolveBindings, noUiDialogs, createOps, orderKeyBetween, bindingsPayload, AIWS_PROTOCOL_VERSION, BindFailure, aiwsTarget, watchControl, buildControl, pullControl, exportBundle, tableDelete, optionAdd, fieldAdd, tableSet, tableInsert, textAppend, textDeleteBlocks, textReplaceBlock, move, rename, setProps, NfspClient, AiwsSourceError, packBuildFiles, commitOps, templateDir, isSourcePath } from "buckyos/node";
6
6
  import * as provisionSdk from "buckyos/provision";
7
- import { AiccLlmClient, LLMComputeException, providerErrorFromRpc } from "buckyos/xllm";
7
+ import { providerErrorFromRpc, AiccLlmClient, LLMComputeException } from "buckyos/xllm";
8
8
  import { createHash } from "node:crypto";
9
9
  import { readFile, writeFile, readdir, stat, lstat, realpath, mkdtemp, rename as rename$1, rm, mkdir, chmod, symlink, copyFile, open } from "node:fs/promises";
10
10
  import { createReadStream, createWriteStream, existsSync } from "node:fs";
@@ -4653,6 +4653,7 @@ const EXT_TOOLS_RESERVED_COMMANDS = [
4653
4653
  "llm_understand_media",
4654
4654
  "materialize_resource",
4655
4655
  "ocr_image",
4656
+ "reflow",
4656
4657
  "remove_bg",
4657
4658
  "resume_aicc_task",
4658
4659
  "segment_image",
@@ -6115,7 +6116,7 @@ async function readSkillDirectory(root, limit) {
6115
6116
  await walk(realRoot, "");
6116
6117
  return { files, ignored };
6117
6118
  }
6118
- const PACKAGE_VERSION = "0.7.183";
6119
+ const PACKAGE_VERSION = "0.7.185";
6119
6120
  const TOOL_VERSION = PACKAGE_VERSION;
6120
6121
  const SDK_VERSION = PACKAGE_VERSION;
6121
6122
  const PROTOCOL_VERSION = "1";
@@ -13814,7 +13815,7 @@ const placeCommand = {
13814
13815
  const entities = (await call(ctx, "doc.outline", { workspace_id: ws })).entities;
13815
13816
  const byId = new Map(entities.map((e) => [e.entity_id, e]));
13816
13817
  const surface = byId.get(surfaceId);
13817
- if (!surface || surface.kind !== "surface") {
13818
+ if (!surface || surface.kind !== "surface" || surface.path_only) {
13818
13819
  throw new UsageError("AIWS_USAGE", `${surfaceId} is not a canvas of this workspace`);
13819
13820
  }
13820
13821
  const folderId = String(surface.content_folder_id ?? "");
@@ -14388,7 +14389,7 @@ async function markdownInput(input) {
14388
14389
  const tableCommand = {
14389
14390
  verb: "table",
14390
14391
  summary: "Write a table: `add <table> --values` (records), `set <table> <record_id> --values` (cells), `rm <table> <record_id>[,…]`, `field-add <table> --name --type`, `option-add <table> <field> <label>`",
14391
- description: '--values is JSON keyed by field name with display values (a select takes its label, a multi-select labels, a reference an entity id; null clears a cell on set); add takes an object or an array of them, "_id" naming a record id. Each change is expected at the version just read: a concurrent change of the same cell is a REVISION_CONFLICT (read again). field-add --type: text, number, decimal, boolean, date, datetime, select, multi_select, object_ref, currency, json; --options gives a select its labels.',
14392
+ description: '--values is JSON keyed by field name with display values (a select takes its label, a multi-select labels, a reference an entity id; null clears a cell on set); add takes an object or an array of them, "_id" naming a record id. Each change is expected at the version just read: a concurrent change of the same cell is a REVISION_CONFLICT (read again). field-add --type: text, number, decimal, boolean, date, datetime, select, multi_select, object_ref, currency, json; --options gives a select its labels; --default is what new records get when they do not give the field (a display value, like --values: a select takes its label; not on object_ref).',
14392
14393
  positionals: [
14393
14394
  { name: "action", description: "add | set | rm | field-add | option-add", required: true },
14394
14395
  { name: "table", description: `The table: ${PATH_HELP}`, required: true },
@@ -14400,7 +14401,8 @@ const tableCommand = {
14400
14401
  { name: "values", property: "values", description: "add / set: JSON keyed by field name", type: "string" },
14401
14402
  { name: "name", property: "name", description: "field-add: the field name", type: "string" },
14402
14403
  { name: "type", property: "type", description: "field-add: the field type", type: "string", enum: ["text", "number", "decimal", "boolean", "date", "datetime", "select", "multi_select", "object_ref", "currency", "json"] },
14403
- { name: "options", property: "options", description: "field-add: option labels of a select, a JSON array or comma-separated", type: "string" }
14404
+ { name: "options", property: "options", description: "field-add: option labels of a select, a JSON array or comma-separated", type: "string" },
14405
+ { name: "default", property: "default", description: "field-add: the value new records get when they do not give the field (display form)", type: "string" }
14404
14406
  ],
14405
14407
  inputSchema: workspaceInput({
14406
14408
  action: { type: "string", enum: ["add", "set", "rm", "field-add", "option-add"] },
@@ -14410,7 +14412,8 @@ const tableCommand = {
14410
14412
  values: { type: "string" },
14411
14413
  name: { type: "string" },
14412
14414
  type: { type: "string" },
14413
- options: { type: "string" }
14415
+ options: { type: "string" },
14416
+ default: { type: "string" }
14414
14417
  }, ["action", "table"]),
14415
14418
  outputSchema: OBJECT_OUTPUT,
14416
14419
  resultSchemaVersion: 1,
@@ -14422,6 +14425,7 @@ const tableCommand = {
14422
14425
  `buckyos aiws table set /data/销售 r123 --values '{"状态":"已完成"}' --workspace ws_abc`,
14423
14426
  "buckyos aiws table rm /data/销售 r123,r124 --workspace ws_abc",
14424
14427
  "buckyos aiws table field-add /data/销售 --name 负责人 --type text --workspace ws_abc",
14428
+ "buckyos aiws table field-add /data/销售 --name 阶段 --type select --options 线索,成交 --default 线索 --workspace ws_abc",
14425
14429
  "buckyos aiws table option-add /data/销售 状态 已取消 --workspace ws_abc"
14426
14430
  ],
14427
14431
  handler: (ctx, input) => writing(async () => {
@@ -14462,7 +14466,8 @@ const tableCommand = {
14462
14466
  case "field-add": {
14463
14467
  const options = inputString(input, "options");
14464
14468
  const labels = options === void 0 ? void 0 : options.startsWith("[") ? jsonArg(options, "--options") : ids(options);
14465
- const op = fieldAdd(table, { name: requiredInputString(input, "name"), type: requiredInputString(input, "type"), ...labels ? { options: labels } : {} });
14469
+ const fallback = inputString(input, "default");
14470
+ const op = fieldAdd(table, { name: requiredInputString(input, "name"), type: requiredInputString(input, "type"), ...labels ? { options: labels } : {}, ...fallback !== void 0 ? { default: fallback } : {} });
14466
14471
  const field = op.field;
14467
14472
  return { ...await commit(ctx, ws, [op], `add field ${requiredInputString(input, "name")}`), table: table.entity_id, field_id: field.field_id, ...field.options ? { options: field.options } : {} };
14468
14473
  }
@@ -14620,7 +14625,7 @@ const infoCommand = {
14620
14625
  };
14621
14626
  const runGetCommand = {
14622
14627
  verb: "run-get",
14623
- summary: "A wish run: state, execution context, the brief an executor starts from, candidate and preview",
14628
+ summary: "A wish run: state, progress, execution context, the brief an executor starts from, what it wrote (applied) and the record it added to the wish's history (record)",
14624
14629
  options: [WORKSPACE_OPTION, RUN_OPTION],
14625
14630
  inputSchema: workspaceInput({ run_id: { type: "string", minLength: 1 } }, ["run_id"]),
14626
14631
  outputSchema: OBJECT_OUTPUT,
@@ -14725,6 +14730,23 @@ const REFUSALS = {
14725
14730
  attribution_unavailable: "AI_ATTRIBUTION_UNAVAILABLE",
14726
14731
  credentials: "AI_UNAVAILABLE"
14727
14732
  };
14733
+ function refusalOf(error) {
14734
+ if (error instanceof LLMComputeException && error.error.kind === "provider" && typeof error.error.failure === "object" && "refused" in error.error.failure) {
14735
+ const e = new Error(error.message);
14736
+ e.code = REFUSALS[error.error.failure.refused.code] ?? "AI_QUOTA_EXHAUSTED";
14737
+ return e;
14738
+ }
14739
+ return error;
14740
+ }
14741
+ function sessionAicc(ctx) {
14742
+ return async (method, params) => {
14743
+ try {
14744
+ return await ctx.clients.call("aicc", method, params, rpcOptions$2(ctx));
14745
+ } catch (error) {
14746
+ throw refusalOf(providerErrorFromRpc(`aicc ${method} failed`, error));
14747
+ }
14748
+ };
14749
+ }
14728
14750
  function sessionInfer(ctx) {
14729
14751
  const call2 = async (method, params) => {
14730
14752
  try {
@@ -14749,14 +14771,15 @@ function sessionInfer(ctx) {
14749
14771
  allow_tool_calls: false,
14750
14772
  signal: ctx.signal
14751
14773
  });
14752
- return { text: r.message.content.map((c) => c.type === "text" ? c.text ?? "" : "").join(""), tokens: r.usage?.output_tokens };
14774
+ const model = r.extra?.model;
14775
+ return {
14776
+ text: r.message.content.map((c) => c.type === "text" ? c.text ?? "" : "").join(""),
14777
+ tokens: r.usage?.output_tokens,
14778
+ input_tokens: r.usage?.input_tokens,
14779
+ ...typeof model === "string" && model ? { model } : {}
14780
+ };
14753
14781
  } catch (error) {
14754
- if (error instanceof LLMComputeException && error.error.kind === "provider" && typeof error.error.failure === "object" && "refused" in error.error.failure) {
14755
- const e = new Error(error.message);
14756
- e.code = REFUSALS[error.error.failure.refused.code] ?? "AI_QUOTA_EXHAUSTED";
14757
- throw e;
14758
- }
14759
- throw error;
14782
+ throw refusalOf(error);
14760
14783
  }
14761
14784
  };
14762
14785
  }
@@ -14798,6 +14821,9 @@ async function execMacro(ctx, input) {
14798
14821
  return { status: res.status, headers, base64: btoa(Array.from(bytes, (b) => String.fromCharCode(b)).join("")) };
14799
14822
  }
14800
14823
  },
14824
+ aicc: sessionAicc(ctx),
14825
+ task: (id) => ctx.clients.call("task-manager", "get_task", { task_id: id }, rpcOptions$2(ctx)),
14826
+ importAsset: (objId) => aiws(ctx, "asset.import_object", { workspace_id: ids2.workspace_id, obj_id: objId }),
14801
14827
  zoneHosts: [zoneHost],
14802
14828
  zoneOrigin: origin,
14803
14829
  budget,
@@ -14819,11 +14845,18 @@ async function execMacro(ctx, input) {
14819
14845
  const cap = Number(budget.program_timeout_secs) || 120;
14820
14846
  const limit = Math.min(cap, Number(manifest?.resources?.timeout_secs) || cap);
14821
14847
  let timedOut = false;
14822
- const timer = setTimeout(() => {
14823
- timedOut = true;
14824
- child.kill();
14825
- }, limit * 1e3);
14848
+ const started = Date.now();
14849
+ let media = 0;
14850
+ let mediaSince = 0;
14851
+ let mediaMs = 0;
14852
+ const timer = setInterval(() => {
14853
+ if (Date.now() - started - mediaMs - (media ? Date.now() - mediaSince : 0) > limit * 1e3) {
14854
+ timedOut = true;
14855
+ child.kill();
14856
+ }
14857
+ }, 1e3);
14826
14858
  const out = [];
14859
+ const pending = /* @__PURE__ */ new Set();
14827
14860
  try {
14828
14861
  for await (const line of child.lines()) {
14829
14862
  if (!line.startsWith(BRIDGE_PREFIX)) {
@@ -14831,10 +14864,19 @@ async function execMacro(ctx, input) {
14831
14864
  continue;
14832
14865
  }
14833
14866
  const msg = JSON.parse(line.slice(BRIDGE_PREFIX.length));
14834
- await child.writeLine(JSON.stringify({ id: msg.id, body: await bridge.handle(msg.op, msg.req) }));
14867
+ const waiting = msg.op === "ai.image" || msg.op === "ai.video";
14868
+ if (waiting && media++ === 0)
14869
+ mediaSince = Date.now();
14870
+ const answer = bridge.handle(msg.op, msg.req).then((body) => child.writeLine(JSON.stringify({ id: msg.id, body }))).finally(() => {
14871
+ if (waiting && --media === 0)
14872
+ mediaMs += Date.now() - mediaSince;
14873
+ pending.delete(answer);
14874
+ });
14875
+ pending.add(answer);
14835
14876
  }
14877
+ await Promise.allSettled([...pending]);
14836
14878
  } finally {
14837
- clearTimeout(timer);
14879
+ clearInterval(timer);
14838
14880
  await child.closeInput();
14839
14881
  }
14840
14882
  const code = await child.status;
@@ -14939,20 +14981,37 @@ const runStartCommand = {
14939
14981
  };
14940
14982
  const runReportCommand = {
14941
14983
  verb: "run-report",
14942
- summary: "End a claimed run: --finished after the stage is done (submit_analysis or finish accepted, or the stored macro handed in), an analysis made elsewhere, or a failure",
14943
- description: "The service validates and plans what the stage collected; the user confirms it in the workspace. Results always come from the macro (run-program). A superseded attempt or a cancelled run gets RUN_REVOKED.",
14984
+ summary: "End a claimed run: --finished after the stage is done (submit_analysis or finish accepted, or the stored macro handed in), an analysis made elsewhere, or a failure — with what your model loop used",
14985
+ description: "The service then checks the stage and writes it at once: an analysis its task contract, coding only the macro, a run its results; each stage adds a record to the wish's history, a failure too (and writes nothing else). Results always come from the macro (run-program). --model, --input-tokens, --output-tokens and --calls go into that record as they are: what the model turns of this stage used (leave them out when you called no model, as when you only ran the stored macro). A superseded attempt or a cancelled run gets RUN_REVOKED.",
14944
14986
  options: [
14945
14987
  WORKSPACE_OPTION,
14946
14988
  RUN_OPTION,
14947
14989
  ATTEMPT_OPTION,
14948
- { name: "finished", property: "finished", description: "The stage is done: what it collected becomes the candidate", type: "boolean" },
14990
+ { name: "finished", property: "finished", description: "The stage is done: the service writes what it produced", type: "boolean" },
14949
14991
  { name: "analysis", property: "analysis", description: "Analysis JSON (analyze runs, wish.analysis.v3)", type: "string" },
14950
14992
  { name: "analysis-file", property: "analysis_file", description: "Path of a JSON file holding the analysis", type: "string" },
14951
14993
  { name: "summary", property: "summary", description: "One paragraph on what was done", type: "string" },
14952
14994
  { name: "warning", property: "warnings", description: "A warning for the user (repeatable)", type: "string" },
14953
- { name: "error", property: "error", description: "Report a failure instead: its reason", type: "string" }
14995
+ { name: "error", property: "error", description: "Report a failure instead: its reason", type: "string" },
14996
+ { name: "model", property: "model", description: "The model that answered your last model turn (the stage's model when you cannot tell)", type: "string" },
14997
+ { name: "input-tokens", property: "input_tokens", description: "Input tokens of all your model turns in this stage", type: "integer" },
14998
+ { name: "output-tokens", property: "output_tokens", description: "Output tokens of all your model turns in this stage", type: "integer" },
14999
+ { name: "calls", property: "calls", description: "How many model turns this stage took", type: "integer" }
14954
15000
  ],
14955
- inputSchema: workspaceInput({ run_id: { type: "string", minLength: 1 }, attempt: { type: "integer", minimum: 1 }, finished: { type: "boolean" }, analysis: { type: "string" }, analysis_file: { type: "string" }, summary: { type: "string" }, warnings: { type: "string" }, error: { type: "string" } }, ["run_id", "attempt"]),
15001
+ inputSchema: workspaceInput({
15002
+ run_id: { type: "string", minLength: 1 },
15003
+ attempt: { type: "integer", minimum: 1 },
15004
+ finished: { type: "boolean" },
15005
+ analysis: { type: "string" },
15006
+ analysis_file: { type: "string" },
15007
+ summary: { type: "string" },
15008
+ warnings: { type: "string" },
15009
+ error: { type: "string" },
15010
+ model: { type: "string", minLength: 1 },
15011
+ input_tokens: { type: "integer", minimum: 0 },
15012
+ output_tokens: { type: "integer", minimum: 0 },
15013
+ calls: { type: "integer", minimum: 0 }
15014
+ }, ["run_id", "attempt"]),
14956
15015
  outputSchema: OBJECT_OUTPUT,
14957
15016
  resultSchemaVersion: 1,
14958
15017
  access: { mode: "fixed", level: "write" },
@@ -14960,6 +15019,7 @@ const runReportCommand = {
14960
15019
  requiresSession: true,
14961
15020
  examples: [
14962
15021
  "buckyos aiws run-report --workspace ws_abc --run run_xyz --attempt 1 --finished",
15022
+ "buckyos aiws run-report --workspace ws_abc --run run_xyz --attempt 1 --finished --model gpt-6-astra --input-tokens 12340 --output-tokens 1205 --calls 7",
14963
15023
  "buckyos aiws run-report --workspace ws_abc --run run_xyz --attempt 1 --analysis-file out/analysis.json",
14964
15024
  'buckyos aiws run-report --workspace ws_abc --run run_xyz --attempt 1 --error "the input table is empty"'
14965
15025
  ],
@@ -14979,9 +15039,36 @@ const runReportCommand = {
14979
15039
  const warning = inputString(input, "warnings");
14980
15040
  if (warning)
14981
15041
  params.warnings = [warning];
15042
+ const usage2 = {};
15043
+ const model = inputString(input, "model");
15044
+ if (model)
15045
+ usage2.model = model;
15046
+ for (const key of ["input_tokens", "output_tokens", "calls"])
15047
+ if (typeof input[key] === "number")
15048
+ usage2[key] = input[key];
15049
+ if (Object.keys(usage2).length)
15050
+ params.usage = usage2;
14982
15051
  return aiws(ctx, "proc.report", params);
14983
15052
  }
14984
15053
  };
15054
+ const runRollbackCommand = {
15055
+ verb: "run-rollback",
15056
+ summary: "Roll a wish run back: what it wrote (its analysis, its macro or its results) returns to the stage's previous version; only the run whose record is current for its stage",
15057
+ description: "Results the run updated return to what they were before it (a person's edits it overwrote included), results it created go with their Blocks; a macro or an analysis returns to the one of the previous record. When what the run wrote was changed since, nothing is written: the answer is `status: needs_confirm` with what would be lost (`lost`, `hidden_lost`); run it again with --confirm to go ahead. Otherwise one Commit: `commit` and the `rollback` record added to the history. Another record than the current one: INVALID_OPERATION / NOT_CURRENT_RECORD. Needs update on the wish.",
15058
+ options: [WORKSPACE_OPTION, RUN_OPTION, { name: "confirm", property: "confirm", description: "Go ahead although the later changes listed by a first try are lost", type: "boolean" }],
15059
+ inputSchema: workspaceInput({ run_id: { type: "string", minLength: 1 }, confirm: { type: "boolean" } }, ["run_id"]),
15060
+ outputSchema: OBJECT_OUTPUT,
15061
+ resultSchemaVersion: 1,
15062
+ access: { mode: "fixed", level: "write" },
15063
+ asyncMode: "sync",
15064
+ requiresSession: true,
15065
+ examples: ["buckyos aiws run-rollback --workspace ws_abc --run run_xyz", "buckyos aiws run-rollback --workspace ws_abc --run run_xyz --confirm"],
15066
+ handler: (ctx, input) => aiws(ctx, "proc.rollback", {
15067
+ workspace_id: requiredInputString(input, "workspace_id"),
15068
+ run_id: requiredInputString(input, "run_id"),
15069
+ ...input.confirm === true ? { confirm: true } : {}
15070
+ })
15071
+ };
14985
15072
  const controlsCommand = {
14986
15073
  verb: "controls",
14987
15074
  summary: "Block-controls a canvas offers: `list` (kind, what it is, when to use it), `describe <kind>` (the full self-description to follow)",
@@ -15696,8 +15783,8 @@ const templateCommand = {
15696
15783
  function createAiwsModule() {
15697
15784
  return {
15698
15785
  name: "aiws",
15699
- summary: "AI Workspace: find and read a workspace by path (ls, find, grep, stat, cat, resolve, read), its permissions (acl, acl-edit), query its tables in SQL (sql), write tables, rich text and common properties (table, text, mv, rename, set-prop), your to-do list and calendar (todo, cal), Block-controls (catalogue, import, export), extension controls (build, pull, export, library, import, upgrade), Workspace templates (list, create, export), and execute wish runs as their executor (claim, heartbeat, report)",
15700
- commands: [infoCommand, lsCommand, findCommand, grepCommand, statCommand, aclCommand, aclEditCommand, catCommand, resolveCommand, readCommand, sqlCommand, tableCommand, textCommand, mvCommand, renameCommand, setPropCommand, todoCommand, calCommand, placeCommand, controlsCommand, importCommand, exportCommand, buildCommand, pullCommand, extExportCommand, libraryCommand, extImportCommand, extUpgradeCommand, templateCommand, runGetCommand, runClaimCommand, runHeartbeatCommand, runFilesCommand, runToolCommand, runExecCommand, runProgramCommand, runReportCommand, runStartCommand]
15786
+ summary: "AI Workspace: find and read a workspace by path (ls, find, grep, stat, cat, resolve, read), its permissions (acl, acl-edit), query its tables in SQL (sql), write tables, rich text and common properties (table, text, mv, rename, set-prop), your to-do list and calendar (todo, cal), Block-controls (catalogue, import, export), extension controls (build, pull, export, library, import, upgrade), Workspace templates (list, create, export), and execute wish runs as their executor (claim, heartbeat, report) or roll one back",
15787
+ commands: [infoCommand, lsCommand, findCommand, grepCommand, statCommand, aclCommand, aclEditCommand, catCommand, resolveCommand, readCommand, sqlCommand, tableCommand, textCommand, mvCommand, renameCommand, setPropCommand, todoCommand, calCommand, placeCommand, controlsCommand, importCommand, exportCommand, buildCommand, pullCommand, extExportCommand, libraryCommand, extImportCommand, extUpgradeCommand, templateCommand, runGetCommand, runClaimCommand, runHeartbeatCommand, runFilesCommand, runToolCommand, runExecCommand, runProgramCommand, runReportCommand, runRollbackCommand, runStartCommand]
15701
15788
  };
15702
15789
  }
15703
15790
  const VERSION = TOOL_VERSION;