pointcode 0.1.2 → 0.1.3

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.mjs +58 -59
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -123088,7 +123088,7 @@ var init_metadata = __esm(() => {
123088
123088
  isClaudeAiAuth: isClaudeAISubscriber(),
123089
123089
  version: "99.0.0",
123090
123090
  versionBase: getVersionBase(),
123091
- buildTime: "2026-04-02T14:26:23.252Z",
123091
+ buildTime: "2026-04-02T16:04:55.637Z",
123092
123092
  deploymentEnvironment: env3.detectDeploymentEnvironment(),
123093
123093
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
123094
123094
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -364117,7 +364117,7 @@ function getAnthropicEnvMetadata() {
364117
364117
  function getBuildAgeMinutes() {
364118
364118
  if (false)
364119
364119
  ;
364120
- const buildTime = new Date("2026-04-02T14:26:23.252Z").getTime();
364120
+ const buildTime = new Date("2026-04-02T16:04:55.637Z").getTime();
364121
364121
  if (isNaN(buildTime))
364122
364122
  return;
364123
364123
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -428413,7 +428413,7 @@ function getRecentActivitySync() {
428413
428413
  return cachedActivity;
428414
428414
  }
428415
428415
  function getLogoDisplayData() {
428416
- const version2 = process.env.DEMO_VERSION ?? "0.1.2" ?? "99.0.0";
428416
+ const version2 = process.env.DEMO_VERSION ?? "0.1.3" ?? "99.0.0";
428417
428417
  const serverUrl = getDirectConnectServerUrl();
428418
428418
  const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
428419
428419
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -429843,7 +429843,7 @@ function Opus1mMergeNotice() {
429843
429843
  dimColor: true,
429844
429844
  children: [
429845
429845
  " ",
429846
- "Opus now defaults to 1M context · 5x more room, same pricing"
429846
+ "世界模型不是世界本身,而是我们与未知达成和解的方式。"
429847
429847
  ]
429848
429848
  }, undefined, true, undefined, this)
429849
429849
  ]
@@ -450922,6 +450922,7 @@ function AgentDetail(t0) {
450922
450922
  t1 = $2[1];
450923
450923
  }
450924
450924
  const filePath = t1;
450925
+ const displayFilePath = filePath.replace(".claude", ".point");
450925
450926
  let t2;
450926
450927
  if ($2[2] !== agent.agentType) {
450927
450928
  t2 = getAgentColor(agent.agentType);
@@ -450989,12 +450990,12 @@ function AgentDetail(t0) {
450989
450990
  const t7 = 0;
450990
450991
  const t8 = true;
450991
450992
  let t9;
450992
- if ($2[7] !== filePath) {
450993
+ if ($2[7] !== displayFilePath) {
450993
450994
  t9 = /* @__PURE__ */ jsx_dev_runtime313.jsxDEV(ThemedText, {
450994
450995
  dimColor: true,
450995
- children: filePath
450996
+ children: displayFilePath
450996
450997
  }, undefined, false, undefined, this);
450997
- $2[7] = filePath;
450998
+ $2[7] = displayFilePath;
450998
450999
  $2[8] = t9;
450999
451000
  } else {
451000
451001
  t9 = $2[8];
@@ -451007,7 +451008,7 @@ function AgentDetail(t0) {
451007
451008
  bold: true,
451008
451009
  children: "Description"
451009
451010
  }, undefined, false, undefined, this),
451010
- " (tells Claude when to use this agent):"
451011
+ " (tells Point when to use this agent):"
451011
451012
  ]
451012
451013
  }, undefined, true, undefined, this);
451013
451014
  $2[9] = t10;
@@ -453723,7 +453724,7 @@ function ConfirmStep(t0) {
453723
453724
  t242,
453724
453725
  ":",
453725
453726
  " ",
453726
- t252
453727
+ t252.replace(".claude", ".point")
453727
453728
  ]
453728
453729
  }, undefined, true, undefined, this);
453729
453730
  $2[42] = t252;
@@ -453803,7 +453804,7 @@ function ConfirmStep(t0) {
453803
453804
  bold: true,
453804
453805
  children: "Description"
453805
453806
  }, undefined, false, undefined, this),
