@xenosystem/agent-interface-client 0.1.0
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/LICENSE +67 -0
- package/dist/index.d.ts +185 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +523 -0
- package/dist/index.js.map +1 -0
- package/dist/local/attach.d.ts +116 -0
- package/dist/local/attach.d.ts.map +1 -0
- package/dist/local/attach.js +187 -0
- package/dist/local/attach.js.map +1 -0
- package/dist/local/index.d.ts +4 -0
- package/dist/local/index.d.ts.map +1 -0
- package/dist/local/index.js +23 -0
- package/dist/local/index.js.map +1 -0
- package/dist/local/lease.d.ts +50 -0
- package/dist/local/lease.d.ts.map +1 -0
- package/dist/local/lease.js +120 -0
- package/dist/local/lease.js.map +1 -0
- package/dist/local/transport.d.ts +100 -0
- package/dist/local/transport.d.ts.map +1 -0
- package/dist/local/transport.js +276 -0
- package/dist/local/transport.js.map +1 -0
- package/dist/localAttach.d.ts +116 -0
- package/dist/localAttach.d.ts.map +1 -0
- package/dist/localAttach.js +187 -0
- package/dist/localAttach.js.map +1 -0
- package/dist/localLease.d.ts +50 -0
- package/dist/localLease.d.ts.map +1 -0
- package/dist/localLease.js +120 -0
- package/dist/localLease.js.map +1 -0
- package/dist/localTransport.d.ts +100 -0
- package/dist/localTransport.d.ts.map +1 -0
- package/dist/localTransport.js +276 -0
- package/dist/localTransport.js.map +1 -0
- package/package.json +34 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
XENO Agent — Proprietary Software License
|
|
2
|
+
Copyright © 2026 XENO Corporation. All rights reserved.
|
|
3
|
+
|
|
4
|
+
This software, including its source code, compiled binaries, published packages,
|
|
5
|
+
assets, and accompanying documentation (collectively, the "Software"), is the
|
|
6
|
+
proprietary and confidential property of XENO Corporation ("XENO"). The Software
|
|
7
|
+
is licensed for use, not sold, and no title to or ownership of the Software is
|
|
8
|
+
transferred to any user.
|
|
9
|
+
|
|
10
|
+
1. GRANT OF USE
|
|
11
|
+
Subject to a separate written agreement and/or the terms of service published
|
|
12
|
+
at https://xenostudio.ai, XENO grants the end user a limited, non-exclusive,
|
|
13
|
+
non-transferable, revocable license to install and use the Software for its
|
|
14
|
+
intended purpose. The standalone desktop application ("the Agent") may be used
|
|
15
|
+
locally at no charge; connected platform features — hosted agent runs, model
|
|
16
|
+
inference, credits, and account services — are governed by the applicable
|
|
17
|
+
subscription and the XENO terms of service.
|
|
18
|
+
|
|
19
|
+
2. PACKAGE DISTRIBUTION
|
|
20
|
+
The `@xeno-corporation/xeno-agent-interface-*` and
|
|
21
|
+
`@xeno-corporation/xeno-agents-client` packages are published to a PRIVATE
|
|
22
|
+
registry and are licensed for use solely by XENO products and by parties
|
|
23
|
+
holding a separate written agreement with XENO. Access credentials to that
|
|
24
|
+
registry do not grant redistribution rights. Publication of any package in
|
|
25
|
+
this repository to a public registry is prohibited without written
|
|
26
|
+
authorization from XENO.
|
|
27
|
+
|
|
28
|
+
3. RESTRICTIONS
|
|
29
|
+
Except to the extent expressly permitted by applicable law or by a separate
|
|
30
|
+
written agreement with XENO, you may NOT: (a) copy, redistribute, sell, rent,
|
|
31
|
+
lease, sublicense, or otherwise transfer the Software; (b) modify, adapt,
|
|
32
|
+
translate, or create derivative works of the Software; (c) reverse-engineer,
|
|
33
|
+
decompile, or disassemble the Software, or attempt to derive its source code;
|
|
34
|
+
(d) remove, obscure, or alter any proprietary notices; or (e) use the Software
|
|
35
|
+
to build a competing product.
|
|
36
|
+
|
|
37
|
+
4. RESERVATION OF RIGHTS
|
|
38
|
+
All rights not expressly granted are reserved by XENO Corporation. The Software
|
|
39
|
+
is protected by copyright and other intellectual-property laws and treaties.
|
|
40
|
+
|
|
41
|
+
5. DISCLAIMER OF WARRANTY
|
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE", WITHOUT WARRANTY OF ANY
|
|
43
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
44
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE
|
|
45
|
+
SOFTWARE EXECUTES AGENT-DIRECTED OPERATIONS AGAINST A USER-SELECTED WORKSPACE,
|
|
46
|
+
INCLUDING FILE AND PROCESS ACTIONS; THE USER IS RESPONSIBLE FOR THE WORKSPACES
|
|
47
|
+
AND PERMISSIONS THEY GRANT IT.
|
|
48
|
+
|
|
49
|
+
6. LIMITATION OF LIABILITY
|
|
50
|
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL XENO CORPORATION BE
|
|
51
|
+
LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE
|
|
52
|
+
DAMAGES, OR ANY LOSS OF PROFITS OR DATA, ARISING FROM OR RELATED TO THE USE OF
|
|
53
|
+
OR INABILITY TO USE THE SOFTWARE.
|
|
54
|
+
|
|
55
|
+
7. THIRD-PARTY COMPONENTS
|
|
56
|
+
The Software includes third-party open-source components, each licensed under
|
|
57
|
+
its own terms; those terms govern those components and are not superseded by
|
|
58
|
+
this license. It also composes third-party agent providers over the Agent
|
|
59
|
+
Client Protocol and hosted APIs; use of those providers is governed by their
|
|
60
|
+
own terms.
|
|
61
|
+
|
|
62
|
+
For licensing inquiries, contact: legal@xenostudio.ai
|
|
63
|
+
|
|
64
|
+
NOTE TO OPERATOR: confirm the exact legal entity name and notice/contact details
|
|
65
|
+
with counsel before public distribution and code-signing (the code-signing
|
|
66
|
+
publisher name must match the registered entity). No public distribution of this
|
|
67
|
+
product is authorized by this file — see docs/PRODUCT_STATUS.md.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { type AgentHostClientIdentity, type AgentAcpHostMethod, type AgentEngineeringHostMethod, type AgentFleetHostMethod, type AgentIntakeHostMethod, type AgentKnowledgeHostMethod, type AgentSessionHostMethod, type AgentRunObservationHostMethod, type AgentHostEventListener, type AgentHostHandshake, type AgentHostInput, type AgentHostOutput, type AgentHostProtocolRange, type AgentHostTransport, type AgentHostUnsubscribe, type AgentProviderListResult, type AgentRuntimeEventListRequest, type AgentRuntimeEventListResult, type AgentWorkspaceStateLoadResult, type AgentWorkspaceStateSaveResult, type AgentConversationStateLoadResult, type AgentConversationStateSaveResult, type AgentConversationStateDeleteResult, type AgentChooseDirectoryAnswerRequest, type AgentChooseDirectoryAnswerResult, type AgentWorkspacePlacementAnswerRequest, type AgentWorkspacePlacementAnswerResult, type AgentPermissionAnswerRequest, type AgentPermissionAnswerResult, type AgentTurnSteerRequest, type AgentTurnSteerResult, type AgentTurnQueueRequest, type AgentTurnQueueResult, type AgentTurnResumeRequest, type AgentTurnResumeResult, type AgentPermissionRuleListResult, type AgentPermissionRuleRevokeResult, type AgentAskUserAnswerRequest, type AgentAskUserAnswerResult, type AgentTurnCancelRequest, type AgentTurnCancelResult, type AgentTurnStartRequest, type AgentTurnStartResult } from '@xenosystem/agent-interface-contract';
|
|
2
|
+
export interface AgentHostClientOptions {
|
|
3
|
+
transport: AgentHostTransport;
|
|
4
|
+
identity: AgentHostClientIdentity;
|
|
5
|
+
supportedProtocol?: AgentHostProtocolRange;
|
|
6
|
+
}
|
|
7
|
+
export interface AgentTurnCommandOptions {
|
|
8
|
+
commandId?: string;
|
|
9
|
+
idempotencyKey?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class AgentHostClient {
|
|
12
|
+
private readonly transport;
|
|
13
|
+
private readonly identity;
|
|
14
|
+
private readonly supportedProtocol;
|
|
15
|
+
private handshake;
|
|
16
|
+
constructor(options: AgentHostClientOptions);
|
|
17
|
+
get surface(): AgentHostClientIdentity['surface'];
|
|
18
|
+
get instanceId(): string;
|
|
19
|
+
/**
|
|
20
|
+
* A copy of who this client is — for building an `AgentHostCommandContext`.
|
|
21
|
+
*
|
|
22
|
+
* Exposed so a bridge can mint the command itself rather than making every
|
|
23
|
+
* surface carry an identity it does not otherwise need. A copy, because a
|
|
24
|
+
* caller that could mutate this would be rewriting who it is between calls.
|
|
25
|
+
*/
|
|
26
|
+
get clientIdentity(): AgentHostClientIdentity;
|
|
27
|
+
get connection(): AgentHostHandshake | null;
|
|
28
|
+
connect(): Promise<AgentHostHandshake>;
|
|
29
|
+
listProviders(options?: {
|
|
30
|
+
includeUnavailable?: boolean;
|
|
31
|
+
}): Promise<AgentProviderListResult>;
|
|
32
|
+
refreshProviders(options?: {
|
|
33
|
+
includeUnavailable?: boolean;
|
|
34
|
+
}): Promise<AgentProviderListResult>;
|
|
35
|
+
listRuntimeEvents(request: AgentRuntimeEventListRequest): Promise<AgentRuntimeEventListResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Delivers a correction to a turn that is ALREADY RUNNING.
|
|
38
|
+
*
|
|
39
|
+
* ⚠️ `delivered` means the agent has it, never that the agent has stopped.
|
|
40
|
+
* Measured against real Claude Code: a correction lands at the agent's next
|
|
41
|
+
* decision point, not inside the tool call already in flight. `cancelTurn` is
|
|
42
|
+
* the mechanism for stop; this is for redirect.
|
|
43
|
+
*
|
|
44
|
+
* An adapter that cannot steer refuses by name (`steer_unsupported`) rather
|
|
45
|
+
* than silently accepting — a user who believes they corrected an agent that
|
|
46
|
+
* never heard them is the worst outcome here.
|
|
47
|
+
*/
|
|
48
|
+
steerTurn(request: Omit<AgentTurnSteerRequest, 'command'>, options?: AgentTurnCommandOptions): Promise<AgentTurnSteerResult>;
|
|
49
|
+
/**
|
|
50
|
+
* Holds an instruction for a running turn without requiring the agent to
|
|
51
|
+
* accept it mid-flight. Host-owned, so it works at every structure tier —
|
|
52
|
+
* unlike steering, which needs a protocol the agent listens on.
|
|
53
|
+
*/
|
|
54
|
+
queueTurnInstruction(request: Omit<AgentTurnQueueRequest, 'command'>, options?: AgentTurnCommandOptions): Promise<AgentTurnQueueResult>;
|
|
55
|
+
/**
|
|
56
|
+
* Messages a run is not being told yet — coordination §6 `hold`.
|
|
57
|
+
*
|
|
58
|
+
* Plain read, no command context: listing changes nothing.
|
|
59
|
+
*/
|
|
60
|
+
listHeldMessages(request: AgentHostInput<'coordination.held.list'>): Promise<AgentHostOutput<'coordination.held.list'>>;
|
|
61
|
+
/**
|
|
62
|
+
* A human approves one held message.
|
|
63
|
+
*
|
|
64
|
+
* 🔴 A wrapper is REQUIRED, not a convenience: the request carries a
|
|
65
|
+
* `command: AgentHostCommandContext`, which the host owns. Without one, a
|
|
66
|
+
* surface approving a message would have to forge the command id, the
|
|
67
|
+
* idempotency key and the client identity — and approving another agent's
|
|
68
|
+
* message is exactly the act that should be attributable.
|
|
69
|
+
*/
|
|
70
|
+
releaseHeldMessage(request: Omit<AgentHostInput<'coordination.held.release'>, 'command'>, options?: AgentTurnCommandOptions): Promise<AgentHostOutput<'coordination.held.release'>>;
|
|
71
|
+
/**
|
|
72
|
+
* Pins or clears a run's inbound-message policy — §6's override.
|
|
73
|
+
*
|
|
74
|
+
* `policy: null` returns the run to the derived default; it is NOT the same as
|
|
75
|
+
* `'accept'`, which pins the permissive answer.
|
|
76
|
+
*/
|
|
77
|
+
setInboundPolicy(request: Omit<AgentHostInput<'coordination.policy.set'>, 'command'>, options?: AgentTurnCommandOptions): Promise<AgentHostOutput<'coordination.policy.set'>>;
|
|
78
|
+
/**
|
|
79
|
+
* What is waiting to run for this conversation.
|
|
80
|
+
*
|
|
81
|
+
* 🔴 A surface that can ENQUEUE and cannot LIST has given the user a
|
|
82
|
+
* write with no read: an instruction disappears into the host and the only
|
|
83
|
+
* evidence it exists is that it eventually runs. Both halves of the queue
|
|
84
|
+
* were implemented in the host and forwarded by the transport; only the
|
|
85
|
+
* enqueue had a client wrapper, so no surface could show a queue at all.
|
|
86
|
+
*
|
|
87
|
+
* Takes no command context because it changes nothing — see `dropQueued`
|
|
88
|
+
* below, which does.
|
|
89
|
+
*/
|
|
90
|
+
listQueuedInstructions(request: AgentHostInput<'turn.queue.list'>): Promise<AgentHostOutput<'turn.queue.list'>>;
|
|
91
|
+
/**
|
|
92
|
+
* Removes a queued instruction, or clears the queue when none is named.
|
|
93
|
+
*
|
|
94
|
+
* 🔴 This wrapper is REQUIRED, not a convenience. The request carries a
|
|
95
|
+
* `command: AgentHostCommandContext`, which is host-owned — a caller must
|
|
96
|
+
* never mint one. Without a wrapper, a surface wanting to drop an
|
|
97
|
+
* instruction had to forge the command id, the idempotency key and the
|
|
98
|
+
* client identity itself, which is exactly the fact-forging the context
|
|
99
|
+
* exists to prevent.
|
|
100
|
+
*/
|
|
101
|
+
dropQueuedInstruction(request: Omit<AgentHostInput<'turn.queue.drop'>, 'command'>, options?: AgentTurnCommandOptions): Promise<AgentHostOutput<'turn.queue.drop'>>;
|
|
102
|
+
/**
|
|
103
|
+
* Re-issues a turn that process death interrupted.
|
|
104
|
+
*
|
|
105
|
+
* Reported as `restarted`, never `resumed` — the request runs again rather
|
|
106
|
+
* than continuing from where it stopped.
|
|
107
|
+
*/
|
|
108
|
+
resumeTurn(request: Omit<AgentTurnResumeRequest, 'command'>, options?: AgentTurnCommandOptions): Promise<AgentTurnResumeResult>;
|
|
109
|
+
/**
|
|
110
|
+
* The permission rules the user chose to remember. Surfaced so they can be
|
|
111
|
+
* seen and revoked — they persist and accumulate, and a rule that cannot be
|
|
112
|
+
* taken back is a one-way door.
|
|
113
|
+
*/
|
|
114
|
+
listPermissionRules(): Promise<AgentPermissionRuleListResult>;
|
|
115
|
+
revokePermissionRule(ruleId: string): Promise<AgentPermissionRuleRevokeResult>;
|
|
116
|
+
loadWorkspaces(): Promise<AgentWorkspaceStateLoadResult>;
|
|
117
|
+
saveWorkspaces(workspaces: unknown[]): Promise<AgentWorkspaceStateSaveResult>;
|
|
118
|
+
loadConversations(): Promise<AgentConversationStateLoadResult>;
|
|
119
|
+
saveConversation(conversation: unknown): Promise<AgentConversationStateSaveResult>;
|
|
120
|
+
deleteConversation(conversationId: string): Promise<AgentConversationStateDeleteResult>;
|
|
121
|
+
listWorkspaceDirectory(request: Omit<AgentHostInput<'workspace.directory.list'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceDirectoryListResult>;
|
|
122
|
+
readWorkspaceFile(request: Omit<AgentHostInput<'workspace.file.read'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceFileReadResult>;
|
|
123
|
+
writeWorkspaceFile(request: Omit<AgentHostInput<'workspace.file.write'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceFileWriteResult>;
|
|
124
|
+
runWorkspaceCommand(request: Omit<AgentHostInput<'workspace.command.run'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceCommandRunResult>;
|
|
125
|
+
startWorkspaceTerminal(request: Omit<AgentHostInput<'workspace.terminal.start'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceTerminalStartResult>;
|
|
126
|
+
stopWorkspaceTerminal(request: Omit<AgentHostInput<'workspace.terminal.stop'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceTerminalControlResult>;
|
|
127
|
+
startWorkspacePty(request: Omit<AgentHostInput<'workspace.pty.start'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspacePtyStartResult>;
|
|
128
|
+
snapshotWorkspacePty(request: Omit<AgentHostInput<'workspace.pty.snapshot'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspacePtySnapshotResult>;
|
|
129
|
+
inputWorkspacePty(request: Omit<AgentHostInput<'workspace.pty.input'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceTerminalControlResult>;
|
|
130
|
+
resizeWorkspacePty(request: Omit<AgentHostInput<'workspace.pty.resize'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceTerminalControlResult>;
|
|
131
|
+
clearWorkspacePty(request: Omit<AgentHostInput<'workspace.pty.clear'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceTerminalControlResult>;
|
|
132
|
+
stopWorkspacePty(request: Omit<AgentHostInput<'workspace.pty.stop'>, 'client'>): Promise<import("@xenosystem/agent-interface-contract").AgentWorkspaceTerminalControlResult>;
|
|
133
|
+
startTurn(request: Omit<AgentTurnStartRequest, 'command'>, options?: AgentTurnCommandOptions): Promise<AgentTurnStartResult>;
|
|
134
|
+
cancelTurn(request: Omit<AgentTurnCancelRequest, 'command'>, options?: AgentTurnCommandOptions): Promise<AgentTurnCancelResult>;
|
|
135
|
+
answerChooseDirectory(request: AgentChooseDirectoryAnswerRequest): Promise<AgentChooseDirectoryAnswerResult>;
|
|
136
|
+
answerWorkspacePlacement(request: AgentWorkspacePlacementAnswerRequest): Promise<AgentWorkspacePlacementAnswerResult>;
|
|
137
|
+
answerPermission(request: AgentPermissionAnswerRequest): Promise<AgentPermissionAnswerResult>;
|
|
138
|
+
answerAskUser(request: AgentAskUserAnswerRequest): Promise<AgentAskUserAnswerResult>;
|
|
139
|
+
listSdkSessions(request?: Omit<AgentHostInput<'sdk.sessions.list'>, 'client'>): Promise<AgentHostOutput<'sdk.sessions.list'>>;
|
|
140
|
+
showSdkSession(request: Omit<AgentHostInput<'sdk.sessions.show'>, 'client'>): Promise<AgentHostOutput<'sdk.sessions.show'>>;
|
|
141
|
+
attachSdkSession(request: Omit<AgentHostInput<'sdk.sessions.attach'>, 'client'>): Promise<AgentHostOutput<'sdk.sessions.attach'>>;
|
|
142
|
+
detachSdkSession(request: Omit<AgentHostInput<'sdk.sessions.detach'>, 'client'>): Promise<AgentHostOutput<'sdk.sessions.detach'>>;
|
|
143
|
+
deleteSdkSession(request: Omit<AgentHostInput<'sdk.sessions.delete'>, 'client'>): Promise<AgentHostOutput<'sdk.sessions.delete'>>;
|
|
144
|
+
cleanSdkSessions(request: Omit<AgentHostInput<'sdk.sessions.clean'>, 'client'>): Promise<AgentHostOutput<'sdk.sessions.clean'>>;
|
|
145
|
+
listSdkCheckpoints(request: Omit<AgentHostInput<'sdk.checkpoints.list'>, 'client'>): Promise<AgentHostOutput<'sdk.checkpoints.list'>>;
|
|
146
|
+
restoreSdkCheckpoint(request: Omit<AgentHostInput<'sdk.checkpoints.restore'>, 'client'>): Promise<AgentHostOutput<'sdk.checkpoints.restore'>>;
|
|
147
|
+
deleteSdkCheckpoint(request: Omit<AgentHostInput<'sdk.checkpoints.delete'>, 'client'>): Promise<AgentHostOutput<'sdk.checkpoints.delete'>>;
|
|
148
|
+
readSdkTaskOutput(request: Omit<AgentHostInput<'sdk.tasks.output'>, 'client'>): Promise<AgentHostOutput<'sdk.tasks.output'>>;
|
|
149
|
+
stopSdkTask(request: Omit<AgentHostInput<'sdk.tasks.stop'>, 'client'>): Promise<AgentHostOutput<'sdk.tasks.stop'>>;
|
|
150
|
+
/**
|
|
151
|
+
* ACP registry operations that run under the host's authority.
|
|
152
|
+
*
|
|
153
|
+
* Mirrors `requestEngineering`. Grouped by prefix so the next `acp.*` method
|
|
154
|
+
* needs no new helper here.
|
|
155
|
+
*/
|
|
156
|
+
requestAcp<M extends AgentAcpHostMethod>(method: M, request: Omit<AgentHostInput<M>, 'client'>): Promise<AgentHostOutput<M>>;
|
|
157
|
+
/**
|
|
158
|
+
* Reading a run's observed diff — the READ half of §2.9.
|
|
159
|
+
*
|
|
160
|
+
* Separate from `requestEngineering` for the same reason `requestAcp` is: the
|
|
161
|
+
* generics genuinely differ, and one helper covering both would need a cast
|
|
162
|
+
* that silences the difference rather than resolving it.
|
|
163
|
+
*/
|
|
164
|
+
/** The fleet surface — ADE §9 step 6. Its own helper for the same reason
|
|
165
|
+
* `requestAcp` has one: the generics differ, and one helper covering both
|
|
166
|
+
* would need a cast that silences the difference rather than resolving it. */
|
|
167
|
+
/** Sessions — ADE §5.5. Its own helper for the same reason its siblings have
|
|
168
|
+
* one: the generics differ, and a shared helper would need a cast that
|
|
169
|
+
* silences the difference rather than resolving it. */
|
|
170
|
+
/** Intake — ADE §5.1. Its own helper for the same reason its siblings have
|
|
171
|
+
* one: the generics differ, and a shared helper would need a cast. */
|
|
172
|
+
/** Workspace knowledge — ADE §5.8. Its own helper like its siblings. */
|
|
173
|
+
requestKnowledge<M extends AgentKnowledgeHostMethod>(method: M, request: Omit<AgentHostInput<M>, 'client'>): Promise<AgentHostOutput<M>>;
|
|
174
|
+
requestIntake<M extends AgentIntakeHostMethod>(method: M, request: Omit<AgentHostInput<M>, 'client'>): Promise<AgentHostOutput<M>>;
|
|
175
|
+
requestSession<M extends AgentSessionHostMethod>(method: M, request: Omit<AgentHostInput<M>, 'client'>): Promise<AgentHostOutput<M>>;
|
|
176
|
+
requestFleet<M extends AgentFleetHostMethod>(method: M, request: Omit<AgentHostInput<M>, 'client'>): Promise<AgentHostOutput<M>>;
|
|
177
|
+
requestRunObservation<M extends AgentRunObservationHostMethod>(method: M, request: Omit<AgentHostInput<M>, 'client'>): Promise<AgentHostOutput<M>>;
|
|
178
|
+
requestEngineering<M extends AgentEngineeringHostMethod>(method: M, request: Omit<AgentHostInput<M>, 'client'>): Promise<AgentHostOutput<M>>;
|
|
179
|
+
subscribe(listener: AgentHostEventListener): AgentHostUnsubscribe;
|
|
180
|
+
disconnect(): void;
|
|
181
|
+
private requireConnection;
|
|
182
|
+
private requestSdkControl;
|
|
183
|
+
private createCommandContext;
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,E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