@zimtsui/typechat 0.0.80 → 0.0.82

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.
Files changed (34) hide show
  1. package/assets/verbatim/instruction.md +3 -3
  2. package/assets/verbatim/quotation.handlebars +1 -0
  3. package/build/assets.d.ts +1 -1
  4. package/build/assets.js +1 -1
  5. package/build/assets.js.map +1 -1
  6. package/build/compatible-engine/session.d.ts +2 -1
  7. package/build/compatible-engine/session.js.map +1 -1
  8. package/build/compatible-engine.d/anthropic/message-codec.js +1 -1
  9. package/build/compatible-engine.d/anthropic/message-codec.js.map +1 -1
  10. package/build/compatible-engine.d/google/message-codec.js +3 -0
  11. package/build/compatible-engine.d/google/message-codec.js.map +1 -1
  12. package/build/compatible-engine.d/openai-chatcompletions/message-codec.js +1 -1
  13. package/build/compatible-engine.d/openai-chatcompletions/message-codec.js.map +1 -1
  14. package/build/compatible-engine.d/openai-responses/message-codec.d.ts +2 -0
  15. package/build/compatible-engine.d/openai-responses/message-codec.js +40 -7
  16. package/build/compatible-engine.d/openai-responses/message-codec.js.map +1 -1
  17. package/build/exports.d.ts +1 -0
  18. package/build/exports.js +1 -0
  19. package/build/exports.js.map +1 -1
  20. package/build/media.d.ts +41 -0
  21. package/build/media.js +41 -0
  22. package/build/media.js.map +1 -0
  23. package/build/tsconfig.tsbuildinfo +1 -1
  24. package/build/verbatim/codec/quotation.d.ts +1 -0
  25. package/build/verbatim/codec/quotation.js +10 -0
  26. package/build/verbatim/codec/quotation.js.map +1 -0
  27. package/build/verbatim/codec.d.ts +1 -1
  28. package/build/verbatim/codec.js +1 -1
  29. package/build/verbatim/codec.js.map +1 -1
  30. package/package.json +1 -1
  31. package/assets/verbatim/system.handlebars +0 -1
  32. package/build/verbatim/codec/system.d.ts +0 -1
  33. package/build/verbatim/codec/system.js +0 -10
  34. package/build/verbatim/codec/system.js.map +0 -1
@@ -0,0 +1 @@
1
+ export declare function encode(mimeType: string, text: string): string;
@@ -0,0 +1,10 @@
1
+ import Handlebars from 'handlebars';
2
+ import Assets from "../../assets.js";
3
+ import { loggers } from "../../telemetry.js";
4
+ const template = Handlebars.compile(Assets.verbatim.quotation);
5
+ export function encode(mimeType, text) {
6
+ if (text.includes(']]>'))
7
+ loggers.message.warn('The quotation contains "]]>", which is not allowed in XML CDATA sections. ');
8
+ return template({ mimeType, text });
9
+ }
10
+ //# sourceMappingURL=quotation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotation.js","sourceRoot":"","sources":["../../../src/verbatim/codec/quotation.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAiB,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAQ/E,MAAM,UAAU,MAAM,CAAC,QAAgB,EAAE,IAAY;IACjD,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QACpB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,4EAA4E,CAAC,CAAC;IACvG,OAAO,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACxC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export * as Declarations from './codec/declarations.ts';
2
2
  export * as Request from './codec/request.ts';
3
- export * as System from './codec/system.ts';
3
+ export * as Quotation from './codec/quotation.ts';
4
4
  export * as Response from './codec/response.ts';
@@ -1,5 +1,5 @@
1
1
  export * as Declarations from "./codec/declarations.js";
2
2
  export * as Request from "./codec/request.js";
3
- export * as System from "./codec/system.js";
3
+ export * as Quotation from "./codec/quotation.js";
4
4
  export * as Response from "./codec/response.js";
5
5
  //# sourceMappingURL=codec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec.js","sourceRoot":"","sources":["../../src/verbatim/codec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"codec.js","sourceRoot":"","sources":["../../src/verbatim/codec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zimtsui/typechat",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "exports": {
5
5
  ".": "./build/exports.js",
6
6
  "./assets": "./build/assets.js",
@@ -1 +0,0 @@
1
- <verbatim:system name="{{this.name}}" mime-type="{{this.mimeType}}"><![CDATA[{{{this.text}}}]]></verbatim:system>
@@ -1 +0,0 @@
1
- export declare function encode(name: string, mimeType: string, text: string): string;
@@ -1,10 +0,0 @@
1
- import Handlebars from 'handlebars';
2
- import Assets from "../../assets.js";
3
- import { loggers } from "../../telemetry.js";
4
- const template = Handlebars.compile(Assets.verbatim.system);
5
- export function encode(name, mimeType, text) {
6
- if (text.includes(']]>'))
7
- loggers.message.warn('The text contains "]]>", which is not allowed in XML CDATA sections. ');
8
- return template({ name, mimeType, text });
9
- }
10
- //# sourceMappingURL=system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../src/verbatim/codec/system.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAiB,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAS5E,MAAM,UAAU,MAAM,CAAC,IAAY,EAAE,QAAgB,EAAE,IAAY;IAC/D,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QACpB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,uEAAuE,CAAC,CAAC;IAClG,OAAO,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9C,CAAC"}