@runappsai/agent 0.1.11 → 0.1.15
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 +1 -1
- package/dist/agent-core.umd.js +90 -87
- package/dist/agent.d.ts +5 -1
- package/dist/agent.js +11 -7
- package/dist/agent.umd.js +130 -104
- package/dist/chat.d.ts +40 -1
- package/dist/chat.js +375 -16
- package/dist/dom.d.ts +28 -1
- package/dist/dom.js +38 -1
- package/dist/files-panel.js +2 -2
- package/dist/index.cjs +514 -37
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/schedule.d.ts +152 -0
- package/dist/schedule.js +505 -0
- package/dist/types.d.ts +3 -0
- package/dist/ui.cjs +932 -13
- package/dist/ui.d.ts +1 -0
- package/docs/chat-ui.md +23 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -199,6 +199,8 @@ export interface AgentUI {
|
|
|
199
199
|
* Yes/no question; resolves false when dismissed. With `always`, a UI may
|
|
200
200
|
* offer a third answer under its label ("Always allow"): it calls
|
|
201
201
|
* `onChoose` and resolves true. A UI that does not just answers yes or no.
|
|
202
|
+
* `permission` is set when the question is the agent asking whether a
|
|
203
|
+
* tool may run (`permissions: "ask"`), not a tool's own question.
|
|
202
204
|
*/
|
|
203
205
|
confirm(title: string, message?: string, opts?: {
|
|
204
206
|
ok?: string;
|
|
@@ -210,6 +212,7 @@ export interface AgentUI {
|
|
|
210
212
|
onChoose: () => void;
|
|
211
213
|
};
|
|
212
214
|
body?: () => HTMLElement;
|
|
215
|
+
permission?: boolean;
|
|
213
216
|
}): Promise<boolean>;
|
|
214
217
|
/**
|
|
215
218
|
* Pick one (or several with `multi`) of `options`; `allowOther` adds a
|