453806
- " (tells Claude when to use this agent):"
453807
+ " (tells Point when to use this agent):"
453807
453808
  ]
453808
453809
  }, undefined, true, undefined, this)
453809
453810
  }, undefined, false, undefined, this);
@@ -454442,7 +454443,7 @@ var init_generateAgent = __esm(() => {
454442
454443
  init_slowOperations();
454443
454444
  AGENT_CREATION_SYSTEM_PROMPT = `You are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.
454444
454445
 
454445
- **Important Context**: You may have access to project-specific instructions from CLAUDE.md files and other context that may include coding standards, project structure, and custom requirements. Consider this context when creating agents to ensure they align with the project's established patterns and practices.
454446
+ **Important Context**: You may have access to project-specific instructions from POINT.md files and other context that may include coding standards, project structure, and custom requirements. Consider this context when creating agents to ensure they align with the project's established patterns and practices.
454446
454447
 
454447
454448
  When a user describes what they want an agent to do, you will:
454448
454449
 
@@ -454456,7 +454457,7 @@ When a user describes what they want an agent to do, you will:
454456
454457
  - Anticipates edge cases and provides guidance for handling them
454457
454458
  - Incorporates any specific requirements or preferences mentioned by the user
454458
454459
  - Defines output format expectations when relevant
454459
- - Aligns with project-specific coding standards and patterns from CLAUDE.md
454460
+ - Aligns with project-specific coding standards and patterns from POINT.md
454460
454461
 
454461
454462
  4. **Optimize for Performance**: Include:
454462
454463
  - Decision-making frameworks appropriate to the domain
@@ -454707,7 +454708,7 @@ function LocationStep() {
454707
454708
  let t0;
454708
454709
  if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
454709
454710
  t0 = {
454710
- label: "Project (.claude/agents/)",
454711
+ label: "Project (.point/agents/)",
454711
454712
  value: "projectSettings"
454712
454713
  };
454713
454714
  $2[0] = t0;
@@ -454717,7 +454718,7 @@ function LocationStep() {
454717
454718
  let t1;
454718
454719
  if ($2[1] === Symbol.for("react.memo_cache_sentinel")) {
454719
454720
  t1 = [t0, {
454720
- label: "Personal (~/.claude/agents/)",
454721
+ label: "Personal (~/.point/agents/)",
454721
454722
  value: "userSettings"
454722
454723
  }];
454723
454724
  $2[1] = t1;
@@ -454828,28 +454829,28 @@ function MemoryStep() {
454828
454829
  let t1;
454829
454830
  if ($2[1] !== isUserScope) {
454830
454831
  t1 = isUserScope ? [{
454831
- label: "User scope (~/.claude/agent-memory/) (Recommended)",
454832
+ label: "User scope (~/.point/agent-memory/) (Recommended)",
454832
454833
  value: "user"
454833
454834
  }, {
454834
454835
  label: "None (no persistent memory)",
454835
454836
  value: "none"
454836
454837
  }, {
454837
- label: "Project scope (.claude/agent-memory/)",
454838
+ label: "Project scope (.point/agent-memory/)",
454838
454839
  value: "project"
454839
454840
  }, {
454840
- label: "Local scope (.claude/agent-memory-local/)",
454841
+ label: "Local scope (.point/agent-memory-local/)",
454841
454842
  value: "local"
454842
454843
  }] : [{
454843
- label: "Project scope (.claude/agent-memory/) (Recommended)",
454844
+ label: "Project scope (.point/agent-memory/) (Recommended)",
454844
454845
  value: "project"
454845
454846
  }, {
454846
454847
  label: "None (no persistent memory)",
454847
454848
  value: "none"
454848
454849
  }, {
454849
- label: "User scope (~/.claude/agent-memory/)",
454850
+ label: "User scope (~/.point/agent-memory/)",
454850
454851
  value: "user"
454851
454852
  }, {
454852
- label: "Local scope (.claude/agent-memory-local/)",
454853
+ label: "Local scope (.point/agent-memory-local/)",
454853
454854
  value: "local"
454854
454855
  }];
454855
454856
  $2[1] = isUserScope;
@@ -458212,7 +458213,7 @@ var init_bridge_kick = __esm(() => {
458212
458213
  var call54 = async () => {
458213
458214
  return {
458214
458215
  type: "text",
458215
- value: `${"99.0.0"} (built ${"2026-04-02T14:26:23.252Z"})`
458216
+ value: `${"99.0.0"} (built ${"2026-04-02T16:04:55.637Z"})`
458216
458217
  };
458217
458218
  }, version2, version_default;
458218
458219
  var init_version = __esm(() => {
@@ -461232,6 +461233,31 @@ var exports_model2 = {};
461232
461233
  __export(exports_model2, {
461233
461234
  call: () => call61
461234
461235
  });
461236
+ async function saveModelApiKey(value, onDone) {
461237
+ if (getAPIProvider() === "openai") {
461238
+ const profile = saveOpenAIProviderProfile({
461239
+ OPENAI_BASE_URL: process.env.OPENAI_BASE_URL,
461240
+ OPENAI_MODEL: process.env.OPENAI_MODEL,
461241
+ OPENAI_API_KEY: value
461242
+ });
461243
+ applyProviderProfileToProcessEnv(profile);
461244
+ onDone("API key saved. You can now run /model to choose a model and start using PointCode.", {
461245
+ display: "system"
461246
+ });
461247
+ return;
461248
+ }
461249
+ try {
461250
+ await saveApiKey(value);
461251
+ process.env.ANTHROPIC_API_KEY = value;
461252
+ onDone("API key saved. You can now run /model to choose a model and start using PointCode.", {
461253
+ display: "system"
461254
+ });
461255
+ } catch (error42) {
461256
+ onDone(`Failed to save API key: ${error42.message}`, {
461257
+ display: "system"
461258
+ });
461259
+ }
461260
+ }
461235
461261
  function EnterApiKeyAndSave({
461236
461262
  onDone
461237
461263
  }) {
@@ -461245,21 +461271,7 @@ function EnterApiKeyAndSave({
461245
461271
  setErrorText("API key cannot be empty.");
461246
461272
  return;
461247
461273
  }
461248
- if (getAPIProvider() !== "openai") {
461249
- onDone("Current provider is not OpenAI-compatible. Run /provider set <provider_id> first, then /model key <api_key>.", {
461250
- display: "system"
461251
- });
461252
- return;
461253
- }
461254
- const profile = saveOpenAIProviderProfile({
461255
- OPENAI_BASE_URL: process.env.OPENAI_BASE_URL,
461256
- OPENAI_MODEL: process.env.OPENAI_MODEL,
461257
- OPENAI_API_KEY: value
461258
- });
461259
- applyProviderProfileToProcessEnv(profile);
461260
- onDone("API key saved. You can now run /model to choose a model and start using PointCode.", {
461261
- display: "system"
461262
- });
461274
+ saveModelApiKey(value, onDone);
461263
461275
  }
461264
461276
  return /* @__PURE__ */ jsx_dev_runtime352.jsxDEV(ThemedBox_default, {
461265
461277
  flexDirection: "column",
@@ -461621,7 +461633,7 @@ var import_react_compiler_runtime272, React110, import_react194, jsx_dev_runtime
461621
461633
  onDone
461622
461634
  }, undefined, false, undefined, this);
461623
461635
  }
461624
- if (missingOpenAIKeyTip && args.toLowerCase().startsWith("sk-")) {
461636
+ if (args.toLowerCase().startsWith("sk-")) {
461625
461637
  args = `key ${args}`;
461626
461638
  }
461627
461639
  if (args.toLowerCase() === "key") {
@@ -461637,21 +461649,7 @@ var import_react_compiler_runtime272, React110, import_react194, jsx_dev_runtime
461637
461649
  });
461638
461650
  return;
461639
461651
  }
461640
- if (getAPIProvider() !== "openai") {
461641
- onDone("Current provider is not OpenAI-compatible. Run /provider set <provider_id> first, then /model key <api_key>.", {
461642
- display: "system"
461643
- });
461644
- return;
461645
- }
461646
- const profile = saveOpenAIProviderProfile({
461647
- OPENAI_BASE_URL: process.env.OPENAI_BASE_URL,
461648
- OPENAI_MODEL: process.env.OPENAI_MODEL,
461649
- OPENAI_API_KEY: apiKey
461650
- });
461651
- applyProviderProfileToProcessEnv(profile);
461652
- onDone("API key saved. You can now run /model to choose a model and start using PointCode.", {
461653
- display: "system"
461654
- });
461652
+ await saveModelApiKey(apiKey, onDone);
461655
461653
  return;
461656
461654
  }
461657
461655
  if (COMMON_INFO_ARGS.includes(args)) {
@@ -461698,6 +461696,7 @@ var init_model2 = __esm(() => {
461698
461696
  init_providers();
461699
461697
  init_modelAllowlist();
461700
461698
  init_validateModel();
461699
+ init_auth2();
461701
461700
  init_providerSetup();
461702
461701
  import_react_compiler_runtime272 = __toESM(require_dist4(), 1);
461703
461702
  React110 = __toESM(require_react(), 1);
@@ -530951,7 +530950,7 @@ function WelcomeV2() {
530951
530950
  dimColor: true,
530952
530951
  children: [
530953
530952
  "v",
530954
- "0.1.2",
530953
+ "0.1.3",
530955
530954
  " "
530956
530955
  ]
530957
530956
  }, undefined, true, undefined, this)
@@ -531151,7 +531150,7 @@ function WelcomeV2() {
531151
531150
  dimColor: true,
531152
531151
  children: [
531153
531152
  "v",
531154
- "0.1.2",
531153
+ "0.1.3",
531155
531154
  " "
531156
531155
  ]
531157
531156
  }, undefined, true, undefined, this)
@@ -531377,7 +531376,7 @@ function AppleTerminalWelcomeV2(t0) {
531377
531376
  dimColor: true,
531378
531377
  children: [
531379
531378
  "v",
531380
- "0.1.2",
531379
+ "0.1.3",
531381
531380
  " "
531382
531381
  ]
531383
531382
  }, undefined, true, undefined, this);
@@ -531631,7 +531630,7 @@ function AppleTerminalWelcomeV2(t0) {
531631
531630
  dimColor: true,
531632
531631
  children: [
531633
531632
  "v",
531634
- "0.1.2",
531633
+ "0.1.3",
531635
531634
  " "
531636
531635
  ]
531637
531636
  }, undefined, true, undefined, this);
@@ -552121,7 +552120,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
552121
552120
  pendingHookMessages
552122
552121
  }, renderAndRun);
552123
552122
  }
552124
- }).version("0.1.2 (Open Claude)", "-v, --version", "Output the version number");
552123
+ }).version("0.1.3 (Open Claude)", "-v, --version", "Output the version number");
552125
552124
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
552126
552125
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
552127
552126
  if (canUserConfigureAdvisor()) {
@@ -552680,7 +552679,7 @@ function validateProviderEnvOrExit() {
552680
552679
  async function main2() {
552681
552680
  const args = process.argv.slice(2);
552682
552681
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
552683
- console.log(`${"0.1.2"} (PointCode)`);
552682
+ console.log(`${"0.1.3"} (PointCode)`);
552684
552683
  return;
552685
552684
  }
552686
552685
  validateProviderEnvOrExit();
@@ -552767,4 +552766,4 @@ async function main2() {
552767
552766
  }
552768
552767
  main2();
552769
552768
 
552770
- //# debugId=D1A8D54756D7EC3664756E2164756E21
552769
+ //# debugId=53DC4B04B092D38164756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pointcode",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "PointCode - 可自定义UI的AI编程助手",
5
5
  "type": "module",
6
6
  "bin": {