@agentchatme/agent-core 0.0.1313111 → 0.0.13131111

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-YWX7E5VW.js";
13
+ } from "./chunk-Y4REWBSV.js";
14
14
 
15
15
  // src/daemon/ws-client.ts
16
16
  import { WebSocket } from "ws";
package/dist/index.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  import { z } from 'zod';
2
+ import { spawn, spawnSync } from 'node:child_process';
2
3
 
3
4
  /** Low-cardinality identity attached to every coding-agent API operation. */
4
5
  declare const CODING_AGENTS_CLIENT_IDENTITY: {
5
6
  readonly name: "coding_agents";
6
- readonly version: "0.0.1313111";
7
+ readonly version: "0.0.13131111";
7
8
  };
8
9
  /** Headers for raw HTTP and WebSocket transports that bypass the SDK. */
9
10
  declare const CODING_AGENTS_CLIENT_HEADERS: Readonly<Record<string, string>>;
10
11
 
11
12
  /** Published package version, kept in lockstep with package.json by tests. */
12
- declare const VERSION = "0.0.1313111";
13
+ declare const VERSION = "0.0.13131111";
13
14
 
14
15
  declare const SyncRowSchema: z.ZodObject<{
15
16
  id: z.ZodString;
@@ -674,4 +675,7 @@ declare function atomicWriteFile(filePath: string, data: string, mode?: number):
674
675
  declare function atomicCopyFile(source: string, destination: string, mode?: number): void;
675
676
  declare function readJsonFile<T>(filePath: string): T | null;
676
677
 
677
- export { ANCHOR_END, ANCHOR_START, type AlwaysOnState, type AnchorAction, CODING_AGENTS_CLIENT_HEADERS, CODING_AGENTS_CLIENT_IDENTITY, type Credentials, DEFAULT_API_BASE, type DoctorCheck, type DoctorOpts, HEARTBEAT_FILE, type HookContext, type HookDialect, type HookInput, type HookRunners, type HookState, type HostCopy, type HostProfile, type IdentityCommands, type LockHandle, type ManualCopy, type MessageContext, type PendingRegistration, type Plan, type RegisterOpts, type ResolvedIdentity, type ServiceOpts, type ServiceRef, type SessionStartResult, type StopResult, type SyncRow, type UserPromptResult, VERSION, type Verdict, type WireConfig, WireError, absoluteUtc, acquireLeaderLock, alwaysOnHealth, alwaysOnOptedOut, alwaysOnState, alwaysOnWanted, anchorLabelOf, atomicCopyFile, atomicWriteFile, beat, claimReply, claimReplyBatch, clearAlwaysOnInstalledVersion, clearAlwaysOnOptOut, clearAlwaysOnWanted, clearCredentials, clearForegroundTurn, clearOfferDeclined, clearPending, clearSessionActive, contextOf, createHookRunners, createIdentityCommands, credentialsPath, formatAlwaysOnDown, formatRegistrationOffer, formatSessionStart, formatStopPickup, formatWhen, getContinuations, getMeLite, hasAnchorAt, hooksDisabled, idle, installService, lastDeliveryId, launchdPlist, log, markAlwaysOnInstalledVersion, markAlwaysOnOptOut, markAlwaysOnWanted, markForegroundTurn, markSessionActive, offerDeclined, pendingPath, planForTest, readAlwaysOnInstalledVersion, readAnchorHandleAt, readAnchorHandleFrom, readCredentials, readHookInput, readJsonFile, readPending, readState, recordContinuation, recordOfferDeclined, recordRegistrationOffer, relativeAge, relativeWhen, removeAnchorAt, renderAnchorBlock, renderDeclinedBlock, renderManual, renderUnregisteredBlock, resetSession, resolveIdentity, serviceDefinitionCurrent, serviceInstalled, serviceStatus, sessionEnd, sessionStart, setPendingAck, shouldOfferRegistration, statePath, stop, stripAnchorBlock, syncAck, syncPeek, systemdQuote, systemdUnit, takePendingAck, uninstallService, upsertAnchorBlock, userPrompt, writeAnchor, writeCredentials, writePending, writeState, xmlEscape };
678
+ declare const spawnCommand: typeof spawn;
679
+ declare const spawnCommandSync: typeof spawnSync;
680
+
681
+ export { ANCHOR_END, ANCHOR_START, type AlwaysOnState, type AnchorAction, CODING_AGENTS_CLIENT_HEADERS, CODING_AGENTS_CLIENT_IDENTITY, type Credentials, DEFAULT_API_BASE, type DoctorCheck, type DoctorOpts, HEARTBEAT_FILE, type HookContext, type HookDialect, type HookInput, type HookRunners, type HookState, type HostCopy, type HostProfile, type IdentityCommands, type LockHandle, type ManualCopy, type MessageContext, type PendingRegistration, type Plan, type RegisterOpts, type ResolvedIdentity, type ServiceOpts, type ServiceRef, type SessionStartResult, type StopResult, type SyncRow, type UserPromptResult, VERSION, type Verdict, type WireConfig, WireError, absoluteUtc, acquireLeaderLock, alwaysOnHealth, alwaysOnOptedOut, alwaysOnState, alwaysOnWanted, anchorLabelOf, atomicCopyFile, atomicWriteFile, beat, claimReply, claimReplyBatch, clearAlwaysOnInstalledVersion, clearAlwaysOnOptOut, clearAlwaysOnWanted, clearCredentials, clearForegroundTurn, clearOfferDeclined, clearPending, clearSessionActive, contextOf, createHookRunners, createIdentityCommands, credentialsPath, formatAlwaysOnDown, formatRegistrationOffer, formatSessionStart, formatStopPickup, formatWhen, getContinuations, getMeLite, hasAnchorAt, hooksDisabled, idle, installService, lastDeliveryId, launchdPlist, log, markAlwaysOnInstalledVersion, markAlwaysOnOptOut, markAlwaysOnWanted, markForegroundTurn, markSessionActive, offerDeclined, pendingPath, planForTest, readAlwaysOnInstalledVersion, readAnchorHandleAt, readAnchorHandleFrom, readCredentials, readHookInput, readJsonFile, readPending, readState, recordContinuation, recordOfferDeclined, recordRegistrationOffer, relativeAge, relativeWhen, removeAnchorAt, renderAnchorBlock, renderDeclinedBlock, renderManual, renderUnregisteredBlock, resetSession, resolveIdentity, serviceDefinitionCurrent, serviceInstalled, serviceStatus, sessionEnd, sessionStart, setPendingAck, shouldOfferRegistration, spawnCommand, spawnCommandSync, statePath, stop, stripAnchorBlock, syncAck, syncPeek, systemdQuote, systemdUnit, takePendingAck, uninstallService, upsertAnchorBlock, userPrompt, writeAnchor, writeCredentials, writePending, writeState, xmlEscape };
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ import {
49
49
  syncPeek,
50
50
  writeCredentials,
51
51
  writePending
52
- } from "./chunk-YWX7E5VW.js";
52
+ } from "./chunk-Y4REWBSV.js";
53
53
 
