@unieai/rabi-api-session-controller 0.0.0-stage → 0.2.1-rc.3
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 +21 -0
- package/README.md +7 -2
- package/lib/client.js +4325 -0
- package/lib/index.js +3367 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +4053 -0
- package/lib/typert.remote-client.d.ts +97 -0
- package/lib/typert.remote-client.js +2013 -0
- package/lib/types/agent.d.ts +198 -0
- package/lib/types/agent.js +609 -0
- package/lib/types/archived-session-gate.d.ts +30 -0
- package/lib/types/archived-session-gate.js +51 -0
- package/lib/types/assistant-stream.d.ts +26 -0
- package/lib/types/assistant-stream.js +82 -0
- package/lib/types/catalog.d.ts +24 -0
- package/lib/types/catalog.js +106 -0
- package/lib/types/client/contract/events.d.ts +102 -0
- package/lib/types/client/contract/events.js +111 -0
- package/lib/types/client/contract/session.d.ts +157 -0
- package/lib/types/client/contract/session.js +1 -0
- package/lib/types/client/contract/sessions.d.ts +161 -0
- package/lib/types/client/contract/sessions.js +1 -0
- package/lib/types/client/contract/snapshot.d.ts +81 -0
- package/lib/types/client/contract/snapshot.js +1 -0
- package/lib/types/client/index.d.ts +39 -0
- package/lib/types/client/index.js +60 -0
- package/lib/types/client/ordered-baseline.d.ts +12 -0
- package/lib/types/client/ordered-baseline.js +40 -0
- package/lib/types/client/scope.d.ts +46 -0
- package/lib/types/client/scope.js +46 -0
- package/lib/types/client/session-wire-event.d.ts +11 -0
- package/lib/types/client/session-wire-event.js +42 -0
- package/lib/types/client/sessions/assistant-stream.d.ts +56 -0
- package/lib/types/client/sessions/assistant-stream.js +182 -0
- package/lib/types/client/sessions/history-records.d.ts +22 -0
- package/lib/types/client/sessions/history-records.js +25 -0
- package/lib/types/client/sessions/lineage.d.ts +40 -0
- package/lib/types/client/sessions/lineage.js +54 -0
- package/lib/types/client/sessions/manager.d.ts +269 -0
- package/lib/types/client/sessions/manager.js +799 -0
- package/lib/types/client/sessions/notifier.d.ts +39 -0
- package/lib/types/client/sessions/notifier.js +97 -0
- package/lib/types/client/sessions/projection-store.d.ts +128 -0
- package/lib/types/client/sessions/projection-store.js +161 -0
- package/lib/types/client/sessions/remotes.d.ts +29 -0
- package/lib/types/client/sessions/remotes.js +7 -0
- package/lib/types/client/sessions/service.d.ts +258 -0
- package/lib/types/client/sessions/service.js +582 -0
- package/lib/types/client/sessions/session.d.ts +287 -0
- package/lib/types/client/sessions/session.js +866 -0
- package/lib/types/client/time-zone.d.ts +8 -0
- package/lib/types/client/time-zone.js +13 -0
- package/lib/types/client/transport.d.ts +77 -0
- package/lib/types/client/transport.js +129 -0
- package/lib/types/commands.d.ts +86 -0
- package/lib/types/commands.js +624 -0
- package/lib/types/control.d.ts +20 -0
- package/lib/types/control.js +106 -0
- package/lib/types/file-references.d.ts +27 -0
- package/lib/types/file-references.js +68 -0
- package/lib/types/history.d.ts +32 -0
- package/lib/types/history.js +441 -0
- package/lib/types/index.d.ts +222 -0
- package/lib/types/index.js +658 -0
- package/lib/types/list.d.ts +50 -0
- package/lib/types/list.js +325 -0
- package/lib/types/media-references.d.ts +16 -0
- package/lib/types/media-references.js +76 -0
- package/lib/types/model-selection-projection.d.ts +8 -0
- package/lib/types/model-selection-projection.js +65 -0
- package/lib/types/remote-events.d.ts +8 -0
- package/lib/types/remote-events.js +1 -0
- package/lib/types/skill-catalog.d.ts +28 -0
- package/lib/types/skill-catalog.js +203 -0
- package/lib/types/types.d.ts +611 -0
- package/lib/types/types.js +4 -0
- package/locale/en.json +5 -0
- package/locale/zh.json +6 -0
- package/package.json +114 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Browser-owned time-zone sampling for one prompt RPC. */
|
|
2
|
+
/**
|
|
3
|
+
* Resolve the current browser IANA zone for one outbound operation.
|
|
4
|
+
* @returns The browser-provided canonical zone.
|
|
5
|
+
* @throws when the runtime cannot provide a non-empty zone.
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolvedClientTimeZone(): string;
|
|
8
|
+
//# sourceMappingURL=time-zone.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Browser-owned time-zone sampling for one prompt RPC. */
|
|
2
|
+
/**
|
|
3
|
+
* Resolve the current browser IANA zone for one outbound operation.
|
|
4
|
+
* @returns The browser-provided canonical zone.
|
|
5
|
+
* @throws when the runtime cannot provide a non-empty zone.
|
|
6
|
+
*/
|
|
7
|
+
export function resolvedClientTimeZone() {
|
|
8
|
+
const timeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9
|
+
if (typeof timeZone !== 'string' || timeZone.length === 0) {
|
|
10
|
+
throw new Error('browser time zone is unavailable');
|
|
11
|
+
}
|
|
12
|
+
return timeZone;
|
|
13
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/** Session-specific adapters for Gateway-owned Remote stream lifecycles. */
|
|
2
|
+
import { RemoteJournalStream, RemoteSnapshotStream, RemoteStreamCarrierError, type ClientRemote, type RemoteJournalFrame } from '@unieai/rabi-api-gateway/client';
|
|
3
|
+
import type { SessionAddress, SessionAssistantStreamBaseline, SessionAssistantStreamFrame, SessionControlFrame, SessionHistoryRecord, SessionPage, SessionPageRequest, SessionProjectionBaseline } from '../types.ts';
|
|
4
|
+
import type { SessionEventLikeEntry, SessionLiveEventEntry } from './contract/events.ts';
|
|
5
|
+
import type { SessionRemotes } from './sessions/remotes.ts';
|
|
6
|
+
export { SESSION_SEARCH_RESULT_LIMIT, SESSION_SEARCH_SNIPPET_MAX_CODE_POINTS, } from '../types.ts';
|
|
7
|
+
/** Pagination fields bound to an already-addressed Session journal. */
|
|
8
|
+
export type ClientSessionPageRequest = Omit<SessionPageRequest, 'address' | 'throughSeq'>;
|
|
9
|
+
/** Complete generated `ctx.remote.session` namespace. */
|
|
10
|
+
export type SessionRemote = ClientRemote['session'];
|
|
11
|
+
/** Opening metadata carried only by a follow snapshot, never by loadOlder pages. */
|
|
12
|
+
interface SessionJournalPage extends SessionPage {
|
|
13
|
+
readonly projections?: SessionProjectionBaseline;
|
|
14
|
+
readonly assistantStream?: SessionAssistantStreamBaseline;
|
|
15
|
+
}
|
|
16
|
+
/** One complete publication from the Session journal stream. */
|
|
17
|
+
export type SessionJournalChange = {
|
|
18
|
+
readonly type: 'replace' | 'prepend';
|
|
19
|
+
readonly page: SessionJournalPage;
|
|
20
|
+
readonly entries: readonly SessionEventLikeEntry[];
|
|
21
|
+
readonly hasMore: boolean;
|
|
22
|
+
} | {
|
|
23
|
+
readonly type: 'append';
|
|
24
|
+
readonly entry: SessionLiveEventEntry;
|
|
25
|
+
} | {
|
|
26
|
+
readonly type: 'assistant-stream';
|
|
27
|
+
readonly frame: SessionAssistantStreamFrame;
|
|
28
|
+
};
|
|
29
|
+
type SessionControlBaselineFrame = Extract<SessionControlFrame, {
|
|
30
|
+
type: 'baseline';
|
|
31
|
+
}>;
|
|
32
|
+
type SessionControlDeltaFrame = Exclude<SessionControlFrame, SessionControlBaselineFrame>;
|
|
33
|
+
/** Gateway-owned control snapshot stream configured for Session frames. */
|
|
34
|
+
export type SessionControlStream = RemoteSnapshotStream<SessionControlBaselineFrame, SessionControlDeltaFrame>;
|
|
35
|
+
/** Domain sinks used by the Host-wide Session control stream. */
|
|
36
|
+
export interface SessionControlStreamOptions {
|
|
37
|
+
/** Apply a complete baseline or one later update. */
|
|
38
|
+
readonly accept: (frame: SessionControlFrame) => void;
|
|
39
|
+
/** Observe a retryable carrier loss before reconnection. */
|
|
40
|
+
readonly carrierFailed?: (error: RemoteStreamCarrierError) => void;
|
|
41
|
+
/** Publish a terminal business or protocol failure. */
|
|
42
|
+
readonly failed: (error: unknown) => void;
|
|
43
|
+
}
|
|
44
|
+
/** Domain sinks used by one addressed Session event journal. */
|
|
45
|
+
export interface SessionEventStreamOptions {
|
|
46
|
+
/** Apply one complete event-window change. */
|
|
47
|
+
readonly publish: (change: SessionJournalChange) => void;
|
|
48
|
+
/** Observe a retryable carrier loss before reconnection. */
|
|
49
|
+
readonly carrierFailed?: (error: RemoteStreamCarrierError) => void;
|
|
50
|
+
/** Publish a terminal stream, page, or protocol failure after opening. */
|
|
51
|
+
readonly failed: (error: unknown) => void;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Create the Host-wide Session control snapshot stream.
|
|
55
|
+
* @param remote - generated Session namespace and Gateway stream factory.
|
|
56
|
+
* @param options - Session state destinations.
|
|
57
|
+
* @returns an unstarted stream owned by the Client Session runtime.
|
|
58
|
+
*/
|
|
59
|
+
export declare function createSessionControlStream(remote: SessionRemotes, options: SessionControlStreamOptions): SessionControlStream;
|
|
60
|
+
/** Gateway-owned event journal bound to one ordinary or direct-subagent Session address. */
|
|
61
|
+
export declare class SessionEventStream extends RemoteJournalStream<SessionJournalPage, SessionHistoryRecord, number, ClientSessionPageRequest, SessionAssistantStreamFrame> {
|
|
62
|
+
private readonly remote;
|
|
63
|
+
private readonly address;
|
|
64
|
+
/**
|
|
65
|
+
* @param remote - generated Session namespace and Gateway stream factory.
|
|
66
|
+
* @param address - durable ordinary-Session or direct-subagent address.
|
|
67
|
+
* @param options - Session event-window destinations.
|
|
68
|
+
*/
|
|
69
|
+
constructor(remote: SessionRemotes, address: SessionAddress, options: SessionEventStreamOptions);
|
|
70
|
+
/** @inheritdoc */
|
|
71
|
+
protected follow(request: ClientSessionPageRequest, signal: AbortSignal): AsyncIterable<RemoteJournalFrame<SessionHistoryRecord, number, SessionJournalPage, SessionAssistantStreamFrame>>;
|
|
72
|
+
/** @inheritdoc */
|
|
73
|
+
protected readPage(request: ClientSessionPageRequest, throughSeq: number, signal: AbortSignal): Promise<SessionJournalPage>;
|
|
74
|
+
/** @inheritdoc */
|
|
75
|
+
protected repairRequest(request: ClientSessionPageRequest): ClientSessionPageRequest;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/** Session-specific adapters for Gateway-owned Remote stream lifecycles. */
|
|
2
|
+
import { RemoteError } from '@unieai/rabi-typert-protocol';
|
|
3
|
+
import { RemoteJournalStream, RemoteSnapshotStream, RemoteStreamCarrierError, } from '@unieai/rabi-api-gateway/client';
|
|
4
|
+
import { historyEntries, historyRecordFirstSeq, historyRecordLastSeq, } from "./sessions/history-records.js";
|
|
5
|
+
import { assertSessionWireEvent } from "./session-wire-event.js";
|
|
6
|
+
export { SESSION_SEARCH_RESULT_LIMIT, SESSION_SEARCH_SNIPPET_MAX_CODE_POINTS, } from "../types.js";
|
|
7
|
+
function toSessionJournalChange(change) {
|
|
8
|
+
switch (change.type) {
|
|
9
|
+
case 'replace':
|
|
10
|
+
case 'prepend':
|
|
11
|
+
return { ...change, entries: historyEntries(change.entries) };
|
|
12
|
+
case 'append': {
|
|
13
|
+
return {
|
|
14
|
+
type: 'append',
|
|
15
|
+
entry: change.entry,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
case 'notification':
|
|
19
|
+
return { type: 'assistant-stream', frame: change.notification };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create the Host-wide Session control snapshot stream.
|
|
24
|
+
* @param remote - generated Session namespace and Gateway stream factory.
|
|
25
|
+
* @param options - Session state destinations.
|
|
26
|
+
* @returns an unstarted stream owned by the Client Session runtime.
|
|
27
|
+
*/
|
|
28
|
+
export function createSessionControlStream(remote, options) {
|
|
29
|
+
const stream = remote.$stream({
|
|
30
|
+
name: 'session control stream',
|
|
31
|
+
open: signal => remote.session.control(signal),
|
|
32
|
+
ended: accepted => accepted
|
|
33
|
+
? new RemoteStreamCarrierError('session control stream ended without a terminal result')
|
|
34
|
+
: new Error('session control stream ended before its opening snapshot'),
|
|
35
|
+
...(options.carrierFailed === undefined ? {} : { carrierFailed: options.carrierFailed }),
|
|
36
|
+
});
|
|
37
|
+
return new RemoteSnapshotStream(stream, {
|
|
38
|
+
name: 'session control stream',
|
|
39
|
+
isSnapshot: (frame) => frame.type === 'baseline',
|
|
40
|
+
replace: options.accept,
|
|
41
|
+
update: options.accept,
|
|
42
|
+
failed: options.failed,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/** Gateway-owned event journal bound to one ordinary or direct-subagent Session address. */
|
|
46
|
+
export class SessionEventStream extends RemoteJournalStream {
|
|
47
|
+
remote;
|
|
48
|
+
address;
|
|
49
|
+
/**
|
|
50
|
+
* @param remote - generated Session namespace and Gateway stream factory.
|
|
51
|
+
* @param address - durable ordinary-Session or direct-subagent address.
|
|
52
|
+
* @param options - Session event-window destinations.
|
|
53
|
+
*/
|
|
54
|
+
constructor(remote, address, options) {
|
|
55
|
+
super(remote, {
|
|
56
|
+
name: 'session event stream',
|
|
57
|
+
emptyCursor: -1,
|
|
58
|
+
entries: page => page.records,
|
|
59
|
+
hasMore: page => page.hasMore,
|
|
60
|
+
first: historyRecordFirstSeq,
|
|
61
|
+
last: historyRecordLastSeq,
|
|
62
|
+
compare: (left, right) => left - right,
|
|
63
|
+
follows: (left, right) => right === left + 1,
|
|
64
|
+
publish: (change) => { options.publish(toSessionJournalChange(change)); },
|
|
65
|
+
...(options.carrierFailed === undefined
|
|
66
|
+
? {}
|
|
67
|
+
: { carrierFailed: options.carrierFailed }),
|
|
68
|
+
failed: options.failed,
|
|
69
|
+
});
|
|
70
|
+
this.remote = remote;
|
|
71
|
+
this.address = address;
|
|
72
|
+
}
|
|
73
|
+
/** @inheritdoc */
|
|
74
|
+
async *follow(request, signal) {
|
|
75
|
+
let assistantRevision;
|
|
76
|
+
for await (const frame of this.remote.session.follow({
|
|
77
|
+
address: this.address,
|
|
78
|
+
assistantStream: true,
|
|
79
|
+
...this.repairRequest(request),
|
|
80
|
+
}, signal)) {
|
|
81
|
+
if (frame.type === 'snapshot') {
|
|
82
|
+
for (const record of frame.records)
|
|
83
|
+
assertSessionWireEvent(record.event);
|
|
84
|
+
if (frame.assistantStream === undefined) {
|
|
85
|
+
throw new RemoteError('gateway/internal', 'session assistant stream omitted its opted-in opening baseline', {});
|
|
86
|
+
}
|
|
87
|
+
assistantRevision = frame.assistantStream.revision;
|
|
88
|
+
yield {
|
|
89
|
+
type: 'opened',
|
|
90
|
+
cursor: frame.cursor,
|
|
91
|
+
page: {
|
|
92
|
+
records: frame.records,
|
|
93
|
+
hasMore: frame.hasMore,
|
|
94
|
+
projections: frame.projections,
|
|
95
|
+
assistantStream: frame.assistantStream,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if (frame.type === 'assistant-stream') {
|
|
101
|
+
const expected = (assistantRevision ?? 0) + 1;
|
|
102
|
+
if (frame.frame.revision !== expected) {
|
|
103
|
+
throw new RemoteStreamCarrierError(`session assistant stream skipped revision ${String(expected)}`);
|
|
104
|
+
}
|
|
105
|
+
assistantRevision = frame.frame.revision;
|
|
106
|
+
yield { type: 'notification', notification: frame.frame };
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
assertSessionWireEvent(frame.event);
|
|
110
|
+
yield { type: 'entry', entry: frame };
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/** @inheritdoc */
|
|
114
|
+
async readPage(request, throughSeq, signal) {
|
|
115
|
+
const result = await this.remote.session.page({ address: this.address, throughSeq, ...request }, signal);
|
|
116
|
+
if (!result.ok)
|
|
117
|
+
throw result.error;
|
|
118
|
+
for (const record of result.value.records)
|
|
119
|
+
assertSessionWireEvent(record.event);
|
|
120
|
+
return result.value;
|
|
121
|
+
}
|
|
122
|
+
/** @inheritdoc */
|
|
123
|
+
repairRequest(request) {
|
|
124
|
+
return {
|
|
125
|
+
...(request.maxMessages === undefined ? {} : { maxMessages: request.maxMessages }),
|
|
126
|
+
...(request.turnWindow === undefined ? {} : { turnWindow: request.turnWindow }),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** Session commands whose activation policy is explicit at each Remote method. */
|
|
2
|
+
import type { Context } from '@unieai/cordis';
|
|
3
|
+
import type { MessageSource } from '@unieai/rabi-llm';
|
|
4
|
+
import { ApiSessionAgentController } from './agent.ts';
|
|
5
|
+
import type { SessionAttachmentRequest, SessionAttachmentValue, SessionCancelRequest, SessionCancelValue, SessionCreateRequest, SessionCreateValue, SessionForkRequest, SessionForkValue, SessionPromptRequest, SessionPromptValue, SessionRenameRequest, SessionRenameValue, SessionSelectModelRequest, SessionSelectModelValue, SessionUpdateQueueRequest, SessionUpdateQueueValue } from './types.ts';
|
|
6
|
+
type PromptContentCandidate = SessionPromptRequest['content'][number] | Extract<SessionUpdateQueueRequest['action'], {
|
|
7
|
+
readonly kind: 'edit';
|
|
8
|
+
}>['content'][number];
|
|
9
|
+
/**
|
|
10
|
+
* Whether prompt content carries non-whitespace text or an attachment.
|
|
11
|
+
* @param content - submitted or edited prompt parts.
|
|
12
|
+
* @returns false for content the Agent must not receive.
|
|
13
|
+
*/
|
|
14
|
+
export declare function hasPromptContent(content: readonly PromptContentCandidate[]): boolean;
|
|
15
|
+
/** Implements Session business commands delegated by the Session Controller Remote service. */
|
|
16
|
+
export declare class SessionCommandController {
|
|
17
|
+
private readonly ctx;
|
|
18
|
+
private readonly agents;
|
|
19
|
+
private readonly defaultCwd;
|
|
20
|
+
/**
|
|
21
|
+
* @param ctx - Host context carrying Agent, model, attachment, title, and Workspace services.
|
|
22
|
+
* @param agents - sole owner of create, resume, and Session-local model selection.
|
|
23
|
+
* @param defaultCwd - project directory used when create names neither a Workspace nor a cwd.
|
|
24
|
+
*/
|
|
25
|
+
constructor(ctx: Context, agents: ApiSessionAgentController, defaultCwd: string);
|
|
26
|
+
/**
|
|
27
|
+
* Create one ordinary Session for a new conversation, reusing the named
|
|
28
|
+
* blank Session while it is an unarchived member of the requested Workspace.
|
|
29
|
+
* @param request - optional blank Session to reuse, location, and Agent preset.
|
|
30
|
+
* @returns the created or reused Session identity and its preset when configured.
|
|
31
|
+
*/
|
|
32
|
+
create(request: SessionCreateRequest): Promise<SessionCreateValue>;
|
|
33
|
+
/**
|
|
34
|
+
* Validate and install one Session-local model selection; save the default in the background.
|
|
35
|
+
* @param request - Session identity and requested model selection.
|
|
36
|
+
* @returns the normalized selection installed for the Session, without waiting for default persistence.
|
|
37
|
+
*/
|
|
38
|
+
selectModel(request: SessionSelectModelRequest): Promise<SessionSelectModelValue>;
|
|
39
|
+
/**
|
|
40
|
+
* Normalize and append a user-owned Session title.
|
|
41
|
+
* @param request - Session identity and proposed title.
|
|
42
|
+
* @returns the accepted title and durable event sequence.
|
|
43
|
+
*/
|
|
44
|
+
rename(request: SessionRenameRequest): Promise<SessionRenameValue>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a new ordinary Session from an exact event prefix. An explicit
|
|
47
|
+
* `atSeq` is the inclusive cut; an omitted value selects the latest
|
|
48
|
+
* completed-turn prefix. An open cut receives synthetic fork closers.
|
|
49
|
+
* @param request - source Session and optional exact event boundary.
|
|
50
|
+
* @returns the new Session identity.
|
|
51
|
+
*/
|
|
52
|
+
fork(request: SessionForkRequest): Promise<SessionForkValue>;
|
|
53
|
+
/**
|
|
54
|
+
* Admit one prompt after Agent and attachment validation; the Remote method
|
|
55
|
+
* has already validated the content and built the durable message source.
|
|
56
|
+
* @param request - Session identity, prompt content, and delivery mode.
|
|
57
|
+
* @param source - the `user-rpc` source recorded on the accepted message.
|
|
58
|
+
* @returns acknowledgement that the Agent accepted the prompt.
|
|
59
|
+
*/
|
|
60
|
+
prompt(request: SessionPromptRequest, source: MessageSource): Promise<SessionPromptValue>;
|
|
61
|
+
private requireModel;
|
|
62
|
+
/**
|
|
63
|
+
* Read one durable image after proving the Session log references it.
|
|
64
|
+
* @param request - Session and attachment identities used for authorization.
|
|
65
|
+
* @returns the durable attachment reference and base64-encoded bytes.
|
|
66
|
+
*/
|
|
67
|
+
attachment(request: SessionAttachmentRequest): Promise<SessionAttachmentValue>;
|
|
68
|
+
/**
|
|
69
|
+
* Mutate one pending Inbox occurrence, restoring an ordinary cold Agent when needed.
|
|
70
|
+
* @param request - Session, queue item, and requested mutation.
|
|
71
|
+
* @returns acknowledgement that the queue mutation was applied.
|
|
72
|
+
*/
|
|
73
|
+
updateQueue(request: SessionUpdateQueueRequest): Promise<SessionUpdateQueueValue>;
|
|
74
|
+
/**
|
|
75
|
+
* Cancel one live ordinary Agent while retaining pending inbox work.
|
|
76
|
+
* @param request - Session whose active Agent turn is cancelled.
|
|
77
|
+
* @returns acknowledgement that cancellation was requested.
|
|
78
|
+
*/
|
|
79
|
+
cancel(request: SessionCancelRequest): SessionCancelValue;
|
|
80
|
+
private resolveAgent;
|
|
81
|
+
private rejectCreation;
|
|
82
|
+
private readSessionState;
|
|
83
|
+
private forkWorkspace;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=commands.d.ts.map
|