@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.
- package/README.md +29 -0
- package/dist/conversation.d.ts +15 -1587
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js.map +1 -1
- package/dist/conversationBase.d.ts +89 -0
- package/dist/conversationBase.d.ts.map +1 -0
- package/dist/conversationBase.js +2 -0
- package/dist/conversationBase.js.map +1 -0
- package/dist/conversationComposerApi.d.ts +246 -0
- package/dist/conversationComposerApi.d.ts.map +1 -0
- package/dist/conversationComposerApi.js +2 -0
- package/dist/conversationComposerApi.js.map +1 -0
- package/dist/conversationComposerEnvironment.d.ts +71 -0
- package/dist/conversationComposerEnvironment.d.ts.map +1 -0
- package/dist/conversationComposerEnvironment.js +2 -0
- package/dist/conversationComposerEnvironment.js.map +1 -0
- package/dist/conversationComposerHandle.d.ts +80 -0
- package/dist/conversationComposerHandle.d.ts.map +1 -0
- package/dist/conversationComposerHandle.js +2 -0
- package/dist/conversationComposerHandle.js.map +1 -0
- package/dist/conversationDerive.d.ts +132 -0
- package/dist/conversationDerive.d.ts.map +1 -0
- package/dist/conversationDerive.js +2 -0
- package/dist/conversationDerive.js.map +1 -0
- package/dist/conversationDrafts.d.ts +220 -0
- package/dist/conversationDrafts.d.ts.map +1 -0
- package/dist/conversationDrafts.js +2 -0
- package/dist/conversationDrafts.js.map +1 -0
- package/dist/conversationHostModels.d.ts +378 -0
- package/dist/conversationHostModels.d.ts.map +1 -0
- package/dist/conversationHostModels.js +2 -0
- package/dist/conversationHostModels.js.map +1 -0
- package/dist/conversationRows.d.ts +96 -0
- package/dist/conversationRows.d.ts.map +1 -0
- package/dist/conversationRows.js +2 -0
- package/dist/conversationRows.js.map +1 -0
- package/dist/conversationViewProps.d.ts +366 -0
- package/dist/conversationViewProps.d.ts.map +1 -0
- package/dist/conversationViewProps.js +2 -0
- package/dist/conversationViewProps.js.map +1 -0
- package/dist/executor.d.ts +4 -6
- package/dist/executor.d.ts.map +1 -1
- package/dist/executor.js.map +1 -1
- package/dist/executorProcesses.d.ts +38 -0
- package/dist/executorProcesses.d.ts.map +1 -0
- package/dist/executorProcesses.js +5 -0
- package/dist/executorProcesses.js.map +1 -0
- package/dist/index.d.ts +15 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/settings-actions.d.ts +25 -2
- package/dist/settings-actions.d.ts.map +1 -1
- package/dist/settings-actions.js +0 -6
- package/dist/settings-actions.js.map +1 -1
- package/dist/settings-ui.d.ts +46 -0
- package/dist/settings-ui.d.ts.map +1 -0
- package/dist/settings-ui.js +2 -0
- package/dist/settings-ui.js.map +1 -0
- package/dist/threadList.d.ts +2 -0
- package/dist/threadList.d.ts.map +1 -1
- package/dist/ui.d.ts +1 -0
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js.map +1 -1
- 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
|