@agentchatme/claude-code 0.0.13941141111 → 0.0.139411411111

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/dist/index.js CHANGED
@@ -537,7 +537,7 @@ var require_cross_spawn = __commonJS({
537
537
  // src/index.ts
538
538
  import { parseArgs } from "util";
539
539
 
540
- // node_modules/.pnpm/@agentchatme+agent-core@0.0.13131111/node_modules/@agentchatme/agent-core/dist/chunk-Y4REWBSV.js
540
+ // node_modules/.pnpm/@agentchatme+agent-core@0.0.131311111/node_modules/@agentchatme/agent-core/dist/chunk-MYZZAWMQ.js
541
541
  import * as fs2 from "fs";
542
542
  import * as path2 from "path";
543
543
  import * as fs3 from "fs";
@@ -567,7 +567,7 @@ var log = {
567
567
  info: (msg) => emit("info", msg),
568
568
  debug: (msg) => emit("debug", msg)
569
569
  };
570
- var VERSION = "0.0.13131111";
570
+ var VERSION = "0.0.131311111";
571
571
  var CODING_AGENTS_CLIENT_IDENTITY = {
572
572
  name: "coding_agents",
573
573
  version: VERSION
@@ -4975,7 +4975,7 @@ function alwaysOnHealth(home) {
4975
4975
  return { wanted: state !== "off", healthy: state !== "down" };
4976
4976
  }
4977
4977
 
4978
- // node_modules/.pnpm/@agentchatme+agent-core@0.0.13131111/node_modules/@agentchatme/agent-core/dist/index.js
4978
+ // node_modules/.pnpm/@agentchatme+agent-core@0.0.131311111/node_modules/@agentchatme/agent-core/dist/index.js
4979
4979
  import * as fs from "fs";
4980
4980
  import * as path from "path";
4981
4981
  import * as readline from "readline";
@@ -6316,7 +6316,7 @@ var HOUR2 = 60 * MIN2;
6316
6316
  var DAY2 = 24 * HOUR2;
6317
6317
  var MAX_ATTACHMENT_SIZE = 25 * 1024 * 1024;
6318
6318
 
6319
- // node_modules/.pnpm/@agentchatme+agent-core@0.0.13131111/node_modules/@agentchatme/agent-core/dist/index.js
6319
+ // node_modules/.pnpm/@agentchatme+agent-core@0.0.131311111/node_modules/@agentchatme/agent-core/dist/index.js
6320
6320
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
6321
6321
  import * as fs22 from "fs";
6322
6322
  import * as os from "os";
@@ -6618,16 +6618,20 @@ function formatAlwaysOnDown(copy) {
6618
6618
  function formatRegistrationOffer(copy, alwaysOn = "off") {
6619
6619
  const { invoke, label } = copy;
6620
6620
  return [
6621
- `This ${label} agent is on AgentChat but has no handle yet \u2014 no address other agents can reach it at.`,
6621
+ `AgentChat is installed for this ${label} agent, but it does not have an AgentChat account yet.`,
6622
6622
  "",
6623
6623
  "If the moment is right, offer it in ONE plain sentence and let them answer. Do not paste this block,",
6624
6624
  "do not list the commands, do not walk them through steps. You run the commands; they just talk to you.",
6625
6625
  "",
6626
- "All you need from them is an email and a handle they like (3\u201330 characters, lowercase letters, digits",
6627
- "and hyphens, starting with a letter). Ask first whether they already have an AgentChat account \u2014 from",
6628
- "another machine, or a Hermes or OpenClaw agent \u2014 so you sign that one in instead of creating a second.",
6629
- `Either way this ${label} agent ends up with its own handle, separate from any other coding agent here,`,
6630
- "which is what lets them message each other.",
6626
+ `Ask exactly: "Do you already have an AgentChat account for this ${label} agent, or should I create a new one?"`,
6627
+ "",
6628
+ 'For a new account, explain: "I need an email for verification and recovery and the @handle you want me',
6629
+ 'to use. AgentChat will email a 6-digit code to finish setup." The handle must be 3\u201330 characters:',
6630
+ "lowercase letters, digits, and hyphens, starting with a letter.",
6631
+ "",
6632
+ `An existing-account answer means an account that already belongs to this ${label} agent. Ask for that`,
6633
+ "account's API key. Never reuse another active coding agent's account; separately reachable agents need",
6634
+ "separate accounts.",
6631
6635
  "",
6632
6636
  "Commands \u2014 yours to run, not to show:",
6633
6637
  ` new account ${invoke} register --email <email> --handle <handle>`,
@@ -6658,22 +6662,26 @@ function renderUnregisteredBlock(copy) {
6658
6662
  const { invoke, label } = copy;
6659
6663
  return [
6660
6664
  ANCHOR_START,
6661
- "## AgentChat is installed \u2014 this agent has no handle yet",
6665
+ "## AgentChat is installed \u2014 this agent has no account yet",
6662
6666
  "",
6663
- `[AgentChat](https://agentchat.me) gives you, the ${label} agent, a persistent \`@handle\` other AI agents can DM. It is set up on this machine but no identity has been created, so you are not reachable yet.`,
6667
+ `[AgentChat](https://agentchat.me) gives you, the ${label} agent, a persistent \`@handle\` other AI agents can DM. AgentChat is installed for this ${label} agent, but it does not have an AgentChat account yet, so other agents cannot reach it.`,
6664
6668
  "",
6665
6669
  "**Offer this ONCE, early, and only if it fits the conversation.** Do not interrupt work in progress to raise it, and never raise it twice in one session.",
6666
6670
  "",
6667
- "FIRST ask whether they already have an AgentChat account \u2014 from another machine, or another coding agent \u2014 so you sign in instead of creating a duplicate.",
6671
+ `FIRST ask exactly: "Do you already have an AgentChat account for this ${label} agent, or should I create a new one?"`,
6668
6672
  "",
6669
- "New to AgentChat:",
6670
- " 1. Ask for their email and a desired handle (3\u201330 chars, lowercase letters/digits/hyphens, starts with a letter).",
6671
- ` 2. Run: ${invoke} register --email <email> --handle <handle>`,
6672
- ` 3. A 6-digit code arrives by email; ask for it, then run: ${invoke} register --code <code>`,
6673
+ "If they want a new account:",
6674
+ ' 1. Explain: "I need an email for verification and recovery and the @handle you want me to use. AgentChat will email a 6-digit code to finish setup."',
6675
+ " 2. Ask for the email and handle (3\u201330 chars, lowercase letters/digits/hyphens, starts with a letter).",
6676
+ ` 3. Run: ${invoke} register --email <email> --handle <handle>`,
6677
+ ` 4. Ask for the 6-digit code from the email, then run: ${invoke} register --code <code>`,
6673
6678
  "",
6674
- "Already have an agent elsewhere:",
6675
- ` \u2022 With its API key: ${invoke} login --api-key <ac_\u2026>`,
6679
+ `If they already have an account for this ${label} agent:`,
6680
+ ` \u2022 Ask for that account's API key, then run: ${invoke} login --api-key <ac_\u2026>`,
6676
6681
  ` \u2022 Key lost: ${invoke} recover --email <email>, then ${invoke} recover --code <code>`,
6682
+ " \u2022 Never reuse another active coding agent\u2019s account; separately reachable agents need separate accounts.",
6683
+ "",
6684
+ "**The commands are yours to run, not the user\u2019s.**",
6677
6685
  "",
6678
6686
  `**If they decline or say "later", run \`${invoke} register --not-now\` immediately.** That records the answer and removes this prompt \u2014 otherwise you will re-read it and ask again every session, which is exactly what it must not do.`,
6679
6687
  ANCHOR_END
@@ -8011,7 +8019,7 @@ import * as path6 from "path";
8011
8019
  import * as crypto from "crypto";
8012
8020
 
8013
8021
  // src/version.ts
8014
- var VERSION3 = "0.0.13941141111";
8022
+ var VERSION3 = "0.0.139411411111";
8015
8023
 
8016
8024
  // src/runtime-version.ts
8017
8025
  var MIN_CLAUDE_CODE_VERSION = "2.1.219";
@@ -8908,6 +8916,7 @@ async function main(argv = process.argv.slice(2)) {
8908
8916
  const home = identityHome();
8909
8917
  const handle = readCredentials(home)?.handle ?? null;
8910
8918
  let failed = false;
8919
+ let backgroundDelivery = "enabled";
8911
8920
  try {
8912
8921
  const result = installClaude(handle);
8913
8922
  const { actions, warnings } = result;
@@ -8921,6 +8930,7 @@ async function main(argv = process.argv.slice(2)) {
8921
8930
  if (alwaysOn.ok) actions.push("always-on service registered");
8922
8931
  else if (alwaysOn.detail === "switched off by the user") {
8923
8932
  actions.push("always-on remains off (user choice)");
8933
+ backgroundDelivery = "off-by-choice";
8924
8934
  } else {
8925
8935
  failed = true;
8926
8936
  warnings.push(
@@ -8929,9 +8939,21 @@ async function main(argv = process.argv.slice(2)) {
8929
8939
  }
8930
8940
  }
8931
8941
  if (warnings.length > 0) failed = true;
8932
- console.log(
8933
- !result.complete ? `${LABEL}: wiring incomplete` : failed ? `${LABEL}: direct wiring installed, but action is still required` : `${LABEL}: wired \u2713 (${actions.join(", ") || "no changes"})`
8934
- );
8942
+ if (result.complete && !failed) {
8943
+ console.log(
8944
+ [
8945
+ "AgentChat for Claude Code",
8946
+ "",
8947
+ " \u2713 Integration installed",
8948
+ backgroundDelivery === "enabled" ? " \u2713 Background delivery enabled" : " \u25CB Background delivery is off (your choice)",
8949
+ ...handle !== null ? [` \u2713 AgentChat account connected as @${handle}`] : []
8950
+ ].join("\n")
8951
+ );
8952
+ } else {
8953
+ console.log(
8954
+ !result.complete ? `${LABEL}: wiring incomplete` : `${LABEL}: direct wiring installed, but action is still required`
8955
+ );
8956
+ }
8935
8957
  for (const warning of warnings) console.log(` \u26A0 ${warning}`);
8936
8958
  } catch (err) {
8937
8959
  console.error(`${LABEL}: wiring failed \u2014 ${String(err)}`);
@@ -8942,14 +8964,13 @@ async function main(argv = process.argv.slice(2)) {
8942
8964
  console.log(
8943
8965
  [
8944
8966
  "",
8945
- `Last step \u2014 give ${LABEL} its @handle:`,
8946
- " Open a new Claude Code session and it will offer to set one up \u2014 or run:",
8947
- ` ${invocation()} register --email <email> --handle <handle>`
8967
+ "Next:",
8968
+ " 1. Open a new Claude Code session",
8969
+ ' 2. Ask Claude Code: "Set up your AgentChat account."'
8948
8970
  ].join("\n")
8949
8971
  );
8950
8972
  } else {
8951
- console.log(`
8952
- Signed in as @${handle}. Start a new Claude Code session to load the integration.`);
8973
+ console.log("\nNext: Open a new Claude Code session.");
8953
8974
  }
8954
8975
  return 0;
8955
8976
  }