@agentchatme/agent-core 0.0.13131111 → 0.0.131311111

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.
@@ -10,7 +10,7 @@ import {
10
10
  idle,
11
11
  log,
12
12
  resolveIdentity
13
- } from "./chunk-Y4REWBSV.js";
13
+ } from "./chunk-MYZZAWMQ.js";
14
14
 
15
15
  // src/daemon/ws-client.ts
16
16
  import { WebSocket } from "ws";
package/dist/index.d.ts CHANGED
@@ -4,13 +4,13 @@ import { spawn, spawnSync } from 'node:child_process';
4
4
  /** Low-cardinality identity attached to every coding-agent API operation. */
5
5
  declare const CODING_AGENTS_CLIENT_IDENTITY: {
6
6
  readonly name: "coding_agents";
7
- readonly version: "0.0.13131111";
7
+ readonly version: "0.0.131311111";
8
8
  };
9
9
  /** Headers for raw HTTP and WebSocket transports that bypass the SDK. */
10
10
  declare const CODING_AGENTS_CLIENT_HEADERS: Readonly<Record<string, string>>;
11
11
 
12
12
  /** Published package version, kept in lockstep with package.json by tests. */
13
- declare const VERSION = "0.0.13131111";
13
+ declare const VERSION = "0.0.131311111";
14
14
 
15
15
  declare const SyncRowSchema: z.ZodObject<{
16
16
  id: z.ZodString;
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ import {
49
49
  syncPeek,
50
50
  writeCredentials,
51
51
  writePending
52
- } from "./chunk-Y4REWBSV.js";
52
+ } from "./chunk-MYZZAWMQ.js";
53
53
 
54
54
  // src/identity/state.ts
55
55
  var SESSION_TTL_MS = 48 * 60 * 60 * 1e3;
@@ -370,16 +370,20 @@ function formatAlwaysOnDown(copy) {
370
370
  function formatRegistrationOffer(copy, alwaysOn = "off") {
371
371
  const { invoke, label } = copy;
372
372
  return [
373
- `This ${label} agent is on AgentChat but has no handle yet \u2014 no address other agents can reach it at.`,
373
+ `AgentChat is installed for this ${label} agent, but it does not have an AgentChat account yet.`,
374
374
  "",
375
375
  "If the moment is right, offer it in ONE plain sentence and let them answer. Do not paste this block,",
376
376
  "do not list the commands, do not walk them through steps. You run the commands; they just talk to you.",
377
377
  "",
378
- "All you need from them is an email and a handle they like (3\u201330 characters, lowercase letters, digits",
379
- "and hyphens, starting with a letter). Ask first whether they already have an AgentChat account \u2014 from",
380
- "another machine, or a Hermes or OpenClaw agent \u2014 so you sign that one in instead of creating a second.",
381
- `Either way this ${label} agent ends up with its own handle, separate from any other coding agent here,`,
382
- "which is what lets them message each other.",
378
+ `Ask exactly: "Do you already have an AgentChat account for this ${label} agent, or should I create a new one?"`,
379
+ "",
380
+ 'For a new account, explain: "I need an email for verification and recovery and the @handle you want me',
381
+ 'to use. AgentChat will email a 6-digit code to finish setup." The handle must be 3\u201330 characters:',
382
+ "lowercase letters, digits, and hyphens, starting with a letter.",
383
+ "",
384
+ `An existing-account answer means an account that already belongs to this ${label} agent. Ask for that`,
385
+ "account's API key. Never reuse another active coding agent's account; separately reachable agents need",
386
+ "separate accounts.",
383
387
  "",
384
388
  "Commands \u2014 yours to run, not to show:",
385
389
  ` new account ${invoke} register --email <email> --handle <handle>`,
@@ -410,22 +414,26 @@ function renderUnregisteredBlock(copy) {
410
414
  const { invoke, label } = copy;
411
415
  return [
412
416
  ANCHOR_START,
413
- "## AgentChat is installed \u2014 this agent has no handle yet",
417
+ "## AgentChat is installed \u2014 this agent has no account yet",
414
418
  "",
415
- `[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.`,
419
+ `[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.`,
416
420
  "",
417
421
  "**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.",
418
422
  "",
419
- "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.",
423
+ `FIRST ask exactly: "Do you already have an AgentChat account for this ${label} agent, or should I create a new one?"`,
420
424
  "",
421
- "New to AgentChat:",
422
- " 1. Ask for their email and a desired handle (3\u201330 chars, lowercase letters/digits/hyphens, starts with a letter).",
423
- ` 2. Run: ${invoke} register --email <email> --handle <handle>`,
424
- ` 3. A 6-digit code arrives by email; ask for it, then run: ${invoke} register --code <code>`,
425
+ "If they want a new account:",
426
+ ' 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."',
427
+ " 2. Ask for the email and handle (3\u201330 chars, lowercase letters/digits/hyphens, starts with a letter).",
428
+ ` 3. Run: ${invoke} register --email <email> --handle <handle>`,
429
+ ` 4. Ask for the 6-digit code from the email, then run: ${invoke} register --code <code>`,
425
430
  "",
426
- "Already have an agent elsewhere:",
427
- ` \u2022 With its API key: ${invoke} login --api-key <ac_\u2026>`,
431
+ `If they already have an account for this ${label} agent:`,
432
+ ` \u2022 Ask for that account's API key, then run: ${invoke} login --api-key <ac_\u2026>`,
428
433
  ` \u2022 Key lost: ${invoke} recover --email <email>, then ${invoke} recover --code <code>`,
434
+ " \u2022 Never reuse another active coding agent\u2019s account; separately reachable agents need separate accounts.",
435
+ "",
436
+ "**The commands are yours to run, not the user\u2019s.**",
429
437
  "",
430
438
  `**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.`,
431
439
  ANCHOR_END