@open-pets/agent-events 4.0.0 → 4.1.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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type HookSpeechCategory = "thinking" | "success" | "error" | "permission";
|
|
1
|
+
export type HookSpeechCategory = "thinking" | "success" | "error" | "permission" | "question";
|
|
2
2
|
export declare const hookSpeechPools: Record<HookSpeechCategory, readonly string[]>;
|
|
3
3
|
export declare function pickHookSpeech(category: HookSpeechCategory, random?: () => number): string;
|
|
4
4
|
export declare function validateHookSpeech(message: string): string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC;AAE9F,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAMzE,CAAC;AAEF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,kBAAkB,EAAE,MAAM,GAAE,MAAM,MAAoB,GAAG,MAAM,CAGvG;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAQ1D"}
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export const hookSpeechPools = {
|
|
|
3
3
|
success: ["Done", "That worked", "All set", "Nice, finished"],
|
|
4
4
|
error: ["Something failed", "Needs another look", "Hit a snag", "Not quite there"],
|
|
5
5
|
permission: ["Approval needed"],
|
|
6
|
+
question: ["Question for you", "Quick question", "Need your input"],
|
|
6
7
|
};
|
|
7
8
|
export function pickHookSpeech(category, random = Math.random) {
|
|
8
9
|
const pool = hookSpeechPools[category];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAkD;IAC5E,QAAQ,EAAE,CAAC,qBAAqB,EAAE,cAAc,EAAE,OAAO,EAAE,gBAAgB,CAAC;IAC5E,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC;IAC7D,KAAK,EAAE,CAAC,kBAAkB,EAAE,oBAAoB,EAAE,YAAY,EAAE,iBAAiB,CAAC;IAClF,UAAU,EAAE,CAAC,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAkD;IAC5E,QAAQ,EAAE,CAAC,qBAAqB,EAAE,cAAc,EAAE,OAAO,EAAE,gBAAgB,CAAC;IAC5E,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC;IAC7D,KAAK,EAAE,CAAC,kBAAkB,EAAE,oBAAoB,EAAE,YAAY,EAAE,iBAAiB,CAAC;IAClF,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,QAAQ,EAAE,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,CAAC;CACpE,CAAC;AAEF,MAAM,UAAU,cAAc,CAAC,QAA4B,EAAE,SAAuB,IAAI,CAAC,MAAM;IAC7F,MAAM,IAAI,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IACvC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC;AAClH,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IAClG,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC/E,IAAI,4DAA4D,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAChI,IAAI,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IAC9F,IAAI,2CAA2C,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACtH,IAAI,+CAA+C,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC5H,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-pets/agent-events",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/OpenPetsHQ/openpets.git",
|
|
8
8
|
"directory": "packages/agent-events"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|