@papert-code/papert-code 0.3.92 → 0.3.94
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-VTNP3O6A.js → chunk-6ZOXSA5F.js} +29070 -37288
- package/dist/chunks/{chunk-ICOYQZHB.js → chunk-7T4OCWHU.js} +90 -24
- 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-2AKGZQ4A.js → chunk-OIA427PZ.js} +24 -5
- 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-WYRXV2QC.js} +4038 -2484
- 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-EAVO6L3Y.js +51 -0
- package/dist/chunks/{papertContentGenerator-FYBOOJV3.js → papertContentGenerator-G4SBF3DR.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 +6 -2
- 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-OIA427PZ.js";
|
|
32
|
+
import "./chunk-6ZOXSA5F.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-G4SBF3DR.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-7T4OCWHU.js";
|
|
3
21
|
import {
|
|
4
22
|
DashScopeOpenAICompatibleProvider,
|
|
5
23
|
OpenAIContentGenerator
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-ICOYQZHB.js";
|
|
24
|
+
} from "./chunk-OIA427PZ.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-6ZOXSA5F.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-WYRXV2QC.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`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papert-code/papert-code",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.94",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.0.0"
|
|
6
6
|
},
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",
|
|
24
24
|
"auth": "npm run auth:npm && npm run auth:docker",
|
|
25
25
|
"generate": "node scripts/generate-git-commit-info.js",
|
|
26
|
+
"docs:commands:sync": "node scripts/command-doc-parity.mjs --write",
|
|
27
|
+
"docs:commands:check": "node scripts/command-doc-parity.mjs --check",
|
|
28
|
+
"perf:check": "node scripts/perf-budgets.mjs",
|
|
29
|
+
"bundle:check": "node scripts/bundle-budgets.mjs",
|
|
26
30
|
"generate:settings-schema": "node --import tsx scripts/generate-settings-schema.ts",
|
|
27
31
|
"build": "node scripts/build.js",
|
|
28
32
|
"build-and-start": "npm run build && npm run start",
|
|
@@ -44,7 +48,7 @@
|
|
|
44
48
|
"test:terminal-bench:papert": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests -t 'papert'",
|
|
45
49
|
"lint": "eslint . --ext .ts,.tsx && eslint integration-tests",
|
|
46
50
|
"lint:fix": "eslint . --fix && eslint integration-tests --fix",
|
|
47
|
-
"lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 && eslint integration-tests --max-warnings 0",
|
|
51
|
+
"lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 && eslint integration-tests --max-warnings 0 && npm run docs:commands:check && npm run perf:check",
|
|
48
52
|
"lint:all": "node scripts/lint.js",
|
|
49
53
|
"format": "prettier --experimental-cli --write .",
|
|
50
54
|
"typecheck": "npm run typecheck --workspaces --if-present",
|