@agentchatme/agent-core 0.5.0 → 0.5.1

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/presets.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  VERSION,
3
3
  hostedMcpUrl,
4
4
  runProbe
5
- } from "./chunk-UE7DKW3C.js";
5
+ } from "./chunk-3ERPUP4M.js";
6
6
  import {
7
7
  atomicWriteFile,
8
8
  clientHeadersOf,
@@ -1,4 +1,4 @@
1
- import { TextsRuntime, AgentChatClientIdentity, integration } from 'agentchatme';
1
+ import { TextsRuntime, AgentChatClientIdentity, SignupFlow, integration } from 'agentchatme';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const LEASE_RENEW_MS = 10000;
@@ -301,31 +301,24 @@ declare function writeCredentials(home: string, creds: Credentials): void;
301
301
  /** Delete the credential and any half-finished registration in `home`.
302
302
  * Touches nothing outside `home` — that is the caller's whole agent. */
303
303
  declare function clearCredentials(home: string): boolean;
304
- declare const PendingSchema: z.ZodObject<{
305
- kind: z.ZodDefault<z.ZodEnum<["register", "recover"]>>;
306
- pending_id: z.ZodString;
307
- email: z.ZodString;
308
- handle: z.ZodOptional<z.ZodString>;
309
- api_base: z.ZodOptional<z.ZodString>;
310
- created_at: z.ZodString;
311
- }, "strip", z.ZodTypeAny, {
312
- created_at: string;
313
- kind: "register" | "recover";
314
- pending_id: string;
315
- email: string;
316
- handle?: string | undefined;
317
- api_base?: string | undefined;
318
- }, {
319
- created_at: string;
320
- pending_id: string;
304
+ interface PendingSignup {
305
+ kind: 'register' | 'recover';
306
+ /** The server's flow object, as its last answer gave it. */
307
+ flow: SignupFlow;
308
+ /** When that answer arrived (ISO-8601): `expires_in_s` and `resend_after_s` count from here. */
309
+ received_at: string;
310
+ /** What the start call sent. */
321
311
  email: string;
322
- handle?: string | undefined;
323
- api_base?: string | undefined;
324
- kind?: "register" | "recover" | undefined;
325
- }>;
326
- type PendingRegistration = z.infer<typeof PendingSchema>;
327
- declare function readPending(home: string): PendingRegistration | null;
328
- declare function writePending(home: string, pending: PendingRegistration): void;
312
+ handle?: string;
313
+ display_name?: string;
314
+ description?: string;
315
+ /** The API base the start call went to, when not the default. */
316
+ api_base?: string;
317
+ }
318
+ /** @deprecated Renamed to {@link PendingSignup}; kept so existing imports keep compiling. */
319
+ type PendingRegistration = PendingSignup;
320
+ declare function readPending(home: string): PendingSignup | null;
321
+ declare function writePending(home: string, pending: PendingSignup): void;
329
322
  declare function clearPending(home: string): void;
330
323
 
331
324
  type Verdict = 'PASS' | 'WARN' | 'FAIL';
@@ -515,4 +508,4 @@ interface CheckManualOptions {
515
508
  /** Compare the skill file with the announced manual. Reads one file; no network. */
516
509
  declare function checkManual(options: CheckManualOptions): ManualCheck;
517
510
 
518
- export { envApiKey as $, type ServedManual as A, type StatusContext as B, type CheckManualOptions as C, DEFAULT_API_BASE as D, type SyncManualOptions as E, FAILED_CYCLE_OUTCOMES as F, acquireLease as G, type HostProfile as H, type IntegrationClient as I, anchorLabelOf as J, bootedAt as K, type LeaseOptions as L, type ManualFetch as M, checkManual as N, clearCredentials as O, type PendingRegistration as P, clearIntegrationStatus as Q, REPEATED_FAILED_CYCLES as R, type SocketState as S, type TextsStatus as T, clearPending as U, type Verdict as V, clientHeadersOf as W, clientIdentityOf as X, clientNameOf as Y, credentialsPath as Z, describeManualSync as _, type IntegrationStatus as a, failedCyclesInARow as a0, formatIntegrationStatus as a1, fromKitResult as a2, holderLive as a3, integrationStatusAge as a4, integrationStatusPath as a5, leaseHolder as a6, parseLease as a7, pendingPath as a8, pidAlive as a9, readCredentials as aa, readIntegrationStatus as ab, readManualVersion as ac, readPending as ad, resetLeaseObservations as ae, resolveIdentity as af, statePath as ag, syncManual as ah, writeCredentials as ai, writeIntegrationStatus as aj, writePending as ak, type IntegrationRunsFailing as b, type Lease as c, type LeaseAttempt as d, type LeaseHolder as e, type Credentials as f, type DoctorCheck as g, type DoctorContext as h, INTEGRATION_STATUS_FILE as i, type IntegrationCycle as j, type IntegrationLastRun as k, type IntegrationStandby as l, type IntegrationUnservable as m, LEASE_RENEW_MS as n, LEASE_STALE_MS as o, LEGACY_STATUS_FILE as p, MANUAL_FETCH_TIMEOUT_MS as q, MANUAL_MAX_BYTES as r, MANUAL_MAX_REDIRECTS as s, type ManualCheck as t, type ManualCheckState as u, type ManualSyncResult as v, type ManualSyncState as w, type ResolveIdentityOptions as x, type ResolvedIdentity as y, SOCKET_STATES as z };
511
+ export { describeManualSync as $, SOCKET_STATES as A, type ServedManual as B, type CheckManualOptions as C, DEFAULT_API_BASE as D, type StatusContext as E, FAILED_CYCLE_OUTCOMES as F, type SyncManualOptions as G, type HostProfile as H, type IntegrationClient as I, acquireLease as J, anchorLabelOf as K, type LeaseOptions as L, type ManualFetch as M, bootedAt as N, checkManual as O, type PendingRegistration as P, clearCredentials as Q, REPEATED_FAILED_CYCLES as R, type SocketState as S, type TextsStatus as T, clearIntegrationStatus as U, type Verdict as V, clearPending as W, clientHeadersOf as X, clientIdentityOf as Y, clientNameOf as Z, credentialsPath as _, type IntegrationStatus as a, envApiKey as a0, failedCyclesInARow as a1, formatIntegrationStatus as a2, fromKitResult as a3, holderLive as a4, integrationStatusAge as a5, integrationStatusPath as a6, leaseHolder as a7, parseLease as a8, pendingPath as a9, pidAlive as aa, readCredentials as ab, readIntegrationStatus as ac, readManualVersion as ad, readPending as ae, resetLeaseObservations as af, resolveIdentity as ag, statePath as ah, syncManual as ai, writeCredentials as aj, writeIntegrationStatus as ak, writePending as al, type IntegrationRunsFailing as b, type Lease as c, type LeaseAttempt as d, type LeaseHolder as e, type Credentials as f, type DoctorCheck as g, type DoctorContext as h, INTEGRATION_STATUS_FILE as i, type IntegrationCycle as j, type IntegrationLastRun as k, type IntegrationStandby as l, type IntegrationUnservable as m, LEASE_RENEW_MS as n, LEASE_STALE_MS as o, LEGACY_STATUS_FILE as p, MANUAL_FETCH_TIMEOUT_MS as q, MANUAL_MAX_BYTES as r, MANUAL_MAX_REDIRECTS as s, type ManualCheck as t, type ManualCheckState as u, type ManualSyncResult as v, type ManualSyncState as w, type PendingSignup as x, type ResolveIdentityOptions as y, type ResolvedIdentity as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentchatme/agent-core",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Shared host-agnostic engine for AgentChat integrations — the resident supervisor on the AgentChat SDK's integration kit (single-run mode: the socket acking on receipt, wakes, the tray before every run), the runner seam and spawnRun, the presets for known coding agents' headless runs, identity storage and flows, service plumbing. Runtime code only; every function takes an identity home, none resolves one.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  "prepare": "pnpm run build"
43
43
  },
44
44
  "dependencies": {
45
- "agentchatme": "^1.3.0",
45
+ "agentchatme": "^1.4.0",
46
46
  "cross-spawn": "^7.0.6",
47
47
  "ws": "^8.18.0",
48
48
  "zod": "^3.23.0"