@hk_net/pi-thinking-command 0.1.9 → 0.1.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.11 - 2026-08-29
4
+
5
+ ### Changed
6
+
7
+ - Require Pi 0.84.4 or newer; this is the development, type-compatibility, and test baseline.
8
+
9
+ ## 0.1.10 - 2026-08-27
10
+
11
+ ### Changed
12
+
13
+ - Verify development, type compatibility, and tests against Pi SDK 0.84.3 while retaining runtime compatibility with Pi 0.84.1 and newer.
14
+ - Rename the extension command from `/thinking` to `/think` because Pi 0.84.3 took over the `/thinking` name for its native selector; the new name removes the built-in command conflict while keeping the shortcut available alongside Pi's command.
15
+
3
16
  ## 0.1.9 - 2026-08-23
4
17
 
5
18
  ### Changed
package/LICENSE CHANGED
@@ -1,290 +1,290 @@
1
- Copyright © 2026 kapper.net - KAPPER NETWORK-COMMUNICATIONS GmbH
2
- Licensed under the EUPL
3
-
4
- EUROPEAN UNION PUBLIC LICENCE v. 1.2
5
- EUPL © the European Union 2007, 2016
6
-
7
- This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined
8
- below) which is provided under the terms of this Licence. Any use of the Work,
9
- other than as authorised under this Licence is prohibited (to the extent such
10
- use is covered by a right of the copyright holder of the Work).
11
-
12
- The Work is provided under the terms of this Licence when the Licensor (as
13
- defined below) has placed the following notice immediately following the
14
- copyright notice for the Work:
15
-
16
- Licensed under the EUPL
17
-
18
- or has expressed by any other means his willingness to license under the EUPL.
19
-
20
- 1. Definitions
21
-
22
- In this Licence, the following terms have the following meaning:
23
-
24
- - ‘The Licence’: this Licence.
25
-
26
- - ‘The Original Work’: the work or software distributed or communicated by the
27
- Licensor under this Licence, available as Source Code and also as Executable
28
- Code as the case may be.
29
-
30
- - ‘Derivative Works’: the works or software that could be created by the
31
- Licensee, based upon the Original Work or modifications thereof. This Licence
32
- does not define the extent of modification or dependence on the Original Work
33
- required in order to classify a work as a Derivative Work; this extent is
34
- determined by copyright law applicable in the country mentioned in Article 15.
35
-
36
- - ‘The Work’: the Original Work or its Derivative Works.
37
-
38
- - ‘The Source Code’: the human-readable form of the Work which is the most
39
- convenient for people to study and modify.
40
-
41
- - ‘The Executable Code’: any code which has generally been compiled and which is
42
- meant to be interpreted by a computer as a program.
43
-
44
- - ‘The Licensor’: the natural or legal person that distributes or communicates
45
- the Work under the Licence.
46
-
47
- - ‘Contributor(s)’: any natural or legal person who modifies the Work under the
48
- Licence, or otherwise contributes to the creation of a Derivative Work.
49
-
50
- - ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
51
- the Work under the terms of the Licence.
52
-
53
- - ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
54
- renting, distributing, communicating, transmitting, or otherwise making
55
- available, online or offline, copies of the Work or providing access to its
56
- essential functionalities at the disposal of any other natural or legal
57
- person.
58
-
59
- 2. Scope of the rights granted by the Licence
60
-
61
- The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
62
- sublicensable licence to do the following, for the duration of copyright vested
63
- in the Original Work:
64
-
65
- - use the Work in any circumstance and for all usage,
66
- - reproduce the Work,
67
- - modify the Work, and make Derivative Works based upon the Work,
68
- - communicate to the public, including the right to make available or display
69
- the Work or copies thereof to the public and perform publicly, as the case may
70
- be, the Work,
71
- - distribute the Work or copies thereof,
72
- - lend and rent the Work or copies thereof,
73
- - sublicense rights in the Work or copies thereof.
74
-
75
- Those rights can be exercised on any media, supports and formats, whether now
76
- known or later invented, as far as the applicable law permits so.
77
-
78
- In the countries where moral rights apply, the Licensor waives his right to
79
- exercise his moral right to the extent allowed by law in order to make effective
80
- the licence of the economic rights here above listed.
81
-
82
- The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to
83
- any patents held by the Licensor, to the extent necessary to make use of the
84
- rights granted on the Work under this Licence.
85
-
86
- 3. Communication of the Source Code
87
-
88
- The Licensor may provide the Work either in its Source Code form, or as
89
- Executable Code. If the Work is provided as Executable Code, the Licensor
90
- provides in addition a machine-readable copy of the Source Code of the Work
91
- along with each copy of the Work that the Licensor distributes or indicates, in
92
- a notice following the copyright notice attached to the Work, a repository where
93
- the Source Code is easily and freely accessible for as long as the Licensor
94
- continues to distribute or communicate the Work.
95
-
96
- 4. Limitations on copyright
97
-
98
- Nothing in this Licence is intended to deprive the Licensee of the benefits from
99
- any exception or limitation to the exclusive rights of the rights owners in the
100
- Work, of the exhaustion of those rights or of other applicable limitations
101
- thereto.
102
-
103
- 5. Obligations of the Licensee
104
-
105
- The grant of the rights mentioned above is subject to some restrictions and
106
- obligations imposed on the Licensee. Those obligations are the following:
107
-
108
- Attribution right: The Licensee shall keep intact all copyright, patent or
109
- trademarks notices and all notices that refer to the Licence and to the
110
- disclaimer of warranties. The Licensee must include a copy of such notices and a
111
- copy of the Licence with every copy of the Work he/she distributes or
112
- communicates. The Licensee must cause any Derivative Work to carry prominent
113
- notices stating that the Work has been modified and the date of modification.
114
-
115
- Copyleft clause: If the Licensee distributes or communicates copies of the
116
- Original Works or Derivative Works, this Distribution or Communication will be
117
- done under the terms of this Licence or of a later version of this Licence
118
- unless the Original Work is expressly distributed only under this version of the
119
- Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
120
- (becoming Licensor) cannot offer or impose any additional terms or conditions on
121
- the Work or Derivative Work that alter or restrict the terms of the Licence.
122
-
123
- Compatibility clause: If the Licensee Distributes or Communicates Derivative
124
- Works or copies thereof based upon both the Work and another work licensed under
125
- a Compatible Licence, this Distribution or Communication can be done under the
126
- terms of this Compatible Licence. For the sake of this clause, ‘Compatible
127
- Licence’ refers to the licences listed in the appendix attached to this Licence.
128
- Should the Licensee's obligations under the Compatible Licence conflict with
129
- his/her obligations under this Licence, the obligations of the Compatible
130
- Licence shall prevail.
131
-
132
- Provision of Source Code: When distributing or communicating copies of the Work,
133
- the Licensee will provide a machine-readable copy of the Source Code or indicate
134
- a repository where this Source will be easily and freely available for as long
135
- as the Licensee continues to distribute or communicate the Work.
136
-
137
- Legal Protection: This Licence does not grant permission to use the trade names,
138
- trademarks, service marks, or names of the Licensor, except as required for
139
- reasonable and customary use in describing the origin of the Work and
140
- reproducing the content of the copyright notice.
141
-
142
- 6. Chain of Authorship
143
-
144
- The original Licensor warrants that the copyright in the Original Work granted
145
- hereunder is owned by him/her or licensed to him/her and that he/she has the
146
- power and authority to grant the Licence.
147
-
148
- Each Contributor warrants that the copyright in the modifications he/she brings
149
- to the Work are owned by him/her or licensed to him/her and that he/she has the
150
- power and authority to grant the Licence.
151
-
152
- Each time You accept the Licence, the original Licensor and subsequent
153
- Contributors grant You a licence to their contributions to the Work, under the
154
- terms of this Licence.
155
-
156
- 7. Disclaimer of Warranty
157
-
158
- The Work is a work in progress, which is continuously improved by numerous
159
- Contributors. It is not a finished work and may therefore contain defects or
160
- ‘bugs’ inherent to this type of development.
161
-
162
- For the above reason, the Work is provided under the Licence on an ‘as is’ basis
163
- and without warranties of any kind concerning the Work, including without
164
- limitation merchantability, fitness for a particular purpose, absence of defects
165
- or errors, accuracy, non-infringement of intellectual property rights other than
166
- copyright as stated in Article 6 of this Licence.
167
-
168
- This disclaimer of warranty is an essential part of the Licence and a condition
169
- for the grant of any rights to the Work.
170
-
171
- 8. Disclaimer of Liability
172
-
173
- Except in the cases of wilful misconduct or damages directly caused to natural
174
- persons, the Licensor will in no event be liable for any direct or indirect,
175
- material or moral, damages of any kind, arising out of the Licence or of the use
176
- of the Work, including without limitation, damages for loss of goodwill, work
177
- stoppage, computer failure or malfunction, loss of data or any commercial
178
- damage, even if the Licensor has been advised of the possibility of such damage.
179
- However, the Licensor will be liable under statutory product liability laws as
180
- far such laws apply to the Work.
181
-
182
- 9. Additional agreements
183
-
184
- While distributing the Work, You may choose to conclude an additional agreement,
185
- defining obligations or services consistent with this Licence. However, if
186
- accepting obligations, You may act only on your own behalf and on your sole
187
- responsibility, not on behalf of the original Licensor or any other Contributor,
188
- and only if You agree to indemnify, defend, and hold each Contributor harmless
189
- for any liability incurred by, or claims asserted against such Contributor by
190
- the fact You have accepted any warranty or additional liability.
191
-
192
- 10. Acceptance of the Licence
193
-
194
- The provisions of this Licence can be accepted by clicking on an icon ‘I agree’
195
- placed under the bottom of a window displaying the text of this Licence or by
196
- affirming consent in any other similar way, in accordance with the rules of
197
- applicable law. Clicking on that icon indicates your clear and irrevocable
198
- acceptance of this Licence and all of its terms and conditions.
199
-
200
- Similarly, you irrevocably accept this Licence and all of its terms and
201
- conditions by exercising any rights granted to You by Article 2 of this Licence,
202
- such as the use of the Work, the creation by You of a Derivative Work or the
203
- Distribution or Communication by You of the Work or copies thereof.
204
-
205
- 11. Information to the public
206
-
207
- In case of any Distribution or Communication of the Work by means of electronic
208
- communication by You (for example, by offering to download the Work from a
209
- remote location) the distribution channel or media (for example, a website) must
210
- at least provide to the public the information requested by the applicable law
211
- regarding the Licensor, the Licence and the way it may be accessible, concluded,
212
- stored and reproduced by the Licensee.
213
-
214
- 12. Termination of the Licence
215
-
216
- The Licence and the rights granted hereunder will terminate automatically upon
217
- any breach by the Licensee of the terms of the Licence.
218
-
219
- Such a termination will not terminate the licences of any person who has
220
- received the Work from the Licensee under the Licence, provided such persons
221
- remain in full compliance with the Licence.
222
-
223
- 13. Miscellaneous
224
-
225
- Without prejudice of Article 9 above, the Licence represents the complete
226
- agreement between the Parties as to the Work.
227
-
228
- If any provision of the Licence is invalid or unenforceable under applicable
229
- law, this will not affect the validity or enforceability of the Licence as a
230
- whole. Such provision will be construed or reformed so as necessary to make it
231
- valid and enforceable.
232
-
233
- The European Commission may publish other linguistic versions or new versions of
234
- this Licence or updated versions of the Appendix, so far this is required and
235
- reasonable, without reducing the scope of the rights granted by the Licence. New
236
- versions of the Licence will be published with a unique version number.
237
-
238
- All linguistic versions of this Licence, approved by the European Commission,
239
- have identical value. Parties can take advantage of the linguistic version of
240
- their choice.
241
-
242
- 14. Jurisdiction
243
-
244
- Without prejudice to specific agreement between parties,
245
-
246
- - any litigation resulting from the interpretation of this License, arising
247
- between the European Union institutions, bodies, offices or agencies, as a
248
- Licensor, and any Licensee, will be subject to the jurisdiction of the Court
249
- of Justice of the European Union, as laid down in article 272 of the Treaty on
250
- the Functioning of the European Union,
251
-
252
- - any litigation arising between other parties and resulting from the
253
- interpretation of this License, will be subject to the exclusive jurisdiction
254
- of the competent court where the Licensor resides or conducts its primary
255
- business.
256
-
257
- 15. Applicable Law
258
-
259
- Without prejudice to specific agreement between parties,
260
-
261
- - this Licence shall be governed by the law of the European Union Member State
262
- where the Licensor has his seat, resides or has his registered office,
263
-
264
- - this licence shall be governed by Belgian law if the Licensor has no seat,
265
- residence or registered office inside a European Union Member State.
266
-
267
- Appendix
268
-
269
- ‘Compatible Licences’ according to Article 5 EUPL are:
270
-
271
- - GNU General Public License (GPL) v. 2, v. 3
272
- - GNU Affero General Public License (AGPL) v. 3
273
- - Open Software License (OSL) v. 2.1, v. 3.0
274
- - Eclipse Public License (EPL) v. 1.0
275
- - CeCILL v. 2.0, v. 2.1
276
- - Mozilla Public Licence (MPL) v. 2
277
- - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
278
- - Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
279
- works other than software
280
- - European Union Public Licence (EUPL) v. 1.1, v. 1.2
281
- - Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
282
- Reciprocity (LiLiQ-R+).
283
-
284
- The European Commission may update this Appendix to later versions of the above
285
- licences without producing a new version of the EUPL, as long as they provide
286
- the rights granted in Article 2 of this Licence and protect the covered Source
287
- Code from exclusive appropriation.
288
-
289
- All other changes or additions to this Appendix require the production of a new
290
- EUPL version.
1
+ Copyright © 2026 kapper.net - KAPPER NETWORK-COMMUNICATIONS GmbH
2
+ Licensed under the EUPL
3
+
4
+ EUROPEAN UNION PUBLIC LICENCE v. 1.2
5
+ EUPL © the European Union 2007, 2016
6
+
7
+ This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined
8
+ below) which is provided under the terms of this Licence. Any use of the Work,
9
+ other than as authorised under this Licence is prohibited (to the extent such
10
+ use is covered by a right of the copyright holder of the Work).
11
+
12
+ The Work is provided under the terms of this Licence when the Licensor (as
13
+ defined below) has placed the following notice immediately following the
14
+ copyright notice for the Work:
15
+
16
+ Licensed under the EUPL
17
+
18
+ or has expressed by any other means his willingness to license under the EUPL.
19
+
20
+ 1. Definitions
21
+
22
+ In this Licence, the following terms have the following meaning:
23
+
24
+ - ‘The Licence’: this Licence.
25
+
26
+ - ‘The Original Work’: the work or software distributed or communicated by the
27
+ Licensor under this Licence, available as Source Code and also as Executable
28
+ Code as the case may be.
29
+
30
+ - ‘Derivative Works’: the works or software that could be created by the
31
+ Licensee, based upon the Original Work or modifications thereof. This Licence
32
+ does not define the extent of modification or dependence on the Original Work
33
+ required in order to classify a work as a Derivative Work; this extent is
34
+ determined by copyright law applicable in the country mentioned in Article 15.
35
+
36
+ - ‘The Work’: the Original Work or its Derivative Works.
37
+
38
+ - ‘The Source Code’: the human-readable form of the Work which is the most
39
+ convenient for people to study and modify.
40
+
41
+ - ‘The Executable Code’: any code which has generally been compiled and which is
42
+ meant to be interpreted by a computer as a program.
43
+
44
+ - ‘The Licensor’: the natural or legal person that distributes or communicates
45
+ the Work under the Licence.
46
+
47
+ - ‘Contributor(s)’: any natural or legal person who modifies the Work under the
48
+ Licence, or otherwise contributes to the creation of a Derivative Work.
49
+
50
+ - ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
51
+ the Work under the terms of the Licence.
52
+
53
+ - ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
54
+ renting, distributing, communicating, transmitting, or otherwise making
55
+ available, online or offline, copies of the Work or providing access to its
56
+ essential functionalities at the disposal of any other natural or legal
57
+ person.
58
+
59
+ 2. Scope of the rights granted by the Licence
60
+
61
+ The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
62
+ sublicensable licence to do the following, for the duration of copyright vested
63
+ in the Original Work:
64
+
65
+ - use the Work in any circumstance and for all usage,
66
+ - reproduce the Work,
67
+ - modify the Work, and make Derivative Works based upon the Work,
68
+ - communicate to the public, including the right to make available or display
69
+ the Work or copies thereof to the public and perform publicly, as the case may
70
+ be, the Work,
71
+ - distribute the Work or copies thereof,
72
+ - lend and rent the Work or copies thereof,
73
+ - sublicense rights in the Work or copies thereof.
74
+
75
+ Those rights can be exercised on any media, supports and formats, whether now
76
+ known or later invented, as far as the applicable law permits so.
77
+
78
+ In the countries where moral rights apply, the Licensor waives his right to
79
+ exercise his moral right to the extent allowed by law in order to make effective
80
+ the licence of the economic rights here above listed.
81
+
82
+ The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to
83
+ any patents held by the Licensor, to the extent necessary to make use of the
84
+ rights granted on the Work under this Licence.
85
+
86
+ 3. Communication of the Source Code
87
+
88
+ The Licensor may provide the Work either in its Source Code form, or as
89
+ Executable Code. If the Work is provided as Executable Code, the Licensor
90
+ provides in addition a machine-readable copy of the Source Code of the Work
91
+ along with each copy of the Work that the Licensor distributes or indicates, in
92
+ a notice following the copyright notice attached to the Work, a repository where
93
+ the Source Code is easily and freely accessible for as long as the Licensor
94
+ continues to distribute or communicate the Work.
95
+
96
+ 4. Limitations on copyright
97
+
98
+ Nothing in this Licence is intended to deprive the Licensee of the benefits from
99
+ any exception or limitation to the exclusive rights of the rights owners in the
100
+ Work, of the exhaustion of those rights or of other applicable limitations
101
+ thereto.
102
+
103
+ 5. Obligations of the Licensee
104
+
105
+ The grant of the rights mentioned above is subject to some restrictions and
106
+ obligations imposed on the Licensee. Those obligations are the following:
107
+
108
+ Attribution right: The Licensee shall keep intact all copyright, patent or
109
+ trademarks notices and all notices that refer to the Licence and to the
110
+ disclaimer of warranties. The Licensee must include a copy of such notices and a
111
+ copy of the Licence with every copy of the Work he/she distributes or
112
+ communicates. The Licensee must cause any Derivative Work to carry prominent
113
+ notices stating that the Work has been modified and the date of modification.
114
+
115
+ Copyleft clause: If the Licensee distributes or communicates copies of the
116
+ Original Works or Derivative Works, this Distribution or Communication will be
117
+ done under the terms of this Licence or of a later version of this Licence
118
+ unless the Original Work is expressly distributed only under this version of the
119
+ Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
120
+ (becoming Licensor) cannot offer or impose any additional terms or conditions on
121
+ the Work or Derivative Work that alter or restrict the terms of the Licence.
122
+
123
+ Compatibility clause: If the Licensee Distributes or Communicates Derivative
124
+ Works or copies thereof based upon both the Work and another work licensed under
125
+ a Compatible Licence, this Distribution or Communication can be done under the
126
+ terms of this Compatible Licence. For the sake of this clause, ‘Compatible
127
+ Licence’ refers to the licences listed in the appendix attached to this Licence.
128
+ Should the Licensee's obligations under the Compatible Licence conflict with
129
+ his/her obligations under this Licence, the obligations of the Compatible
130
+ Licence shall prevail.
131
+
132
+ Provision of Source Code: When distributing or communicating copies of the Work,
133
+ the Licensee will provide a machine-readable copy of the Source Code or indicate
134
+ a repository where this Source will be easily and freely available for as long
135
+ as the Licensee continues to distribute or communicate the Work.
136
+
137
+ Legal Protection: This Licence does not grant permission to use the trade names,
138
+ trademarks, service marks, or names of the Licensor, except as required for
139
+ reasonable and customary use in describing the origin of the Work and
140
+ reproducing the content of the copyright notice.
141
+
142
+ 6. Chain of Authorship
143
+
144
+ The original Licensor warrants that the copyright in the Original Work granted
145
+ hereunder is owned by him/her or licensed to him/her and that he/she has the
146
+ power and authority to grant the Licence.
147
+
148
+ Each Contributor warrants that the copyright in the modifications he/she brings
149
+ to the Work are owned by him/her or licensed to him/her and that he/she has the
150
+ power and authority to grant the Licence.
151
+
152
+ Each time You accept the Licence, the original Licensor and subsequent
153
+ Contributors grant You a licence to their contributions to the Work, under the
154
+ terms of this Licence.
155
+
156
+ 7. Disclaimer of Warranty
157
+
158
+ The Work is a work in progress, which is continuously improved by numerous
159
+ Contributors. It is not a finished work and may therefore contain defects or
160
+ ‘bugs’ inherent to this type of development.
161
+
162
+ For the above reason, the Work is provided under the Licence on an ‘as is’ basis
163
+ and without warranties of any kind concerning the Work, including without
164
+ limitation merchantability, fitness for a particular purpose, absence of defects
165
+ or errors, accuracy, non-infringement of intellectual property rights other than
166
+ copyright as stated in Article 6 of this Licence.
167
+
168
+ This disclaimer of warranty is an essential part of the Licence and a condition
169
+ for the grant of any rights to the Work.
170
+
171
+ 8. Disclaimer of Liability
172
+
173
+ Except in the cases of wilful misconduct or damages directly caused to natural
174
+ persons, the Licensor will in no event be liable for any direct or indirect,
175
+ material or moral, damages of any kind, arising out of the Licence or of the use
176
+ of the Work, including without limitation, damages for loss of goodwill, work
177
+ stoppage, computer failure or malfunction, loss of data or any commercial
178
+ damage, even if the Licensor has been advised of the possibility of such damage.
179
+ However, the Licensor will be liable under statutory product liability laws as
180
+ far such laws apply to the Work.
181
+
182
+ 9. Additional agreements
183
+
184
+ While distributing the Work, You may choose to conclude an additional agreement,
185
+ defining obligations or services consistent with this Licence. However, if
186
+ accepting obligations, You may act only on your own behalf and on your sole
187
+ responsibility, not on behalf of the original Licensor or any other Contributor,
188
+ and only if You agree to indemnify, defend, and hold each Contributor harmless
189
+ for any liability incurred by, or claims asserted against such Contributor by
190
+ the fact You have accepted any warranty or additional liability.
191
+
192
+ 10. Acceptance of the Licence
193
+
194
+ The provisions of this Licence can be accepted by clicking on an icon ‘I agree’
195
+ placed under the bottom of a window displaying the text of this Licence or by
196
+ affirming consent in any other similar way, in accordance with the rules of
197
+ applicable law. Clicking on that icon indicates your clear and irrevocable
198
+ acceptance of this Licence and all of its terms and conditions.
199
+
200
+ Similarly, you irrevocably accept this Licence and all of its terms and
201
+ conditions by exercising any rights granted to You by Article 2 of this Licence,
202
+ such as the use of the Work, the creation by You of a Derivative Work or the
203
+ Distribution or Communication by You of the Work or copies thereof.
204
+
205
+ 11. Information to the public
206
+
207
+ In case of any Distribution or Communication of the Work by means of electronic
208
+ communication by You (for example, by offering to download the Work from a
209
+ remote location) the distribution channel or media (for example, a website) must
210
+ at least provide to the public the information requested by the applicable law
211
+ regarding the Licensor, the Licence and the way it may be accessible, concluded,
212
+ stored and reproduced by the Licensee.
213
+
214
+ 12. Termination of the Licence
215
+
216
+ The Licence and the rights granted hereunder will terminate automatically upon
217
+ any breach by the Licensee of the terms of the Licence.
218
+
219
+ Such a termination will not terminate the licences of any person who has
220
+ received the Work from the Licensee under the Licence, provided such persons
221
+ remain in full compliance with the Licence.
222
+
223
+ 13. Miscellaneous
224
+
225
+ Without prejudice of Article 9 above, the Licence represents the complete
226
+ agreement between the Parties as to the Work.
227
+
228
+ If any provision of the Licence is invalid or unenforceable under applicable
229
+ law, this will not affect the validity or enforceability of the Licence as a
230
+ whole. Such provision will be construed or reformed so as necessary to make it
231
+ valid and enforceable.
232
+
233
+ The European Commission may publish other linguistic versions or new versions of
234
+ this Licence or updated versions of the Appendix, so far this is required and
235
+ reasonable, without reducing the scope of the rights granted by the Licence. New
236
+ versions of the Licence will be published with a unique version number.
237
+
238
+ All linguistic versions of this Licence, approved by the European Commission,
239
+ have identical value. Parties can take advantage of the linguistic version of
240
+ their choice.
241
+
242
+ 14. Jurisdiction
243
+
244
+ Without prejudice to specific agreement between parties,
245
+
246
+ - any litigation resulting from the interpretation of this License, arising
247
+ between the European Union institutions, bodies, offices or agencies, as a
248
+ Licensor, and any Licensee, will be subject to the jurisdiction of the Court
249
+ of Justice of the European Union, as laid down in article 272 of the Treaty on
250
+ the Functioning of the European Union,
251
+
252
+ - any litigation arising between other parties and resulting from the
253
+ interpretation of this License, will be subject to the exclusive jurisdiction
254
+ of the competent court where the Licensor resides or conducts its primary
255
+ business.
256
+
257
+ 15. Applicable Law
258
+
259
+ Without prejudice to specific agreement between parties,
260
+
261
+ - this Licence shall be governed by the law of the European Union Member State
262
+ where the Licensor has his seat, resides or has his registered office,
263
+
264
+ - this licence shall be governed by Belgian law if the Licensor has no seat,
265
+ residence or registered office inside a European Union Member State.
266
+
267
+ Appendix
268
+
269
+ ‘Compatible Licences’ according to Article 5 EUPL are:
270
+
271
+ - GNU General Public License (GPL) v. 2, v. 3
272
+ - GNU Affero General Public License (AGPL) v. 3
273
+ - Open Software License (OSL) v. 2.1, v. 3.0
274
+ - Eclipse Public License (EPL) v. 1.0
275
+ - CeCILL v. 2.0, v. 2.1
276
+ - Mozilla Public Licence (MPL) v. 2
277
+ - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
278
+ - Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
279
+ works other than software
280
+ - European Union Public Licence (EUPL) v. 1.1, v. 1.2
281
+ - Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
282
+ Reciprocity (LiLiQ-R+).
283
+
284
+ The European Commission may update this Appendix to later versions of the above
285
+ licences without producing a new version of the EUPL, as long as they provide
286
+ the rights granted in Article 2 of this Licence and protect the covered Source
287
+ Code from exclusive appropriation.
288
+
289
+ All other changes or additions to this Appendix require the production of a new
290
+ EUPL version.
package/README.md CHANGED
@@ -1,87 +1,91 @@
1
- # `/thinking` command extension for pi
2
-
3
- Adds a `/thinking` slash command to Pi 0.84.1 or newer (tested with the current Pi 0.84.2 release) for changing the active thinking/reasoning level from inside a session.
4
-
5
- Normally in pi, changing the thinking/reasoning level means opening the settings menu, navigating to **Thinking**, and selecting the requested level. This extension is a convenience shortcut for that workflow, so you can switch levels directly with commands such as `/thinking low` or `/thinking xhigh`.
6
-
7
- This is especially useful when switching between model classes. Smaller models, including many local models, often benefit from tighter thinking limits than larger hosted models from major providers.
8
-
9
- ## Install
10
-
11
- > **Avoid duplicate installation.** Install this npm package or the GitHub bundle, not both. Loading both copies can duplicate commands, autocomplete providers, and status updates.
12
-
13
- Install just this extension from npm:
14
-
15
- ```bash
16
- pi install npm:@hk_net/pi-thinking-command
17
- ```
18
-
19
- Or install the full collection from GitHub:
20
-
21
- ```bash
22
- pi install git:git@github.com:hknet/pi-extensions@main
23
- pi install https://github.com/hknet/pi-extensions
24
- ```
25
-
26
- Or install this extension manually:
27
-
28
- ```bash
29
- cp packages/pi-thinking-command/thinking-shortcut.ts ~/.pi/agent/extensions/thinking-shortcut.ts
30
- ```
31
-
32
- After installing, restart pi or run:
33
-
34
- ```text
35
- /reload
36
- ```
37
-
38
- ## Usage
39
-
40
- ```text
41
- /thinking [level]
42
- ```
43
-
44
- Autocomplete offers only the thinking levels supported by the active model.
45
-
46
- Examples:
47
-
48
- ```text
49
- /thinking off
50
- /thinking low
51
- /thinking medium
52
- /thinking high
53
- /thinking xhigh
54
- /thinking max
55
- ```
56
-
57
- If no argument is provided, `/thinking` sets the level to `medium` when supported, otherwise to the model's first supported level (normally `off` for a non-reasoning model).
58
-
59
- ## Levels
60
-
61
- - `off` disable extended thinking
62
- - `minimal` — smallest available thinking budget
63
- - `low` — light reasoning
64
- - `medium` — balanced default reasoning
65
- - `high` — more reasoning for harder tasks
66
- - `xhigh` — very high reasoning budget
67
- - `max` — maximum reasoning budget
68
-
69
- > **Note:** `/thinking` rejects levels that the active model does not support instead of silently selecting a different level.
70
-
71
- ## Features
72
-
73
- - Registers the `/thinking` command.
74
- - Derives argument completions from Pi's model-specific capabilities and refreshes them when the active model changes.
75
- - Autocompletes `/th...` to `/thinking` without Pi's trailing-space insertion; press Tab again to open the level picker.
76
- - Shows a `thinking` status item with the current level.
77
- - Updates the status item when the thinking level changes.
78
- - Validates input and displays an error for unknown or model-incompatible levels.
79
-
80
- ## Issues and feedback
81
-
82
- Found a bug or have a feature request? Please report it on
83
- [GitHub Issues](https://github.com/hknet/pi-extensions/issues).
84
-
85
- For security vulnerabilities, please use
86
- [GitHub's private vulnerability reporting](https://github.com/hknet/pi-extensions/security/advisories/new)
87
- instead of opening a public issue.
1
+ # `/think` command extension for pi
2
+
3
+ Adds a `/think` thinking-level shortcut and status display to Pi 0.84.4 or newer.
4
+
5
+ This is especially useful when switching between model classes. Smaller models, including many local models, often benefit from tighter thinking limits than larger hosted models from major providers.
6
+
7
+ ## Pi 0.84.3 command rename
8
+
9
+ This extension originally registered `/thinking`. Pi 0.84.3 took over that command name for its new native thinking selector, and built-in interactive commands take precedence over extensions. Starting with this package release, our command therefore moves to `/think` to avoid the naming conflict. Pi's native `/thinking` remains available alongside it.
10
+
11
+ Existing users should replace commands such as `/thinking high` with `/think high` when they specifically want this extension's shortcut behavior.
12
+
13
+ ## Install
14
+
15
+ > **Avoid duplicate installation.** Install this npm package or the GitHub bundle, not both. Loading both copies can duplicate commands, autocomplete providers, and status updates.
16
+
17
+ Install just this extension from npm:
18
+
19
+ ```bash
20
+ pi install npm:@hk_net/pi-thinking-command
21
+ ```
22
+
23
+ Or install the full collection from GitHub:
24
+
25
+ ```bash
26
+ pi install git:git@github.com:hknet/pi-extensions@main
27
+ pi install https://github.com/hknet/pi-extensions
28
+ ```
29
+
30
+ Or install this extension manually:
31
+
32
+ ```bash
33
+ cp packages/pi-thinking-command/thinking-shortcut.ts ~/.pi/agent/extensions/thinking-shortcut.ts
34
+ ```
35
+
36
+ After installing, restart pi or run:
37
+
38
+ ```text
39
+ /reload
40
+ ```
41
+
42
+ ## Usage
43
+
44
+ ```text
45
+ /think [level]
46
+ ```
47
+
48
+ Autocomplete offers only the thinking levels supported by the active model.
49
+
50
+ Examples:
51
+
52
+ ```text
53
+ /think off
54
+ /think low
55
+ /think medium
56
+ /think high
57
+ /think xhigh
58
+ /think max
59
+ ```
60
+
61
+ If no argument is provided, `/think` sets the level to `medium` when supported, otherwise to the model's first supported level (normally `off` for a non-reasoning model). Use Pi 0.84.3's native `/thinking` without an argument when you want the interactive selector.
62
+
63
+ ## Levels
64
+
65
+ - `off` — disable extended thinking
66
+ - `minimal` — smallest available thinking budget
67
+ - `low` — light reasoning
68
+ - `medium` — balanced default reasoning
69
+ - `high` more reasoning for harder tasks
70
+ - `xhigh` — very high reasoning budget
71
+ - `max` — maximum reasoning budget
72
+
73
+ > **Note:** `/think` rejects levels that the active model does not support instead of silently selecting a different level.
74
+
75
+ ## Features
76
+
77
+ - Registers `/think` without conflicting with Pi 0.84.3's native `/thinking` command.
78
+ - Derives argument completions from Pi's model-specific capabilities and refreshes them when the active model changes.
79
+ - Autocompletes `/th...` to `/think` without Pi's trailing-space insertion; press Tab again to open the level picker.
80
+ - Shows a `thinking` status item with the current level.
81
+ - Updates the status item when the thinking level changes.
82
+ - Validates input and displays an error for unknown or model-incompatible levels.
83
+
84
+ ## Issues and feedback
85
+
86
+ Found a bug or have a feature request? Please report it on
87
+ [GitHub Issues](https://github.com/hknet/pi-extensions/issues).
88
+
89
+ For security vulnerabilities, please use
90
+ [GitHub's private vulnerability reporting](https://github.com/hknet/pi-extensions/security/advisories/new)
91
+ instead of opening a public issue.
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "@hk_net/pi-thinking-command",
3
- "version": "0.1.9",
4
- "description": "Pi extension that adds a /thinking slash command for changing reasoning level",
5
- "type": "module",
6
- "private": false,
7
- "keywords": [
8
- "pi-package",
9
- "pi",
10
- "extension",
11
- "thinking"
12
- ],
13
- "license": "EUPL-1.2",
14
- "author": {
15
- "name": "KAPPER NETWORK-COMMUNICATIONS GmbH",
16
- "url": "https://kapper.net"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/hknet/pi-extensions.git",
21
- "directory": "packages/pi-thinking-command"
22
- },
23
- "bugs": {
24
- "url": "https://github.com/hknet/pi-extensions/issues"
25
- },
26
- "homepage": "https://github.com/hknet/pi-extensions/tree/main/packages/pi-thinking-command#readme",
27
- "files": [
28
- "thinking-shortcut.ts",
29
- "README.md",
30
- "CHANGELOG.md"
31
- ],
32
- "engines": {
33
- "node": ">=22.19.0"
34
- },
35
- "peerDependencies": {
36
- "@earendil-works/pi-ai": "*",
37
- "@earendil-works/pi-coding-agent": "*",
38
- "@earendil-works/pi-tui": "*"
39
- },
40
- "peerDependenciesMeta": {
41
- "@earendil-works/pi-ai": {
42
- "optional": true
43
- },
44
- "@earendil-works/pi-coding-agent": {
45
- "optional": true
46
- },
47
- "@earendil-works/pi-tui": {
48
- "optional": true
49
- }
50
- },
51
- "pi": {
52
- "extensions": [
53
- "./thinking-shortcut.ts"
54
- ]
55
- }
56
- }
1
+ {
2
+ "name": "@hk_net/pi-thinking-command",
3
+ "version": "0.1.11",
4
+ "description": "Pi extension that adds a /think slash command for changing reasoning level",
5
+ "type": "module",
6
+ "private": false,
7
+ "keywords": [
8
+ "pi-package",
9
+ "pi",
10
+ "extension",
11
+ "thinking"
12
+ ],
13
+ "license": "EUPL-1.2",
14
+ "author": {
15
+ "name": "KAPPER NETWORK-COMMUNICATIONS GmbH",
16
+ "url": "https://kapper.net"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/hknet/pi-extensions.git",
21
+ "directory": "packages/pi-thinking-command"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/hknet/pi-extensions/issues"
25
+ },
26
+ "homepage": "https://github.com/hknet/pi-extensions/tree/main/packages/pi-thinking-command#readme",
27
+ "files": [
28
+ "thinking-shortcut.ts",
29
+ "README.md",
30
+ "CHANGELOG.md"
31
+ ],
32
+ "engines": {
33
+ "node": ">=22.19.0"
34
+ },
35
+ "peerDependencies": {
36
+ "@earendil-works/pi-ai": "*",
37
+ "@earendil-works/pi-coding-agent": "*",
38
+ "@earendil-works/pi-tui": "*"
39
+ },
40
+ "peerDependenciesMeta": {
41
+ "@earendil-works/pi-ai": {
42
+ "optional": true
43
+ },
44
+ "@earendil-works/pi-coding-agent": {
45
+ "optional": true
46
+ },
47
+ "@earendil-works/pi-tui": {
48
+ "optional": true
49
+ }
50
+ },
51
+ "pi": {
52
+ "extensions": [
53
+ "./thinking-shortcut.ts"
54
+ ]
55
+ }
56
+ }
@@ -43,7 +43,7 @@ export function getThinkingLevelCompletions(
43
43
  }
44
44
 
45
45
  export function isThinkingCommandPrefix(value: string): boolean {
46
- return value.startsWith("/th") && "/thinking".startsWith(value);
46
+ return value.startsWith("/th") && "/think".startsWith(value);
47
47
  }
48
48
 
49
49
  export default function thinkingShortcutExtension(pi: ExtensionAPI) {
@@ -61,19 +61,19 @@ export default function thinkingShortcutExtension(pi: ExtensionAPI) {
61
61
  const line = lines[cursorLine] ?? "";
62
62
  const beforeCursor = line.slice(0, cursorCol);
63
63
  if (cursorCol === line.length && isThinkingCommandPrefix(beforeCursor)) {
64
- if (beforeCursor === "/thinking") {
64
+ if (beforeCursor === "/think") {
65
65
  return { prefix: "", items: getThinkingLevelCompletions("", supportedLevels) ?? [] };
66
66
  }
67
67
  return {
68
68
  prefix: beforeCursor,
69
- items: [{ value: "thinking", label: "thinking", description: "Set the thinking level" }],
69
+ items: [{ value: "think", label: "think", description: "Set the thinking level" }],
70
70
  };
71
71
  }
72
- if (beforeCursor === "/thinking " && cursorCol === line.length) {
72
+ if (beforeCursor === "/think " && cursorCol === line.length) {
73
73
  return { prefix: "", items: getThinkingLevelCompletions("", supportedLevels) ?? [] };
74
74
  }
75
75
 
76
- const match = beforeCursor.match(/^\/thinking\s+(\S*)$/);
76
+ const match = beforeCursor.match(/^\/think\s+(\S*)$/);
77
77
  if (match && cursorCol === line.length) {
78
78
  const prefix = match[1] ?? "";
79
79
  const items = getThinkingLevelCompletions(prefix, supportedLevels);
@@ -86,22 +86,22 @@ export default function thinkingShortcutExtension(pi: ExtensionAPI) {
86
86
  const line = lines[cursorLine] ?? "";
87
87
  const beforeCursor = line.slice(0, cursorCol);
88
88
  if (cursorCol === line.length && isThinkingCommandPrefix(beforeCursor)) {
89
- if (beforeCursor !== "/thinking") {
89
+ if (beforeCursor !== "/think") {
90
90
  return {
91
- lines: [...lines.slice(0, cursorLine), "/thinking", ...lines.slice(cursorLine + 1)],
91
+ lines: [...lines.slice(0, cursorLine), "/think", ...lines.slice(cursorLine + 1)],
92
92
  cursorLine,
93
- cursorCol: "/thinking".length,
93
+ cursorCol: "/think".length,
94
94
  };
95
95
  }
96
- const nextLine = `/thinking ${item.value}`;
96
+ const nextLine = `/think ${item.value}`;
97
97
  return {
98
98
  lines: [...lines.slice(0, cursorLine), nextLine, ...lines.slice(cursorLine + 1)],
99
99
  cursorLine,
100
100
  cursorCol: nextLine.length,
101
101
  };
102
102
  }
103
- if (beforeCursor === "/thinking " && cursorCol === line.length) {
104
- const nextLine = `/thinking ${item.value}`;
103
+ if (beforeCursor === "/think " && cursorCol === line.length) {
104
+ const nextLine = `/think ${item.value}`;
105
105
  return {
106
106
  lines: [...lines.slice(0, cursorLine), nextLine, ...lines.slice(cursorLine + 1)],
107
107
  cursorLine,
@@ -114,7 +114,7 @@ export default function thinkingShortcutExtension(pi: ExtensionAPI) {
114
114
  shouldTriggerFileCompletion(lines, cursorLine, cursorCol) {
115
115
  const line = lines[cursorLine] ?? "";
116
116
  const beforeCursor = line.slice(0, cursorCol);
117
- if (/^\/thinking(?:\s+\S*)?$/.test(beforeCursor) && cursorCol === line.length) return false;
117
+ if (/^\/think(?:\s+\S*)?$/.test(beforeCursor) && cursorCol === line.length) return false;
118
118
  return current.shouldTriggerFileCompletion?.(lines, cursorLine, cursorCol) ?? true;
119
119
  },
120
120
  }));
@@ -130,7 +130,7 @@ export default function thinkingShortcutExtension(pi: ExtensionAPI) {
130
130
  ctx.ui.setStatus("thinking", `level: ${event.level}`);
131
131
  });
132
132
 
133
- pi.registerCommand("thinking", {
133
+ pi.registerCommand("think", {
134
134
  description: "Set the thinking level supported by the active model",
135
135
  getArgumentCompletions: (prefix) => getThinkingLevelCompletions(prefix, supportedLevels),
136
136
  handler: async (args, ctx) => {