@ycodium-ai/plugin-api 0.2.2968 → 0.2.2974

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 (64) hide show
  1. package/README.md +29 -0
  2. package/dist/conversation.d.ts +15 -1587
  3. package/dist/conversation.d.ts.map +1 -1
  4. package/dist/conversation.js.map +1 -1
  5. package/dist/conversationBase.d.ts +89 -0
  6. package/dist/conversationBase.d.ts.map +1 -0
  7. package/dist/conversationBase.js +2 -0
  8. package/dist/conversationBase.js.map +1 -0
  9. package/dist/conversationComposerApi.d.ts +246 -0
  10. package/dist/conversationComposerApi.d.ts.map +1 -0
  11. package/dist/conversationComposerApi.js +2 -0
  12. package/dist/conversationComposerApi.js.map +1 -0
  13. package/dist/conversationComposerEnvironment.d.ts +71 -0
  14. package/dist/conversationComposerEnvironment.d.ts.map +1 -0
  15. package/dist/conversationComposerEnvironment.js +2 -0
  16. package/dist/conversationComposerEnvironment.js.map +1 -0
  17. package/dist/conversationComposerHandle.d.ts +80 -0
  18. package/dist/conversationComposerHandle.d.ts.map +1 -0
  19. package/dist/conversationComposerHandle.js +2 -0
  20. package/dist/conversationComposerHandle.js.map +1 -0
  21. package/dist/conversationDerive.d.ts +132 -0
  22. package/dist/conversationDerive.d.ts.map +1 -0
  23. package/dist/conversationDerive.js +2 -0
  24. package/dist/conversationDerive.js.map +1 -0
  25. package/dist/conversationDrafts.d.ts +220 -0
  26. package/dist/conversationDrafts.d.ts.map +1 -0
  27. package/dist/conversationDrafts.js +2 -0
  28. package/dist/conversationDrafts.js.map +1 -0
  29. package/dist/conversationHostModels.d.ts +378 -0
  30. package/dist/conversationHostModels.d.ts.map +1 -0
  31. package/dist/conversationHostModels.js +2 -0
  32. package/dist/conversationHostModels.js.map +1 -0
  33. package/dist/conversationRows.d.ts +96 -0
  34. package/dist/conversationRows.d.ts.map +1 -0
  35. package/dist/conversationRows.js +2 -0
  36. package/dist/conversationRows.js.map +1 -0
  37. package/dist/conversationViewProps.d.ts +366 -0
  38. package/dist/conversationViewProps.d.ts.map +1 -0
  39. package/dist/conversationViewProps.js +2 -0
  40. package/dist/conversationViewProps.js.map +1 -0
  41. package/dist/executor.d.ts +4 -6
  42. package/dist/executor.d.ts.map +1 -1
  43. package/dist/executor.js.map +1 -1
  44. package/dist/executorProcesses.d.ts +38 -0
  45. package/dist/executorProcesses.d.ts.map +1 -0
  46. package/dist/executorProcesses.js +5 -0
  47. package/dist/executorProcesses.js.map +1 -0
  48. package/dist/index.d.ts +15 -24
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js.map +1 -1
  51. package/dist/settings-actions.d.ts +25 -2
  52. package/dist/settings-actions.d.ts.map +1 -1
  53. package/dist/settings-actions.js +0 -6
  54. package/dist/settings-actions.js.map +1 -1
  55. package/dist/settings-ui.d.ts +46 -0
  56. package/dist/settings-ui.d.ts.map +1 -0
  57. package/dist/settings-ui.js +2 -0
  58. package/dist/settings-ui.js.map +1 -0
  59. package/dist/threadList.d.ts +2 -0
  60. package/dist/threadList.d.ts.map +1 -1
  61. package/dist/ui.d.ts +1 -0
  62. package/dist/ui.d.ts.map +1 -1
  63. package/dist/ui.js.map +1 -1
  64. package/package.json +1 -1
package/README.md CHANGED
@@ -257,6 +257,35 @@ the instance, sorted, without values. `driverConfig` now carries only the scalar
257
257
  provider's card declares in `configSchema`, without password fields, undeclared keys, objects
258
258
  or arrays. The API version was not bumped for this change.
259
259
 
260
+ Added within API 4: `ctx.settings.onChange(handler)`. When only the plugin's config changes (a
261
+ settings card Save or `ctx.settings.write`), the host hands the new config to the handler, with
262
+ passwords resolved, instead of restarting the plugin, and `ctx.config` returns the new value from
263
+ then on. A plugin that registers no handler is restarted as before, and so is one whose handler
264
+ throws or rejects. The call returns a function that removes the handler. The API version was not
265
+ bumped.
266
+
267
+ Added within API 4: `ctx.commands.dispatch()` returns the command's `result` when the command
268
+ type defines one (for example the id of an object it created); replaying the same `commandId`
269
+ returns the same value, and most commands have none. `ctx.commands.getReceipt()` also answers
270
+ for declared commands that do not target an existing thread. Those command ids are scoped to
271
+ your plugin's install, so you only see receipts for commands your plugin dispatched, and
272
+ `threadId` may be left out for them; commands on an existing thread still need `threadId` and
273
+ thread ownership. Both are optional additions, so the API version was not bumped.
274
+
275
+ Added within API 4, for a plugin that draws its own settings in the `settings.section` seat. None
276
+ of these bumped the API version.
277
+
278
+ - `presentation: "hidden"` on `ctx.settingsCard`: clients stop drawing the card's form. Keep the
279
+ field declarations: a `kind: "proxy"` field is how the host knows which proxy you use, and
280
+ `password` fields and columns are how it knows which positions are secrets.
281
+ - `clearSecrets` in the options of `ctx.settings.write`: paths whose stored password is removed.
282
+ The host drops the key at each path from the config it writes, whatever you put there. A path
283
+ listed in both `secrets` and `clearSecrets` rejects the write.
284
+ - `bridge.ui.QRCodeSvg` and `bridge.ui.ProxyChoiceSelect`, typed by `QRCodeSvgProps` and
285
+ `ProxyChoiceSelectProps` in `@ycodium-ai/plugin-api/ui`. The proxy select draws the options you
286
+ pass it; get them from `ctx.proxies.list()` in a command of your own. An older host does not
287
+ have them, so check that they exist before rendering.
288
+
260
289
  ### API 3
261
290
 
262
291
  API 3 deletes the host's old usage path and fixes the executor contract that the built-in agents