@papert-code/papert-code 0.3.94 → 0.3.95
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 +8 -0
- package/dist/chunks/{chunk-7T4OCWHU.js → chunk-DQ32BMUI.js} +1232 -677
- package/dist/chunks/{chunk-6ZOXSA5F.js → chunk-KDPC3L34.js} +4 -4
- package/dist/chunks/{chunk-OIA427PZ.js → chunk-Q5TJEKUL.js} +1 -1
- package/dist/chunks/{gemini-WYRXV2QC.js → gemini-SUVKHYG5.js} +17736 -16443
- package/dist/chunks/{openaiContentGenerator-EAVO6L3Y.js → openaiContentGenerator-P6VRBRRB.js} +2 -2
- package/dist/chunks/{papertContentGenerator-G4SBF3DR.js → papertContentGenerator-E64QQV3K.js} +3 -3
- package/dist/cli.js +1 -1
- package/package.json +7 -1
|
@@ -106342,7 +106342,7 @@ var __filename = fileURLToPath(import.meta.url);
|
|
|
106342
106342
|
var __dirname2 = path4.dirname(__filename);
|
|
106343
106343
|
async function getVersion() {
|
|
106344
106344
|
const pkgJson = await getPackageJson(__dirname2);
|
|
106345
|
-
return "0.3.
|
|
106345
|
+
return "0.3.95";
|
|
106346
106346
|
}
|
|
106347
106347
|
__name(getVersion, "getVersion");
|
|
106348
106348
|
|
|
@@ -110213,7 +110213,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
|
|
|
110213
110213
|
}
|
|
110214
110214
|
__name(createContentGeneratorConfig, "createContentGeneratorConfig");
|
|
110215
110215
|
async function createContentGenerator(config, gcConfig, isInitialAuth) {
|
|
110216
|
-
const version2 = "0.3.
|
|
110216
|
+
const version2 = "0.3.95";
|
|
110217
110217
|
const userAgent = `PapertCode/${version2} (${process.platform}; ${process.arch})`;
|
|
110218
110218
|
const baseHeaders = {
|
|
110219
110219
|
"User-Agent": userAgent
|
|
@@ -110244,12 +110244,12 @@ async function createContentGenerator(config, gcConfig, isInitialAuth) {
|
|
|
110244
110244
|
if (!config.apiKey) {
|
|
110245
110245
|
throw new Error("OpenAI API key is required");
|
|
110246
110246
|
}
|
|
110247
|
-
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-
|
|
110247
|
+
const { createOpenAIContentGenerator } = await import("./openaiContentGenerator-P6VRBRRB.js");
|
|
110248
110248
|
return createOpenAIContentGenerator(config, gcConfig);
|
|
110249
110249
|
}
|
|
110250
110250
|
if (config.authType === AuthType2.PAPERT_OAUTH) {
|
|
110251
110251
|
const { getPapertOAuthClient: getPapertOauthClient } = await import("./papertOAuth2-4I4JYPZW.js");
|
|
110252
|
-
const { PapertContentGenerator } = await import("./papertContentGenerator-
|
|
110252
|
+
const { PapertContentGenerator } = await import("./papertContentGenerator-E64QQV3K.js");
|
|
110253
110253
|
try {
|
|
110254
110254
|
const papertClient = await getPapertOauthClient(gcConfig, isInitialAuth ? { requireCachedCredentials: true } : void 0);
|
|
110255
110255
|
return new PapertContentGenerator(papertClient, config, gcConfig);
|