@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.
@@ -1,4 +1,4 @@
1
- import { I as IntegrationClient, L as LeaseOptions, M as ManualFetch, a as IntegrationStatus, b as IntegrationRunsFailing, S as SocketState } from './served-manual-2rjsjJFD.js';
1
+ import { I as IntegrationClient, L as LeaseOptions, M as ManualFetch, a as IntegrationStatus, b as IntegrationRunsFailing, S as SocketState } from './served-manual-Be_eUo0m.js';
2
2
  import { R as RunnerSource, a as RunProfile, b as RunRunner, c as RunOutcome } from './runner-DYVqz_9P.js';
3
3
  export { d as RunKind, e as RunOutcomeState, f as RunPreflight, g as RunRequest, h as RunWake, i as RunnerFactory, j as RunnerIdentity } from './runner-DYVqz_9P.js';
4
4
  import { AgentChatClient, RealtimeClient, BlockedInfo, RealtimeState } from 'agentchatme';
@@ -15,7 +15,7 @@ import {
15
15
  standbyWaiting,
16
16
  textsCachePath,
17
17
  writeIntegrationStatus
18
- } from "./chunk-NAAHIK7Z.js";
18
+ } from "./chunk-CDJASQ3X.js";
19
19
  import {
20
20
  INTEGRATION_ENV,
21
21
  INTEGRATION_ENV_LEGACY,
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { I as IntegrationClient, H as HostProfile, c as Lease, L as LeaseOptions, d as LeaseAttempt, e as LeaseHolder } from './served-manual-2rjsjJFD.js';
2
- export { C as CheckManualOptions, f as Credentials, D as DEFAULT_API_BASE, g as DoctorCheck, h as DoctorContext, F as FAILED_CYCLE_OUTCOMES, i as INTEGRATION_STATUS_FILE, j as IntegrationCycle, k as IntegrationLastRun, b as IntegrationRunsFailing, l as IntegrationStandby, a as IntegrationStatus, m as IntegrationUnservable, n as LEASE_RENEW_MS, o as LEASE_STALE_MS, p as LEGACY_STATUS_FILE, q as MANUAL_FETCH_TIMEOUT_MS, r as MANUAL_MAX_BYTES, s as MANUAL_MAX_REDIRECTS, t as ManualCheck, u as ManualCheckState, M as ManualFetch, v as ManualSyncResult, w as ManualSyncState, P as PendingRegistration, R as REPEATED_FAILED_CYCLES, x as ResolveIdentityOptions, y as ResolvedIdentity, z as SOCKET_STATES, A as ServedManual, S as SocketState, B as StatusContext, E as SyncManualOptions, T as TextsStatus, V as Verdict, G as acquireLease, J as anchorLabelOf, K as bootedAt, N as checkManual, O as clearCredentials, Q as clearIntegrationStatus, U as clearPending, W as clientHeadersOf, X as clientIdentityOf, Y as clientNameOf, Z as credentialsPath, _ as describeManualSync, $ as envApiKey, a0 as failedCyclesInARow, a1 as formatIntegrationStatus, a2 as fromKitResult, a3 as holderLive, a4 as integrationStatusAge, a5 as integrationStatusPath, a6 as leaseHolder, a7 as parseLease, a8 as pendingPath, a9 as pidAlive, aa as readCredentials, ab as readIntegrationStatus, ac as readManualVersion, ad as readPending, ae as resetLeaseObservations, af as resolveIdentity, ag as statePath, ah as syncManual, ai as writeCredentials, aj as writeIntegrationStatus, ak as writePending } from './served-manual-2rjsjJFD.js';
1
+ import { I as IntegrationClient, H as HostProfile, c as Lease, L as LeaseOptions, d as LeaseAttempt, e as LeaseHolder } from './served-manual-Be_eUo0m.js';
2
+ export { C as CheckManualOptions, f as Credentials, D as DEFAULT_API_BASE, g as DoctorCheck, h as DoctorContext, F as FAILED_CYCLE_OUTCOMES, i as INTEGRATION_STATUS_FILE, j as IntegrationCycle, k as IntegrationLastRun, b as IntegrationRunsFailing, l as IntegrationStandby, a as IntegrationStatus, m as IntegrationUnservable, n as LEASE_RENEW_MS, o as LEASE_STALE_MS, p as LEGACY_STATUS_FILE, q as MANUAL_FETCH_TIMEOUT_MS, r as MANUAL_MAX_BYTES, s as MANUAL_MAX_REDIRECTS, t as ManualCheck, u as ManualCheckState, M as ManualFetch, v as ManualSyncResult, w as ManualSyncState, P as PendingRegistration, x as PendingSignup, R as REPEATED_FAILED_CYCLES, y as ResolveIdentityOptions, z as ResolvedIdentity, A as SOCKET_STATES, B as ServedManual, S as SocketState, E as StatusContext, G as SyncManualOptions, T as TextsStatus, V as Verdict, J as acquireLease, K as anchorLabelOf, N as bootedAt, O as checkManual, Q as clearCredentials, U as clearIntegrationStatus, W as clearPending, X as clientHeadersOf, Y as clientIdentityOf, Z as clientNameOf, _ as credentialsPath, $ as describeManualSync, a0 as envApiKey, a1 as failedCyclesInARow, a2 as formatIntegrationStatus, a3 as fromKitResult, a4 as holderLive, a5 as integrationStatusAge, a6 as integrationStatusPath, a7 as leaseHolder, a8 as parseLease, a9 as pendingPath, aa as pidAlive, ab as readCredentials, ac as readIntegrationStatus, ad as readManualVersion, ae as readPending, af as resetLeaseObservations, ag as resolveIdentity, ah as statePath, ai as syncManual, aj as writeCredentials, ak as writeIntegrationStatus, al as writePending } from './served-manual-Be_eUo0m.js';
3
3
  import { AgentChatClient, Texts, TextsRuntime, integration } from 'agentchatme';
4
4
  import { z } from 'zod';
5
5
  export { D as DEFAULT_RUN_BUDGET_MS, k as DEFAULT_RUN_PROFILE, I as INTEGRATION_ENV, l as INTEGRATION_ENV_LEGACY, m as INTEGRATION_ENV_LEGACY_REMOVAL, P as PEER_RUN_WARNING, n as RUN_BUDGET_ENV, o as RUN_PROFILES, p as RUN_PROFILE_ENV, d as RunKind, c as RunOutcome, e as RunOutcomeState, f as RunPreflight, q as RunPreflightOptions, a as RunProfile, g as RunRequest, b as RunRunner, h as RunWake, i as RunnerFactory, j as RunnerIdentity, R as RunnerSource, r as integrationDisabled, s as integrationDisabledBy, t as isRunProfile, u as isRunnerFactory, v as resolveRunBudgetMs, w as resolveRunProfile, x as runProfileWarning, y as workdirExposesHome } from './runner-DYVqz_9P.js';
6
6
  import { spawn, spawnSync } from 'node:child_process';
7
7
 
8
8
  /** Published package version, kept in lockstep with package.json by tests. */
9
- declare const VERSION = "0.5.0";
9
+ declare const VERSION = "0.5.1";
10
10
 
11
11
  type TrayClient = Pick<AgentChatClient, 'inbox'>;
12
12
  interface TraySummary {
@@ -137,6 +137,12 @@ interface HostCopy {
137
137
  * Deliberately bounded: static text is re-read every session, so without an
138
138
  * explicit stop condition an agent would raise it forever. `--not-now` records
139
139
  * the decline and rewrites this block to the silent variant below.
140
+ *
141
+ * It names the commands and nothing of the server's: no handle rules, no
142
+ * code length, no scripted answer for a failure. Each command prints the
143
+ * server's sentence and the command to run next, and the agent relays the one
144
+ * and runs the other, so a rule that moves on the server never leaves a stale
145
+ * copy in every instruction file.
140
146
  */
141
147
  declare function renderUnregisteredBlock(copy: HostCopy): string;
142
148
  /**
@@ -247,6 +253,7 @@ interface RegisterOpts {
247
253
  handle?: string;
248
254
  displayName?: string;
249
255
  description?: string;
256
+ /** The code from the verification email — the completion leg. */
250
257
  code?: string;
251
258
  apiBase?: string;
252
259
  }
@@ -254,12 +261,13 @@ interface RecoverOpts {
254
261
  /** The email the agent registered with. */
255
262
  email?: string;
256
263
  /**
257
- * Which agent on that email to re-key. An email can back several agents,
258
- * so this is required by the server; when omitted it defaults to this
259
- * agent's stored handle, then to a prompt on a TTY.
264
+ * Which agent on that email to re-key. When omitted it defaults to this
265
+ * agent's stored handle, then to a prompt on a TTY; without one the
266
+ * server is asked by email alone, and names the handles to choose from
267
+ * when the email backs several agents.
260
268
  */
261
269
  handle?: string;
262
- /** The 6-digit code from the recovery email — the completion leg. */
270
+ /** The code from the recovery email — the completion leg. */
263
271
  code?: string;
264
272
  apiBase?: string;
265
273
  }