@cjhyy/code-shell-pet 0.9.22 → 0.9.23
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.
- package/dist/long-task.d.ts +3 -0
- package/dist/long-task.js +6 -0
- package/package.json +2 -2
package/dist/long-task.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ export interface PetLongTaskCompletionTarget {
|
|
|
24
24
|
kind: "im-gateway";
|
|
25
25
|
channel: string;
|
|
26
26
|
target: string;
|
|
27
|
+
/** Authenticated origin; required for replying to permission prompts over IM. */
|
|
28
|
+
senderId?: string;
|
|
29
|
+
isDirectMessage?: boolean;
|
|
27
30
|
/** How this route renders a GatewayReply URL action. */
|
|
28
31
|
replyButton?: "native" | "link";
|
|
29
32
|
/** Host-mediated attachment kinds supported by the originating route. */
|
package/dist/long-task.js
CHANGED
|
@@ -79,6 +79,12 @@ function normalizeCompletionTarget(value) {
|
|
|
79
79
|
kind: "im-gateway",
|
|
80
80
|
channel,
|
|
81
81
|
target,
|
|
82
|
+
...(typeof record.senderId === "string" &&
|
|
83
|
+
record.senderId.trim() &&
|
|
84
|
+
record.senderId.length <= 4_096 &&
|
|
85
|
+
!/[\u0000-\u001f\u007f]/u.test(record.senderId)
|
|
86
|
+
? { senderId: record.senderId.trim(), isDirectMessage: record.isDirectMessage === true }
|
|
87
|
+
: {}),
|
|
82
88
|
...(replyButton ? { replyButton } : {}),
|
|
83
89
|
...(replyAttachmentKinds.length > 0 ? { replyAttachmentKinds } : {}),
|
|
84
90
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cjhyy/code-shell-pet",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.23",
|
|
4
4
|
"description": "Pet (top-level personal assistant) capability for CodeShell — projection state machine, DelegateWork contract, Mimi behavior profile.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@cjhyy/code-shell-core": "0.9.
|
|
39
|
+
"@cjhyy/code-shell-core": "0.9.23"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=20.10"
|