@ziggy-ai/client-sdk 1.2.4 → 1.2.5
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/product-memory.d.ts +14 -0
- package/dist/product-memory.d.ts.map +1 -1
- package/package.json +48 -48
package/dist/product-memory.d.ts
CHANGED
|
@@ -30,6 +30,20 @@ export type ProductOutcomePayload = {
|
|
|
30
30
|
subjectIsUser?: boolean;
|
|
31
31
|
auditId?: string;
|
|
32
32
|
message?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Head and tail of what the feature produced (send ≤ 1,200 chars; Ziggy
|
|
35
|
+
* trims longer). Lets Ziggy judge a `completed` outcome that was in fact
|
|
36
|
+
* truncated — the case the host itself did not catch (ZIG-102). Optional;
|
|
37
|
+
* without it that check is skipped, never guessed.
|
|
38
|
+
*/
|
|
39
|
+
outputExcerpt?: string;
|
|
40
|
+
/** Size facts about the output, for the same check. */
|
|
41
|
+
lengthMeta?: {
|
|
42
|
+
chars?: number;
|
|
43
|
+
tokens?: number;
|
|
44
|
+
finishReason?: string;
|
|
45
|
+
expectedChars?: number;
|
|
46
|
+
};
|
|
33
47
|
[key: string]: unknown;
|
|
34
48
|
};
|
|
35
49
|
/** Preference keys that become ProductSignal rollups on the app-scoped User. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-memory.d.ts","sourceRoot":"","sources":["../src/product-memory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,wDAAwD;AACxD,eAAO,MAAM,0BAA0B,qUAkB7B,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,8FAOzB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,4EAA4E;AAC5E,MA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AM,CAAA;KAAE,CAAC;IAChG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,8PAc3B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAK9D;AAED,4DAA4D;AAC5D,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC;IAC7C,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClF,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ziggy-ai/client-sdk",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "Client SDK for integrating with Ziggy's v1 API",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./styles": "./dist/styles/ziggy-highlights.css"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist",
|
|
17
|
-
"README.md",
|
|
18
|
-
"LICENSE"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsup src/index.ts --format esm --clean --external driver.js --external html2canvas && tsc --emitDeclarationOnly && node -e \"const fs=require('fs');fs.mkdirSync('dist/styles',{recursive:true});fs.copyFileSync('src/styles/ziggy-highlights.css','dist/styles/ziggy-highlights.css')\"",
|
|
22
|
-
"dev": "tsup src/index.ts --format esm --watch",
|
|
23
|
-
"typecheck": "tsc --noEmit",
|
|
24
|
-
"test": "vitest",
|
|
25
|
-
"prepublishOnly": "npm run build"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@types/node": "^20.11.0",
|
|
29
|
-
"tsup": "^8.0.0",
|
|
30
|
-
"typescript": "^5.3.3",
|
|
31
|
-
"vitest": "^1.2.2"
|
|
32
|
-
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
"ziggy",
|
|
35
|
-
"client",
|
|
36
|
-
"sdk",
|
|
37
|
-
"chat",
|
|
38
|
-
"streaming",
|
|
39
|
-
"ndjson"
|
|
40
|
-
],
|
|
41
|
-
"license": "MIT",
|
|
42
|
-
"repository": {
|
|
43
|
-
"type": "git",
|
|
44
|
-
"url": "https://github.com/alchemyagentic/Ziggy.git",
|
|
45
|
-
"directory": "packages/client-sdk"
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {}
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ziggy-ai/client-sdk",
|
|
3
|
+
"version": "1.2.5",
|
|
4
|
+
"description": "Client SDK for integrating with Ziggy's v1 API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./styles": "./dist/styles/ziggy-highlights.css"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup src/index.ts --format esm --clean --external driver.js --external html2canvas && tsc --emitDeclarationOnly && node -e \"const fs=require('fs');fs.mkdirSync('dist/styles',{recursive:true});fs.copyFileSync('src/styles/ziggy-highlights.css','dist/styles/ziggy-highlights.css')\"",
|
|
22
|
+
"dev": "tsup src/index.ts --format esm --watch",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"test": "vitest",
|
|
25
|
+
"prepublishOnly": "npm run build"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^20.11.0",
|
|
29
|
+
"tsup": "^8.0.0",
|
|
30
|
+
"typescript": "^5.3.3",
|
|
31
|
+
"vitest": "^1.2.2"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"ziggy",
|
|
35
|
+
"client",
|
|
36
|
+
"sdk",
|
|
37
|
+
"chat",
|
|
38
|
+
"streaming",
|
|
39
|
+
"ndjson"
|
|
40
|
+
],
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://github.com/alchemyagentic/Ziggy.git",
|
|
45
|
+
"directory": "packages/client-sdk"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {}
|
|
48
|
+
}
|