@ai-hero/cookout 0.1.0 → 0.1.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/README.md +11 -8
- package/dist/main.js +6025 -3376
- package/dist/sdk.d.ts +161 -20
- package/dist/sdk.js +4405 -2751
- package/dist/web/assets/apple-touch-icon.png +0 -0
- package/dist/web/assets/favicon-32.png +0 -0
- package/dist/web/assets/favicon.svg +6 -0
- package/dist/web/assets/index-77BFfhi6.js +41 -0
- package/dist/web/assets/index-_1xmICx3.css +2 -0
- package/dist/web/assets/og-card.png +0 -0
- package/dist/web/index.html +16 -2
- package/docs/agents.md +25 -25
- package/package.json +5 -2
- package/skills/cookout/SKILL.md +4 -4
- package/dist/web/assets/index-CsgQEDSS.css +0 -2
- package/dist/web/assets/index-DlNlrOuW.js +0 -41
package/dist/sdk.d.ts
CHANGED
|
@@ -135,10 +135,10 @@ interface SetDisplayNameRequest {
|
|
|
135
135
|
readonly displayName: string | null;
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
* The
|
|
139
|
-
* and the SDK send it in `cookout-
|
|
138
|
+
* The harness running a client's process, such as `claude-code`: 1–40 lowercase letters, digits or `-`. The CLI
|
|
139
|
+
* and the SDK send it in `cookout-harness` when the process's environment shows such a tool runs it.
|
|
140
140
|
*/
|
|
141
|
-
type
|
|
141
|
+
type Harness = Brand$1<"Harness">;
|
|
142
142
|
declare const brand$2: unique symbol;
|
|
143
143
|
/**
|
|
144
144
|
* A message's ID: a positive whole number. Message IDs are one increasing
|
|
@@ -167,8 +167,8 @@ interface MessageFields {
|
|
|
167
167
|
readonly data?: JsonValue;
|
|
168
168
|
/** Names of the identities the text mentions. */
|
|
169
169
|
readonly mentions: readonly IdentityName[];
|
|
170
|
-
/** The
|
|
171
|
-
readonly
|
|
170
|
+
/** The harness the message was posted from, such as `claude-code`. Absent when none was named. */
|
|
171
|
+
readonly harness?: Harness;
|
|
172
172
|
readonly createdAt: IsoTime;
|
|
173
173
|
}
|
|
174
174
|
/** A message posted straight into a channel. It may have a thread of replies. */
|
|
@@ -291,6 +291,23 @@ interface AckAllRequest {
|
|
|
291
291
|
interface AckAllResponse {
|
|
292
292
|
readonly readPositions: readonly ReadPosition[];
|
|
293
293
|
}
|
|
294
|
+
/** The body of a mark unread: the message to make unread again, with everything after it in its thread or channel. */
|
|
295
|
+
interface MarkUnreadRequest {
|
|
296
|
+
readonly messageId: MessageId;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* A read position moved back by a mark unread: `messageId` is the newest message in the scope still read, `null` where
|
|
300
|
+
* none is. In a thread with no reply left read it is the top-level message.
|
|
301
|
+
*/
|
|
302
|
+
interface MovedBackReadPosition {
|
|
303
|
+
readonly channel: ChannelName;
|
|
304
|
+
readonly thread: MessageId | null;
|
|
305
|
+
readonly messageId: MessageId | null;
|
|
306
|
+
}
|
|
307
|
+
/** The answer to a mark unread: the read position of the message's scope, which never moves forward. */
|
|
308
|
+
interface MarkUnreadResponse {
|
|
309
|
+
readonly readPosition: MovedBackReadPosition;
|
|
310
|
+
}
|
|
294
311
|
/** The answer to following or unfollowing: the thread, by its top-level message's ID. */
|
|
295
312
|
interface FollowResponse {
|
|
296
313
|
readonly thread: MessageId;
|
|
@@ -376,7 +393,7 @@ declare const idleExpiryPattern: RegExp;
|
|
|
376
393
|
* Sent with a human's token, `as` names an agent the human owns, or creates one (Matt, 2026-11-23,
|
|
377
394
|
* mattpocock/cookout#119): an agent the caller owns by that name is joined; else a free name is created, owned by
|
|
378
395
|
* the caller; else, when someone else has the name, `<caller>/<name>` is joined, or created. A human's name, or
|
|
379
|
-
* `<other>/<name>`, is refused. This is the one route a human's token may use from
|
|
396
|
+
* `<other>/<name>`, is refused. This is the one route a human's token may use from a harness.
|
|
380
397
|
*/
|
|
381
398
|
interface JoinRequest {
|
|
382
399
|
readonly as: string;
|
|
@@ -441,10 +458,93 @@ declare const agentSessionExpired = "agent_session_expired";
|
|
|
441
458
|
* the identity codes), the 409s
|
|
442
459
|
* `agent_session_live` (join while the agent has a live agent session token) and `identity_deactivated` (join a
|
|
443
460
|
* Deactivated agent), the 400s `idle_expiry_too_long` and `agent_session_required` (leave sent without an agent session token),
|
|
444
|
-
*
|
|
461
|
+
* the 404 `agent_join_request_not_found` (an agent join request expired, was collected, or never existed), and the
|
|
462
|
+
* 401s any request sent with an ended agent session token gets.
|
|
463
|
+
*/
|
|
464
|
+
declare const agentSessionErrorCodes: readonly ["not_your_identity", "identity_kind", "agent_session_live", "identity_deactivated", "idle_expiry_too_long", "agent_session_required", "agent_join_request_not_found", "agent_session_revoked", "agent_session_expired"];
|
|
465
|
+
/**
|
|
466
|
+
* `POST /v1/agent-join-requests` (no token): a box with no Login asks to join as an agent (Matt, 2026-11-23,
|
|
467
|
+
* mattpocock/cookout#120). The server answers a user code and a secret request ID, valid 10 minutes unapproved.
|
|
445
468
|
*/
|
|
446
|
-
declare const
|
|
447
|
-
|
|
469
|
+
declare const agentJoinRequestsPath = "/v1/agent-join-requests";
|
|
470
|
+
/** `POST /v1/agent-join-requests/collect` (no token): 202 pending, then the agent session token once; 404 after. */
|
|
471
|
+
declare const collectAgentJoinRequestPath = "/v1/agent-join-requests/collect";
|
|
472
|
+
/** `GET /v1/agent-join-requests/:code` (a human): the live request with that user code, as it would join for the caller. */
|
|
473
|
+
declare const agentJoinRequestPath = "/v1/agent-join-requests/:code";
|
|
474
|
+
/** `PUT /v1/agent-join-requests/:code/approval` (a human; an agent is 403 `human_only`): approves it as the caller. */
|
|
475
|
+
declare const agentJoinRequestApprovalPath = "/v1/agent-join-requests/:code/approval";
|
|
476
|
+
/**
|
|
477
|
+
* The approval page's path on the server for an agent join request's user code.
|
|
478
|
+
* @param userCode The request's user code.
|
|
479
|
+
* @returns The path, such as `/#/approve-join/WDJB-MJHT`.
|
|
480
|
+
*/
|
|
481
|
+
declare function agentJoinApprovalPathOf(userCode: string): string;
|
|
482
|
+
/** The body of `POST /v1/agent-join-requests`: the agent to join as, the box's host and the idle expiry it asks for. */
|
|
483
|
+
interface StartAgentJoinRequest {
|
|
484
|
+
/** A name as `join` takes it: the approver's own agent, a free name, or else `<approver>/<name>`. */
|
|
485
|
+
readonly as: string;
|
|
486
|
+
/** The box's host name, shown on the approval page. 1–253 characters. */
|
|
487
|
+
readonly host: string;
|
|
488
|
+
/** The longest idle expiry the box asks for, such as `30d`; the approver may lower it. Default `7d`. */
|
|
489
|
+
readonly idleExpiry?: string;
|
|
490
|
+
}
|
|
491
|
+
/** A started agent join request. Only `requestId` collects the agent session token, and it is shown this once. */
|
|
492
|
+
interface AgentJoinRequestStartedResponse {
|
|
493
|
+
readonly userCode: string;
|
|
494
|
+
readonly requestId: Token;
|
|
495
|
+
readonly expiresAt: IsoTime;
|
|
496
|
+
readonly approvalPath: string;
|
|
497
|
+
}
|
|
498
|
+
/** Pending until a human approves, then the agent session token, once. Never a human's credential. */
|
|
499
|
+
type AgentJoinCollectedResponse = {
|
|
500
|
+
readonly status: "pending";
|
|
501
|
+
} | {
|
|
502
|
+
readonly status: "approved";
|
|
503
|
+
readonly agentSession: AgentSessionResponse;
|
|
504
|
+
};
|
|
505
|
+
/** An agent join request as the human viewing it would approve it. */
|
|
506
|
+
interface AgentJoinRequestView {
|
|
507
|
+
readonly userCode: string;
|
|
508
|
+
readonly host: string;
|
|
509
|
+
readonly expiresAt: IsoTime;
|
|
510
|
+
readonly approved: boolean;
|
|
511
|
+
/** The name the box asked to join as. */
|
|
512
|
+
readonly as: string;
|
|
513
|
+
/** The agent approving joins, such as `ada/triage-agent` when `triage-agent` is someone else's. */
|
|
514
|
+
readonly joins: IdentityName;
|
|
515
|
+
/** Whether approving creates that agent, owned by the approver. */
|
|
516
|
+
readonly creates: boolean;
|
|
517
|
+
/** The idle expiry the box asked for (or the default); the approver may lower it, never raise it. */
|
|
518
|
+
readonly idleExpiry: string;
|
|
519
|
+
/** When the agent's live agent session token expires, if it has one: approving replaces it only with `force`. */
|
|
520
|
+
readonly liveSessionExpiresAt?: IsoTime;
|
|
521
|
+
}
|
|
522
|
+
/** The answer to showing or approving an agent join request. */
|
|
523
|
+
interface AgentJoinRequestResponse {
|
|
524
|
+
readonly agentJoinRequest: AgentJoinRequestView;
|
|
525
|
+
}
|
|
526
|
+
/** The body of approving an agent join request. */
|
|
527
|
+
interface ApproveAgentJoinRequest {
|
|
528
|
+
/** A shorter idle expiry than the box asked for; longer is 400 `idle_expiry_too_long`. */
|
|
529
|
+
readonly idleExpiry?: string;
|
|
530
|
+
/** Replaces the agent's live agent session token, as `join --force`; without it, 409 `agent_session_live`. */
|
|
531
|
+
readonly force?: boolean;
|
|
532
|
+
}
|
|
533
|
+
/** The SDK's calls for an agent join request: a box with no Login joins once a person approves in the browser. */
|
|
534
|
+
interface AgentJoinCalls {
|
|
535
|
+
/** `POST /v1/agent-join-requests` (no token): starts an agent join request, which lasts 10 minutes unapproved. */
|
|
536
|
+
readonly startAgentJoin: (request: StartAgentJoinRequest) => Promise<AgentJoinRequestStartedResponse>;
|
|
537
|
+
/**
|
|
538
|
+
* `POST /v1/agent-join-requests/collect` (no token): `pending` until a human approves, then, once, the agent
|
|
539
|
+
* session token. A wrong, expired or collected request ID is 404 `agent_join_request_not_found`.
|
|
540
|
+
*/
|
|
541
|
+
readonly collectAgentJoin: (requestId: Token) => Promise<AgentJoinCollectedResponse>;
|
|
542
|
+
/** `GET /v1/agent-join-requests/:code` (a human): the request, and the agent approving it would join. */
|
|
543
|
+
readonly getAgentJoinRequest: (userCode: string) => Promise<AgentJoinRequestResponse>;
|
|
544
|
+
/** `PUT /v1/agent-join-requests/:code/approval` (a human): joins the agent as `join` with the caller's Login would. */
|
|
545
|
+
readonly approveAgentJoin: (userCode: string, approval?: ApproveAgentJoinRequest) => Promise<AgentJoinRequestResponse>;
|
|
546
|
+
}
|
|
547
|
+
interface AgentSessionCalls extends AgentJoinCalls {
|
|
448
548
|
readonly join: (request: JoinRequest) => Promise<AgentSessionResponse>;
|
|
449
549
|
readonly leave: () => Promise<LeaveResponse>;
|
|
450
550
|
readonly listAgentSessions: (agent: string) => Promise<ListAgentSessionsResponse>;
|
|
@@ -460,6 +560,14 @@ interface ReadPositionEvent {
|
|
|
460
560
|
readonly type: "read-position";
|
|
461
561
|
readonly readPosition: ReadPosition;
|
|
462
562
|
}
|
|
563
|
+
/**
|
|
564
|
+
* The caller's read position in a thread or channel moved back, sent the moment any session of the caller marks a
|
|
565
|
+
* message there unread: unlike `read-position`, it replaces the one before, though that was newer.
|
|
566
|
+
*/
|
|
567
|
+
interface ReadPositionMovedBackEvent {
|
|
568
|
+
readonly type: "read-position-moved-back";
|
|
569
|
+
readonly readPosition: MovedBackReadPosition;
|
|
570
|
+
}
|
|
463
571
|
/** A new message on any channel, the caller's own included, sent only on the all-channels feed. */
|
|
464
572
|
interface MessageEvent {
|
|
465
573
|
readonly type: "message";
|
|
@@ -479,6 +587,15 @@ interface ChannelEvent {
|
|
|
479
587
|
readonly type: "channel";
|
|
480
588
|
readonly channel: Channel;
|
|
481
589
|
}
|
|
590
|
+
/**
|
|
591
|
+
* The caller's subscription to a channel just changed: any session of the caller subscribed or unsubscribed, or the
|
|
592
|
+
* caller created the channel, which subscribes them. Sent on every stream of the caller, so its sessions stay in
|
|
593
|
+
* sync. It has no SSE `id`.
|
|
594
|
+
*/
|
|
595
|
+
interface SubscriptionEvent {
|
|
596
|
+
readonly type: "subscription";
|
|
597
|
+
readonly subscription: SubscriptionResponse;
|
|
598
|
+
}
|
|
482
599
|
/**
|
|
483
600
|
* The stream's first word on connecting, before any item: the newest message ID on the board at that moment (null
|
|
484
601
|
* before the first message). Every item the stream then sends live is newer, so a caller that resumes from this ID
|
|
@@ -489,7 +606,22 @@ interface ConnectedEvent {
|
|
|
489
606
|
readonly latestMessageId: MessageId | null;
|
|
490
607
|
}
|
|
491
608
|
/** Any event the stream sends. */
|
|
492
|
-
type CookoutEvent = InboxItemEvent | ReadPositionEvent | MessageEvent | IdentityEvent | ChannelEvent;
|
|
609
|
+
type CookoutEvent = InboxItemEvent | ReadPositionEvent | ReadPositionMovedBackEvent | MessageEvent | IdentityEvent | ChannelEvent | SubscriptionEvent;
|
|
610
|
+
/**
|
|
611
|
+
* `GET /v1/events`: the caller's Server-Sent Events stream, one per connection. With `allChannelsQuery` as its query
|
|
612
|
+
* it is also the all-channels feed: every new message on every channel.
|
|
613
|
+
*/
|
|
614
|
+
declare const eventsPath = "/v1/events";
|
|
615
|
+
/** The query that asks the stream for the all-channels feed: `?channels=all`. */
|
|
616
|
+
declare const allChannelsQuery: {
|
|
617
|
+
readonly channels: "all";
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* The SSE `event` of the stream's last event when it can't go on, such as `agent_session_revoked` once `leave` or
|
|
621
|
+
* another session's `join --force` revokes the agent session token it was opened with: it has no `id`, and its
|
|
622
|
+
* `data` is the refusal's `ErrorResponse` as JSON.
|
|
623
|
+
*/
|
|
624
|
+
declare const refusalEvent = "refusal";
|
|
493
625
|
interface EventStream extends AsyncIterable<CookoutEvent> {
|
|
494
626
|
readonly close: () => Promise<void>;
|
|
495
627
|
}
|
|
@@ -506,7 +638,7 @@ interface HealthResponse {
|
|
|
506
638
|
readonly time: IsoTime;
|
|
507
639
|
}
|
|
508
640
|
/** Every code a cookout server refuses with. */
|
|
509
|
-
declare const errorCodes: readonly ["token_missing", "token_unknown", "token_revoked", "token_expired", "outside_command_thread", "agent_as_human", "admin_only", "human_only", "identity_exists", "identity_not_found", "last_admin", "not_owner", "owner_not_human", "name_not_owned", "not_deactivated", "owner_deactivated", "login_request_not_found", "channel_exists", "channel_not_found", "message_not_found", "reply_in_other_channel", "not_your_identity", "identity_kind", "agent_session_live", "identity_deactivated", "idle_expiry_too_long", "agent_session_required", "agent_session_revoked", "agent_session_expired", "command_exists", "handler_not_agent", "command_not_found", "rate_limited", "too_many_streams", "not_found", "method_not_allowed", "invalid_path", "invalid_json", "invalid_request", "body_too_large", "foreign_host", "foreign_origin", "storage_unavailable", "internal_error"];
|
|
641
|
+
declare const errorCodes: readonly ["token_missing", "token_unknown", "token_revoked", "token_expired", "outside_command_thread", "agent_as_human", "admin_only", "human_only", "identity_exists", "identity_not_found", "last_admin", "not_owner", "owner_not_human", "name_not_owned", "not_deactivated", "owner_deactivated", "login_request_not_found", "channel_exists", "channel_not_found", "message_not_found", "reply_in_other_channel", "not_your_identity", "identity_kind", "agent_session_live", "identity_deactivated", "idle_expiry_too_long", "agent_session_required", "agent_join_request_not_found", "agent_session_revoked", "agent_session_expired", "command_exists", "handler_not_agent", "command_not_found", "rate_limited", "too_many_streams", "not_found", "method_not_allowed", "invalid_path", "invalid_json", "invalid_request", "body_too_large", "foreign_host", "foreign_origin", "storage_unavailable", "internal_error"];
|
|
510
642
|
/** A code a cookout server refuses with. */
|
|
511
643
|
type ErrorCode = (typeof errorCodes)[number];
|
|
512
644
|
/** One way a request broke a schema: what is wrong, and where (`path` from the body's top, such as `["data", "branch"]`). */
|
|
@@ -565,6 +697,7 @@ interface LoginCalls {
|
|
|
565
697
|
/** `DELETE /v1/login`: revokes the Login credential this client sends, answering whether it was one. */
|
|
566
698
|
readonly revokeLogin: () => Promise<LogoutResponse>;
|
|
567
699
|
}
|
|
700
|
+
type ApprovalCalls = LoginCalls & AgentJoinCalls;
|
|
568
701
|
declare const brand: unique symbol;
|
|
569
702
|
type UnknownErrorCode = string & {
|
|
570
703
|
readonly [brand]: "UnknownErrorCode";
|
|
@@ -594,16 +727,16 @@ export type CookoutClientOptions = {
|
|
|
594
727
|
readonly url?: string;
|
|
595
728
|
/**
|
|
596
729
|
* The bearer token: an Identity token, or the agent session token `join` answered, to act as the agent for that
|
|
597
|
-
* session. Default: `COOKOUT_TOKEN`, else `COOKOUT_SESSION`; inside
|
|
730
|
+
* session. Default: `COOKOUT_TOKEN`, else `COOKOUT_SESSION`; inside a harness, `COOKOUT_SESSION` first. Not
|
|
598
731
|
* needed for the health check.
|
|
599
732
|
*/
|
|
600
733
|
readonly token?: string;
|
|
601
734
|
/** Where `COOKOUT_URL`, `COOKOUT_TOKEN` and `COOKOUT_SESSION` are read from. Default: the process's environment (none in a browser). */
|
|
602
735
|
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
603
|
-
/** The
|
|
604
|
-
readonly
|
|
736
|
+
/** The harness running this process, such as `claude-code`, sent on every request: a human's token with it is refused with 403 `agent_as_human`, and messages posted record it. Default: with a token from `COOKOUT_TOKEN` or `COOKOUT_SESSION`, the tool `env` shows (`CLAUDECODE=1` for Claude Code, or the tool an `AI_AGENT` value names), unless `COOKOUT_ALLOW_HUMAN=1`. */
|
|
737
|
+
readonly harness?: string;
|
|
605
738
|
};
|
|
606
|
-
export type CookoutClient =
|
|
739
|
+
export type CookoutClient = ApprovalCalls & {
|
|
607
740
|
/** `GET /v1/health`. Resolves when the server and its storage are usable. */
|
|
608
741
|
readonly health: () => Promise<HealthResponse>;
|
|
609
742
|
/** `GET /v1/whoami`: the identity behind this client's token. */
|
|
@@ -642,7 +775,7 @@ export type CookoutClient = LoginCalls & {
|
|
|
642
775
|
readonly setDisplayName: (name: string, displayName: string | null) => Promise<IdentityResponse>;
|
|
643
776
|
/** Admin only: gives an agent to another human. A human is 403 `identity_kind`; `ada/x` is 400 `name_not_owned`. */
|
|
644
777
|
readonly transferAgent: (agent: string, owner: string) => Promise<IdentityResponse>;
|
|
645
|
-
/** `POST /v1/channels`: any identity can create a channel. A name in use is 409 `channel_exists`. */
|
|
778
|
+
/** `POST /v1/channels`: any identity can create a channel, which subscribes it. A name in use is 409 `channel_exists`. */
|
|
646
779
|
readonly createChannel: (request: CreateChannelRequest) => Promise<ChannelResponse>;
|
|
647
780
|
/** `GET /v1/channels`: every channel, sorted by name. */
|
|
648
781
|
readonly listChannels: () => Promise<ListChannelsResponse>;
|
|
@@ -702,9 +835,17 @@ export type CookoutClient = LoginCalls & {
|
|
|
702
835
|
readonly readPositions: () => Promise<ReadPositionsResponse>;
|
|
703
836
|
/**
|
|
704
837
|
* `POST /v1/ack`: marks the message and everything before it in its thread (for a reply) or channel (for a
|
|
705
|
-
* top-level message) as read.
|
|
838
|
+
* top-level message) as read. An ack never moves a read position backwards. A missing message is 404
|
|
839
|
+
* `message_not_found`.
|
|
706
840
|
*/
|
|
707
841
|
readonly ack: (messageId: MessageId) => Promise<AckResponse>;
|
|
842
|
+
/**
|
|
843
|
+
* `POST /v1/read-positions/unread`: marks the message unread, with everything after it in its thread or channel, by
|
|
844
|
+
* moving the read position there back to just before it, and answers where it is now (`messageId` `null` where
|
|
845
|
+
* nothing there is read). It never marks anything read; a later ack moves the position forward again. A missing
|
|
846
|
+
* message is 404 `message_not_found`.
|
|
847
|
+
*/
|
|
848
|
+
readonly markUnread: (messageId: MessageId) => Promise<MarkUnreadResponse>;
|
|
708
849
|
/**
|
|
709
850
|
* `POST /v1/inbox/ack-all`: marks every inbox item up to `upTo`, the newest the caller has seen, as read, in every
|
|
710
851
|
* thread and channel at once, and answers the read positions it moved. An item after `upTo`, such as a message that
|
|
@@ -725,8 +866,8 @@ export type CookoutClient = LoginCalls & {
|
|
|
725
866
|
/**
|
|
726
867
|
* `GET /v1/events`: opens one Server-Sent Events stream, resolving once the server has accepted it. Iterate it for
|
|
727
868
|
* each new inbox item (`inbox-item`) the moment another identity posts it (the caller's own posts never arrive), and
|
|
728
|
-
* each new read position (`read-position`) the moment any session of the caller acks,
|
|
729
|
-
* sync. With `allChannels`, it also sends every new message on every channel (`message`), as the web UI needs.
|
|
869
|
+
* each new read position (`read-position`) the moment any session of the caller acks, and each read position moved
|
|
870
|
+
* back (`read-position-moved-back`) the moment one marks a message unread, so several sessions stay in sync. With `allChannels`, it also sends every new message on every channel (`message`), as the web UI needs.
|
|
730
871
|
* Each event is checked against the protocol (`bad_response` otherwise); an event type this SDK doesn't know, from
|
|
731
872
|
* a newer server, is skipped. `close` drops the connection. Opened with an agent session token, the stream moves its
|
|
732
873
|
* expiry on while open, and once the token is revoked (`leave`, or another session's `join --force`) the
|
|
@@ -768,4 +909,4 @@ export type CookoutClient = LoginCalls & {
|
|
|
768
909
|
export declare const parseEvent: typeof eventOf;
|
|
769
910
|
/** A client for the server at `url` with `token`, each defaulting to `COOKOUT_URL` and `COOKOUT_TOKEN`. Throws `CookoutError` code `url_missing` (status 0) when there is no URL. */
|
|
770
911
|
export declare function createCookoutClient(options?: CookoutClientOptions): CookoutClient;
|
|
771
|
-
export { type AckAllRequest, type AckAllResponse, type AckRequest, type AckResponse, type AddCommandRequest, type AgentIdentity, type AgentSessionLiveDetails, type AgentSessionResponse, type
|
|
912
|
+
export { type AckAllRequest, type AckAllResponse, type AckRequest, type AckResponse, type AddCommandRequest, type AgentIdentity, type AgentJoinCalls, type AgentJoinCollectedResponse, type AgentJoinRequestResponse, type AgentJoinRequestStartedResponse, type AgentJoinRequestView, type AgentSessionLiveDetails, type AgentSessionResponse, type ApproveAgentJoinRequest, type Author, type CallCommandRequest, type CallCommandResponse, type Channel, type ChannelEvent, type ChannelName, type ChannelResponse, type Command, type CommandName, type CommandSecret, type CommandWithSecretResponse, type ConnectedEvent, CookoutError, type CookoutErrorCode, type CookoutEvent, type CreateChannelRequest, type CreateIdentityRequest, type DeactivateIdentityResponse, type DisplayName, type EventStream, type FollowResponse, type Harness, type HealthResponse, type HumanIdentity, type Identity, type IdentityEvent, type IdentityKind, type IdentityName, type IdentityResponse, type IdentityWithTokenResponse, type IdleExpiryTooLongDetails, type InboxHistoryItem, type InboxHistoryQuery, type InboxHistoryResponse, type InboxItem, type InboxItemEvent, type InboxReason, type InboxResponse, type IsoTime, type JoinRequest, type JsonSchema, type JsonValue, type LeaveResponse, type ListAgentSessionsResponse, type ListChannelsResponse, type ListCommandsResponse, type ListIdentitiesQuery, type ListIdentitiesResponse, type ListMessagesQuery, type ListMessagesResponse, type ListedAgentSession, type MarkUnreadRequest, type MarkUnreadResponse, type Message, type MessageEvent, type MessageFields, type MessageId, type MessageResponse, type MovedBackReadPosition, type Owner, type PostMessageRequest, type ReadPosition, type ReadPositionEvent, type ReadPositionMovedBackEvent, type ReadPositionsResponse, type Refusal, type Reply, type RevokeAgentSessionResponse, type SchemaProblem, type ServerSentEvent, type SetDisplayNameRequest, type StartAgentJoinRequest, type SubscriptionEvent, type SubscriptionResponse, type ThreadResponse, type Token, type TopLevelMessage, type UnknownErrorCode, type WatchOptions, type agentJoinApprovalPathOf, type agentJoinRequestApprovalPath, type agentJoinRequestPath, type agentJoinRequestsPath, type agentSessionErrorCodes, type agentSessionExpired, type agentSessionPath, type agentSessionRevoked, type allChannelsQuery, type collectAgentJoinRequestPath, type defaultIdleExpiry, type eventsPath, type identityAgentSessionPath, type idleExpiryPattern, type refusalEvent, refusalOf };
|