@100xprompt/sdk 0.1.127 → 0.1.128

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.
@@ -79,86 +79,116 @@ export type EventConfigChanged = {
79
79
  source: string;
80
80
  };
81
81
  };
82
- export type QuestionOption = {
83
- /**
84
- * Display text (1-5 words, concise)
85
- */
86
- label: string;
87
- /**
88
- * Explanation of choice
89
- */
90
- description: string;
91
- };
92
- export type QuestionInfo = {
93
- /**
94
- * Complete question
95
- */
96
- question: string;
97
- /**
98
- * Very short label shown as a tab/chip (about 12 chars; longer is truncated). Examples: "Auth method", "Library", "Approach".
99
- */
100
- header: string;
101
- /**
102
- * Available choices (2-4, distinct; do NOT include an 'Other' option — it is added automatically)
103
- */
104
- options: Array<QuestionOption>;
105
- /**
106
- * Allow selecting multiple choices (phrase the question accordingly)
107
- */
108
- multiple?: boolean;
109
- };
110
- export type QuestionRequest = {
111
- id: string;
112
- sessionID: string;
113
- /**
114
- * Questions to ask
115
- */
116
- questions: Array<QuestionInfo>;
117
- tool?: {
118
- messageID: string;
119
- callID: string;
120
- };
121
- };
122
- export type EventQuestionAsked = {
123
- type: "question.asked";
124
- properties: QuestionRequest;
125
- };
126
- export type QuestionAnswer = Array<string>;
127
- export type EventQuestionReplied = {
128
- type: "question.replied";
82
+ /**
83
+ * 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.
84
+ *
85
+ * @deprecated
86
+ */
87
+ export type EventScheduleCreated = {
88
+ type: "schedule.created";
129
89
  properties: {
130
- sessionID: string;
131
- requestID: string;
132
- answers: Array<QuestionAnswer>;
90
+ info: {
91
+ id: string;
92
+ title: string;
93
+ prompt: string;
94
+ /**
95
+ * project directory this task runs in
96
+ */
97
+ directory: string;
98
+ agent?: string;
99
+ spec: {
100
+ type: "once";
101
+ /**
102
+ * epoch ms to run once
103
+ */
104
+ at: number;
105
+ } | {
106
+ type: "every";
107
+ /**
108
+ * interval in ms
109
+ */
110
+ ms: number;
111
+ } | {
112
+ type: "cron";
113
+ /**
114
+ * 5-field cron expression
115
+ */
116
+ expr: string;
117
+ };
118
+ enabled: boolean;
119
+ createdAt: number;
120
+ lastRun?: number;
121
+ nextRun: number | null;
122
+ runCount: number;
123
+ lastError?: string;
124
+ };
133
125
  };
134
126
  };
135
- export type EventQuestionRejected = {
136
- type: "question.rejected";
127
+ /**
128
+ * 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.
129
+ *
130
+ * @deprecated
131
+ */
132
+ export type EventScheduleUpdated = {
133
+ type: "schedule.updated";
137
134
  properties: {
138
- sessionID: string;
139
- requestID: string;
135
+ info: {
136
+ id: string;
137
+ title: string;
138
+ prompt: string;
139
+ /**
140
+ * project directory this task runs in
141
+ */
142
+ directory: string;
143
+ agent?: string;
144
+ spec: {
145
+ type: "once";
146
+ /**
147
+ * epoch ms to run once
148
+ */
149
+ at: number;
150
+ } | {
151
+ type: "every";
152
+ /**
153
+ * interval in ms
154
+ */
155
+ ms: number;
156
+ } | {
157
+ type: "cron";
158
+ /**
159
+ * 5-field cron expression
160
+ */
161
+ expr: string;
162
+ };
163
+ enabled: boolean;
164
+ createdAt: number;
165
+ lastRun?: number;
166
+ nextRun: number | null;
167
+ runCount: number;
168
+ lastError?: string;
169
+ };
140
170
  };
141
171
  };
142
- export type SessionStatus = {
143
- type: "idle";
144
- } | {
145
- type: "retry";
146
- attempt: number;
147
- message: string;
148
- next: number;
149
- } | {
150
- type: "busy";
151
- };
152
- export type EventSessionStatus = {
153
- type: "session.status";
172
+ /**
173
+ * 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.
174
+ *
175
+ * @deprecated
176
+ */
177
+ export type EventScheduleRemoved = {
178
+ type: "schedule.removed";
154
179
  properties: {
155
- sessionID: string;
156
- status: SessionStatus;
180
+ id: string;
157
181
  };
158
182
  };
159
- export type EventSessionIdle = {
160
- type: "session.idle";
183
+ /**
184
+ * 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.
185
+ *
186
+ * @deprecated
187
+ */
188
+ export type EventScheduleFired = {
189
+ type: "schedule.fired";
161
190
  properties: {
191
+ id: string;
162
192
  sessionID: string;
163
193
  };
164
194
  };
@@ -545,6 +575,32 @@ export type EventMessagePartRemoved = {
545
575
  partID: string;
546
576
  };
547
577
  };
578
+ export type PermissionRequest = {
579
+ id: string;
580
+ sessionID: string;
581
+ permission: string;
582
+ patterns: Array<string>;
583
+ metadata: {
584
+ [key: string]: unknown;
585
+ };
586
+ always: Array<string>;
587
+ tool?: {
588
+ messageID: string;
589
+ callID: string;
590
+ };
591
+ };
592
+ export type EventPermissionAsked = {
593
+ type: "permission.asked";
594
+ properties: PermissionRequest;
595
+ };
596
+ export type EventPermissionReplied = {
597
+ type: "permission.replied";
598
+ properties: {
599
+ sessionID: string;
600
+ requestID: string;
601
+ reply: "once" | "always" | "reject";
602
+ };
603
+ };
548
604
  /**
549
605
  * 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
606
  *
@@ -590,30 +646,87 @@ export type EventMemoryRecallCompleted = {
590
646
  ms: number;
591
647
  };
592
648
  };
593
- export type PermissionRequest = {
649
+ export type QuestionOption = {
650
+ /**
651
+ * Display text (1-5 words, concise)
652
+ */
653
+ label: string;
654
+ /**
655
+ * Explanation of choice
656
+ */
657
+ description: string;
658
+ };
659
+ export type QuestionInfo = {
660
+ /**
661
+ * Complete question
662
+ */
663
+ question: string;
664
+ /**
665
+ * Very short label shown as a tab/chip (about 12 chars; longer is truncated). Examples: "Auth method", "Library", "Approach".
666
+ */
667
+ header: string;
668
+ /**
669
+ * Available choices (2-4, distinct; do NOT include an 'Other' option — it is added automatically)
670
+ */
671
+ options: Array<QuestionOption>;
672
+ /**
673
+ * Allow selecting multiple choices (phrase the question accordingly)
674
+ */
675
+ multiple?: boolean;
676
+ };
677
+ export type QuestionRequest = {
594
678
  id: string;
595
679
  sessionID: string;
596
- permission: string;
597
- patterns: Array<string>;
598
- metadata: {
599
- [key: string]: unknown;
600
- };
601
- always: Array<string>;
680
+ /**
681
+ * Questions to ask
682
+ */
683
+ questions: Array<QuestionInfo>;
602
684
  tool?: {
603
685
  messageID: string;
604
686
  callID: string;
605
687
  };
606
688
  };
607
- export type EventPermissionAsked = {
608
- type: "permission.asked";
609
- properties: PermissionRequest;
689
+ export type EventQuestionAsked = {
690
+ type: "question.asked";
691
+ properties: QuestionRequest;
610
692
  };
611
- export type EventPermissionReplied = {
612
- type: "permission.replied";
693
+ export type QuestionAnswer = Array<string>;
694
+ export type EventQuestionReplied = {
695
+ type: "question.replied";
613
696
  properties: {
614
697
  sessionID: string;
615
698
  requestID: string;
616
- reply: "once" | "always" | "reject";
699
+ answers: Array<QuestionAnswer>;
700
+ };
701
+ };
702
+ export type EventQuestionRejected = {
703
+ type: "question.rejected";
704
+ properties: {
705
+ sessionID: string;
706
+ requestID: string;
707
+ };
708
+ };
709
+ export type SessionStatus = {
710
+ type: "idle";
711
+ } | {
712
+ type: "retry";
713
+ attempt: number;
714
+ message: string;
715
+ next: number;
716
+ } | {
717
+ type: "busy";
718
+ };
719
+ export type EventSessionStatus = {
720
+ type: "session.status";
721
+ properties: {
722
+ sessionID: string;
723
+ status: SessionStatus;
724
+ };
725
+ };
726
+ export type EventSessionIdle = {
727
+ type: "session.idle";
728
+ properties: {
729
+ sessionID: string;
617
730
  };
618
731
  };
619
732
  /**
@@ -660,119 +773,6 @@ export type EventMcpStatusChanged = {
660
773
  };
661
774
  };
662
775
  };
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
- };
776
776
  export type Todo = {
777
777
  /**
778
778
  * Brief description of the task
@@ -1400,7 +1400,7 @@ export type EventSwarmMailboxMessage = {
1400
1400
  time: number;
1401
1401
  };
1402
1402
  };
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
+ export type Event = EventFlagRefreshed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventConfigManagedPolicyChanged | EventFileWatcherUpdated | EventConfigChanged | EventScheduleCreated | EventScheduleUpdated | EventScheduleRemoved | EventScheduleFired | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventMemoryExtractionCompleted | EventMemoryConsolidationCompleted | EventMemoryRecallCompleted | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle | EventMcpToolsChanged | EventMcpStatusChanged | 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;
1404
1404
  export type GlobalEvent = {
1405
1405
  directory: string;
1406
1406
  payload: Event;
@@ -1993,6 +1993,10 @@ export type ProviderConfig = {
1993
1993
  release_date?: string;
1994
1994
  attachment?: boolean;
1995
1995
  reasoning?: boolean;
1996
+ reasoning_options?: Array<{
1997
+ type: string;
1998
+ [key: string]: unknown | string;
1999
+ }>;
1996
2000
  temperature?: boolean;
1997
2001
  tool_call?: boolean;
1998
2002
  interleaved?: true | {
@@ -2184,6 +2188,10 @@ export type Config = {
2184
2188
  * Which sandbox backend confines untrusted bash commands. Default: seatbelt on macOS, landlock on Linux (unset = platform default, unchanged behavior). "microvm" runs each command in a VM-isolated environment with its own kernel — detected via HUNDREDXPROMPT_MICROVM_RUNNER or a `msb` (microsandbox), `docker`, `podman`, or apple `container` CLI on PATH (image: HUNDREDXPROMPT_MICROVM_IMAGE, default alpine). If no runner is present it degrades gracefully to the platform sandbox. "seatbelt"/"landlock" pin that backend (honored only on the matching OS); "none" disables the sandbox like sandbox: false.
2185
2189
  */
2186
2190
  sandboxBackend?: "microvm" | "seatbelt" | "landlock" | "none";
2191
+ /**
2192
+ * Extra directories sandboxed commands may see and write, on top of the workspace, the temp dir and build caches — e.g. the whole Frappe bench when you work in one of its apps ("~/frappe-bench"), so `bench`, env/ and sites/ are there. On Linux the sandbox shows nothing else of your home directory. Absolute or "~/" paths; relative entries are ignored. permission.additionalDirectories from this same global config, and --add-dir, count too. Read from your global user config only (~/.config/100xprompt) — never from a project config, which a sandboxed command could write.
2193
+ */
2194
+ sandboxWritablePaths?: Array<string>;
2187
2195
  /**
2188
2196
  * Behaviour of the terminal UI itself — scrolling feel and how diffs are laid out.
2189
2197
  */
@@ -2963,6 +2971,7 @@ export type Model = {
2963
2971
  interleaved: boolean | {
2964
2972
  field: "reasoning_content" | "reasoning_details";
2965
2973
  };
2974
+ adaptiveThinking?: boolean;
2966
2975
  };
2967
2976
  cost: {
2968
2977
  input: number;
@@ -4994,6 +5003,10 @@ export type ProviderListResponses = {
4994
5003
  release_date: string;
4995
5004
  attachment: boolean;
4996
5005
  reasoning: boolean;
5006
+ reasoning_options?: Array<{
5007
+ type: string;
5008
+ [key: string]: unknown | string;
5009
+ }>;
4997
5010
  temperature: boolean;
4998
5011
  tool_call: boolean;
4999
5012
  interleaved?: true | {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@100xprompt/sdk",
4
- "version": "0.1.127",
4
+ "version": "0.1.128",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "description": "TypeScript SDK for 100XPrompt — a fully-typed client plus server/TUI launchers for the open source AI coding agent.",