@g9tm/aiassistant 1.12.0 → 1.13.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.
- package/dist/plan.d.ts +2 -0
- package/dist/plan.js +1 -0
- package/package.json +2 -2
package/dist/plan.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface PlanStepView {
|
|
|
8
8
|
text: string;
|
|
9
9
|
tool: string;
|
|
10
10
|
undoable: boolean;
|
|
11
|
+
/** The device takes this change back itself (the server says `"undo": "device"`): no "cannot be undone" mark. */
|
|
12
|
+
undoOnDevice?: boolean;
|
|
11
13
|
facts: {
|
|
12
14
|
key: string;
|
|
13
15
|
args: Record<string, string>;
|
package/dist/plan.js
CHANGED
|
@@ -31,6 +31,7 @@ export function planView(card) {
|
|
|
31
31
|
text: str(s["text"], str(s["tool"])),
|
|
32
32
|
tool: str(s["tool"]),
|
|
33
33
|
undoable: s["undoable"] !== false,
|
|
34
|
+
undoOnDevice: s["undo"] === "device",
|
|
34
35
|
facts: arr(s["facts"]).map(obj).map((f) => ({ key: str(f["key"]), args: texts(f["args"]) })),
|
|
35
36
|
diff: arr(s["diff"]).map(obj).map((d) => ({ name: str(obj(d["name"])["key"], str(d["name"])), args: texts(obj(d["name"])["args"]), before: typeof d["before"] === "string" ? d["before"] : null, after: typeof d["after"] === "string" ? d["after"] : null })),
|
|
36
37
|
dependsOn: refs(s["input"]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/aiassistant",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Headless client of the G9 AI assistant: API client, run state, transports, block view models, safe text and Persian helpers. No DOM, no framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@g9tm/aiassistant-contracts": "1.
|
|
36
|
+
"@g9tm/aiassistant-contracts": "1.13.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.json",
|