@papert-code/papert-code 0.3.92 → 0.3.93

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 (50) hide show
  1. package/README.md +99 -3
  2. package/dist/chunks/{chunk-G2NP25TN.js → chunk-2MUETKKX.js} +18 -1
  3. package/dist/chunks/{chunk-P4DPKRC2.js → chunk-423NGIST.js} +18 -1
  4. package/dist/chunks/{chunk-OVTXUA3U.js → chunk-4YLWLT76.js} +135 -119
  5. package/dist/chunks/{chunk-3CUI2HDG.js → chunk-5E2G77WW.js} +18 -1
  6. package/dist/chunks/{chunk-EM5S27RC.js → chunk-B4UTHNG5.js} +18 -1
  7. package/dist/chunks/chunk-BMT6LRT3.js +52 -0
  8. package/dist/chunks/{chunk-7FXB5MJS.js → chunk-F77EGXST.js} +18 -1
  9. package/dist/chunks/{chunk-FS5UPVZW.js → chunk-FJQLUUKC.js} +18 -1
  10. package/dist/chunks/{chunk-MO6BWZQC.js → chunk-JATIVKZP.js} +72 -6
  11. package/dist/chunks/{chunk-IV6H2XE4.js → chunk-K5KJBM44.js} +19 -2
  12. package/dist/chunks/{chunk-W6O2LWN4.js → chunk-MEXE5SYY.js} +18 -1
  13. package/dist/chunks/{chunk-THDY5NFO.js → chunk-MHFXK3XK.js} +18 -1
  14. package/dist/chunks/{chunk-4HTLIVVR.js → chunk-NCFEMX7E.js} +17 -0
  15. package/dist/chunks/{chunk-ICOYQZHB.js → chunk-PGKEXZYI.js} +26 -9
  16. package/dist/chunks/{chunk-VTNP3O6A.js → chunk-TQNFJUNM.js} +29069 -37287
  17. package/dist/chunks/{chunk-2AKGZQ4A.js → chunk-ZHTGXQAR.js} +19 -2
  18. package/dist/chunks/{devtools-2MFFCPCG.js → devtools-AE6I2IJN.js} +20 -3
  19. package/dist/chunks/{devtools-ITROVIMB.js → devtools-IPZOX54X.js} +20 -3
  20. package/dist/chunks/dist-3BATS3LO.js +24 -0
  21. package/dist/chunks/{en-TX2CGKV3.js → en-N5RDRPST.js} +18 -1
  22. package/dist/chunks/{gemini-7AQ6BAIN.js → gemini-GXD4BGSD.js} +2266 -1447
  23. package/dist/chunks/{getMachineId-bsd-2RCFHEOM.js → getMachineId-bsd-4WX5XJ3I.js} +20 -3
  24. package/dist/chunks/{getMachineId-darwin-BBFRQYU6.js → getMachineId-darwin-URXQ2X3N.js} +20 -3
  25. package/dist/chunks/{getMachineId-linux-UPET74JV.js → getMachineId-linux-4Y2DTNAA.js} +19 -2
  26. package/dist/chunks/{getMachineId-unsupported-VIGKLEW5.js → getMachineId-unsupported-A5RT6P2V.js} +19 -2
  27. package/dist/chunks/{getMachineId-win-AYPIIM5S.js → getMachineId-win-HIFMWK2N.js} +20 -3
  28. package/dist/chunks/{keychain-token-storage-WM6GUOMH.js → keychain-token-storage-EPJEI2HJ.js} +19 -2
  29. package/dist/chunks/node-fetch-HP6CZCEV.js +28 -0
  30. package/dist/chunks/openaiContentGenerator-RS2GU6IS.js +51 -0
  31. package/dist/chunks/{papertContentGenerator-FYBOOJV3.js → papertContentGenerator-RYRJQVBF.js} +30 -12
  32. package/dist/chunks/papertOAuth2-4I4JYPZW.js +51 -0
  33. package/dist/chunks/pluginSystem-5MM7PDLU.js +26 -0
  34. package/dist/chunks/server-N2U4FF55.js +26 -0
  35. package/dist/chunks/sharedTokenManager-GSQ3FULT.js +31 -0
  36. package/dist/chunks/undici-FJNCTQAO.js +24 -0
  37. package/dist/chunks/{zh-ACGEBTQR.js → zh-S2V7TL6B.js} +18 -1
  38. package/dist/cli.js +25 -17
  39. package/package.json +1 -1
  40. package/dist/chunks/chunk-BR7CCFAR.js +0 -5151
  41. package/dist/chunks/chunk-RMKGXYYI.js +0 -265
  42. package/dist/chunks/dist-L6NNW4TJ.js +0 -7
  43. package/dist/chunks/multipart-parser-IMIWHGMY.js +0 -381
  44. package/dist/chunks/openaiContentGenerator-WFZAEDJG.js +0 -33
  45. package/dist/chunks/papertOAuth2-JNUOPD7M.js +0 -34
  46. package/dist/chunks/pluginSystem-3V7KBDEE.js +0 -9
  47. package/dist/chunks/server-3DEIAIVB.js +0 -9
  48. package/dist/chunks/sharedTokenManager-Z6PG3UKZ.js +0 -14
  49. package/dist/chunks/src-ERBEIN35.js +0 -1445
  50. package/dist/chunks/undici-EPWKVH6H.js +0 -7
