dsh-agentic-pet 0.4.0 → 0.4.2
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/README.md +17 -2
- package/README.zh.md +17 -2
- package/carrier/dist-renderer/assets/{index-C61Q_dyJ.js → index-BMH7auTh.js} +1 -1
- package/carrier/dist-renderer/index.html +1 -1
- package/carrier/lib/main.js +38 -20
- package/carrier/lib/preload.js +3 -1
- package/carrier/lib/tts.js +212 -0
- package/client/pet-settings.js +102 -1
- package/lib/index.js +86 -23
- package/lib/{service-D-b8UzM2.js → service-BjTawwUn.js} +184 -246
- package/lib/tools.js +2 -2
- package/lib/types/petdata.d.ts +16 -1
- package/package.json +12 -4
package/lib/types/petdata.d.ts
CHANGED
|
@@ -34,11 +34,26 @@ export declare function readPetName(home: string, petId: string): Promise<string
|
|
|
34
34
|
* names map so the old layout cannot resurrect a cleared name. */
|
|
35
35
|
export declare function writePetName(home: string, petId: string, name: string | null): Promise<void>;
|
|
36
36
|
export declare function eventsFile(home: string, petId: string): string;
|
|
37
|
-
export declare function toolCallsFile(home: string, petId: string): string;
|
|
38
37
|
/** Append one record; bounded retention trims the file when it outgrows the
|
|
39
38
|
* cap (best-effort — a failed trim never loses the append). */
|
|
40
39
|
export declare function appendJsonl(file: string, entry: Record<string, unknown>): Promise<void>;
|
|
41
40
|
/** The last `limit` records (oldest last); malformed lines degrade to
|
|
42
41
|
* `{raw}` instead of dropping the file. */
|
|
43
42
|
export declare function readJsonl(file: string, limit: number): Promise<Array<Record<string, unknown>>>;
|
|
43
|
+
export declare const GLOBAL_STATE_FILES: string[];
|
|
44
|
+
export declare function globalPaths(home: string, name: string): {
|
|
45
|
+
current: string;
|
|
46
|
+
legacy: string;
|
|
47
|
+
};
|
|
48
|
+
export declare function globalFilePath(home: string, name: string): string;
|
|
49
|
+
/** Rename legacy → current for every global file that hasn't moved yet.
|
|
50
|
+
* Best-effort: a failed rename leaves the legacy copy in place and the read
|
|
51
|
+
* fallback still answers. Called once at driver install. */
|
|
52
|
+
export declare function migrateGlobals(home: string): Promise<void>;
|
|
53
|
+
/** Read a global state file: current → legacy → {} (callers' defensive
|
|
54
|
+
* field checks treat {} exactly like a missing file). */
|
|
55
|
+
export declare function readGlobalJson(home: string, name: string): Promise<Record<string, unknown>>;
|
|
56
|
+
/** Write a global state file (current location only; pretty-printed — these
|
|
57
|
+
* files are user-inspectable and hand-editable). */
|
|
58
|
+
export declare function writeGlobalJson(home: string, name: string, obj: Record<string, unknown>): Promise<void>;
|
|
44
59
|
//# sourceMappingURL=petdata.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-agentic-pet",
|
|
3
3
|
"description": "The pet-surface bundle: serves the desktop pet renderer over the web composition, turning dsh into a surface the desktop pet attaches to as an authenticated client",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -56,6 +56,14 @@
|
|
|
56
56
|
"@deepseek-ai/cordis": "^4.0.5"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@deepseek-ai/cordis": "
|
|
60
|
-
}
|
|
61
|
-
|
|
59
|
+
"@deepseek-ai/cordis": "^4.0.5"
|
|
60
|
+
},
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "git+https://github.com/beyondgjc/dsh-agentic-pet.git"
|
|
64
|
+
},
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/beyondgjc/dsh-agentic-pet/issues"
|
|
67
|
+
},
|
|
68
|
+
"homepage": "https://github.com/beyondgjc/dsh-agentic-pet#readme"
|
|
69
|
+
}
|