@papert-code/papert-code 0.3.0 → 0.3.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 (2) hide show
  1. package/dist/cli.js +4 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -144640,7 +144640,6 @@ ${[...baseTips, ...streamingSpecificTips].join("\n")}`;
144640
144640
  });
144641
144641
 
144642
144642
  // packages/core/dist/src/utils/request-tokenizer/textTokenizer.js
144643
- import { get_encoding } from "tiktoken";
144644
144643
  var TextTokenizer;
144645
144644
  var init_textTokenizer = __esm({
144646
144645
  "packages/core/dist/src/utils/request-tokenizer/textTokenizer.js"() {
@@ -144662,6 +144661,7 @@ var init_textTokenizer = __esm({
144662
144661
  if (this.encoding)
144663
144662
  return;
144664
144663
  try {
144664
+ const { get_encoding } = await import("tiktoken");
144665
144665
  this.encoding = get_encoding(this.encodingName);
144666
144666
  } catch (error2) {
144667
144667
  console.warn(`Failed to load tiktoken with encoding ${this.encodingName}:`, error2);
@@ -145697,7 +145697,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
145697
145697
  };
145698
145698
  }
145699
145699
  async function createContentGenerator(config2, gcConfig, isInitialAuth) {
145700
- const version3 = "0.3.0";
145700
+ const version3 = "0.3.1";
145701
145701
  const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
145702
145702
  const baseHeaders = {
145703
145703
  "User-Agent": userAgent2
@@ -315855,7 +315855,7 @@ __name(getPackageJson, "getPackageJson");
315855
315855
  // packages/cli/src/utils/version.ts
315856
315856
  async function getCliVersion() {
315857
315857
  const pkgJson = await getPackageJson();
315858
- return "0.3.0";
315858
+ return "0.3.1";
315859
315859
  }
315860
315860
  __name(getCliVersion, "getCliVersion");
315861
315861
 
@@ -369909,7 +369909,7 @@ var GeminiAgent = class {
369909
369909
  name: APPROVAL_MODE_INFO[mode].name,
369910
369910
  description: APPROVAL_MODE_INFO[mode].description
369911
369911
  }));
369912
- const version3 = "0.3.0";
369912
+ const version3 = "0.3.1";
369913
369913
  return {
369914
369914
  protocolVersion: PROTOCOL_VERSION,
369915
369915
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@papert-code/papert-code",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },