@fungi.computer/parakeet 0.0.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +45 -6
  2. package/dist/account-commands.js +3 -11
  3. package/dist/commands/advertised.d.ts +3 -1
  4. package/dist/commands/advertised.js +89 -4
  5. package/dist/commands/builtins.js +1 -1
  6. package/dist/commands/interactions.d.ts +22 -7
  7. package/dist/commands/interactions.js +41 -17
  8. package/dist/commands/run.d.ts +3 -2
  9. package/dist/commands/run.js +5 -2
  10. package/dist/commands/slash.d.ts +2 -0
  11. package/dist/commands/slash.js +13 -7
  12. package/dist/commands/use-slash-commands.js +4 -4
  13. package/dist/components/AgentHead.d.ts +9 -12
  14. package/dist/components/AgentHead.js +12 -44
  15. package/dist/components/ChatComposer.d.ts +3 -1
  16. package/dist/components/ChatComposer.js +79 -15
  17. package/dist/components/ChatMessage.d.ts +4 -0
  18. package/dist/components/ChatMessage.js +6 -2
  19. package/dist/components/ClientRows.js +2 -2
  20. package/dist/components/InteractionPanel.d.ts +2 -4
  21. package/dist/components/InteractionPanel.js +2 -2
  22. package/dist/components/ShiitakeAvatar.d.ts +7 -5
  23. package/dist/components/ShiitakeAvatar.js +6 -4
  24. package/dist/components/TimelineItem.d.ts +2 -0
  25. package/dist/components/TimelineItem.js +31 -7
  26. package/dist/components/avatar-presentation.d.ts +7 -14
  27. package/dist/components/avatar-presentation.js +6 -13
  28. package/dist/conversation-opening.d.ts +47 -0
  29. package/dist/conversation-opening.js +173 -0
  30. package/dist/conversation.d.ts +50 -5
  31. package/dist/conversation.js +587 -87
  32. package/dist/core/author-labels.d.ts +2 -0
  33. package/dist/core/build-timeline.d.ts +4 -2
  34. package/dist/core/build-timeline.js +46 -7
  35. package/dist/core/client-actions.js +6 -3
  36. package/dist/core/client-timeline.d.ts +9 -2
  37. package/dist/core/client-timeline.js +15 -4
  38. package/dist/core/draft-storage.d.ts +63 -0
  39. package/dist/core/draft-storage.js +50 -0
  40. package/dist/core/model-identity.d.ts +2 -0
  41. package/dist/core/model-identity.js +6 -0
  42. package/dist/core/queued-recall.d.ts +35 -0
  43. package/dist/core/queued-recall.js +138 -0
  44. package/dist/core/session-projection.js +17 -0
  45. package/dist/core/session-query.d.ts +54 -11
  46. package/dist/core/session-query.js +38 -12
  47. package/dist/core/tool-groups.d.ts +1 -1
  48. package/dist/core/tool-groups.js +3 -1
  49. package/dist/core/tool-view.d.ts +1 -1
  50. package/dist/core/tool-view.js +3 -2
  51. package/dist/core/use-timeline-item-key.d.ts +8 -0
  52. package/dist/core/use-timeline-item-key.js +29 -0
  53. package/dist/headless.d.ts +6 -4
  54. package/dist/headless.js +1 -1
  55. package/dist/index.d.ts +2 -2
  56. package/dist/index.js +1 -1
  57. package/dist/model-commands.js +65 -40
  58. package/dist/parakeet.js +17 -18
  59. package/dist/provider-choices.js +10 -7
  60. package/dist/session-commands.d.ts +0 -9
  61. package/dist/session-commands.js +39 -68
  62. package/dist/session.d.ts +1 -1
  63. package/dist/store/types.d.ts +10 -4
  64. package/dist/styles.css +105 -117
  65. package/docs/api/commands/slash.md +24 -21
  66. package/docs/api/headless.md +375 -232
  67. package/docs/api/index.md +168 -60
  68. package/package.json +16 -10
  69. package/src/styles.css +4 -9
  70. package/dist/components/still-frame-cache.d.ts +0 -16
  71. package/dist/components/still-frame-cache.js +0 -63
@@ -16,6 +16,7 @@
16
16
  type SlashCommand = Readonly<{
17
17
  alias: string;
18
18
  commandId: string;
19
+ consumesDraft?: boolean;
19
20
  title: string;
20
21
  description?: string;
21
22
  category: string;
@@ -164,6 +165,7 @@ Human key labels from Whistle bindings, with the platform's modifier name.
164
165
  function slashRegistry(snapshot): readonly Readonly<{
165
166
  alias: string;
166
167
  commandId: string;
168
+ consumesDraft?: boolean;
167
169
  title: string;
168
170
  description?: string;
169
171
  category: string;
@@ -202,22 +204,23 @@ Every slash alias in the live graph, with the keys bound to its command.
202
204
 
203
205
  #### Returns
204
206
 
205
- readonly `Readonly`\<\{ `alias`: `string`; `commandId`: `string`; `title`:
206
- `string`; `description?`: `string`; `category`: `string`; `order`: `number`;
207
- `grammar?`: \{ `hint`: `string`; `words?`: readonly `object`[]; `text?`: \{
208
- `field`: `string`; `arguments`: \{ \[`key`: `string`\]: \| `string` \| `number`
209
- \| `boolean` \| readonly string \| number \| boolean \| readonly (string \|
207
+ readonly `Readonly`\<\{ `alias`: `string`; `commandId`: `string`;
208
+ `consumesDraft?`: `boolean`; `title`: `string`; `description?`: `string`;
209
+ `category`: `string`; `order`: `number`; `grammar?`: \{ `hint`: `string`;
210
+ `words?`: readonly `object`[]; `text?`: \{ `field`: `string`; `arguments`: \{
211
+ \[`key`: `string`\]: \| `string` \| `number` \| `boolean` \| readonly string \|
210
212
  number \| boolean \| readonly (string \| number \| boolean \| readonly (string
211
213
  \| number \| boolean \| readonly (string \| number \| boolean \| readonly
212
- (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\]
213
- \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...[] \|
214
- \{ \[`key`: `string`\]: string \| number \| boolean \| readonly (string \|
214
+ (string \| number \| boolean \| readonly (string \| number \| boolean \|
215
+ readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{
216
+ ...; \} \| null)\[\] \| \{ ...; \} \| ...[] \| \{ \[`key`: `string`\]: string \|
215
217
  number \| boolean \| readonly (string \| number \| boolean \| readonly (string
216
218
  \| number \| boolean \| readonly (string \| number \| boolean \| readonly
217
- (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\]
218
- \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...; \}
219
- \| `null`; \}; `requestIdField?`: `string`; \}; \}; `keys`: readonly `string`[];
220
- `availability`: `WhistleAvailability`; \}\>[]
219
+ (string \| number \| boolean \| readonly (string \| number \| boolean \|
220
+ readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{
221
+ ...; \} \| null)\[\] \| \{ ...; \} \| ...; \} \| `null`; \}; `requestIdField?`:
222
+ `string`; \}; \}; `keys`: readonly `string`[]; `availability`:
223
+ `WhistleAvailability`; \}\>[]
221
224
 
222
225
  ---
223
226
 
@@ -257,10 +260,10 @@ Parse one draft against the registry; only a leading `/` names a command.
257
260
 
258
261
  #### Parameters
259
262
 
260
- | Parameter | Type |
261
- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
262
- | `registry` | readonly `Readonly`\<\{ `alias`: `string`; `commandId`: `string`; `title`: `string`; `description?`: `string`; `category`: `string`; `order`: `number`; `grammar?`: \{ `hint`: `string`; `words?`: readonly `object`[]; `text?`: \{ `field`: `string`; `arguments`: \{ \[`key`: `string`\]: \| `string` \| `number` \| `boolean` \| readonly string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...[] \| \{ \[`key`: `string`\]: string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...; \} \| `null`; \}; `requestIdField?`: `string`; \}; \}; `keys`: readonly `string`[]; `availability`: `WhistleAvailability`; \}\>[] |
263
- | `draft` | `string` |
263
+ | Parameter | Type |
264
+ | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
265
+ | `registry` | readonly `Readonly`\<\{ `alias`: `string`; `commandId`: `string`; `consumesDraft?`: `boolean`; `title`: `string`; `description?`: `string`; `category`: `string`; `order`: `number`; `grammar?`: \{ `hint`: `string`; `words?`: readonly `object`[]; `text?`: \{ `field`: `string`; `arguments`: \{ \[`key`: `string`\]: \| `string` \| `number` \| `boolean` \| readonly string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...[] \| \{ \[`key`: `string`\]: string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...; \} \| `null`; \}; `requestIdField?`: `string`; \}; \}; `keys`: readonly `string`[]; `availability`: `WhistleAvailability`; \}\>[] |
266
+ | `draft` | `string` |
264
267
 
265
268
  #### Returns
266
269
 
@@ -310,11 +313,11 @@ Rank completions for one draft; renderers draw exactly these rows.
310
313
 
311
314
  #### Parameters
312
315
 
313
- | Parameter | Type |
314
- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
315
- | `registry` | readonly `Readonly`\<\{ `alias`: `string`; `commandId`: `string`; `title`: `string`; `description?`: `string`; `category`: `string`; `order`: `number`; `grammar?`: \{ `hint`: `string`; `words?`: readonly `object`[]; `text?`: \{ `field`: `string`; `arguments`: \{ \[`key`: `string`\]: \| `string` \| `number` \| `boolean` \| readonly string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...[] \| \{ \[`key`: `string`\]: string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...; \} \| `null`; \}; `requestIdField?`: `string`; \}; \}; `keys`: readonly `string`[]; `availability`: `WhistleAvailability`; \}\>[] |
316
- | `draft` | `string` |
317
- | `options` | `Readonly`\<\{ `idleCategory?`: `string`; \}\> |
316
+ | Parameter | Type |
317
+ | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
318
+ | `registry` | readonly `Readonly`\<\{ `alias`: `string`; `commandId`: `string`; `consumesDraft?`: `boolean`; `title`: `string`; `description?`: `string`; `category`: `string`; `order`: `number`; `grammar?`: \{ `hint`: `string`; `words?`: readonly `object`[]; `text?`: \{ `field`: `string`; `arguments`: \{ \[`key`: `string`\]: \| `string` \| `number` \| `boolean` \| readonly string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...[] \| \{ \[`key`: `string`\]: string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| number \| boolean \| readonly (string \| ... 4 more ... \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| null)\[\] \| \{ ...; \} \| ...; \} \| `null`; \}; `requestIdField?`: `string`; \}; \}; `keys`: readonly `string`[]; `availability`: `WhistleAvailability`; \}\>[] |
319
+ | `draft` | `string` |
320
+ | `options` | `Readonly`\<\{ `idleCategory?`: `string`; \}\> |
318
321
 
319
322
  #### Returns
320
323