@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.
- package/README.md +99 -3
- package/dist/chunks/{chunk-G2NP25TN.js → chunk-2MUETKKX.js} +18 -1
- package/dist/chunks/{chunk-P4DPKRC2.js → chunk-423NGIST.js} +18 -1
- package/dist/chunks/{chunk-OVTXUA3U.js → chunk-4YLWLT76.js} +135 -119
- package/dist/chunks/{chunk-3CUI2HDG.js → chunk-5E2G77WW.js} +18 -1
- package/dist/chunks/{chunk-EM5S27RC.js → chunk-B4UTHNG5.js} +18 -1
- package/dist/chunks/chunk-BMT6LRT3.js +52 -0
- package/dist/chunks/{chunk-7FXB5MJS.js → chunk-F77EGXST.js} +18 -1
- package/dist/chunks/{chunk-FS5UPVZW.js → chunk-FJQLUUKC.js} +18 -1
- package/dist/chunks/{chunk-MO6BWZQC.js → chunk-JATIVKZP.js} +72 -6
- package/dist/chunks/{chunk-IV6H2XE4.js → chunk-K5KJBM44.js} +19 -2
- package/dist/chunks/{chunk-W6O2LWN4.js → chunk-MEXE5SYY.js} +18 -1
- package/dist/chunks/{chunk-THDY5NFO.js → chunk-MHFXK3XK.js} +18 -1
- package/dist/chunks/{chunk-4HTLIVVR.js → chunk-NCFEMX7E.js} +17 -0
- package/dist/chunks/{chunk-ICOYQZHB.js → chunk-PGKEXZYI.js} +26 -9
- package/dist/chunks/{chunk-VTNP3O6A.js → chunk-TQNFJUNM.js} +29069 -37287
- package/dist/chunks/{chunk-2AKGZQ4A.js → chunk-ZHTGXQAR.js} +19 -2
- package/dist/chunks/{devtools-2MFFCPCG.js → devtools-AE6I2IJN.js} +20 -3
- package/dist/chunks/{devtools-ITROVIMB.js → devtools-IPZOX54X.js} +20 -3
- package/dist/chunks/dist-3BATS3LO.js +24 -0
- package/dist/chunks/{en-TX2CGKV3.js → en-N5RDRPST.js} +18 -1
- package/dist/chunks/{gemini-7AQ6BAIN.js → gemini-GXD4BGSD.js} +2266 -1447
- package/dist/chunks/{getMachineId-bsd-2RCFHEOM.js → getMachineId-bsd-4WX5XJ3I.js} +20 -3
- package/dist/chunks/{getMachineId-darwin-BBFRQYU6.js → getMachineId-darwin-URXQ2X3N.js} +20 -3
- package/dist/chunks/{getMachineId-linux-UPET74JV.js → getMachineId-linux-4Y2DTNAA.js} +19 -2
- package/dist/chunks/{getMachineId-unsupported-VIGKLEW5.js → getMachineId-unsupported-A5RT6P2V.js} +19 -2
- package/dist/chunks/{getMachineId-win-AYPIIM5S.js → getMachineId-win-HIFMWK2N.js} +20 -3
- package/dist/chunks/{keychain-token-storage-WM6GUOMH.js → keychain-token-storage-EPJEI2HJ.js} +19 -2
- package/dist/chunks/node-fetch-HP6CZCEV.js +28 -0
- package/dist/chunks/openaiContentGenerator-RS2GU6IS.js +51 -0
- package/dist/chunks/{papertContentGenerator-FYBOOJV3.js → papertContentGenerator-RYRJQVBF.js} +30 -12
- package/dist/chunks/papertOAuth2-4I4JYPZW.js +51 -0
- package/dist/chunks/pluginSystem-5MM7PDLU.js +26 -0
- package/dist/chunks/server-N2U4FF55.js +26 -0
- package/dist/chunks/sharedTokenManager-GSQ3FULT.js +31 -0
- package/dist/chunks/undici-FJNCTQAO.js +24 -0
- package/dist/chunks/{zh-ACGEBTQR.js → zh-S2V7TL6B.js} +18 -1
- package/dist/cli.js +25 -17
- package/package.json +1 -1
- package/dist/chunks/chunk-BR7CCFAR.js +0 -5151
- package/dist/chunks/chunk-RMKGXYYI.js +0 -265
- package/dist/chunks/dist-L6NNW4TJ.js +0 -7
- package/dist/chunks/multipart-parser-IMIWHGMY.js +0 -381
- package/dist/chunks/openaiContentGenerator-WFZAEDJG.js +0 -33
- package/dist/chunks/papertOAuth2-JNUOPD7M.js +0 -34
- package/dist/chunks/pluginSystem-3V7KBDEE.js +0 -9
- package/dist/chunks/server-3DEIAIVB.js +0 -9
- package/dist/chunks/sharedTokenManager-Z6PG3UKZ.js +0 -14
- package/dist/chunks/src-ERBEIN35.js +0 -1445
- package/dist/chunks/undici-EPWKVH6H.js +0 -7
|
@@ -1,19 +1,36 @@
|
|
|
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_execAsync
|
|
5
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MEXE5SYY.js";
|
|
6
23
|
import {
|
|
7
24
|
esm_exports,
|
|
8
25
|
init_esm
|
|
9
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2MUETKKX.js";
|
|
10
27
|
import {
|
|
11
28
|
__commonJS,
|
|
12
29
|
__name,
|
|
13
30
|
__require,
|
|
14
31
|
__toCommonJS,
|
|
15
32
|
init_esbuild_shims
|
|
16
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NCFEMX7E.js";
|
|
17
34
|
|
|
18
35
|
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
19
36
|
var require_getMachineId_bsd = __commonJS({
|
|
@@ -1,18 +1,35 @@
|
|
|
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_execAsync
|
|
5
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MEXE5SYY.js";
|
|
6
23
|
import {
|
|
7
24
|
esm_exports,
|
|
8
25
|
init_esm
|
|
9
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2MUETKKX.js";
|
|
10
27
|
import {
|
|
11
28
|
__commonJS,
|
|
12
29
|
__name,
|
|
13
30
|
__toCommonJS,
|
|
14
31
|
init_esbuild_shims
|
|
15
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NCFEMX7E.js";
|
|
16
33
|
|
|
17
34
|
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
|
|
18
35
|
var require_getMachineId_darwin = __commonJS({
|
|
@@ -1,16 +1,33 @@
|
|
|
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
|
esm_exports,
|
|
5
22
|
init_esm
|
|
6
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2MUETKKX.js";
|
|
7
24
|
import {
|
|
8
25
|
__commonJS,
|
|
9
26
|
__name,
|
|
10
27
|
__require,
|
|
11
28
|
__toCommonJS,
|
|
12
29
|
init_esbuild_shims
|
|
13
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NCFEMX7E.js";
|
|
14
31
|
|
|
15
32
|
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
16
33
|
var require_getMachineId_linux = __commonJS({
|
package/dist/chunks/{getMachineId-unsupported-VIGKLEW5.js → getMachineId-unsupported-A5RT6P2V.js}
RENAMED
|
@@ -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
|
esm_exports,
|
|
5
22
|
init_esm
|
|
6
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2MUETKKX.js";
|
|
7
24
|
import {
|
|
8
25
|
__commonJS,
|
|
9
26
|
__name,
|
|
10
27
|
__toCommonJS,
|
|
11
28
|
init_esbuild_shims
|
|
12
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NCFEMX7E.js";
|
|
13
30
|
|
|
14
31
|
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
|
|
15
32
|
var require_getMachineId_unsupported = __commonJS({
|
|
@@ -1,19 +1,36 @@
|
|
|
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_execAsync
|
|
5
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MEXE5SYY.js";
|
|
6
23
|
import {
|
|
7
24
|
esm_exports,
|
|
8
25
|
init_esm
|
|
9
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2MUETKKX.js";
|
|
10
27
|
import {
|
|
11
28
|
__commonJS,
|
|
12
29
|
__name,
|
|
13
30
|
__require,
|
|
14
31
|
__toCommonJS,
|
|
15
32
|
init_esbuild_shims
|
|
16
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NCFEMX7E.js";
|
|
17
34
|
|
|
18
35
|
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
|
|
19
36
|
var require_getMachineId_win = __commonJS({
|
package/dist/chunks/{keychain-token-storage-WM6GUOMH.js → keychain-token-storage-EPJEI2HJ.js}
RENAMED
|
@@ -1,12 +1,29 @@
|
|
|
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
|
BaseTokenStorage
|
|
5
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FJQLUUKC.js";
|
|
6
23
|
import {
|
|
7
24
|
__name,
|
|
8
25
|
init_esbuild_shims
|
|
9
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NCFEMX7E.js";
|
|
10
27
|
|
|
11
28
|
// packages/core/dist/src/mcp/token-storage/keychain-token-storage.js
|
|
12
29
|
init_esbuild_shims();
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
init_node_fetch,
|
|
22
|
+
node_fetch_default
|
|
23
|
+
} from "./chunk-BMT6LRT3.js";
|
|
24
|
+
import "./chunk-NCFEMX7E.js";
|
|
25
|
+
init_node_fetch();
|
|
26
|
+
export {
|
|
27
|
+
node_fetch_default as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
ContentGenerationPipeline,
|
|
22
|
+
DashScopeOpenAICompatibleProvider,
|
|
23
|
+
DeepSeekOpenAICompatibleProvider,
|
|
24
|
+
DefaultTelemetryService,
|
|
25
|
+
EnhancedErrorHandler,
|
|
26
|
+
OpenAIContentConverter,
|
|
27
|
+
OpenAIContentGenerator,
|
|
28
|
+
OpenRouterOpenAICompatibleProvider,
|
|
29
|
+
createOpenAIContentGenerator,
|
|
30
|
+
determineProvider
|
|
31
|
+
} from "./chunk-ZHTGXQAR.js";
|
|
32
|
+
import "./chunk-TQNFJUNM.js";
|
|
33
|
+
import "./chunk-F77EGXST.js";
|
|
34
|
+
import "./chunk-2MUETKKX.js";
|
|
35
|
+
import "./chunk-MHFXK3XK.js";
|
|
36
|
+
import "./chunk-BMT6LRT3.js";
|
|
37
|
+
import "./chunk-FJQLUUKC.js";
|
|
38
|
+
import "./chunk-4YLWLT76.js";
|
|
39
|
+
import "./chunk-NCFEMX7E.js";
|
|
40
|
+
export {
|
|
41
|
+
ContentGenerationPipeline,
|
|
42
|
+
DashScopeOpenAICompatibleProvider,
|
|
43
|
+
DeepSeekOpenAICompatibleProvider,
|
|
44
|
+
DefaultTelemetryService,
|
|
45
|
+
EnhancedErrorHandler,
|
|
46
|
+
OpenAIContentConverter,
|
|
47
|
+
OpenAIContentGenerator,
|
|
48
|
+
OpenRouterOpenAICompatibleProvider,
|
|
49
|
+
createOpenAIContentGenerator,
|
|
50
|
+
determineProvider
|
|
51
|
+
};
|
package/dist/chunks/{papertContentGenerator-FYBOOJV3.js → papertContentGenerator-RYRJQVBF.js}
RENAMED
|
@@ -1,27 +1,45 @@
|
|
|
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
|
+
};
|
|
20
|
+
import "./chunk-PGKEXZYI.js";
|
|
3
21
|
import {
|
|
4
22
|
DashScopeOpenAICompatibleProvider,
|
|
5
23
|
OpenAIContentGenerator
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-ICOYQZHB.js";
|
|
24
|
+
} from "./chunk-ZHTGXQAR.js";
|
|
8
25
|
import {
|
|
9
26
|
DEFAULT_DASHSCOPE_BASE_URL
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-TQNFJUNM.js";
|
|
28
|
+
import "./chunk-F77EGXST.js";
|
|
29
|
+
import "./chunk-2MUETKKX.js";
|
|
30
|
+
import "./chunk-B4UTHNG5.js";
|
|
31
|
+
import "./chunk-423NGIST.js";
|
|
32
|
+
import "./chunk-MHFXK3XK.js";
|
|
33
|
+
import "./chunk-BMT6LRT3.js";
|
|
34
|
+
import "./chunk-FJQLUUKC.js";
|
|
17
35
|
import {
|
|
18
36
|
SharedTokenManager
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-K5KJBM44.js";
|
|
38
|
+
import "./chunk-4YLWLT76.js";
|
|
21
39
|
import {
|
|
22
40
|
__name,
|
|
23
41
|
init_esbuild_shims
|
|
24
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NCFEMX7E.js";
|
|
25
43
|
|
|
26
44
|
// packages/core/dist/src/papert/papertContentGenerator.js
|
|
27
45
|
init_esbuild_shims();
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
CredentialsClearRequiredError,
|
|
22
|
+
PapertOAuth2Client,
|
|
23
|
+
PapertOAuth2Event,
|
|
24
|
+
clearPapertCredentials,
|
|
25
|
+
generateCodeChallenge,
|
|
26
|
+
generateCodeVerifier,
|
|
27
|
+
generatePKCEPair,
|
|
28
|
+
getPapertOAuthClient,
|
|
29
|
+
isDeviceAuthorizationSuccess,
|
|
30
|
+
isDeviceTokenPending,
|
|
31
|
+
isDeviceTokenSuccess,
|
|
32
|
+
isErrorResponse,
|
|
33
|
+
papertOAuth2Events
|
|
34
|
+
} from "./chunk-K5KJBM44.js";
|
|
35
|
+
import "./chunk-4YLWLT76.js";
|
|
36
|
+
import "./chunk-NCFEMX7E.js";
|
|
37
|
+
export {
|
|
38
|
+
CredentialsClearRequiredError,
|
|
39
|
+
PapertOAuth2Client,
|
|
40
|
+
PapertOAuth2Event,
|
|
41
|
+
clearPapertCredentials,
|
|
42
|
+
generateCodeChallenge,
|
|
43
|
+
generateCodeVerifier,
|
|
44
|
+
generatePKCEPair,
|
|
45
|
+
getPapertOAuthClient,
|
|
46
|
+
isDeviceAuthorizationSuccess,
|
|
47
|
+
isDeviceTokenPending,
|
|
48
|
+
isDeviceTokenSuccess,
|
|
49
|
+
isErrorResponse,
|
|
50
|
+
papertOAuth2Events
|
|
51
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
PluginSystem
|
|
22
|
+
} from "./chunk-B4UTHNG5.js";
|
|
23
|
+
import "./chunk-NCFEMX7E.js";
|
|
24
|
+
export {
|
|
25
|
+
PluginSystem
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
serverCommand
|
|
22
|
+
} from "./chunk-JATIVKZP.js";
|
|
23
|
+
import "./chunk-NCFEMX7E.js";
|
|
24
|
+
export {
|
|
25
|
+
serverCommand
|
|
26
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
SharedTokenManager,
|
|
22
|
+
TokenError,
|
|
23
|
+
TokenManagerError
|
|
24
|
+
} from "./chunk-K5KJBM44.js";
|
|
25
|
+
import "./chunk-4YLWLT76.js";
|
|
26
|
+
import "./chunk-NCFEMX7E.js";
|
|
27
|
+
export {
|
|
28
|
+
SharedTokenManager,
|
|
29
|
+
TokenError,
|
|
30
|
+
TokenManagerError
|
|
31
|
+
};
|
|
@@ -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_undici
|
|
22
|
+
} from "./chunk-423NGIST.js";
|
|
23
|
+
import "./chunk-NCFEMX7E.js";
|
|
24
|
+
export default require_undici();
|
|
@@ -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-
|
|
22
|
+
} from "./chunk-NCFEMX7E.js";
|
|
6
23
|
|
|
7
24
|
// packages/cli/src/i18n/locales/zh.js
|
|
8
25
|
init_esbuild_shims();
|
package/dist/cli.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Force strict mode and setup for ESM
|
|
3
3
|
"use strict";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
const __papertOriginalEmitWarning = process.emitWarning.bind(process);
|
|
5
|
+
process.emitWarning = function patchedEmitWarning(warning, ...args) {
|
|
6
|
+
if (!process.env.PAPERT_SHOW_NODE_DEPRECATIONS) {
|
|
7
|
+
const warningCode =
|
|
8
|
+
(warning && typeof warning === 'object' && 'code' in warning && warning.code) ||
|
|
9
|
+
(args.length > 1 && typeof args[1] === 'string' && args[1]) ||
|
|
10
|
+
(args.length > 0 &&
|
|
11
|
+
args[0] &&
|
|
12
|
+
typeof args[0] === 'object' &&
|
|
13
|
+
'code' in args[0] &&
|
|
14
|
+
args[0].code);
|
|
15
|
+
if (warningCode === 'DEP0040' || warningCode === 'DEP0169') {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return __papertOriginalEmitWarning(warning, ...args);
|
|
20
|
+
};
|
|
17
21
|
import {
|
|
18
22
|
__name,
|
|
19
23
|
init_esbuild_shims
|
|
20
|
-
} from "./chunks/chunk-
|
|
24
|
+
} from "./chunks/chunk-NCFEMX7E.js";
|
|
21
25
|
|
|
22
26
|
// packages/cli/index.ts
|
|
23
27
|
init_esbuild_shims();
|
|
@@ -25,9 +29,13 @@ function isServerCommand(argv) {
|
|
|
25
29
|
return argv.includes("server");
|
|
26
30
|
}
|
|
27
31
|
__name(isServerCommand, "isServerCommand");
|
|
32
|
+
function isFatalErrorLike(error) {
|
|
33
|
+
return typeof error === "object" && error !== null && "message" in error && "exitCode" in error && typeof error.message === "string" && typeof error.exitCode === "number";
|
|
34
|
+
}
|
|
35
|
+
__name(isFatalErrorLike, "isFatalErrorLike");
|
|
28
36
|
async function mainEntrypoint() {
|
|
29
37
|
if (isServerCommand(process.argv.slice(2))) {
|
|
30
|
-
const { serverCommand } = await import("./chunks/server-
|
|
38
|
+
const { serverCommand } = await import("./chunks/server-N2U4FF55.js");
|
|
31
39
|
const rawArgs = process.argv.slice(2);
|
|
32
40
|
const getArgValue = /* @__PURE__ */ __name((name) => {
|
|
33
41
|
const idx = rawArgs.indexOf(name);
|
|
@@ -49,12 +57,12 @@ async function mainEntrypoint() {
|
|
|
49
57
|
await serverCommand.handler(argv);
|
|
50
58
|
return;
|
|
51
59
|
}
|
|
52
|
-
const { main } = await import("./chunks/gemini-
|
|
60
|
+
const { main } = await import("./chunks/gemini-GXD4BGSD.js");
|
|
53
61
|
await main();
|
|
54
62
|
}
|
|
55
63
|
__name(mainEntrypoint, "mainEntrypoint");
|
|
56
64
|
mainEntrypoint().catch((error) => {
|
|
57
|
-
if (error
|
|
65
|
+
if (isFatalErrorLike(error)) {
|
|
58
66
|
let errorMessage = error.message;
|
|
59
67
|
if (!process.env["NO_COLOR"]) {
|
|
60
68
|
errorMessage = `\x1B[31m${errorMessage}\x1B[0m`;
|