54
54
  // src/identity/state.ts
55
55
  var SESSION_TTL_MS = 48 * 60 * 60 * 1e3;
@@ -1372,7 +1372,13 @@ function renderManual(copy, opts = {}) {
1372
1372
  import * as fs2 from "fs";
1373
1373
  import * as os from "os";
1374
1374
  import * as path2 from "path";
1375
- import { spawnSync, spawn } from "child_process";
1375
+
1376
+ // src/util/spawn.ts
1377
+ import crossSpawn from "cross-spawn";
1378
+ var spawnCommand = crossSpawn;
1379
+ var spawnCommandSync = crossSpawn.sync;
1380
+
1381
+ // src/daemon/service.ts
1376
1382
  function planForTest(opts) {
1377
1383
  return plan(opts);
1378
1384
  }
@@ -1404,7 +1410,7 @@ function plan(opts) {
1404
1410
  };
1405
1411
  }
1406
1412
  function run(cmd, args) {
1407
- const r = spawnSync(cmd, args, { encoding: "utf-8" });
1413
+ const r = spawnCommandSync(cmd, args, { encoding: "utf-8" });
1408
1414
  const out = [
1409
1415
  typeof r.stdout === "string" ? r.stdout : "",
1410
1416
  typeof r.stderr === "string" ? r.stderr : "",
@@ -1607,7 +1613,7 @@ function wslScriptContent(p) {
1607
1613
  function startDetached(cmd, args) {
1608
1614
  if (process.env["AGENTCHATD_SERVICE_NO_START"] === "1") return;
1609
1615
  try {
1610
- spawn(cmd, args, { detached: true, stdio: "ignore", windowsHide: true }).unref();
1616
+ spawnCommand(cmd, args, { detached: true, stdio: "ignore", windowsHide: true }).unref();
1611
1617
  } catch (err) {
1612
1618
  log.warn(`could not start the launcher now (it starts at next login): ${String(err)}`);
1613
1619
  }
@@ -1822,6 +1828,8 @@ export {
1822
1828
  sessionStart,
1823
1829
  setPendingAck,
1824
1830
  shouldOfferRegistration,
1831
+ spawnCommand,
1832
+ spawnCommandSync,
1825
1833
  statePath,
1826
1834
  stop,
1827
1835
  stripAnchorBlock,