@agentchatme/agent-core 0.0.131 → 0.0.1311

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.
@@ -24,6 +24,19 @@ var log = {
24
24
  debug: (msg) => emit("debug", msg)
25
25
  };
26
26
 
27
+ // src/version.ts
28
+ var VERSION = "0.0.1311";
29
+
30
+ // src/client-identity.ts
31
+ var CODING_AGENTS_CLIENT_IDENTITY = {
32
+ name: "coding_agents",
33
+ version: VERSION
34
+ };
35
+ var CODING_AGENTS_CLIENT_HEADERS = {
36
+ "X-AgentChat-Client": CODING_AGENTS_CLIENT_IDENTITY.name,
37
+ "X-AgentChat-Client-Version": CODING_AGENTS_CLIENT_IDENTITY.version
38
+ };
39
+
27
40
  // src/daemon/leader-lock.ts
28
41
  import * as fs from "fs";
29
42
  import * as path from "path";
@@ -4275,6 +4288,7 @@ async function request(cfg, method, pathname, body) {
4275
4288
  const res = await fetch(url, {
4276
4289
  method,
4277
4290
  headers: {
4291
+ ...CODING_AGENTS_CLIENT_HEADERS,
4278
4292
  authorization: `Bearer ${cfg.apiKey}`,
4279
4293
  ...body !== void 0 ? { "content-type": "application/json" } : {}
4280
4294
  },
@@ -4444,6 +4458,9 @@ function alwaysOnHealth(home) {
4444
4458
  export {
4445
4459
  log,
4446
4460
  external_exports,
4461
+ VERSION,
4462
+ CODING_AGENTS_CLIENT_IDENTITY,
4463
+ CODING_AGENTS_CLIENT_HEADERS,
4447
4464
  acquireLeaderLock,
4448
4465
  atomicWriteFile,
4449
4466
  readJsonFile,
@@ -4479,4 +4496,4 @@ export {
4479
4496
  alwaysOnState,
4480
4497
  alwaysOnHealth
4481
4498
  };
4482
- //# sourceMappingURL=chunk-XLRPNQ7G.js.map
4499
+ //# sourceMappingURL=chunk-ER4AFPH7.js.map