@grackle-ai/ahp 0.131.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/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/vendor/ahp/action-origin.generated.d.ts +33 -0
- package/dist/vendor/ahp/action-origin.generated.d.ts.map +1 -0
- package/dist/vendor/ahp/action-origin.generated.js +71 -0
- package/dist/vendor/ahp/action-origin.generated.js.map +1 -0
- package/dist/vendor/ahp/actions.d.ts +14 -0
- package/dist/vendor/ahp/actions.d.ts.map +1 -0
- package/dist/vendor/ahp/actions.js +15 -0
- package/dist/vendor/ahp/actions.js.map +1 -0
- package/dist/vendor/ahp/channels-changeset/actions.d.ts +87 -0
- package/dist/vendor/ahp/channels-changeset/actions.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-changeset/actions.js +9 -0
- package/dist/vendor/ahp/channels-changeset/actions.js.map +1 -0
- package/dist/vendor/ahp/channels-changeset/commands.d.ts +103 -0
- package/dist/vendor/ahp/channels-changeset/commands.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-changeset/commands.js +22 -0
- package/dist/vendor/ahp/channels-changeset/commands.js.map +1 -0
- package/dist/vendor/ahp/channels-changeset/reducer.d.ts +18 -0
- package/dist/vendor/ahp/channels-changeset/reducer.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-changeset/reducer.js +65 -0
- package/dist/vendor/ahp/channels-changeset/reducer.js.map +1 -0
- package/dist/vendor/ahp/channels-changeset/state.d.ts +155 -0
- package/dist/vendor/ahp/channels-changeset/state.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-changeset/state.js +39 -0
- package/dist/vendor/ahp/channels-changeset/state.js.map +1 -0
- package/dist/vendor/ahp/channels-otlp/notifications.d.ts +121 -0
- package/dist/vendor/ahp/channels-otlp/notifications.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-otlp/notifications.js +11 -0
- package/dist/vendor/ahp/channels-otlp/notifications.js.map +1 -0
- package/dist/vendor/ahp/channels-otlp/state.d.ts +65 -0
- package/dist/vendor/ahp/channels-otlp/state.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-otlp/state.js +10 -0
- package/dist/vendor/ahp/channels-otlp/state.js.map +1 -0
- package/dist/vendor/ahp/channels-root/actions.d.ts +62 -0
- package/dist/vendor/ahp/channels-root/actions.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-root/actions.js +8 -0
- package/dist/vendor/ahp/channels-root/actions.js.map +1 -0
- package/dist/vendor/ahp/channels-root/commands.d.ts +172 -0
- package/dist/vendor/ahp/channels-root/commands.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-root/commands.js +10 -0
- package/dist/vendor/ahp/channels-root/commands.js.map +1 -0
- package/dist/vendor/ahp/channels-root/notifications.d.ts +136 -0
- package/dist/vendor/ahp/channels-root/notifications.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-root/notifications.js +9 -0
- package/dist/vendor/ahp/channels-root/notifications.js.map +1 -0
- package/dist/vendor/ahp/channels-root/reducer.d.ts +12 -0
- package/dist/vendor/ahp/channels-root/reducer.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-root/reducer.js +36 -0
- package/dist/vendor/ahp/channels-root/reducer.js.map +1 -0
- package/dist/vendor/ahp/channels-root/state.d.ts +123 -0
- package/dist/vendor/ahp/channels-root/state.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-root/state.js +19 -0
- package/dist/vendor/ahp/channels-root/state.js.map +1 -0
- package/dist/vendor/ahp/channels-session/actions.d.ts +736 -0
- package/dist/vendor/ahp/channels-session/actions.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-session/actions.js +8 -0
- package/dist/vendor/ahp/channels-session/actions.js.map +1 -0
- package/dist/vendor/ahp/channels-session/commands.d.ts +261 -0
- package/dist/vendor/ahp/channels-session/commands.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-session/commands.js +23 -0
- package/dist/vendor/ahp/channels-session/commands.js.map +1 -0
- package/dist/vendor/ahp/channels-session/reducer.d.ts +14 -0
- package/dist/vendor/ahp/channels-session/reducer.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-session/reducer.js +703 -0
- package/dist/vendor/ahp/channels-session/reducer.js.map +1 -0
- package/dist/vendor/ahp/channels-session/state.d.ts +1217 -0
- package/dist/vendor/ahp/channels-session/state.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-session/state.js +229 -0
- package/dist/vendor/ahp/channels-session/state.js.map +1 -0
- package/dist/vendor/ahp/channels-terminal/actions.d.ts +185 -0
- package/dist/vendor/ahp/channels-terminal/actions.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-terminal/actions.js +8 -0
- package/dist/vendor/ahp/channels-terminal/actions.js.map +1 -0
- package/dist/vendor/ahp/channels-terminal/commands.d.ts +50 -0
- package/dist/vendor/ahp/channels-terminal/commands.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-terminal/commands.js +8 -0
- package/dist/vendor/ahp/channels-terminal/commands.js.map +1 -0
- package/dist/vendor/ahp/channels-terminal/reducer.d.ts +12 -0
- package/dist/vendor/ahp/channels-terminal/reducer.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-terminal/reducer.js +80 -0
- package/dist/vendor/ahp/channels-terminal/reducer.js.map +1 -0
- package/dist/vendor/ahp/channels-terminal/state.d.ts +151 -0
- package/dist/vendor/ahp/channels-terminal/state.d.ts.map +1 -0
- package/dist/vendor/ahp/channels-terminal/state.js +18 -0
- package/dist/vendor/ahp/channels-terminal/state.js.map +1 -0
- package/dist/vendor/ahp/commands.d.ts +14 -0
- package/dist/vendor/ahp/commands.d.ts.map +1 -0
- package/dist/vendor/ahp/commands.js +15 -0
- package/dist/vendor/ahp/commands.js.map +1 -0
- package/dist/vendor/ahp/common/actions.d.ts +107 -0
- package/dist/vendor/ahp/common/actions.d.ts.map +1 -0
- package/dist/vendor/ahp/common/actions.js +77 -0
- package/dist/vendor/ahp/common/actions.js.map +1 -0
- package/dist/vendor/ahp/common/commands.d.ts +594 -0
- package/dist/vendor/ahp/common/commands.d.ts.map +1 -0
- package/dist/vendor/ahp/common/commands.js +32 -0
- package/dist/vendor/ahp/common/commands.js.map +1 -0
- package/dist/vendor/ahp/common/errors.d.ts +184 -0
- package/dist/vendor/ahp/common/errors.d.ts.map +1 -0
- package/dist/vendor/ahp/common/errors.js +82 -0
- package/dist/vendor/ahp/common/errors.js.map +1 -0
- package/dist/vendor/ahp/common/messages.d.ts +330 -0
- package/dist/vendor/ahp/common/messages.d.ts.map +1 -0
- package/dist/vendor/ahp/common/messages.js +11 -0
- package/dist/vendor/ahp/common/messages.js.map +1 -0
- package/dist/vendor/ahp/common/notifications.d.ts +58 -0
- package/dist/vendor/ahp/common/notifications.d.ts.map +1 -0
- package/dist/vendor/ahp/common/notifications.js +20 -0
- package/dist/vendor/ahp/common/notifications.js.map +1 -0
- package/dist/vendor/ahp/common/reducer-helpers.d.ts +24 -0
- package/dist/vendor/ahp/common/reducer-helpers.d.ts.map +1 -0
- package/dist/vendor/ahp/common/reducer-helpers.js +31 -0
- package/dist/vendor/ahp/common/reducer-helpers.js.map +1 -0
- package/dist/vendor/ahp/common/state.d.ts +286 -0
- package/dist/vendor/ahp/common/state.d.ts.map +1 -0
- package/dist/vendor/ahp/common/state.js +11 -0
- package/dist/vendor/ahp/common/state.js.map +1 -0
- package/dist/vendor/ahp/errors.d.ts +8 -0
- package/dist/vendor/ahp/errors.d.ts.map +1 -0
- package/dist/vendor/ahp/errors.js +9 -0
- package/dist/vendor/ahp/errors.js.map +1 -0
- package/dist/vendor/ahp/index.d.ts +24 -0
- package/dist/vendor/ahp/index.d.ts.map +1 -0
- package/dist/vendor/ahp/index.js +21 -0
- package/dist/vendor/ahp/index.js.map +1 -0
- package/dist/vendor/ahp/messages.d.ts +8 -0
- package/dist/vendor/ahp/messages.d.ts.map +1 -0
- package/dist/vendor/ahp/messages.js +9 -0
- package/dist/vendor/ahp/messages.js.map +1 -0
- package/dist/vendor/ahp/notifications.d.ts +11 -0
- package/dist/vendor/ahp/notifications.d.ts.map +1 -0
- package/dist/vendor/ahp/notifications.js +12 -0
- package/dist/vendor/ahp/notifications.js.map +1 -0
- package/dist/vendor/ahp/reducers.d.ts +12 -0
- package/dist/vendor/ahp/reducers.d.ts.map +1 -0
- package/dist/vendor/ahp/reducers.js +13 -0
- package/dist/vendor/ahp/reducers.js.map +1 -0
- package/dist/vendor/ahp/state.d.ts +15 -0
- package/dist/vendor/ahp/state.d.ts.map +1 -0
- package/dist/vendor/ahp/state.js +16 -0
- package/dist/vendor/ahp/state.js.map +1 -0
- package/dist/vendor/ahp/version/message-checks.d.ts +15 -0
- package/dist/vendor/ahp/version/message-checks.d.ts.map +1 -0
- package/dist/vendor/ahp/version/message-checks.js +16 -0
- package/dist/vendor/ahp/version/message-checks.js.map +1 -0
- package/dist/vendor/ahp/version/registry.d.ts +56 -0
- package/dist/vendor/ahp/version/registry.d.ts.map +1 -0
- package/dist/vendor/ahp/version/registry.js +138 -0
- package/dist/vendor/ahp/version/registry.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common Notification Types — `auth/required`, currently the only connection-
|
|
3
|
+
* level (non-channel-specific) protocol notification.
|
|
4
|
+
*
|
|
5
|
+
* @module common/notifications
|
|
6
|
+
*/
|
|
7
|
+
import type { URI } from './state.js';
|
|
8
|
+
/**
|
|
9
|
+
* Reason why authentication is required.
|
|
10
|
+
*
|
|
11
|
+
* @category Protocol Notifications
|
|
12
|
+
*/
|
|
13
|
+
export declare enum AuthRequiredReason {
|
|
14
|
+
/** The client has not yet authenticated for the resource */
|
|
15
|
+
Required = "required",
|
|
16
|
+
/** A previously valid token has expired or been revoked */
|
|
17
|
+
Expired = "expired"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Sent by the server when a protected resource requires (re-)authentication.
|
|
21
|
+
*
|
|
22
|
+
* This notification MAY be associated with any channel — for example, an
|
|
23
|
+
* agent advertised on the root channel, or a per-session resource. The
|
|
24
|
+
* `channel` field identifies the subscription the auth requirement belongs
|
|
25
|
+
* to; the `resource` field carries the OAuth-protected resource identifier
|
|
26
|
+
* (per RFC 9728).
|
|
27
|
+
*
|
|
28
|
+
* Clients should obtain a fresh token and push it via the `authenticate`
|
|
29
|
+
* command.
|
|
30
|
+
*
|
|
31
|
+
* @category Protocol Notifications
|
|
32
|
+
* @method auth/required
|
|
33
|
+
* @direction Server → Client
|
|
34
|
+
* @messageType Notification
|
|
35
|
+
* @version 1
|
|
36
|
+
* @see {@link /specification/authentication | Authentication}
|
|
37
|
+
* @example
|
|
38
|
+
* ```json
|
|
39
|
+
* {
|
|
40
|
+
* "jsonrpc": "2.0",
|
|
41
|
+
* "method": "auth/required",
|
|
42
|
+
* "params": {
|
|
43
|
+
* "channel": "ahp-root://",
|
|
44
|
+
* "resource": "https://api.github.com",
|
|
45
|
+
* "reason": "expired"
|
|
46
|
+
* }
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export interface AuthRequiredParams {
|
|
51
|
+
/** Channel URI this notification belongs to */
|
|
52
|
+
channel: URI;
|
|
53
|
+
/** The protected resource identifier that requires authentication */
|
|
54
|
+
resource: string;
|
|
55
|
+
/** Why authentication is required */
|
|
56
|
+
reason?: AuthRequiredReason;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../../src/vendor/ahp/common/notifications.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;GAIG;AACH,oBAAY,kBAAkB;IAC5B,4DAA4D;IAC5D,QAAQ,aAAa;IACrB,2DAA2D;IAC3D,OAAO,YAAY;CACpB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,OAAO,EAAE,GAAG,CAAC;IACb,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable -- vendored third-party code, see SOURCE.md */
|
|
2
|
+
/**
|
|
3
|
+
* Common Notification Types — `auth/required`, currently the only connection-
|
|
4
|
+
* level (non-channel-specific) protocol notification.
|
|
5
|
+
*
|
|
6
|
+
* @module common/notifications
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Reason why authentication is required.
|
|
10
|
+
*
|
|
11
|
+
* @category Protocol Notifications
|
|
12
|
+
*/
|
|
13
|
+
export var AuthRequiredReason;
|
|
14
|
+
(function (AuthRequiredReason) {
|
|
15
|
+
/** The client has not yet authenticated for the resource */
|
|
16
|
+
AuthRequiredReason["Required"] = "required";
|
|
17
|
+
/** A previously valid token has expired or been revoked */
|
|
18
|
+
AuthRequiredReason["Expired"] = "expired";
|
|
19
|
+
})(AuthRequiredReason || (AuthRequiredReason = {}));
|
|
20
|
+
//# sourceMappingURL=notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/vendor/ahp/common/notifications.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE;;;;;GAKG;AAIH;;;;GAIG;AACH,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,4DAA4D;IAC5D,2CAAqB,CAAA;IACrB,2DAA2D;IAC3D,yCAAmB,CAAA;AACrB,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common Reducer Helpers — Shared reducer utilities (`softAssertNever`,
|
|
3
|
+
* dispatch validation) used by the per-channel reducers.
|
|
4
|
+
*
|
|
5
|
+
* @module common/reducer-helpers
|
|
6
|
+
*/
|
|
7
|
+
import type { RootAction, ClientRootAction, SessionAction, ClientSessionAction, TerminalAction, ClientTerminalAction, ChangesetAction, ClientChangesetAction } from '../action-origin.generated.js';
|
|
8
|
+
/**
|
|
9
|
+
* Soft assertion for exhaustiveness checking. Place in the `default` branch of
|
|
10
|
+
* a switch on a discriminated union so the compiler errors when a new variant
|
|
11
|
+
* is added but not handled.
|
|
12
|
+
*
|
|
13
|
+
* At runtime, logs a warning instead of throwing so that forward-compatible
|
|
14
|
+
* clients receiving unknown actions from a newer server degrade gracefully.
|
|
15
|
+
*/
|
|
16
|
+
export declare function softAssertNever(value: never, log?: (msg: string) => void): void;
|
|
17
|
+
/**
|
|
18
|
+
* Type guard that checks whether an action may be dispatched by a client.
|
|
19
|
+
*
|
|
20
|
+
* Servers SHOULD call this to validate incoming `dispatchAction` requests
|
|
21
|
+
* and reject any action the client is not allowed to originate.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isClientDispatchable(action: RootAction | SessionAction | TerminalAction | ChangesetAction): action is ClientRootAction | ClientSessionAction | ClientTerminalAction | ClientChangesetAction;
|
|
24
|
+
//# sourceMappingURL=reducer-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducer-helpers.d.ts","sourceRoot":"","sources":["../../../../src/vendor/ahp/common/reducer-helpers.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAGvC;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAG/E;AAID;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,GAAG,cAAc,GAAG,eAAe,GAAG,MAAM,IAAI,gBAAgB,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,qBAAqB,CAE3M"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable -- vendored third-party code, see SOURCE.md */
|
|
2
|
+
/**
|
|
3
|
+
* Common Reducer Helpers — Shared reducer utilities (`softAssertNever`,
|
|
4
|
+
* dispatch validation) used by the per-channel reducers.
|
|
5
|
+
*
|
|
6
|
+
* @module common/reducer-helpers
|
|
7
|
+
*/
|
|
8
|
+
import { IS_CLIENT_DISPATCHABLE } from '../action-origin.generated.js';
|
|
9
|
+
/**
|
|
10
|
+
* Soft assertion for exhaustiveness checking. Place in the `default` branch of
|
|
11
|
+
* a switch on a discriminated union so the compiler errors when a new variant
|
|
12
|
+
* is added but not handled.
|
|
13
|
+
*
|
|
14
|
+
* At runtime, logs a warning instead of throwing so that forward-compatible
|
|
15
|
+
* clients receiving unknown actions from a newer server degrade gracefully.
|
|
16
|
+
*/
|
|
17
|
+
export function softAssertNever(value, log) {
|
|
18
|
+
const msg = `Unhandled action type: ${JSON.stringify(value)}`;
|
|
19
|
+
(log ?? console.warn)(msg);
|
|
20
|
+
}
|
|
21
|
+
// ─── Dispatch Validation ─────────────────────────────────────────────────────
|
|
22
|
+
/**
|
|
23
|
+
* Type guard that checks whether an action may be dispatched by a client.
|
|
24
|
+
*
|
|
25
|
+
* Servers SHOULD call this to validate incoming `dispatchAction` requests
|
|
26
|
+
* and reject any action the client is not allowed to originate.
|
|
27
|
+
*/
|
|
28
|
+
export function isClientDispatchable(action) {
|
|
29
|
+
return IS_CLIENT_DISPATCHABLE[action.type];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=reducer-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducer-helpers.js","sourceRoot":"","sources":["../../../../src/vendor/ahp/common/reducer-helpers.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE;;;;;GAKG;AAYH,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,KAAY,EAAE,GAA2B;IACvE,MAAM,GAAG,GAAG,0BAA0B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;IAC9D,CAAC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,gFAAgF;AAEhF;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAqE;IACxG,OAAO,sBAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common State Types — Channel-agnostic primitives shared by every channel.
|
|
3
|
+
*
|
|
4
|
+
* @module common/state
|
|
5
|
+
* @description URI, icons, content references, RFC 9728 metadata, JSON Schema
|
|
6
|
+
* helpers, position/range types, snapshots, and other primitives that aren't
|
|
7
|
+
* specific to any single AHP channel.
|
|
8
|
+
*/
|
|
9
|
+
import type { RootState } from '../channels-root/state.js';
|
|
10
|
+
import type { SessionState } from '../channels-session/state.js';
|
|
11
|
+
import type { TerminalState } from '../channels-terminal/state.js';
|
|
12
|
+
import type { ChangesetState } from '../channels-changeset/state.js';
|
|
13
|
+
/** A URI string (e.g. `ahp-root://` or `ahp-session:/<uuid>`). */
|
|
14
|
+
export type URI = string;
|
|
15
|
+
/**
|
|
16
|
+
* A string that may optionally be rendered as Markdown.
|
|
17
|
+
*
|
|
18
|
+
* - A plain `string` is rendered as-is (no Markdown processing).
|
|
19
|
+
* - An object with `{ markdown: string }` is rendered with Markdown formatting.
|
|
20
|
+
*/
|
|
21
|
+
export type StringOrMarkdown = string | {
|
|
22
|
+
markdown: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* An optionally-sized icon that can be displayed in a user interface.
|
|
26
|
+
*
|
|
27
|
+
* @category Common Types
|
|
28
|
+
*/
|
|
29
|
+
export interface Icon {
|
|
30
|
+
/**
|
|
31
|
+
* A standard URI pointing to an icon resource. May be an HTTP/HTTPS URL or a
|
|
32
|
+
* `data:` URI with Base64-encoded image data.
|
|
33
|
+
*
|
|
34
|
+
* Consumers SHOULD take steps to ensure URLs serving icons are from the
|
|
35
|
+
* same domain as the client/server or a trusted domain.
|
|
36
|
+
*
|
|
37
|
+
* Consumers SHOULD take appropriate precautions when consuming SVGs as they can contain
|
|
38
|
+
* executable JavaScript.
|
|
39
|
+
*/
|
|
40
|
+
src: URI;
|
|
41
|
+
/**
|
|
42
|
+
* Optional MIME type override if the source MIME type is missing or generic.
|
|
43
|
+
* For example: `"image/png"`, `"image/jpeg"`, or `"image/svg+xml"`.
|
|
44
|
+
*/
|
|
45
|
+
contentType?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
48
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
49
|
+
*
|
|
50
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
51
|
+
*/
|
|
52
|
+
sizes?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* Optional specifier for the theme this icon is designed for. `"light"` indicates
|
|
55
|
+
* the icon is designed to be used with a light background, and `"dark"` indicates
|
|
56
|
+
* the icon is designed to be used with a dark background.
|
|
57
|
+
*
|
|
58
|
+
* If not provided, the client should assume the icon can be used with any theme.
|
|
59
|
+
*/
|
|
60
|
+
theme?: 'light' | 'dark';
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Describes a protected resource's authentication requirements using
|
|
64
|
+
* [RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728) (OAuth 2.0
|
|
65
|
+
* Protected Resource Metadata) semantics.
|
|
66
|
+
*
|
|
67
|
+
* Field names use snake_case to match the RFC 9728 JSON format.
|
|
68
|
+
*
|
|
69
|
+
* @category Authentication
|
|
70
|
+
* @see {@link https://datatracker.ietf.org/doc/html/rfc9728 | RFC 9728}
|
|
71
|
+
*/
|
|
72
|
+
export interface ProtectedResourceMetadata {
|
|
73
|
+
/**
|
|
74
|
+
* REQUIRED. The protected resource's resource identifier, a URL using the
|
|
75
|
+
* `https` scheme with no fragment component (e.g. `"https://api.github.com"`).
|
|
76
|
+
*/
|
|
77
|
+
resource: string;
|
|
78
|
+
/** OPTIONAL. Human-readable name of the protected resource. */
|
|
79
|
+
resource_name?: string;
|
|
80
|
+
/** OPTIONAL. JSON array of OAuth authorization server identifier URLs. */
|
|
81
|
+
authorization_servers?: string[];
|
|
82
|
+
/** OPTIONAL. URL of the protected resource's JWK Set document. */
|
|
83
|
+
jwks_uri?: string;
|
|
84
|
+
/** RECOMMENDED. JSON array of OAuth 2.0 scope values used in authorization requests. */
|
|
85
|
+
scopes_supported?: string[];
|
|
86
|
+
/** OPTIONAL. JSON array of Bearer Token presentation methods supported. */
|
|
87
|
+
bearer_methods_supported?: string[];
|
|
88
|
+
/** OPTIONAL. JSON array of JWS signing algorithms supported. */
|
|
89
|
+
resource_signing_alg_values_supported?: string[];
|
|
90
|
+
/** OPTIONAL. JSON array of JWE encryption algorithms (alg) supported. */
|
|
91
|
+
resource_encryption_alg_values_supported?: string[];
|
|
92
|
+
/** OPTIONAL. JSON array of JWE encryption algorithms (enc) supported. */
|
|
93
|
+
resource_encryption_enc_values_supported?: string[];
|
|
94
|
+
/** OPTIONAL. URL of human-readable documentation for the resource. */
|
|
95
|
+
resource_documentation?: string;
|
|
96
|
+
/** OPTIONAL. URL of the resource's data-usage policy. */
|
|
97
|
+
resource_policy_uri?: string;
|
|
98
|
+
/** OPTIONAL. URL of the resource's terms of service. */
|
|
99
|
+
resource_tos_uri?: string;
|
|
100
|
+
/**
|
|
101
|
+
* AHP extension. Whether authentication is required for this resource.
|
|
102
|
+
*
|
|
103
|
+
* - `true` (default) — the agent cannot be used without a valid token.
|
|
104
|
+
* The server SHOULD return `AuthRequired` (`-32007`) if the client
|
|
105
|
+
* attempts to use the agent without authenticating.
|
|
106
|
+
* - `false` — the agent works without authentication but MAY offer
|
|
107
|
+
* enhanced capabilities when a token is provided.
|
|
108
|
+
*
|
|
109
|
+
* Clients SHOULD treat an absent field the same as `true`.
|
|
110
|
+
*/
|
|
111
|
+
required?: boolean;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A JSON Schema-compatible property descriptor with display extensions.
|
|
115
|
+
*
|
|
116
|
+
* Standard JSON Schema fields (`type`, `title`, `description`, `default`,
|
|
117
|
+
* `enum`) allow validators to process the schema. Display extensions
|
|
118
|
+
* (`enumLabels`, `enumDescriptions`) are parallel arrays that provide UI
|
|
119
|
+
* metadata for each `enum` value.
|
|
120
|
+
*
|
|
121
|
+
* This is the generic base type. See {@link SessionConfigPropertySchema} for
|
|
122
|
+
* session-specific extensions.
|
|
123
|
+
*
|
|
124
|
+
* @category Config Schema Types
|
|
125
|
+
*/
|
|
126
|
+
export interface ConfigPropertySchema {
|
|
127
|
+
/** JSON Schema: property type */
|
|
128
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
129
|
+
/** JSON Schema: human-readable label for the property */
|
|
130
|
+
title: string;
|
|
131
|
+
/** JSON Schema: description / tooltip */
|
|
132
|
+
description?: string;
|
|
133
|
+
/** JSON Schema: default value */
|
|
134
|
+
default?: unknown;
|
|
135
|
+
/** JSON Schema: allowed values (typically used with `string` type) */
|
|
136
|
+
enum?: string[];
|
|
137
|
+
/** Display extension: human-readable label per enum value (parallel array) */
|
|
138
|
+
enumLabels?: string[];
|
|
139
|
+
/** Display extension: description per enum value (parallel array) */
|
|
140
|
+
enumDescriptions?: string[];
|
|
141
|
+
/** JSON Schema: when `true`, the property is displayed but cannot be modified by the user */
|
|
142
|
+
readOnly?: boolean;
|
|
143
|
+
/** JSON Schema: schema for array items (used when `type` is `'array'`) */
|
|
144
|
+
items?: ConfigPropertySchema;
|
|
145
|
+
/** JSON Schema: property descriptors for object properties (used when `type` is `'object'`) */
|
|
146
|
+
properties?: Record<string, ConfigPropertySchema>;
|
|
147
|
+
/** JSON Schema: list of required property ids (used when `type` is `'object'`) */
|
|
148
|
+
required?: string[];
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* A JSON Schema object describing available configuration properties.
|
|
152
|
+
*
|
|
153
|
+
* This is the generic base type. See {@link SessionConfigSchema} for
|
|
154
|
+
* session-specific usage.
|
|
155
|
+
*
|
|
156
|
+
* @category Config Schema Types
|
|
157
|
+
*/
|
|
158
|
+
export interface ConfigSchema {
|
|
159
|
+
/** JSON Schema: always `'object'` */
|
|
160
|
+
type: 'object';
|
|
161
|
+
/** JSON Schema: property descriptors keyed by property id */
|
|
162
|
+
properties: Record<string, ConfigPropertySchema>;
|
|
163
|
+
/** JSON Schema: list of required property ids */
|
|
164
|
+
required?: string[];
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* A zero-based position within a textual document.
|
|
168
|
+
*
|
|
169
|
+
* @category Turn Types
|
|
170
|
+
*/
|
|
171
|
+
export interface TextPosition {
|
|
172
|
+
/** Zero-based line number. */
|
|
173
|
+
line: number;
|
|
174
|
+
/** Zero-based character offset within the line. */
|
|
175
|
+
character: number;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* A range within a textual document.
|
|
179
|
+
*
|
|
180
|
+
* @category Turn Types
|
|
181
|
+
*/
|
|
182
|
+
export interface TextRange {
|
|
183
|
+
/** Start position of the range. */
|
|
184
|
+
start: TextPosition;
|
|
185
|
+
/** End position of the range. */
|
|
186
|
+
end: TextPosition;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* A selection within a textual resource.
|
|
190
|
+
*
|
|
191
|
+
* This is only meaningful for textual resources. Binary resources may still
|
|
192
|
+
* use resource or embedded resource attachments, but they should not use this
|
|
193
|
+
* text selection field.
|
|
194
|
+
*
|
|
195
|
+
* @category Turn Types
|
|
196
|
+
*/
|
|
197
|
+
export interface TextSelection {
|
|
198
|
+
/** The range covered by the selection. */
|
|
199
|
+
range: TextRange;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* A reference to large content stored outside the state tree.
|
|
203
|
+
*/
|
|
204
|
+
export interface ContentRef {
|
|
205
|
+
/** Content URI */
|
|
206
|
+
uri: URI;
|
|
207
|
+
/** Approximate size in bytes */
|
|
208
|
+
sizeHint?: number;
|
|
209
|
+
/** Content MIME type */
|
|
210
|
+
contentType?: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Describes a file modification with before/after state and diff metadata.
|
|
214
|
+
*
|
|
215
|
+
* Supports creates (only `after`), deletes (only `before`), renames/moves
|
|
216
|
+
* (different `uri` in `before` and `after`), and edits (same `uri`, different content).
|
|
217
|
+
*
|
|
218
|
+
* @category Tool Result Content
|
|
219
|
+
*/
|
|
220
|
+
export interface FileEdit {
|
|
221
|
+
/** The file state before the edit. Absent for file creations or for in-place file edits. */
|
|
222
|
+
before?: {
|
|
223
|
+
/** URI of the file before the edit */
|
|
224
|
+
uri: URI;
|
|
225
|
+
/** Reference to the file content before the edit */
|
|
226
|
+
content: ContentRef;
|
|
227
|
+
};
|
|
228
|
+
/** The file state after the edit. Absent for file deletions. */
|
|
229
|
+
after?: {
|
|
230
|
+
/** URI of the file after the edit */
|
|
231
|
+
uri: URI;
|
|
232
|
+
/** Reference to the file content after the edit */
|
|
233
|
+
content: ContentRef;
|
|
234
|
+
};
|
|
235
|
+
/** Optional diff display metadata */
|
|
236
|
+
diff?: {
|
|
237
|
+
/** Number of items added (e.g., lines for text files, cells for notebooks) */
|
|
238
|
+
added?: number;
|
|
239
|
+
/** Number of items removed (e.g., lines for text files, cells for notebooks) */
|
|
240
|
+
removed?: number;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* @category Common Types
|
|
245
|
+
*/
|
|
246
|
+
export interface UsageInfo {
|
|
247
|
+
/** Input tokens consumed */
|
|
248
|
+
inputTokens?: number;
|
|
249
|
+
/** Output tokens generated */
|
|
250
|
+
outputTokens?: number;
|
|
251
|
+
/** Model used */
|
|
252
|
+
model?: string;
|
|
253
|
+
/** Tokens read from cache */
|
|
254
|
+
cacheReadTokens?: number;
|
|
255
|
+
/**
|
|
256
|
+
* Additional provider-specific metadata for this usage report.
|
|
257
|
+
* Clients MAY look for well-known optional keys here to provide enhanced UI.
|
|
258
|
+
*/
|
|
259
|
+
_meta?: Record<string, unknown>;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @category Common Types
|
|
263
|
+
*/
|
|
264
|
+
export interface ErrorInfo {
|
|
265
|
+
/** Error type identifier */
|
|
266
|
+
errorType: string;
|
|
267
|
+
/** Human-readable error message */
|
|
268
|
+
message: string;
|
|
269
|
+
/** Stack trace */
|
|
270
|
+
stack?: string;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* A point-in-time snapshot of a subscribed resource's state, returned by
|
|
274
|
+
* `initialize`, `reconnect`, and `subscribe`.
|
|
275
|
+
*
|
|
276
|
+
* @category Common Types
|
|
277
|
+
*/
|
|
278
|
+
export interface Snapshot {
|
|
279
|
+
/** The subscribed channel URI (e.g. `ahp-root://` or `ahp-session:/<uuid>`) */
|
|
280
|
+
resource: URI;
|
|
281
|
+
/** The current state of the resource */
|
|
282
|
+
state: RootState | SessionState | TerminalState | ChangesetState;
|
|
283
|
+
/** The `serverSeq` at which this snapshot was taken. Subsequent actions will have `serverSeq > fromSeq`. */
|
|
284
|
+
fromSeq: number;
|
|
285
|
+
}
|
|
286
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/vendor/ahp/common/state.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAA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,EAAE,OAAO,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,+EAA+E;IAC/E,QAAQ,EAAE,GAAG,CAAC;IACd,wCAAwC;IACxC,KAAK,EAAE,SAAS,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC;IACjE,4GAA4G;IAC5G,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable -- vendored third-party code, see SOURCE.md */
|
|
2
|
+
/**
|
|
3
|
+
* Common State Types — Channel-agnostic primitives shared by every channel.
|
|
4
|
+
*
|
|
5
|
+
* @module common/state
|
|
6
|
+
* @description URI, icons, content references, RFC 9728 metadata, JSON Schema
|
|
7
|
+
* helpers, position/range types, snapshots, and other primitives that aren't
|
|
8
|
+
* specific to any single AHP channel.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/vendor/ahp/common/state.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE;;;;;;;GAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/vendor/ahp/errors.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* eslint-disable -- vendored third-party code, see SOURCE.md */
|
|
2
|
+
/**
|
|
3
|
+
* Error Codes — Aggregator shim that re-exports error declarations from
|
|
4
|
+
* their canonical location.
|
|
5
|
+
*
|
|
6
|
+
* @module errors
|
|
7
|
+
*/
|
|
8
|
+
export * from './common/errors.js';
|
|
9
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/vendor/ahp/errors.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE;;;;;GAKG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Host Protocol — Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* @module agent-host-protocol
|
|
5
|
+
* @description Canonical TypeScript type definitions for the Agent Host Protocol.
|
|
6
|
+
* These types are the source of truth from which documentation and JSON Schema
|
|
7
|
+
* are generated.
|
|
8
|
+
*/
|
|
9
|
+
export type { URI, StringOrMarkdown, RootState, RootConfigState, AgentInfo, ProtectedResourceMetadata, ProjectInfo, SessionModelInfo, ModelSelection, AgentSelection, SessionState, SessionSummary, SessionConfigState, Turn, ActiveTurn, UserMessage, MessageAttachment, MessageAttachmentBase, TextPosition, TextRange, TextSelection, SimpleMessageAttachment, MessageEmbeddedResourceAttachment, MessageResourceAttachment, MarkdownResponsePart, ContentRef, ToolCallResponsePart, ReasoningResponsePart, SystemNotificationResponsePart, ResponsePart, ToolCallResult, ToolCallStreamingState, ToolCallPendingConfirmationState, ToolCallRunningState, ToolCallPendingResultConfirmationState, ToolCallCompletedState, ToolCallCancelledState, ToolCallState, ConfirmationOption, ToolDefinition, ToolAnnotations, ToolResultTextContent, ToolResultEmbeddedResourceContent, ToolResultResourceContent, ToolResultContent, FileEdit, ToolResultFileEditContent, ToolResultTerminalContent, ToolResultSubagentContent, SessionActiveClient, PendingMessage, SessionInputAnswer, SessionInputAnswerValue, SessionInputTextAnswerValue, SessionInputNumberAnswerValue, SessionInputBooleanAnswerValue, SessionInputSelectedAnswerValue, SessionInputSelectedManyAnswerValue, SessionInputAnswered, SessionInputSkipped, SessionInputOption, SessionInputQuestion, SessionInputTextQuestion, SessionInputNumberQuestion, SessionInputBooleanQuestion, SessionInputSingleSelectQuestion, SessionInputMultiSelectQuestion, SessionInputRequest, UsageInfo, ErrorInfo, Snapshot, TerminalInfo, TerminalClientClaim, TerminalSessionClaim, TerminalClaim, TerminalState, TerminalContentPart, TerminalUnclassifiedPart, TerminalCommandPart, ChangesetSummary, ChangesetState, ChangesetFile, ChangesetOperation, TelemetryCapabilities, } from './state.js';
|
|
10
|
+
export { PolicyState, SessionLifecycle, SessionStatus, TurnState, MessageAttachmentKind, ResponsePartKind, ToolCallStatus, ToolCallConfirmationReason, ToolCallCancellationReason, ConfirmationOptionKind, ToolResultContentType, PendingMessageKind, SessionInputAnswerState, SessionInputAnswerValueKind, SessionInputQuestionKind, SessionInputResponseKind, TerminalClaimKind, ChangesetStatus, ChangesetOperationScope, } from './state.js';
|
|
11
|
+
export type { ActionEnvelope, ActionOrigin, RootAgentsChangedAction, RootActiveSessionsChangedAction, SessionReadyAction, SessionCreationFailedAction, SessionTurnStartedAction, SessionDeltaAction, SessionResponsePartAction, SessionToolCallStartAction, SessionToolCallDeltaAction, SessionToolCallReadyAction, SessionToolCallApprovedAction, SessionToolCallDeniedAction, SessionToolCallConfirmedAction, SessionToolCallCompleteAction, SessionToolCallResultConfirmedAction, SessionToolCallContentChangedAction, SessionTurnCompleteAction, SessionTurnCancelledAction, SessionErrorAction, SessionTitleChangedAction, SessionUsageAction, SessionReasoningAction, SessionModelChangedAction, SessionAgentChangedAction, SessionServerToolsChangedAction, SessionActiveClientChangedAction, SessionActiveClientToolsChangedAction, SessionPendingMessageSetAction, SessionPendingMessageRemovedAction, SessionQueuedMessagesReorderedAction, SessionInputAnswerChangedAction, SessionInputCompletedAction, SessionInputRequestedAction, SessionTruncatedAction, SessionIsReadChangedAction, SessionIsArchivedChangedAction, SessionActivityChangedAction, SessionConfigChangedAction, ChangesetStatusChangedAction, ChangesetFileSetAction, ChangesetFileRemovedAction, ChangesetOperationsChangedAction, ChangesetClearedAction, StateAction, RootTerminalsChangedAction, RootConfigChangedAction, TerminalDataAction, TerminalInputAction, TerminalResizedAction, TerminalClaimedAction, TerminalTitleChangedAction, TerminalCwdChangedAction, TerminalExitedAction, TerminalClearedAction, TerminalCommandExecutedAction, TerminalCommandFinishedAction, TerminalCommandDetectionAvailableAction, } from './actions.js';
|
|
12
|
+
export { ActionType } from './actions.js';
|
|
13
|
+
export type { RootAction, SessionAction, ClientSessionAction, ServerSessionAction, TerminalAction, ClientTerminalAction, ServerTerminalAction, ChangesetAction, ClientChangesetAction, ServerChangesetAction, } from './action-origin.generated.js';
|
|
14
|
+
export { IS_CLIENT_DISPATCHABLE } from './action-origin.generated.js';
|
|
15
|
+
export { rootReducer, sessionReducer, terminalReducer, changesetReducer, isClientDispatchable, } from './reducers.js';
|
|
16
|
+
export type { InitializeParams, InitializeResult, PingParams, ReconnectParams, ReconnectReplayResult, ReconnectSnapshotResult, ReconnectResult, SubscribeParams, SubscribeResult, CreateSessionParams, SessionForkSource, DisposeSessionParams, CreateTerminalParams, DisposeTerminalParams, ListSessionsParams, ListSessionsResult, ResourceReadParams, ResourceReadResult, ResourceWriteParams, ResourceWriteResult, ResourceListParams, DirectoryEntry, ResourceListResult, ResourceCopyParams, ResourceCopyResult, ResourceDeleteParams, ResourceDeleteResult, ResourceMoveParams, ResourceMoveResult, ResourceRequestParams, ResourceRequestResult, FetchTurnsParams, FetchTurnsResult, UnsubscribeParams, DispatchActionParams, AuthenticateParams, AuthenticateResult, ResolveSessionConfigParams, ResolveSessionConfigResult, ConfigPropertySchema, ConfigSchema, SessionConfigPropertySchema, SessionConfigSchema, SessionConfigCompletionsParams, SessionConfigCompletionsResult, SessionConfigValueItem, CompletionsParams, CompletionsResult, CompletionItem, InvokeChangesetOperationParams, InvokeChangesetOperationResult, ChangesetOperationTarget, ChangesetOperationFollowUp, } from './commands.js';
|
|
17
|
+
export { ReconnectResultType, ContentEncoding, CompletionItemKind } from './commands.js';
|
|
18
|
+
export type { SessionAddedParams, SessionRemovedParams, SessionSummaryChangedParams, AuthRequiredParams, OtlpExportLogsParams, OtlpExportTracesParams, OtlpExportMetricsParams, } from './notifications.js';
|
|
19
|
+
export { AuthRequiredReason } from './notifications.js';
|
|
20
|
+
export type { JsonRpcRequest, JsonRpcSuccessResponse, JsonRpcErrorResponse, JsonRpcResponse, JsonRpcNotification, AhpErrorResponse, CommandMap, ServerCommandMap, ClientNotificationMap, ServerNotificationMap, AhpRequest, AhpServerRequest, AhpSuccessResponse, AhpServerSuccessResponse, AhpResponse, AhpServerResponse, AhpNotification, AhpClientNotification, AhpServerNotification, ProtocolMessage, } from './messages.js';
|
|
21
|
+
export { JsonRpcErrorCodes, AhpErrorCodes, } from './errors.js';
|
|
22
|
+
export type { AhpErrorCode, JsonRpcErrorCode, AhpError, AhpErrorCodeWithData, AhpErrorDetailsMap, AuthRequiredErrorData, PermissionDeniedErrorData, } from './errors.js';
|
|
23
|
+
export { PROTOCOL_VERSION, ACTION_INTRODUCED_IN, NOTIFICATION_INTRODUCED_IN, isActionKnownToVersion, isNotificationKnownToVersion, compareProtocolVersions, } from './version/registry.js';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vendor/ahp/index.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,YAAY,EACV,GAAG,EACH,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,SAAS,EACT,yBAAyB,EACzB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,IAAI,EACJ,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,SAAS,EACT,aAAa,EACb,uBAAuB,EACvB,iCAAiC,EACjC,yBAAyB,EACzB,oBAAoB,EACpB,UAAU,EACV,oBAAoB,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AAqB,EACrB,eAAe,GAChB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,iBAAiB,EACjB,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable -- vendored third-party code, see SOURCE.md */
|
|
2
|
+
/**
|
|
3
|
+
* Agent Host Protocol — Type Definitions
|
|
4
|
+
*
|
|
5
|
+
* @module agent-host-protocol
|
|
6
|
+
* @description Canonical TypeScript type definitions for the Agent Host Protocol.
|
|
7
|
+
* These types are the source of truth from which documentation and JSON Schema
|
|
8
|
+
* are generated.
|
|
9
|
+
*/
|
|
10
|
+
export { PolicyState, SessionLifecycle, SessionStatus, TurnState, MessageAttachmentKind, ResponsePartKind, ToolCallStatus, ToolCallConfirmationReason, ToolCallCancellationReason, ConfirmationOptionKind, ToolResultContentType, PendingMessageKind, SessionInputAnswerState, SessionInputAnswerValueKind, SessionInputQuestionKind, SessionInputResponseKind, TerminalClaimKind, ChangesetStatus, ChangesetOperationScope, } from './state.js';
|
|
11
|
+
export { ActionType } from './actions.js';
|
|
12
|
+
export { IS_CLIENT_DISPATCHABLE } from './action-origin.generated.js';
|
|
13
|
+
// Reducer functions
|
|
14
|
+
export { rootReducer, sessionReducer, terminalReducer, changesetReducer, isClientDispatchable, } from './reducers.js';
|
|
15
|
+
export { ReconnectResultType, ContentEncoding, CompletionItemKind } from './commands.js';
|
|
16
|
+
export { AuthRequiredReason } from './notifications.js';
|
|
17
|
+
// Error codes
|
|
18
|
+
export { JsonRpcErrorCodes, AhpErrorCodes, } from './errors.js';
|
|
19
|
+
// Version registry
|
|
20
|
+
export { PROTOCOL_VERSION, ACTION_INTRODUCED_IN, NOTIFICATION_INTRODUCED_IN, isActionKnownToVersion, isNotificationKnownToVersion, compareProtocolVersions, } from './version/registry.js';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/vendor/ahp/index.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE;;;;;;;GAOG;AA0FH,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAiEpB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAgB1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,oBAAoB;AACpB,OAAO,EACL,WAAW,EACX,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AA2DvB,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAazF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AA0BxD,cAAc;AACd,OAAO,EACL,iBAAiB,EACjB,aAAa,GACd,MAAM,aAAa,CAAC;AAWrB,mBAAmB;AACnB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/vendor/ahp/messages.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* eslint-disable -- vendored third-party code, see SOURCE.md */
|
|
2
|
+
/**
|
|
3
|
+
* Message Types — Aggregator shim that re-exports message declarations from
|
|
4
|
+
* their canonical location.
|
|
5
|
+
*
|
|
6
|
+
* @module messages
|
|
7
|
+
*/
|
|
8
|
+
export * from './common/messages.js';
|
|
9
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/vendor/ahp/messages.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE;;;;;GAKG;AAEH,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification Types — Aggregator shim that re-exports channel-organized
|
|
3
|
+
* notification declarations. New code should import directly from the
|
|
4
|
+
* per-channel files under `types/common/` and `types/channels-root/`.
|
|
5
|
+
*
|
|
6
|
+
* @module notifications
|
|
7
|
+
*/
|
|
8
|
+
export * from './common/notifications.js';
|
|
9
|
+
export * from './channels-root/notifications.js';
|
|
10
|
+
export * from './channels-otlp/notifications.js';
|
|
11
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/vendor/ahp/notifications.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* eslint-disable -- vendored third-party code, see SOURCE.md */
|
|
2
|
+
/**
|
|
3
|
+
* Notification Types — Aggregator shim that re-exports channel-organized
|
|
4
|
+
* notification declarations. New code should import directly from the
|
|
5
|
+
* per-channel files under `types/common/` and `types/channels-root/`.
|
|
6
|
+
*
|
|
7
|
+
* @module notifications
|
|
8
|
+
*/
|
|
9
|
+
export * from './common/notifications.js';
|
|
10
|
+
export * from './channels-root/notifications.js';
|
|
11
|
+
export * from './channels-otlp/notifications.js';
|
|
12
|
+
//# sourceMappingURL=notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/vendor/ahp/notifications.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE;;;;;;GAMG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reducer Functions — Aggregator shim that re-exports the channel-organized
|
|
3
|
+
* pure state reducers and dispatch helpers.
|
|
4
|
+
*
|
|
5
|
+
* @module reducers
|
|
6
|
+
*/
|
|
7
|
+
export { rootReducer } from './channels-root/reducer.js';
|
|
8
|
+
export { sessionReducer } from './channels-session/reducer.js';
|
|
9
|
+
export { terminalReducer } from './channels-terminal/reducer.js';
|
|
10
|
+
export { changesetReducer } from './channels-changeset/reducer.js';
|
|
11
|
+
export { softAssertNever, isClientDispatchable } from './common/reducer-helpers.js';
|
|
12
|
+
//# sourceMappingURL=reducers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducers.d.ts","sourceRoot":"","sources":["../../../src/vendor/ahp/reducers.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC"}
|