@celljs/ta-recall 4.11.0 → 4.12.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.
@@ -21,6 +21,7 @@ var TaHostUtil;
21
21
  }
22
22
  TaHostUtil2.reach = reach;
23
23
  })(TaHostUtil || (TaHostUtil = {}));
24
+ var TA_WITH_OTHERS_MARK = "[ta:speaks-with-others]";
24
25
 
25
26
  // web-src/conversation-index.ts
26
27
  import { readdir, readFile, stat } from "node:fs/promises";
@@ -527,7 +528,7 @@ function activate(pi) {
527
528
  asked = undefined;
528
529
  draft = undefined;
529
530
  briefing = false;
530
- if (event.messageType === "custom" || typeof event.prompt !== "string") {
531
+ if (event.messageType === "custom" || typeof event.prompt !== "string" || ctx.getSystemPrompt?.().includes(TA_WITH_OTHERS_MARK)) {
531
532
  return;
532
533
  }
533
534
  if (event.prompt.includes(BRIEF_MARK)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-recall",
3
- "version": "4.11.0",
3
+ "version": "4.12.0",
4
4
  "description": "A pi package for Ta: asks earlier conversations what was done, offers to keep a request asked again as a skill, and writes a daily brief of what got done and what waits for the user",
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.11.0",
31
- "@celljs/ta-web": "4.11.0",
30
+ "@celljs/ta-protocol": "4.12.0",
31
+ "@celljs/ta-web": "4.12.0",
32
32
  "@types/react": "^19.3.0"
33
33
  },
34
34
  "publishConfig": {
package/web/index.js CHANGED
@@ -2,6 +2,10 @@
2
2
  var RecallConversations;
3
3
  ((RecallConversations) => {
4
4
  async function open(pi, file) {
5
+ const opened = await pi.openChat?.(file);
6
+ if (opened !== undefined) {
7
+ return opened;
8
+ }
5
9
  const open2 = (await pi.server.listSessions()).find((session) => session.sessionFile === file);
6
10
  if (open2) {
7
11
  await pi.switchSession(open2.sessionId);