@celljs/ta-boundaries 4.34.0 → 4.35.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.
Files changed (2) hide show
  1. package/host/index.mjs +0 -41
  2. package/package.json +3 -3
package/host/index.mjs CHANGED
@@ -67,47 +67,6 @@ var TaDoubleLookUtil;
67
67
  TaDoubleLookUtil2.given = given;
68
68
  })(TaDoubleLookUtil || (TaDoubleLookUtil = {}));
69
69
  var TA_WITH_OTHERS_MARK = "[ta:speaks-with-others]";
70
- var TA_ASK_ENTRY = "ta-ask";
71
- var TaAskUtil;
72
- (function(TaAskUtil2) {
73
- const LENGTH = 120;
74
- function entry(question) {
75
- const line = question.replace(/\s+/g, " ").trim();
76
- return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
77
- }
78
- TaAskUtil2.entry = entry;
79
- function asking(entries) {
80
- var _a;
81
- for (let i = entries.length - 1;i >= 0; i--) {
82
- const entry2 = entries[i];
83
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
84
- return;
85
- }
86
- if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
87
- return read(entry2);
88
- }
89
- }
90
- return;
91
- }
92
- TaAskUtil2.asking = asking;
93
- function next(asked, entry2) {
94
- var _a;
95
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
96
- return;
97
- }
98
- return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
99
- }
100
- TaAskUtil2.next = next;
101
- function read(found) {
102
- var _a;
103
- const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
104
- if (typeof question !== "string" || !question.trim()) {
105
- return;
106
- }
107
- const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
108
- return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
109
- }
110
- })(TaAskUtil || (TaAskUtil = {}));
111
70
 
112
71
  // ../ta-protocol/esm/common/confine-protocol.js
113
72
  var TA_CONFINED_MARK = "[ta:confined]";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-boundaries",
3
- "version": "4.34.0",
3
+ "version": "4.35.0",
4
4
  "description": "A pi package for Ta: directories marked as work or private, the boundary of each conversation, which Ta's memory, recall and vault keep to",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -26,8 +26,8 @@
26
26
  "watch": "tsc -b -w --preserveWatchOutput"
27
27
  },
28
28
  "devDependencies": {
29
- "@celljs/ta-protocol": "4.34.0",
30
- "@celljs/ta-web": "4.34.0",
29
+ "@celljs/ta-protocol": "4.35.0",
30
+ "@celljs/ta-web": "4.35.0",
31
31
  "@types/react": "^19.3.0"
32
32
  },
33
33
  "publishConfig": {