skybridge 0.7.0 → 0.8.1

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 (36) hide show
  1. package/README.md +173 -0
  2. package/dist/src/server/index.d.ts +2 -0
  3. package/dist/src/server/inferUtilityTypes.d.ts +48 -0
  4. package/dist/src/server/inferUtilityTypes.js +2 -0
  5. package/dist/src/server/inferUtilityTypes.js.map +1 -0
  6. package/dist/src/server/server.d.ts +31 -9
  7. package/dist/src/server/server.js +5 -0
  8. package/dist/src/server/server.js.map +1 -1
  9. package/dist/src/test/utils.d.ts +61 -0
  10. package/dist/src/test/utils.js +122 -1
  11. package/dist/src/test/utils.js.map +1 -1
  12. package/dist/src/web/generate-helpers.d.ts +115 -0
  13. package/dist/src/web/generate-helpers.js +109 -0
  14. package/dist/src/web/generate-helpers.js.map +1 -0
  15. package/dist/src/web/generate-helpers.test-d.d.ts +1 -0
  16. package/dist/src/web/generate-helpers.test-d.js +151 -0
  17. package/dist/src/web/generate-helpers.test-d.js.map +1 -0
  18. package/dist/src/web/generate-helpers.test.d.ts +1 -0
  19. package/dist/src/web/generate-helpers.test.js +17 -0
  20. package/dist/src/web/generate-helpers.test.js.map +1 -0
  21. package/dist/src/web/hooks/index.d.ts +1 -1
  22. package/dist/src/web/hooks/index.js +1 -1
  23. package/dist/src/web/hooks/index.js.map +1 -1
  24. package/dist/src/web/hooks/use-call-tool.d.ts +57 -19
  25. package/dist/src/web/hooks/use-call-tool.js +7 -15
  26. package/dist/src/web/hooks/use-call-tool.js.map +1 -1
  27. package/dist/src/web/hooks/use-call-tool.test-d.d.ts +1 -0
  28. package/dist/src/web/hooks/use-call-tool.test-d.js +104 -0
  29. package/dist/src/web/hooks/use-call-tool.test-d.js.map +1 -0
  30. package/dist/src/web/hooks/use-tool-info.d.ts +3 -3
  31. package/dist/src/web/index.d.ts +1 -0
  32. package/dist/src/web/index.js +1 -0
  33. package/dist/src/web/index.js.map +1 -1
  34. package/dist/src/web/types.d.ts +8 -0
  35. package/dist/src/web/types.js.map +1 -1
  36. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/web/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/web/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
@@ -5,6 +5,14 @@ declare module "react" {
5
5
  }
6
6
  }
7
7
  export type UnknownObject = Record<string, unknown>;
8
+ export type Prettify<T> = {
9
+ [K in keyof T]: T[K];
10
+ } & {};
11
+ export type Objectify<T> = T & UnknownObject;
12
+ type RequiredKeys<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
14
+ }[keyof T];
15
+ export type HasRequiredKeys<T> = RequiredKeys<T> extends never ? false : true;
8
16
  type WidgetState = UnknownObject;
9
17
  type FileMetadata = {
10
18
  fileId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/web/types.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AAcf,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAC/D,MAAM,OAAO,iBAAkB,SAAQ,WAErC;IACkB,IAAI,GAAG,wBAAwB,CAAC;CACnD;AA8FD,sDAAsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,oBAAoB,CAAC;AAC3D,MAAM,OAAO,eAAgB,SAAQ,WAEnC;IACkB,IAAI,GAAG,sBAAsB,CAAC;CACjD"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/web/types.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AAuBf,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAC/D,MAAM,OAAO,iBAAkB,SAAQ,WAErC;IACkB,IAAI,GAAG,wBAAwB,CAAC;CACnD;AA8FD,sDAAsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,oBAAoB,CAAC;AAC3D,MAAM,OAAO,eAAgB,SAAQ,WAEnC;IACkB,IAAI,GAAG,sBAAsB,CAAC;CACjD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skybridge",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "Skybridge is a framework for building ChatGPT apps",
5
5
  "type": "module",
6
6
  "files": [