@zimtsui/brainswitch 0.0.1 → 0.0.3

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 (60) hide show
  1. package/README.md +98 -83
  2. package/build/adaptor.d.ts +1 -1
  3. package/build/adaptor.js +8 -8
  4. package/build/adaptor.js.map +1 -1
  5. package/build/agentloop.d.ts +1 -1
  6. package/build/agentloop.js +19 -21
  7. package/build/agentloop.js.map +1 -1
  8. package/build/api-types/base.d.ts +0 -2
  9. package/build/api-types/base.js +0 -2
  10. package/build/api-types/base.js.map +1 -1
  11. package/build/api-types/google-base.d.ts +15 -3
  12. package/build/api-types/google-base.js +33 -13
  13. package/build/api-types/google-base.js.map +1 -1
  14. package/build/api-types/google-rest.d.ts +13 -9
  15. package/build/api-types/google-rest.js +102 -89
  16. package/build/api-types/google-rest.js.map +1 -1
  17. package/build/api-types/huggingface-cerebras-qwen3-thinking.d.ts +9 -7
  18. package/build/api-types/huggingface-cerebras-qwen3-thinking.js +46 -41
  19. package/build/api-types/huggingface-cerebras-qwen3-thinking.js.map +1 -1
  20. package/build/api-types/openai-chatcompletions-base.d.ts +2 -6
  21. package/build/api-types/openai-chatcompletions-base.js +5 -12
  22. package/build/api-types/openai-chatcompletions-base.js.map +1 -1
  23. package/build/api-types/openai-chatcompletions-monolith-base.d.ts +1 -1
  24. package/build/api-types/openai-chatcompletions-monolith-base.js +12 -16
  25. package/build/api-types/openai-chatcompletions-monolith-base.js.map +1 -1
  26. package/build/api-types/openai-chatcompletions-stream-base.d.ts +1 -1
  27. package/build/api-types/openai-chatcompletions-stream-base.js +13 -16
  28. package/build/api-types/openai-chatcompletions-stream-base.js.map +1 -1
  29. package/build/api-types/openai-chatcompletions.d.ts +4 -2
  30. package/build/api-types/openai-chatcompletions.js +9 -4
  31. package/build/api-types/openai-chatcompletions.js.map +1 -1
  32. package/build/api-types/openai-responses.d.ts +35 -21
  33. package/build/api-types/openai-responses.js +211 -188
  34. package/build/api-types/openai-responses.js.map +1 -1
  35. package/build/api-types/openrouter-monolith.d.ts +8 -8
  36. package/build/api-types/openrouter-monolith.js +39 -44
  37. package/build/api-types/openrouter-monolith.js.map +1 -1
  38. package/build/api-types/openrouter-stream.d.ts +10 -10
  39. package/build/api-types/openrouter-stream.js +49 -54
  40. package/build/api-types/openrouter-stream.js.map +1 -1
  41. package/build/api-types/qwen.d.ts +5 -3
  42. package/build/api-types/qwen.js +11 -6
  43. package/build/api-types/qwen.js.map +1 -1
  44. package/build/config.js.map +1 -1
  45. package/build/endpoint-spec.js.map +1 -1
  46. package/build/engine.d.ts +1 -1
  47. package/build/engine.js +2 -2
  48. package/build/engine.js.map +1 -1
  49. package/build/function.d.ts +14 -2
  50. package/build/function.js +12 -0
  51. package/build/function.js.map +1 -1
  52. package/build/session.d.ts +105 -38
  53. package/build/session.js +212 -60
  54. package/build/session.js.map +1 -1
  55. package/build/throttle.js.map +1 -1
  56. package/build/tsconfig.tsbuildinfo +1 -1
  57. package/package.json +1 -1
  58. package/build/test.d.ts +0 -1
  59. package/build/test.js +0 -23
  60. package/build/test.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zimtsui/brainswitch",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "exports": "./build/exports.js",
5
5
  "imports": {
6
6
  "#config": "./build/config.js"
package/build/test.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/build/test.js DELETED
@@ -1,23 +0,0 @@
1
- import { Type } from '@sinclair/typebox';
2
- import { Function } from '@zimtsui/brainswitch';
3
- const fdm = {
4
- foo: {
5
- description: 'foo',
6
- paraschema: Type.Object({
7
- bar: Type.String(),
8
- }),
9
- },
10
- bar: {
11
- description: 'bar',
12
- paraschema: Type.Object({
13
- baz: Type.String(),
14
- }),
15
- },
16
- };
17
- const fd = {
18
- name: 'foo',
19
- paraschema: Type.Object({
20
- bar: Type.String(),
21
- }),
22
- };
23
- //# sourceMappingURL=test.js.map
package/build/test.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,MAAM,GAAG,GAAG;IACX,GAAG,EAAE;QACJ,WAAW,EAAE,KAAc;QAC3B,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC;YACvB,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;SAClB,CAAC;KACF;IACD,GAAG,EAAE;QACJ,WAAW,EAAE,KAAc;QAC3B,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC;YACvB,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;SAClB,CAAC;KACF;CACkC,CAAC;AAIrC,MAAM,EAAE,GAAQ;IACf,IAAI,EAAE,KAAK;IACX,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC;QACvB,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;KAClB,CAAC;CACF,CAAC"}