@@ -1,5 +1,22 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ const __papertOriginalEmitWarning = process.emitWarning.bind(process);
4
+ process.emitWarning = function patchedEmitWarning(warning, ...args) {
5
+ if (!process.env.PAPERT_SHOW_NODE_DEPRECATIONS) {
6
+ const warningCode =
7
+ (warning && typeof warning === 'object' && 'code' in warning && warning.code) ||
8
+ (args.length > 1 && typeof args[1] === 'string' && args[1]) ||
9
+ (args.length > 0 &&
10
+ args[0] &&
11
+ typeof args[0] === 'object' &&
12
+ 'code' in args[0] &&
13
+ args[0].code);
14
+ if (warningCode === 'DEP0040' || warningCode === 'DEP0169') {
15
+ return;
16
+ }
17
+ }
18
+ return __papertOriginalEmitWarning(warning, ...args);
19
+ };
3
20
  import {
4
21
  ApiErrorEvent,
5
22
  ApiResponseEvent,
@@ -14,11 +31,11 @@ import {
14
31
  logApiError,
15
32
  logApiResponse,
16
33
  tokenLimit
17
- } from "./chunk-VTNP3O6A.js";
34
+ } from "./chunk-TQNFJUNM.js";
18
35
  import {
19
36
  __name,
20
37
  init_esbuild_shims
21
- } from "./chunk-4HTLIVVR.js";
38
+ } from "./chunk-NCFEMX7E.js";
22
39
 
23
40
  // packages/core/dist/src/core/openaiContentGenerator/index.js
24
41
  init_esbuild_shims();
@@ -1,15 +1,32 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ const __papertOriginalEmitWarning = process.emitWarning.bind(process);
4
+ process.emitWarning = function patchedEmitWarning(warning, ...args) {
5
+ if (!process.env.PAPERT_SHOW_NODE_DEPRECATIONS) {
6
+ const warningCode =
7
+ (warning && typeof warning === 'object' && 'code' in warning && warning.code) ||
8
+ (args.length > 1 && typeof args[1] === 'string' && args[1]) ||
9
+ (args.length > 0 &&
10
+ args[0] &&
11
+ typeof args[0] === 'object' &&
12
+ 'code' in args[0] &&
13
+ args[0].code);
14
+ if (warningCode === 'DEP0040' || warningCode === 'DEP0169') {
15
+ return;
16
+ }
17
+ }
18
+ return __papertOriginalEmitWarning(warning, ...args);
19
+ };
3
20
  import {
4
21
  require_backend
5
- } from "./chunk-3CUI2HDG.js";
22
+ } from "./chunk-5E2G77WW.js";
6
23
  import {
7
24
  wrapper_default
8
- } from "./chunk-7FXB5MJS.js";
25
+ } from "./chunk-F77EGXST.js";
9
26
  import {
10
27
  __toESM,
11
28
  init_esbuild_shims
12
- } from "./chunk-4HTLIVVR.js";
29
+ } from "./chunk-NCFEMX7E.js";
13
30
 
