@100xprompt/sdk 0.1.110 → 0.1.120
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/gen/types.gen.d.ts +261 -232
- package/package.json +12 -12
- package/openapi.json +0 -14260
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -162,234 +162,6 @@ export type EventSessionIdle = {
|
|
|
162
162
|
sessionID: string;
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
-
/**
|
|
166
|
-
* Deprecated: no consumer reads this event. It is memory-v2 telemetry, not a supported integration point — counts and timings are also written to the `memory` service log. Scheduled for removal in the next major; still emitted until then.
|
|
167
|
-
*
|
|
168
|
-
* @deprecated
|
|
169
|
-
*/
|
|
170
|
-
export type EventMemoryExtractionCompleted = {
|
|
171
|
-
type: "memory.extraction.completed";
|
|
172
|
-
properties: {
|
|
173
|
-
sessionID: string;
|
|
174
|
-
facts: number;
|
|
175
|
-
topics: number;
|
|
176
|
-
skipped: boolean;
|
|
177
|
-
ms: number;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* Deprecated: no consumer reads this event. It is memory-v2 telemetry, not a supported integration point — counts and timings are also written to the `memory` service log. Scheduled for removal in the next major; still emitted until then.
|
|
182
|
-
*
|
|
183
|
-
* @deprecated
|
|
184
|
-
*/
|
|
185
|
-
export type EventMemoryConsolidationCompleted = {
|
|
186
|
-
type: "memory.consolidation.completed";
|
|
187
|
-
properties: {
|
|
188
|
-
factsBefore: number;
|
|
189
|
-
factsAfter: number;
|
|
190
|
-
topicsDeleted: number;
|
|
191
|
-
topicsWritten: number;
|
|
192
|
-
ms: number;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Deprecated: no consumer reads this event. It is memory-v2 telemetry, not a supported integration point — counts and timings are also written to the `memory` service log. Scheduled for removal in the next major; still emitted until then.
|
|
197
|
-
*
|
|
198
|
-
* @deprecated
|
|
199
|
-
*/
|
|
200
|
-
export type EventMemoryRecallCompleted = {
|
|
201
|
-
type: "memory.recall.completed";
|
|
202
|
-
properties: {
|
|
203
|
-
sessionID: string;
|
|
204
|
-
candidates: number;
|
|
205
|
-
selected: number;
|
|
206
|
-
dedupeExcluded: number;
|
|
207
|
-
ms: number;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
export type PermissionRequest = {
|
|
211
|
-
id: string;
|
|
212
|
-
sessionID: string;
|
|
213
|
-
permission: string;
|
|
214
|
-
patterns: Array<string>;
|
|
215
|
-
metadata: {
|
|
216
|
-
[key: string]: unknown;
|
|
217
|
-
};
|
|
218
|
-
always: Array<string>;
|
|
219
|
-
tool?: {
|
|
220
|
-
messageID: string;
|
|
221
|
-
callID: string;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
export type EventPermissionAsked = {
|
|
225
|
-
type: "permission.asked";
|
|
226
|
-
properties: PermissionRequest;
|
|
227
|
-
};
|
|
228
|
-
export type EventPermissionReplied = {
|
|
229
|
-
type: "permission.replied";
|
|
230
|
-
properties: {
|
|
231
|
-
sessionID: string;
|
|
232
|
-
requestID: string;
|
|
233
|
-
reply: "once" | "always" | "reject";
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
/**
|
|
237
|
-
* Deprecated: no consumer reads this event. It fires on an MCP `notifications/tools/list_changed` and on config reload, and only carries a server name — the cache is already invalidated by the time it is published, so re-reading the tool list is enough. Note `mcp.status.changed` is NOT a drop-in replacement: it tracks connection state, not tool-list changes. Scheduled for removal in the next major; still emitted until then.
|
|
238
|
-
*
|
|
239
|
-
* @deprecated
|
|
240
|
-
*/
|
|
241
|
-
export type EventMcpToolsChanged = {
|
|
242
|
-
type: "mcp.tools.changed";
|
|
243
|
-
properties: {
|
|
244
|
-
server: string;
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
export type McpStatusConnected = {
|
|
248
|
-
status: "connected";
|
|
249
|
-
};
|
|
250
|
-
export type McpStatusDisabled = {
|
|
251
|
-
status: "disabled";
|
|
252
|
-
};
|
|
253
|
-
export type McpStatusFailed = {
|
|
254
|
-
status: "failed";
|
|
255
|
-
error: string;
|
|
256
|
-
};
|
|
257
|
-
export type McpStatusNeedsAuth = {
|
|
258
|
-
status: "needs_auth";
|
|
259
|
-
};
|
|
260
|
-
export type McpStatusNeedsApproval = {
|
|
261
|
-
status: "needs_approval";
|
|
262
|
-
};
|
|
263
|
-
export type McpStatusNeedsClientRegistration = {
|
|
264
|
-
status: "needs_client_registration";
|
|
265
|
-
error: string;
|
|
266
|
-
};
|
|
267
|
-
export type McpStatusPending = {
|
|
268
|
-
status: "pending";
|
|
269
|
-
attempt: number;
|
|
270
|
-
};
|
|
271
|
-
export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsApproval | McpStatusNeedsClientRegistration | McpStatusPending;
|
|
272
|
-
export type EventMcpStatusChanged = {
|
|
273
|
-
type: "mcp.status.changed";
|
|
274
|
-
properties: {
|
|
275
|
-
status: {
|
|
276
|
-
[key: string]: McpStatus;
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
/**
|
|
281
|
-
* Deprecated: no consumer reads this event, and there is no HTTP route or SDK method behind it — schedules are managed only through the `schedule` tool. A fired schedule surfaces as an ordinary session (`session.created`, then `session.idle` when it finishes). Scheduled for removal in the next major; still emitted until then.
|
|
282
|
-
*
|
|
283
|
-
* @deprecated
|
|
284
|
-
*/
|
|
285
|
-
export type EventScheduleCreated = {
|
|
286
|
-
type: "schedule.created";
|
|
287
|
-
properties: {
|
|
288
|
-
info: {
|
|
289
|
-
id: string;
|
|
290
|
-
title: string;
|
|
291
|
-
prompt: string;
|
|
292
|
-
/**
|
|
293
|
-
* project directory this task runs in
|
|
294
|
-
*/
|
|
295
|
-
directory: string;
|
|
296
|
-
agent?: string;
|
|
297
|
-
spec: {
|
|
298
|
-
type: "once";
|
|
299
|
-
/**
|
|
300
|
-
* epoch ms to run once
|
|
301
|
-
*/
|
|
302
|
-
at: number;
|
|
303
|
-
} | {
|
|
304
|
-
type: "every";
|
|
305
|
-
/**
|
|
306
|
-
* interval in ms
|
|
307
|
-
*/
|
|
308
|
-
ms: number;
|
|
309
|
-
} | {
|
|
310
|
-
type: "cron";
|
|
311
|
-
/**
|
|
312
|
-
* 5-field cron expression
|
|
313
|
-
*/
|
|
314
|
-
expr: string;
|
|
315
|
-
};
|
|
316
|
-
enabled: boolean;
|
|
317
|
-
createdAt: number;
|
|
318
|
-
lastRun?: number;
|
|
319
|
-
nextRun: number | null;
|
|
320
|
-
runCount: number;
|
|
321
|
-
lastError?: string;
|
|
322
|
-
};
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
/**
|
|
326
|
-
* Deprecated: no consumer reads this event, and there is no HTTP route or SDK method behind it — schedules are managed only through the `schedule` tool. A fired schedule surfaces as an ordinary session (`session.created`, then `session.idle` when it finishes). Scheduled for removal in the next major; still emitted until then.
|
|
327
|
-
*
|
|
328
|
-
* @deprecated
|
|
329
|
-
*/
|
|
330
|
-
export type EventScheduleUpdated = {
|
|
331
|
-
type: "schedule.updated";
|
|
332
|
-
properties: {
|
|
333
|
-
info: {
|
|
334
|
-
id: string;
|
|
335
|
-
title: string;
|
|
336
|
-
prompt: string;
|
|
337
|
-
/**
|
|
338
|
-
* project directory this task runs in
|
|
339
|
-
*/
|
|
340
|
-
directory: string;
|
|
341
|
-
agent?: string;
|
|
342
|
-
spec: {
|
|
343
|
-
type: "once";
|
|
344
|
-
/**
|
|
345
|
-
* epoch ms to run once
|
|
346
|
-
*/
|
|
347
|
-
at: number;
|
|
348
|
-
} | {
|
|
349
|
-
type: "every";
|
|
350
|
-
/**
|
|
351
|
-
* interval in ms
|
|
352
|
-
*/
|
|
353
|
-
ms: number;
|
|
354
|
-
} | {
|
|
355
|
-
type: "cron";
|
|
356
|
-
/**
|
|
357
|
-
* 5-field cron expression
|
|
358
|
-
*/
|
|
359
|
-
expr: string;
|
|
360
|
-
};
|
|
361
|
-
enabled: boolean;
|
|
362
|
-
createdAt: number;
|
|
363
|
-
lastRun?: number;
|
|
364
|
-
nextRun: number | null;
|
|
365
|
-
runCount: number;
|
|
366
|
-
lastError?: string;
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
/**
|
|
371
|
-
* Deprecated: no consumer reads this event, and there is no HTTP route or SDK method behind it — schedules are managed only through the `schedule` tool. A fired schedule surfaces as an ordinary session (`session.created`, then `session.idle` when it finishes). Scheduled for removal in the next major; still emitted until then.
|
|
372
|
-
*
|
|
373
|
-
* @deprecated
|
|
374
|
-
*/
|
|
375
|
-
export type EventScheduleRemoved = {
|
|
376
|
-
type: "schedule.removed";
|
|
377
|
-
properties: {
|
|
378
|
-
id: string;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
/**
|
|
382
|
-
* Deprecated: no consumer reads this event, and there is no HTTP route or SDK method behind it — schedules are managed only through the `schedule` tool. A fired schedule surfaces as an ordinary session (`session.created`, then `session.idle` when it finishes). Scheduled for removal in the next major; still emitted until then.
|
|
383
|
-
*
|
|
384
|
-
* @deprecated
|
|
385
|
-
*/
|
|
386
|
-
export type EventScheduleFired = {
|
|
387
|
-
type: "schedule.fired";
|
|
388
|
-
properties: {
|
|
389
|
-
id: string;
|
|
390
|
-
sessionID: string;
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
165
|
export type EventLspClientDiagnostics = {
|
|
394
166
|
type: "lsp.client.diagnostics";
|
|
395
167
|
properties: {
|
|
@@ -673,6 +445,7 @@ export type StepFinishPart = {
|
|
|
673
445
|
type: "step-finish";
|
|
674
446
|
reason: string;
|
|
675
447
|
snapshot?: string;
|
|
448
|
+
upstream?: string;
|
|
676
449
|
cost: number;
|
|
677
450
|
tokens: {
|
|
678
451
|
input: number;
|
|
@@ -772,6 +545,234 @@ export type EventMessagePartRemoved = {
|
|
|
772
545
|
partID: string;
|
|
773
546
|
};
|
|
774
547
|
};
|
|
548
|
+
/**
|
|
549
|
+
* Deprecated: no consumer reads this event. It is memory-v2 telemetry, not a supported integration point — counts and timings are also written to the `memory` service log. Scheduled for removal in the next major; still emitted until then.
|
|
550
|
+
*
|
|
551
|
+
* @deprecated
|
|
552
|
+
*/
|
|
553
|
+
export type EventMemoryExtractionCompleted = {
|
|
554
|
+
type: "memory.extraction.completed";
|
|
555
|
+
properties: {
|
|
556
|
+
sessionID: string;
|
|
557
|
+
facts: number;
|
|
558
|
+
topics: number;
|
|
559
|
+
skipped: boolean;
|
|
560
|
+
ms: number;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
/**
|
|
564
|
+
* Deprecated: no consumer reads this event. It is memory-v2 telemetry, not a supported integration point — counts and timings are also written to the `memory` service log. Scheduled for removal in the next major; still emitted until then.
|
|
565
|
+
*
|
|
566
|
+
* @deprecated
|
|
567
|
+
*/
|
|
568
|
+
export type EventMemoryConsolidationCompleted = {
|
|
569
|
+
type: "memory.consolidation.completed";
|
|
570
|
+
properties: {
|
|
571
|
+
factsBefore: number;
|
|
572
|
+
factsAfter: number;
|
|
573
|
+
topicsDeleted: number;
|
|
574
|
+
topicsWritten: number;
|
|
575
|
+
ms: number;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
/**
|
|
579
|
+
* Deprecated: no consumer reads this event. It is memory-v2 telemetry, not a supported integration point — counts and timings are also written to the `memory` service log. Scheduled for removal in the next major; still emitted until then.
|
|
580
|
+
*
|
|
581
|
+
* @deprecated
|
|
582
|
+
*/
|
|
583
|
+
export type EventMemoryRecallCompleted = {
|
|
584
|
+
type: "memory.recall.completed";
|
|
585
|
+
properties: {
|
|
586
|
+
sessionID: string;
|
|
587
|
+
candidates: number;
|
|
588
|
+
selected: number;
|
|
589
|
+
dedupeExcluded: number;
|
|
590
|
+
ms: number;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
export type PermissionRequest = {
|
|
594
|
+
id: string;
|
|
595
|
+
sessionID: string;
|
|
596
|
+
permission: string;
|
|
597
|
+
patterns: Array<string>;
|
|
598
|
+
metadata: {
|
|
599
|
+
[key: string]: unknown;
|
|
600
|
+
};
|
|
601
|
+
always: Array<string>;
|
|
602
|
+
tool?: {
|
|
603
|
+
messageID: string;
|
|
604
|
+
callID: string;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
export type EventPermissionAsked = {
|
|
608
|
+
type: "permission.asked";
|
|
609
|
+
properties: PermissionRequest;
|
|
610
|
+
};
|
|
611
|
+
export type EventPermissionReplied = {
|
|
612
|
+
type: "permission.replied";
|
|
613
|
+
properties: {
|
|
614
|
+
sessionID: string;
|
|
615
|
+
requestID: string;
|
|
616
|
+
reply: "once" | "always" | "reject";
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* Deprecated: no consumer reads this event. It fires on an MCP `notifications/tools/list_changed` and on config reload, and only carries a server name — the cache is already invalidated by the time it is published, so re-reading the tool list is enough. Note `mcp.status.changed` is NOT a drop-in replacement: it tracks connection state, not tool-list changes. Scheduled for removal in the next major; still emitted until then.
|
|
621
|
+
*
|
|
622
|
+
* @deprecated
|
|
623
|
+
*/
|
|
624
|
+
export type EventMcpToolsChanged = {
|
|
625
|
+
type: "mcp.tools.changed";
|
|
626
|
+
properties: {
|
|
627
|
+
server: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
export type McpStatusConnected = {
|
|
631
|
+
status: "connected";
|
|
632
|
+
};
|
|
633
|
+
export type McpStatusDisabled = {
|
|
634
|
+
status: "disabled";
|
|
635
|
+
};
|
|
636
|
+
export type McpStatusFailed = {
|
|
637
|
+
status: "failed";
|
|
638
|
+
error: string;
|
|
639
|
+
};
|
|
640
|
+
export type McpStatusNeedsAuth = {
|
|
641
|
+
status: "needs_auth";
|
|
642
|
+
};
|
|
643
|
+
export type McpStatusNeedsApproval = {
|
|
644
|
+
status: "needs_approval";
|
|
645
|
+
};
|
|
646
|
+
export type McpStatusNeedsClientRegistration = {
|
|
647
|
+
status: "needs_client_registration";
|
|
648
|
+
error: string;
|
|
649
|
+
};
|
|
650
|
+
export type McpStatusPending = {
|
|
651
|
+
status: "pending";
|
|
652
|
+
attempt: number;
|
|
653
|
+
};
|
|
654
|
+
export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsApproval | McpStatusNeedsClientRegistration | McpStatusPending;
|
|
655
|
+
export type EventMcpStatusChanged = {
|
|
656
|
+
type: "mcp.status.changed";
|
|
657
|
+
properties: {
|
|
658
|
+
status: {
|
|
659
|
+
[key: string]: McpStatus;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* Deprecated: no consumer reads this event, and there is no HTTP route or SDK method behind it — schedules are managed only through the `schedule` tool. A fired schedule surfaces as an ordinary session (`session.created`, then `session.idle` when it finishes). Scheduled for removal in the next major; still emitted until then.
|
|
665
|
+
*
|
|
666
|
+
* @deprecated
|
|
667
|
+
*/
|
|
668
|
+
export type EventScheduleCreated = {
|
|
669
|
+
type: "schedule.created";
|
|
670
|
+
properties: {
|
|
671
|
+
info: {
|
|
672
|
+
id: string;
|
|
673
|
+
title: string;
|
|
674
|
+
prompt: string;
|
|
675
|
+
/**
|
|
676
|
+
* project directory this task runs in
|
|
677
|
+
*/
|
|
678
|
+
directory: string;
|
|
679
|
+
agent?: string;
|
|
680
|
+
spec: {
|
|
681
|
+
type: "once";
|
|
682
|
+
/**
|
|
683
|
+
* epoch ms to run once
|
|
684
|
+
*/
|
|
685
|
+
at: number;
|
|
686
|
+
} | {
|
|
687
|
+
type: "every";
|
|
688
|
+
/**
|
|
689
|
+
* interval in ms
|
|
690
|
+
*/
|
|
691
|
+
ms: number;
|
|
692
|
+
} | {
|
|
693
|
+
type: "cron";
|
|
694
|
+
/**
|
|
695
|
+
* 5-field cron expression
|
|
696
|
+
*/
|
|
697
|
+
expr: string;
|
|
698
|
+
};
|
|
699
|
+
enabled: boolean;
|
|
700
|
+
createdAt: number;
|
|
701
|
+
lastRun?: number;
|
|
702
|
+
nextRun: number | null;
|
|
703
|
+
runCount: number;
|
|
704
|
+
lastError?: string;
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
/**
|
|
709
|
+
* Deprecated: no consumer reads this event, and there is no HTTP route or SDK method behind it — schedules are managed only through the `schedule` tool. A fired schedule surfaces as an ordinary session (`session.created`, then `session.idle` when it finishes). Scheduled for removal in the next major; still emitted until then.
|
|
710
|
+
*
|
|
711
|
+
* @deprecated
|
|
712
|
+
*/
|
|
713
|
+
export type EventScheduleUpdated = {
|
|
714
|
+
type: "schedule.updated";
|
|
715
|
+
properties: {
|
|
716
|
+
info: {
|
|
717
|
+
id: string;
|
|
718
|
+
title: string;
|
|
719
|
+
prompt: string;
|
|
720
|
+
/**
|
|
721
|
+
* project directory this task runs in
|
|
722
|
+
*/
|
|
723
|
+
directory: string;
|
|
724
|
+
agent?: string;
|
|
725
|
+
spec: {
|
|
726
|
+
type: "once";
|
|
727
|
+
/**
|
|
728
|
+
* epoch ms to run once
|
|
729
|
+
*/
|
|
730
|
+
at: number;
|
|
731
|
+
} | {
|
|
732
|
+
type: "every";
|
|
733
|
+
/**
|
|
734
|
+
* interval in ms
|
|
735
|
+
*/
|
|
736
|
+
ms: number;
|
|
737
|
+
} | {
|
|
738
|
+
type: "cron";
|
|
739
|
+
/**
|
|
740
|
+
* 5-field cron expression
|
|
741
|
+
*/
|
|
742
|
+
expr: string;
|
|
743
|
+
};
|
|
744
|
+
enabled: boolean;
|
|
745
|
+
createdAt: number;
|
|
746
|
+
lastRun?: number;
|
|
747
|
+
nextRun: number | null;
|
|
748
|
+
runCount: number;
|
|
749
|
+
lastError?: string;
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
* Deprecated: no consumer reads this event, and there is no HTTP route or SDK method behind it — schedules are managed only through the `schedule` tool. A fired schedule surfaces as an ordinary session (`session.created`, then `session.idle` when it finishes). Scheduled for removal in the next major; still emitted until then.
|
|
755
|
+
*
|
|
756
|
+
* @deprecated
|
|
757
|
+
*/
|
|
758
|
+
export type EventScheduleRemoved = {
|
|
759
|
+
type: "schedule.removed";
|
|
760
|
+
properties: {
|
|
761
|
+
id: string;
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
/**
|
|
765
|
+
* Deprecated: no consumer reads this event, and there is no HTTP route or SDK method behind it — schedules are managed only through the `schedule` tool. A fired schedule surfaces as an ordinary session (`session.created`, then `session.idle` when it finishes). Scheduled for removal in the next major; still emitted until then.
|
|
766
|
+
*
|
|
767
|
+
* @deprecated
|
|
768
|
+
*/
|
|
769
|
+
export type EventScheduleFired = {
|
|
770
|
+
type: "schedule.fired";
|
|
771
|
+
properties: {
|
|
772
|
+
id: string;
|
|
773
|
+
sessionID: string;
|
|
774
|
+
};
|
|
775
|
+
};
|
|
775
776
|
export type Todo = {
|
|
776
777
|
/**
|
|
777
778
|
* Brief description of the task
|
|
@@ -1399,7 +1400,7 @@ export type EventSwarmMailboxMessage = {
|
|
|
1399
1400
|
time: number;
|
|
1400
1401
|
};
|
|
1401
1402
|
};
|
|
1402
|
-
export type Event = EventFlagRefreshed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventConfigManagedPolicyChanged | EventFileWatcherUpdated | EventConfigChanged | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle |
|
|
1403
|
+
export type Event = EventFlagRefreshed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventConfigManagedPolicyChanged | EventFileWatcherUpdated | EventConfigChanged | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventMemoryExtractionCompleted | EventMemoryConsolidationCompleted | EventMemoryRecallCompleted | EventPermissionAsked | EventPermissionReplied | EventMcpToolsChanged | EventMcpStatusChanged | EventScheduleCreated | EventScheduleUpdated | EventScheduleRemoved | EventScheduleFired | EventTodoUpdated | EventSessionCompacted | EventSessionCompactionFailed | EventCommandExecuted | EventAgentThreadCreated | EventAgentThreadCompleted | EventAgentThreadInterrupted | EventAgentThreadError | EventAgentLimitReached | EventTaskCreated | EventTaskUpdated | EventTaskRemoved | EventTaskActivated | EventTaskBackgrounded | EventTaskDeactivated | EventAgentWorkitemUpdated | EventAgentCoordinatorEnabled | EventAgentCoordinatorDisabled | EventAgentCoordinatorDispatched | EventAgentCoordinatorDispatchUpdated | EventSessionNotificationQueued | EventSessionNotificationDrained | EventSessionToolSummary | EventSessionBudgetCompleted | EventSessionPromptSuggestion | EventFileEdited | EventAgentTeamCreated | EventAgentTeamDeleted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionVerificationVerdict | EventVcsBranchUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventServerConnected | EventServerInstanceDisposed | EventGlobalDisposed | EventSwarmMessageReceived | EventSwarmMailboxMessage;
|
|
1403
1404
|
export type GlobalEvent = {
|
|
1404
1405
|
directory: string;
|
|
1405
1406
|
payload: Event;
|
|
@@ -1486,9 +1487,13 @@ export type KeybindsConfig = {
|
|
|
1486
1487
|
*/
|
|
1487
1488
|
leader?: string;
|
|
1488
1489
|
/**
|
|
1489
|
-
* Quit 100xprompt.
|
|
1490
|
+
* Quit 100xprompt. Press it twice: the first press on an empty prompt shows "press again to exit", and a second press within 1.5 seconds quits. While a turn is running, ctrl+c interrupts it instead. With text typed, ctrl+c hits `input_clear` first and just clears it. A leader chord (`<leader>q`) quits at once. Inside a dialog or a permission prompt this key cancels instead of quitting.
|
|
1490
1491
|
*/
|
|
1491
1492
|
app_exit?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* Redraw the whole screen, for when the display has been garbled by something else writing to the terminal.
|
|
1495
|
+
*/
|
|
1496
|
+
app_redraw?: string;
|
|
1492
1497
|
/**
|
|
1493
1498
|
* Open the current prompt in $EDITOR. Whatever you save comes back into the prompt, and @file/@agent mentions are re-anchored to wherever their text ended up.
|
|
1494
1499
|
*/
|
|
@@ -1778,7 +1783,7 @@ export type KeybindsConfig = {
|
|
|
1778
1783
|
*/
|
|
1779
1784
|
input_delete?: string;
|
|
1780
1785
|
/**
|
|
1781
|
-
* Undo the last edit to the prompt text. This is the prompt's own edit history — to undo a sent message use `messages_undo`.
|
|
1786
|
+
* Undo the last edit to the prompt text. This is the prompt's own edit history — to undo a sent message use `messages_undo`. On Windows the default also includes ctrl+z.
|
|
1782
1787
|
*/
|
|
1783
1788
|
input_undo?: string;
|
|
1784
1789
|
/**
|
|
@@ -1830,7 +1835,7 @@ export type KeybindsConfig = {
|
|
|
1830
1835
|
*/
|
|
1831
1836
|
session_parent?: string;
|
|
1832
1837
|
/**
|
|
1833
|
-
* Suspend to the shell (SIGTSTP). Bring it back with `fg` and the UI redraws.
|
|
1838
|
+
* Suspend to the shell (SIGTSTP). Bring it back with `fg` and the UI redraws. Not available on Windows, which has no SIGTSTP: there the default is unbound and ctrl+z is undo (`input_undo`).
|
|
1834
1839
|
*/
|
|
1835
1840
|
terminal_suspend?: string;
|
|
1836
1841
|
/**
|
|
@@ -1845,6 +1850,26 @@ export type KeybindsConfig = {
|
|
|
1845
1850
|
* Show or hide the companion sprite in the session view. The choice is remembered between runs.
|
|
1846
1851
|
*/
|
|
1847
1852
|
sprites_toggle?: string;
|
|
1853
|
+
/**
|
|
1854
|
+
* Search the whole session — replies, prompts, thinking and tool output — and jump to what matches.
|
|
1855
|
+
*/
|
|
1856
|
+
transcript_search?: string;
|
|
1857
|
+
/**
|
|
1858
|
+
* Search earlier prompts (in this project) by any words in them, and put the one picked back in the prompt.
|
|
1859
|
+
*/
|
|
1860
|
+
history_search?: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* Show the full transcript: every tool panel open and every output unabridged. Press again to go back.
|
|
1863
|
+
*/
|
|
1864
|
+
transcript_full?: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* Open the file finder and add the picked file to the prompt as an @-mention.
|
|
1867
|
+
*/
|
|
1868
|
+
file_quick_open?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* Stop everything running in the background: shells, subagents and sessions sent to the background.
|
|
1871
|
+
*/
|
|
1872
|
+
agents_stop_all?: string;
|
|
1848
1873
|
};
|
|
1849
1874
|
/**
|
|
1850
1875
|
* Lowest severity written to the log file. DEBUG is the most detailed and ERROR the least.
|
|
@@ -2363,6 +2388,10 @@ export type Config = {
|
|
|
2363
2388
|
* What to do when a newer release exists: true installs it in the background, 'notify' only mentions it and leaves the upgrade to you, false stops checking altogether.
|
|
2364
2389
|
*/
|
|
2365
2390
|
autoupdate?: boolean | "notify";
|
|
2391
|
+
/**
|
|
2392
|
+
* Whether to show usage on your own API keys (OpenRouter, Anthropic, any provider you configure) on your 100xprompt dashboard alongside gateway usage. When you are signed in, each finished step on your own key sends only numbers and names: token counts, cost, provider, model and the upstream that served it, never prompts, replies, tool data, file paths, keys or config. Usage through the 100xprompt gateway is never reported this way, and own-key usage never counts toward your plan. On by default; set false, or export HUNDREDXPROMPT_DISABLE_USAGE_REPORT=1, to stop it.
|
|
2393
|
+
*/
|
|
2394
|
+
usageReport?: boolean;
|
|
2366
2395
|
/**
|
|
2367
2396
|
* Provider ids to leave out even though credentials for them were found. Use this to stop a provider you have keys for from being offered.
|
|
2368
2397
|
*/
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@100xprompt/sdk",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"private": false,
|
|
4
|
+
"version": "0.1.120",
|
|
6
5
|
"type": "module",
|
|
7
6
|
"license": "UNLICENSED",
|
|
8
7
|
"description": "TypeScript SDK for 100XPrompt — a fully-typed client plus server/TUI launchers for the open source AI coding agent.",
|
|
@@ -20,15 +19,16 @@
|
|
|
20
19
|
"homepage": "https://100xprompt.com",
|
|
21
20
|
"repository": {
|
|
22
21
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/nipurn123/100xprompt
|
|
22
|
+
"url": "git+https://github.com/nipurn123/100xprompt.git",
|
|
23
|
+
"directory": "packages/sdk/js"
|
|
24
24
|
},
|
|
25
25
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/nipurn123/100xprompt
|
|
26
|
+
"url": "https://github.com/nipurn123/100xprompt/issues"
|
|
27
27
|
},
|
|
28
28
|
"author": "100XPrompt",
|
|
29
29
|
"scripts": {
|
|
30
|
-
"typecheck": "
|
|
31
|
-
"build": "./script/build.ts"
|
|
30
|
+
"typecheck": "tsgo --noEmit",
|
|
31
|
+
"build": "bun ./script/build.ts"
|
|
32
32
|
},
|
|
33
33
|
"main": "./dist/index.js",
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"files": [
|
|
53
53
|
"dist",
|
|
54
54
|
"README.md",
|
|
55
|
-
"LICENSE"
|
|
56
|
-
"openapi.json"
|
|
55
|
+
"LICENSE"
|
|
57
56
|
],
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@hey-api/openapi-ts": "0.88.1",
|
|
60
|
-
"@tsconfig/node22": "
|
|
61
|
-
"@types/node": "
|
|
62
|
-
"typescript": "
|
|
59
|
+
"@tsconfig/node22": "22.0.2",
|
|
60
|
+
"@types/node": "22.13.9",
|
|
61
|
+
"typescript": "5.8.2",
|
|
62
|
+
"@typescript/native-preview": "7.0.0-dev.20251207.1"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {},
|
|
65
65
|
"publishConfig": {
|
|
66
|
-
"
|
|
66
|
+
"directory": "dist"
|
|
67
67
|
}
|
|
68
68
|
}
|