@celljs/ta-team 4.13.0 → 4.13.1

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.
@@ -27,6 +27,27 @@ var TaHostUtil;
27
27
  });
28
28
  }
29
29
  TaHostUtil2.reach = reach;
30
+ function marked(systemPrompt, mark) {
31
+ return role(systemPrompt).includes(mark);
32
+ }
33
+ TaHostUtil2.marked = marked;
34
+ function role(systemPrompt) {
35
+ if (!systemPrompt) {
36
+ return "";
37
+ }
38
+ const open = `<addendum>
39
+ `;
40
+ const start = systemPrompt.indexOf(open);
41
+ const context = systemPrompt.indexOf(`<project_context>
42
+ `);
43
+ if (start < 0 || context >= 0 && context < start) {
44
+ return "";
45
+ }
46
+ const end = systemPrompt.indexOf(`
47
+ </addendum>`, start);
48
+ return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
49
+ }
50
+ TaHostUtil2.role = role;
30
51
  })(TaHostUtil || (TaHostUtil = {}));
31
52
  var TA_ASK_ENTRY = "ta-ask";
32
53
  var TaAskUtil;
package/host/index.mjs CHANGED
@@ -935,6 +935,27 @@ var TaHostUtil;
935
935
  });
936
936
  }
937
937
  TaHostUtil2.reach = reach;
938
+ function marked(systemPrompt, mark) {
939
+ return role(systemPrompt).includes(mark);
940
+ }
941
+ TaHostUtil2.marked = marked;
942
+ function role(systemPrompt) {
943
+ if (!systemPrompt) {
944
+ return "";
945
+ }
946
+ const open = `<addendum>
947
+ `;
948
+ const start = systemPrompt.indexOf(open);
949
+ const context = systemPrompt.indexOf(`<project_context>
950
+ `);
951
+ if (start < 0 || context >= 0 && context < start) {
952
+ return "";
953
+ }
954
+ const end = systemPrompt.indexOf(`
955
+ </addendum>`, start);
956
+ return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
957
+ }
958
+ TaHostUtil2.role = role;
938
959
  })(TaHostUtil || (TaHostUtil = {}));
939
960
  var TA_DOUBLE_FILE = { name: "@celljs/ta-web", key: "assistant.file" };
940
961
  var TA_ASK_ENTRY = "ta-ask";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-team",
3
- "version": "4.13.0",
3
+ "version": "4.13.1",
4
4
  "description": "A pi package for Ta: people let into your Ta by a link, each with a role (admin, collaborator, viewer, guest, or one of your own), what they may do checked by the Ta service for every call and every tool, asking for more and the answers, and a record",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -27,9 +27,9 @@
27
27
  "watch": "tsc -b -w --preserveWatchOutput"
28
28
  },
29
29
  "devDependencies": {
30
- "@celljs/ta-protocol": "4.13.0",
31
- "@celljs/ta-relay": "4.13.0",
32
- "@celljs/ta-web": "4.13.0",
30
+ "@celljs/ta-protocol": "4.13.1",
31
+ "@celljs/ta-relay": "4.13.1",
32
+ "@celljs/ta-web": "4.13.1",
33
33
  "@types/react": "^19.3.0"
34
34
  },
35
35
  "publishConfig": {