@celljs/ta-secrets 4.28.0 → 4.29.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.
@@ -464,6 +464,40 @@ var TaAgentSummary;
464
464
  }
465
465
  TaAgentSummary2.strip = strip;
466
466
  })(TaAgentSummary || (TaAgentSummary = {}));
467
+ var TaPictureNote;
468
+ (function(TaPictureNote2) {
469
+ TaPictureNote2.OPEN = "<pictures>";
470
+ TaPictureNote2.CLOSE = "</pictures>";
471
+ const BLOCK = /[ \t]*<pictures>([\s\S]*?)(?:<\/pictures>|$)|<p(?:i(?:c(?:t(?:u(?:r(?:es?)?)?)?)?)?)?$/gi;
472
+ const ROW = /(?:^|\s)[-*]?\s*p(\d+)\s*[::]\s*/gi;
473
+ function take(text) {
474
+ const told = new Map;
475
+ if (!/<p/i.test(text)) {
476
+ return { said: text, told };
477
+ }
478
+ const said = text.replace(BLOCK, (_all, body) => {
479
+ const rows = [...(body !== null && body !== undefined ? body : "").matchAll(ROW)];
480
+ rows.forEach((row, index) => {
481
+ var _a;
482
+ var _b, _c;
483
+ const end = (_b = (_a = rows[index + 1]) === null || _a === undefined ? undefined : _a.index) !== null && _b !== undefined ? _b : body === null || body === undefined ? undefined : body.length;
484
+ const what = body === null || body === undefined ? undefined : body.slice(((_c = row.index) !== null && _c !== undefined ? _c : 0) + row[0].length, end).trim();
485
+ if (what) {
486
+ told.set(Number(row[1]), what);
487
+ }
488
+ });
489
+ return "";
490
+ });
491
+ return { said: said === text ? text : said.replace(/\n{3,}/g, `
492
+
493
+ `).trim(), told };
494
+ }
495
+ TaPictureNote2.take = take;
496
+ function strip(text) {
497
+ return take(text).said;
498
+ }
499
+ TaPictureNote2.strip = strip;
500
+ })(TaPictureNote || (TaPictureNote = {}));
467
501
  var TaSkillUse;
468
502
  (function(TaSkillUse2) {
469
503
  const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-secrets",
3
- "version": "4.28.0",
3
+ "version": "4.29.0",
4
4
  "description": "A pi package for Ta: a vault of secrets kept in the keychain, which Ta uses in commands by name without the model ever seeing them",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -27,8 +27,8 @@
27
27
  "watch": "tsc -b -w --preserveWatchOutput"
28
28
  },
29
29
  "devDependencies": {
30
- "@celljs/ta-protocol": "4.28.0",
31
- "@celljs/ta-web": "4.28.0",
30
+ "@celljs/ta-protocol": "4.29.0",
31
+ "@celljs/ta-web": "4.29.0",
32
32
  "@types/react": "^19.3.0"
33
33
  },
34
34
  "publishConfig": {
package/web/index.js CHANGED
@@ -612,6 +612,7 @@ function vaultSettings(pi) {
612
612
  title: () => words().settingsTitle,
613
613
  icon: pi.ui.icons.KeyRound,
614
614
  group: "privacy",
615
+ order: -10,
615
616
  rows: [
616
617
  { key: "capture", label: () => words().captureLabel, description: () => words().captureHint, render: () => /* @__PURE__ */ React.createElement(CaptureSetting, {
617
618
  pi