@chatpanel/sdk 0.14.1 → 0.18.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.
@@ -102,6 +102,16 @@ export declare const OPERATIONS: {
102
102
  readonly pathParams: readonly [];
103
103
  readonly queryParams: readonly [];
104
104
  };
105
+ readonly "history.research": {
106
+ readonly id: "history.research";
107
+ readonly method: "POST";
108
+ readonly path: "/v1/research";
109
+ readonly auth: "open";
110
+ readonly since: "0.58.0";
111
+ readonly stream: null;
112
+ readonly pathParams: readonly [];
113
+ readonly queryParams: readonly [];
114
+ };
105
115
  readonly "history.related": {
106
116
  readonly id: "history.related";
107
117
  readonly method: "GET";
@@ -150,7 +160,7 @@ export declare const OPERATIONS: {
150
160
  readonly since: "0.10.0";
151
161
  readonly stream: null;
152
162
  readonly pathParams: readonly [];
153
- readonly queryParams: readonly ["since", "cursor", "limit", "kind"];
163
+ readonly queryParams: readonly ["since", "cursor", "limit", "kind", "bytes", "after_rev"];
154
164
  };
155
165
  readonly "history.putRecords": {
156
166
  readonly id: "history.putRecords";
@@ -892,6 +902,56 @@ export declare const OPERATIONS: {
892
902
  readonly pathParams: readonly [];
893
903
  readonly queryParams: readonly [];
894
904
  };
905
+ readonly "browser.status": {
906
+ readonly id: "browser.status";
907
+ readonly method: "GET";
908
+ readonly path: "/v1/browser";
909
+ readonly auth: "token";
910
+ readonly since: "0.59.0";
911
+ readonly stream: null;
912
+ readonly pathParams: readonly [];
913
+ readonly queryParams: readonly [];
914
+ };
915
+ readonly "browser.call": {
916
+ readonly id: "browser.call";
917
+ readonly method: "POST";
918
+ readonly path: "/v1/browser/call";
919
+ readonly auth: "token";
920
+ readonly since: "0.59.0";
921
+ readonly stream: null;
922
+ readonly pathParams: readonly [];
923
+ readonly queryParams: readonly [];
924
+ };
925
+ readonly "browser.stream": {
926
+ readonly id: "browser.stream";
927
+ readonly method: "GET";
928
+ readonly path: "/v1/browser/stream";
929
+ readonly auth: "token";
930
+ readonly since: "0.59.0";
931
+ readonly stream: "sse";
932
+ readonly pathParams: readonly [];
933
+ readonly queryParams: readonly [];
934
+ };
935
+ readonly "browser.announce": {
936
+ readonly id: "browser.announce";
937
+ readonly method: "POST";
938
+ readonly path: "/v1/browser/announce";
939
+ readonly auth: "token";
940
+ readonly since: "0.59.0";
941
+ readonly stream: null;
942
+ readonly pathParams: readonly [];
943
+ readonly queryParams: readonly [];
944
+ };
945
+ readonly "browser.result": {
946
+ readonly id: "browser.result";
947
+ readonly method: "POST";
948
+ readonly path: "/v1/browser/result";
949
+ readonly auth: "token";
950
+ readonly since: "0.59.0";
951
+ readonly stream: null;
952
+ readonly pathParams: readonly [];
953
+ readonly queryParams: readonly [];
954
+ };
895
955
  };
896
956
  export type OperationId = keyof typeof OPERATIONS;
897
957
  /** Liveness, identity and pairing. */
@@ -955,6 +1015,8 @@ export declare class HistoryApi {
955
1015
  search(body: T.SearchRequest, opts?: RequestOptions): Promise<T.SearchResponse>;
956
1016
  /** Several phrasings at once, rank-fused; briefs lead. */
957
1017
  smartSearch(body: T.SmartSearchRequest, opts?: RequestOptions): Promise<T.SmartSearchResponse>;
1018
+ /** A question about the person's own data, researched over the whole store. The shared bounded loop over the warm store: the question is framed (kind of record, people named, dates, the latest or the first, a count, counts per person or per month/week/day), every matching record is queried — sorted by date when it asks for the last one, counted when it asks how many — the top records are read in full, and the result carries what was searched, found and read, plus `attachment`: one block to hand a model, with record ids to cite. Pass `next` back as `previous` to continue the question ("no, even later", "what was it about"). Open like the other history reads; naming a `model` (to condense long records and check the evidence) runs a model on the caller's behalf and needs the gateway token. — Gateway 0.58.0+. */
1019
+ research(body: T.ResearchRequest, opts?: RequestOptions): Promise<T.ResearchResponse>;
958
1020
  /** The records most connected to one record. */
959
1021
  related(query: {
960
1022
  id: string;
@@ -986,6 +1048,8 @@ export declare class HistoryApi {
986
1048
  cursor?: string;
987
1049
  limit?: number;
988
1050
  kind?: string;
1051
+ bytes?: number;
1052
+ after_rev?: number;
989
1053
  }, opts?: RequestOptions): Promise<T.RecordsPage>;
990
1054
  /** Push whole records; the gateway derives the searchable text itself. — Requires the gateway token. Gateway 0.10.0+. */
991
1055
  putRecords(body: T.PutRecordsRequest, opts?: RequestOptions): Promise<T.PutRecordsResponse>;
@@ -1463,6 +1527,25 @@ export declare class FusionsApi {
1463
1527
  /** Several models as one — the fusions this gateway has. Derived from state (the entity detector's union once a companion is ready, an engine drafting with a second model) and composed by the user (`POST /config { fusions }`, a chat fallback in order). A chat turn names a fallback as `model: "fusion:<id>"` and is routed to the first member that is up; `x-chatpanel-fusion` on the response says which. — Gateway 0.33.0+. */
1464
1528
  list(opts?: RequestOptions): Promise<T.FusionList>;
1465
1529
  }
1530
+ /** A local client using the person's own browser through the ChatPanel extension — the browser holds a stream, a client's page-tool call is carried to it and its result back. Every action still passes the extension's site grant, its commit confirmation and its bot-check hand-off. */
1531
+ export declare class BrowserApi {
1532
+ private readonly rt;
1533
+ constructor(rt: Runtime);
1534
+ /** Is a browser connected, which one, and the page tool it offers. The spec and guidance are the extension's own — a client hands them to its model as they are. — Requires the gateway token. Gateway 0.59.0+. */
1535
+ status(opts?: RequestOptions): Promise<T.BrowserStatus>;
1536
+ /** Run one page action in the person's browser and wait for its result. Carried to the connected browser, which runs it on the task's own tab through the same guards as its own page actions — the first call of a panel session asks the person, and anything that submits, pays or books is confirmed by them. Waits up to `timeoutMs` (default 120 s) because a confirmation is a person deciding. — Requires the gateway token. Gateway 0.59.0+. */
1537
+ call(body: T.BrowserCall, opts?: RequestOptions): Promise<T.BrowserCallResult>;
1538
+ /** The browser's end — `hello` with its session, then a `call` frame per action to run. — Requires the gateway token. Gateway 0.59.0+. */
1539
+ stream(opts?: RequestOptions): AsyncIterable<SseFrame<T.BrowserStreamEvent>>;
1540
+ /** The browser says what it offers — its page tool spec and guidance. — Requires the gateway token. Gateway 0.59.0+. */
1541
+ announce(body: T.BrowserAnnounce, opts?: RequestOptions): Promise<{
1542
+ ok: boolean;
1543
+ }>;
1544
+ /** The browser answers a call it ran. Only the session the call went to may answer it. — Requires the gateway token. Gateway 0.59.0+. */
1545
+ result(body: T.BrowserResult, opts?: RequestOptions): Promise<{
1546
+ ok: boolean;
1547
+ }>;
1548
+ }
1466
1549
  /** The namespaces a client exposes, built on one runtime. */
1467
1550
  export declare function buildApi(rt: Runtime): {
1468
1551
  gateway: GatewayApi;
@@ -1483,4 +1566,5 @@ export declare function buildApi(rt: Runtime): {
1483
1566
  skills: SkillsApi;
1484
1567
  a2a: A2aApi;
1485
1568
  fusions: FusionsApi;
1569
+ browser: BrowserApi;
1486
1570
  };
@@ -10,11 +10,12 @@ export const OPERATIONS = {
10
10
  "redaction.preview": { id: "redaction.preview", method: "POST", path: "/redact", auth: "open", since: "0.6.62", stream: null, pathParams: [], queryParams: [] },
11
11
  "history.search": { id: "history.search", method: "POST", path: "/v1/history/search", auth: "open", since: null, stream: null, pathParams: [], queryParams: [] },
12
12
  "history.smartSearch": { id: "history.smartSearch", method: "POST", path: "/v1/history/smart-search", auth: "open", since: null, stream: null, pathParams: [], queryParams: [] },
13
+ "history.research": { id: "history.research", method: "POST", path: "/v1/research", auth: "open", since: "0.58.0", stream: null, pathParams: [], queryParams: [] },
13
14
  "history.related": { id: "history.related", method: "GET", path: "/v1/history/related", auth: "open", since: null, stream: null, pathParams: [], queryParams: ["id", "limit"] },
14
15
  "history.status": { id: "history.status", method: "GET", path: "/v1/history/status", auth: "open", since: null, stream: null, pathParams: [], queryParams: [] },
15
16
  "history.list": { id: "history.list", method: "GET", path: "/v1/history/list", auth: "open", since: null, stream: null, pathParams: [], queryParams: ["limit", "offset", "type"] },
16
17
  "history.get": { id: "history.get", method: "GET", path: "/v1/history/get", auth: "open", since: null, stream: null, pathParams: [], queryParams: ["id", "maxChars", "offset"] },
17
- "history.records": { id: "history.records", method: "GET", path: "/v1/history/records", auth: "open", since: "0.10.0", stream: null, pathParams: [], queryParams: ["since", "cursor", "limit", "kind"] },
18
+ "history.records": { id: "history.records", method: "GET", path: "/v1/history/records", auth: "open", since: "0.10.0", stream: null, pathParams: [], queryParams: ["since", "cursor", "limit", "kind", "bytes", "after_rev"] },
18
19
  "history.putRecords": { id: "history.putRecords", method: "PUT", path: "/v1/history/records", auth: "token", since: "0.10.0", stream: null, pathParams: [], queryParams: [] },
19
20
  "history.stream": { id: "history.stream", method: "GET", path: "/v1/history/stream", auth: "open", since: "0.11.0", stream: "sse", pathParams: [], queryParams: [] },
20
21
  "events.since": { id: "events.since", method: "GET", path: "/v1/events", auth: "token", since: "0.24.0", stream: null, pathParams: [], queryParams: ["cursor", "limit", "host"] },
@@ -89,6 +90,11 @@ export const OPERATIONS = {
89
90
  "skills.list": { id: "skills.list", method: "GET", path: "/skills", auth: "open", since: "0.6.64", stream: null, pathParams: [], queryParams: ["workdir"] },
90
91
  "skills.get": { id: "skills.get", method: "GET", path: "/skills/{skillId}", auth: "open", since: "0.6.67", stream: null, pathParams: ["skillId"], queryParams: ["workdir"] },
91
92
  "fusions.list": { id: "fusions.list", method: "GET", path: "/v1/fusions", auth: "open", since: "0.33.0", stream: null, pathParams: [], queryParams: [] },
93
+ "browser.status": { id: "browser.status", method: "GET", path: "/v1/browser", auth: "token", since: "0.59.0", stream: null, pathParams: [], queryParams: [] },
94
+ "browser.call": { id: "browser.call", method: "POST", path: "/v1/browser/call", auth: "token", since: "0.59.0", stream: null, pathParams: [], queryParams: [] },
95
+ "browser.stream": { id: "browser.stream", method: "GET", path: "/v1/browser/stream", auth: "token", since: "0.59.0", stream: "sse", pathParams: [], queryParams: [] },
96
+ "browser.announce": { id: "browser.announce", method: "POST", path: "/v1/browser/announce", auth: "token", since: "0.59.0", stream: null, pathParams: [], queryParams: [] },
97
+ "browser.result": { id: "browser.result", method: "POST", path: "/v1/browser/result", auth: "token", since: "0.59.0", stream: null, pathParams: [], queryParams: [] },
92
98
  };
93
99
  /** Liveness, identity and pairing. */
94
100
  export class GatewayApi {
@@ -158,6 +164,10 @@ export class HistoryApi {
158
164
  smartSearch(body, opts) {
159
165
  return this.rt.request(OPERATIONS["history.smartSearch"], { path: {}, query: undefined, headers: opts?.headers, body: body, opts });
160
166
  }
167
+ /** A question about the person's own data, researched over the whole store. The shared bounded loop over the warm store: the question is framed (kind of record, people named, dates, the latest or the first, a count, counts per person or per month/week/day), every matching record is queried — sorted by date when it asks for the last one, counted when it asks how many — the top records are read in full, and the result carries what was searched, found and read, plus `attachment`: one block to hand a model, with record ids to cite. Pass `next` back as `previous` to continue the question ("no, even later", "what was it about"). Open like the other history reads; naming a `model` (to condense long records and check the evidence) runs a model on the caller's behalf and needs the gateway token. — Gateway 0.58.0+. */
168
+ research(body, opts) {
169
+ return this.rt.request(OPERATIONS["history.research"], { path: {}, query: undefined, headers: opts?.headers, body: body, opts });
170
+ }
161
171
  /** The records most connected to one record. */
162
172
  related(query, opts) {
163
173
  return this.rt.request(OPERATIONS["history.related"], { path: {}, query: query, headers: opts?.headers, body: undefined, opts });
@@ -540,6 +550,31 @@ export class FusionsApi {
540
550
  return this.rt.request(OPERATIONS["fusions.list"], { path: {}, query: undefined, headers: opts?.headers, body: undefined, opts });
541
551
  }
542
552
  }
553
+ /** A local client using the person's own browser through the ChatPanel extension — the browser holds a stream, a client's page-tool call is carried to it and its result back. Every action still passes the extension's site grant, its commit confirmation and its bot-check hand-off. */
554
+ export class BrowserApi {
555
+ rt;
556
+ constructor(rt) { this.rt = rt; }
557
+ /** Is a browser connected, which one, and the page tool it offers. The spec and guidance are the extension's own — a client hands them to its model as they are. — Requires the gateway token. Gateway 0.59.0+. */
558
+ status(opts) {
559
+ return this.rt.request(OPERATIONS["browser.status"], { path: {}, query: undefined, headers: opts?.headers, body: undefined, opts });
560
+ }
561
+ /** Run one page action in the person's browser and wait for its result. Carried to the connected browser, which runs it on the task's own tab through the same guards as its own page actions — the first call of a panel session asks the person, and anything that submits, pays or books is confirmed by them. Waits up to `timeoutMs` (default 120 s) because a confirmation is a person deciding. — Requires the gateway token. Gateway 0.59.0+. */
562
+ call(body, opts) {
563
+ return this.rt.request(OPERATIONS["browser.call"], { path: {}, query: undefined, headers: opts?.headers, body: body, opts });
564
+ }
565
+ /** The browser's end — `hello` with its session, then a `call` frame per action to run. — Requires the gateway token. Gateway 0.59.0+. */
566
+ stream(opts) {
567
+ return this.rt.stream(OPERATIONS["browser.stream"], { path: {}, query: undefined, headers: opts?.headers, opts });
568
+ }
569
+ /** The browser says what it offers — its page tool spec and guidance. — Requires the gateway token. Gateway 0.59.0+. */
570
+ announce(body, opts) {
571
+ return this.rt.request(OPERATIONS["browser.announce"], { path: {}, query: undefined, headers: opts?.headers, body: body, opts });
572
+ }
573
+ /** The browser answers a call it ran. Only the session the call went to may answer it. — Requires the gateway token. Gateway 0.59.0+. */
574
+ result(body, opts) {
575
+ return this.rt.request(OPERATIONS["browser.result"], { path: {}, query: undefined, headers: opts?.headers, body: body, opts });
576
+ }
577
+ }
543
578
  /** The namespaces a client exposes, built on one runtime. */
544
579
  export function buildApi(rt) {
545
580
  return {
@@ -561,5 +596,6 @@ export function buildApi(rt) {
561
596
  skills: new SkillsApi(rt),
562
597
  a2a: new A2aApi(rt),
563
598
  fusions: new FusionsApi(rt),
599
+ browser: new BrowserApi(rt),
564
600
  };
565
601
  }
@@ -470,6 +470,88 @@ export type SmartSearchRequest = (SearchFilters) & ({
470
470
  queries?: Array<string>;
471
471
  maxQueries?: number;
472
472
  });
473
+ /** How the question was framed — the typed plan the store was queried with. */
474
+ export interface ResearchPlan {
475
+ intent?: "find" | "latest" | "earliest" | "count" | "group" | "people" | "list" | "detail";
476
+ /** meeting, note, chat — or empty for every kind. */
477
+ kind?: string;
478
+ names?: Array<string>;
479
+ terms?: Array<string>;
480
+ sort?: "relevance" | "newest" | "oldest";
481
+ limit?: number;
482
+ since?: number;
483
+ after?: number;
484
+ before?: number;
485
+ /** person, month, week, day — or empty. */
486
+ group?: string;
487
+ readFull?: boolean;
488
+ followUp?: boolean;
489
+ target?: string | null;
490
+ [key: string]: unknown;
491
+ }
492
+ /** What a follow-up continues — the `next` of the previous answer, passed back as `previous`. */
493
+ export interface ResearchFollowUp {
494
+ plan: ResearchPlan;
495
+ /** The record the answer pointed at. */
496
+ top?: string | null;
497
+ /** What the answer said (a date in it bounds "even later"). */
498
+ answer?: string;
499
+ }
500
+ export interface ResearchRequest {
501
+ /** The person's question, in their words. */
502
+ question: string;
503
+ previous?: ResearchFollowUp;
504
+ /** A model id to read with (condense long records, check the evidence). Needs the gateway token; without one the parts are quoted as they are. */
505
+ model?: string;
506
+ /** A record that is not evidence — the conversation asking. */
507
+ excludeId?: string;
508
+ }
509
+ export interface ResearchResponse {
510
+ ok: boolean;
511
+ question?: string;
512
+ plan: ResearchPlan;
513
+ /** How the store was searched, in words. */
514
+ how: string;
515
+ framedBy?: "rules" | "model";
516
+ /** Every match in the store, not the rows returned. */
517
+ count?: number | null;
518
+ rows: Array<{
519
+ id: string;
520
+ kind?: string;
521
+ title?: string;
522
+ date?: number;
523
+ snippet?: string;
524
+ [key: string]: unknown;
525
+ }>;
526
+ groups?: Array<{
527
+ key: string;
528
+ count: number;
529
+ }> | null;
530
+ read: Array<{
531
+ id: string;
532
+ title?: string;
533
+ date?: number;
534
+ parts?: number;
535
+ of?: number;
536
+ speakers?: Array<{
537
+ name?: string;
538
+ lines?: number;
539
+ }>;
540
+ notes?: Array<string>;
541
+ }>;
542
+ memory?: Array<string>;
543
+ rounds?: number;
544
+ verdict?: string | null;
545
+ ms?: number;
546
+ next: ResearchFollowUp;
547
+ /** The block to hand a model — null when nothing was found anywhere. */
548
+ attachment?: {
549
+ title: string;
550
+ text: string;
551
+ } | null;
552
+ size?: number;
553
+ newest?: number | null;
554
+ }
473
555
  export interface SearchHit {
474
556
  id: string;
475
557
  score?: number;
@@ -523,10 +605,12 @@ export interface RecordsPage {
523
605
  ok: boolean;
524
606
  /** Whole records; a tombstone carries `deletedAt`. */
525
607
  records: Array<AnyObject>;
526
- /** The cursor for the next page — pass it as `cursor`; absent on the last page. */
608
+ /** The cursor for the next page — pass it as `cursor` (or, paging by revision, as `after_rev`); absent on the last page. */
527
609
  next?: string;
528
610
  size?: number;
529
611
  newest?: number;
612
+ /** The newest revision (gateway 0.63.0+). Each record carries its own `rev` too. */
613
+ rev?: number;
530
614
  [key: string]: unknown;
531
615
  }
532
616
  /** One durable event in the CloudEvents 1.0 envelope. `seq`, `host`, `chatpanelv` are ChatPanel's extension attributes (the per-host order, the producer, the log schema version); `causes` is the comma-joined ids this event follows; `data` is the payload — refs and counts, never content. */
@@ -624,9 +708,12 @@ export interface PutRecordsRequest {
624
708
  /** Who is pushing — recorded on every record. */
625
709
  host?: string;
626
710
  at?: number;
711
+ /** Whole records or tombstones. A record with `baseRev` (gateway 0.63.0+) is written only while the stored one is at that revision (0 = none stored); otherwise it comes back in `conflicts`. Without it the newer stamp wins. */
627
712
  records?: Array<AnyObject>;
628
713
  /** Sealed backup entries, opened with the stored passphrase. */
629
714
  entries?: Array<AnyObject>;
715
+ /** Gateway 0.64.0+: a NOTE sent with a `baseRev` that is no longer current is merged against that version (title, tags and text three-way) instead of coming back in `conflicts`; the result is in `merged`. */
716
+ merge?: boolean;
630
717
  }
631
718
  export interface PutRecordsResponse {
632
719
  ok: boolean;
@@ -634,6 +721,16 @@ export interface PutRecordsResponse {
634
721
  ids?: Array<string>;
635
722
  sealed?: number;
636
723
  size?: number;
724
+ /** Each written record's new revision (gateway 0.63.0+). */
725
+ revs?: {
726
+ [key: string]: number;
727
+ };
728
+ /** The current record for each one sent with a `baseRev` that is no longer current — merge and send again. */
729
+ conflicts?: Array<AnyObject>;
730
+ /** Gateway 0.64.0+, with `merge: true`: each note merged from an outdated copy, as stored (with its new `rev`) — replace yours with it. */
731
+ merged?: Array<AnyObject>;
732
+ /** The newest revision after this write. */
733
+ rev?: number;
637
734
  }
638
735
  export interface IngestRequest {
639
736
  upserts?: Array<{
@@ -979,3 +1076,81 @@ export interface FusionList {
979
1076
  describe?: string;
980
1077
  }>;
981
1078
  }
1079
+ export interface BrowserInfo {
1080
+ kind: "chrome" | "edge" | "firefox" | "brave" | "opera" | "chromium" | "other";
1081
+ version?: string;
1082
+ }
1083
+ export interface BrowserStatus {
1084
+ connected: boolean;
1085
+ /** Calls waiting on the browser. */
1086
+ pending: number;
1087
+ /** A browser holds the stream but has not announced yet. */
1088
+ waiting?: boolean;
1089
+ browser?: BrowserInfo;
1090
+ /** The extension's version. */
1091
+ extension?: string;
1092
+ /** The page tool: { name, description, parameters } — hand it to a model as it is. */
1093
+ spec?: {
1094
+ [key: string]: unknown;
1095
+ };
1096
+ /** The guidance that goes with the tool. */
1097
+ system?: string;
1098
+ /** The full specs behind the dispatcher (gateway 0.59.1+) — a hub lists each action with its own arguments. */
1099
+ actions?: Array<{
1100
+ [key: string]: unknown;
1101
+ }>;
1102
+ }
1103
+ export interface BrowserCall {
1104
+ /** A page action: open_tab, navigate, read_page, inspect_page, fill_form, click_by_text, screenshot, describe… */
1105
+ action: string;
1106
+ args?: {
1107
+ [key: string]: unknown;
1108
+ };
1109
+ /** What the person asked for — shown to them when the browser asks to be used. */
1110
+ task?: string;
1111
+ timeoutMs?: number;
1112
+ }
1113
+ export interface BrowserCallResult {
1114
+ ok: boolean;
1115
+ /** The page action's result — its text, or text with a screenshot. */
1116
+ result: string | {
1117
+ text: string;
1118
+ /** A data URL. */
1119
+ image?: string;
1120
+ };
1121
+ }
1122
+ export interface BrowserStreamEvent {
1123
+ event: "hello" | "call" | "cancel" | "replaced";
1124
+ /** On `hello`. */
1125
+ session?: string;
1126
+ /** On `hello` — the gateway's. */
1127
+ version?: string;
1128
+ /** On `call` and `cancel`. */
1129
+ id?: string;
1130
+ action?: string;
1131
+ args?: {
1132
+ [key: string]: unknown;
1133
+ };
1134
+ task?: string;
1135
+ }
1136
+ export interface BrowserAnnounce {
1137
+ session: string;
1138
+ browser?: BrowserInfo;
1139
+ extension?: string;
1140
+ spec: {
1141
+ [key: string]: unknown;
1142
+ };
1143
+ system?: string;
1144
+ /** Optional — the full specs behind the dispatcher. */
1145
+ actions?: Array<{
1146
+ [key: string]: unknown;
1147
+ }>;
1148
+ }
1149
+ export interface BrowserResult {
1150
+ session: string;
1151
+ id: string;
1152
+ result: string | {
1153
+ text: string;
1154
+ image?: string;
1155
+ };
1156
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatpanel/sdk",
3
- "version": "0.14.1",
3
+ "version": "0.18.0",
4
4
  "description": "Typed client for the local ChatPanel gateway — chat through the privacy proxy, search the user's history, read and write memory, follow team runs. Zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",