14
31
  // node_modules/ink/build/devtools.js
15
32
  init_esbuild_shims();
@@ -1,15 +1,32 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ const __papertOriginalEmitWarning = process.emitWarning.bind(process);
4
+ process.emitWarning = function patchedEmitWarning(warning, ...args) {
5
+ if (!process.env.PAPERT_SHOW_NODE_DEPRECATIONS) {
6
+ const warningCode =
7
+ (warning && typeof warning === 'object' && 'code' in warning && warning.code) ||
8
+ (args.length > 1 && typeof args[1] === 'string' && args[1]) ||
9
+ (args.length > 0 &&
10
+ args[0] &&
11
+ typeof args[0] === 'object' &&
12
+ 'code' in args[0] &&
13
+ args[0].code);
14
+ if (warningCode === 'DEP0040' || warningCode === 'DEP0169') {
15
+ return;
16
+ }
17
+ }
18
+ return __papertOriginalEmitWarning(warning, ...args);
19
+ };
3
20
  import {
4
21
  require_backend
5
- } from "./chunk-3CUI2HDG.js";
22
+ } from "./chunk-5E2G77WW.js";
6
23
  import {
7
24
  wrapper_default
8
- } from "./chunk-7FXB5MJS.js";
25
+ } from "./chunk-F77EGXST.js";
9
26
  import {
10
27
  __toESM,
11
28
  init_esbuild_shims
12
- } from "./chunk-4HTLIVVR.js";
29
+ } from "./chunk-NCFEMX7E.js";
13
30
 
14
31
  // packages/cli/node_modules/ink/build/devtools.js
15
32
  init_esbuild_shims();
@@ -0,0 +1,24 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ const __papertOriginalEmitWarning = process.emitWarning.bind(process);
4
+ process.emitWarning = function patchedEmitWarning(warning, ...args) {
5
+ if (!process.env.PAPERT_SHOW_NODE_DEPRECATIONS) {
6
+ const warningCode =
7
+ (warning && typeof warning === 'object' && 'code' in warning && warning.code) ||
8
+ (args.length > 1 && typeof args[1] === 'string' && args[1]) ||
9
+ (args.length > 0 &&
10
+ args[0] &&
11
+ typeof args[0] === 'object' &&
12
+ 'code' in args[0] &&
13
+ args[0].code);
14
+ if (warningCode === 'DEP0040' || warningCode === 'DEP0169') {
15
+ return;
16
+ }
17
+ }
18
+ return __papertOriginalEmitWarning(warning, ...args);
19
+ };
20
+ import {
21
+ require_dist
22
+ } from "./chunk-MHFXK3XK.js";
23
+ import "./chunk-NCFEMX7E.js";
24
+ export default require_dist();
@@ -1,8 +1,25 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ const __papertOriginalEmitWarning = process.emitWarning.bind(process);
4
+ process.emitWarning = function patchedEmitWarning(warning, ...args) {
5
+ if (!process.env.PAPERT_SHOW_NODE_DEPRECATIONS) {
6
+ const warningCode =
7
+ (warning && typeof warning === 'object' && 'code' in warning && warning.code) ||
8
+ (args.length > 1 && typeof args[1] === 'string' && args[1]) ||
9
+ (args.length > 0 &&
10
+ args[0] &&
11
+ typeof args[0] === 'object' &&
12
+ 'code' in args[0] &&
13
+ args[0].code);
14
+ if (warningCode === 'DEP0040' || warningCode === 'DEP0169') {
15
+ return;
16
+ }
17
+ }
18
+ return __papertOriginalEmitWarning(warning, ...args);
19
+ };
3
20
  import {
4
21
  init_esbuild_shims
5
- } from "./chunk-4HTLIVVR.js";
22
+ } from "./chunk-NCFEMX7E.js";
6
23
 
7
24
  // packages/cli/src/i18n/locales/en.js
8
25
  init_esbuild_shims();