@vellumai/assistant 0.11.4-dev.202608201416.18031d9 → 0.11.4-dev.202608201611.db9392e
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/package.json +1 -1
- package/src/api/constants/app-tools.ts +34 -0
- package/src/api/index.ts +5 -0
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The app tools that mutate the stored app set, and what each one leaves
|
|
3
|
+
* behind. Mirrors `document-tools.ts`: a single declaration both the daemon and
|
|
4
|
+
* the web client derive their tool sets from, so a new mutating app tool is
|
|
5
|
+
* added here once and every consumer picks it up.
|
|
6
|
+
*
|
|
7
|
+
* Tool names are the ones the runner sees. Calls arriving through the bundled
|
|
8
|
+
* `app-builder` skill reach the daemon already unwrapped to the inner tool
|
|
9
|
+
* name, and the web client unwraps the `skill_execute` envelope itself.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface AppMutationTool {
|
|
13
|
+
/** The executed tool name. */
|
|
14
|
+
readonly name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the app is still openable once the tool has run. A deleted app has
|
|
17
|
+
* nothing to open, so it cannot anchor a card back to itself.
|
|
18
|
+
*/
|
|
19
|
+
readonly reopenable: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const APP_MUTATION_TOOLS: readonly AppMutationTool[] = [
|
|
23
|
+
{ name: "app_create", reopenable: true },
|
|
24
|
+
{ name: "app_update", reopenable: true },
|
|
25
|
+
{ name: "app_delete", reopenable: false },
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The mutating app tools that leave the app openable. The web transcript
|
|
30
|
+
* anchors its end-of-response app cards on these, so a delete never produces a
|
|
31
|
+
* card pointing at an app that is gone.
|
|
32
|
+
*/
|
|
33
|
+
export const APP_MUTATION_TOOL_NAMES: readonly string[] =
|
|
34
|
+
APP_MUTATION_TOOLS.filter((tool) => tool.reopenable).map((tool) => tool.name);
|
package/src/api/index.ts
CHANGED
|
@@ -135,6 +135,11 @@ import { WorkflowLeafStartedEventSchema } from "./events/workflow-leaf-started.j
|
|
|
135
135
|
import { WorkflowProgressEventSchema } from "./events/workflow-progress.js";
|
|
136
136
|
import { WorkflowStartedEventSchema } from "./events/workflow-started.js";
|
|
137
137
|
|
|
138
|
+
export {
|
|
139
|
+
APP_MUTATION_TOOL_NAMES,
|
|
140
|
+
APP_MUTATION_TOOLS,
|
|
141
|
+
type AppMutationTool,
|
|
142
|
+
} from "./constants/app-tools.js";
|
|
138
143
|
export {
|
|
139
144
|
CALL_SITE_COMPACTION_AGENT,
|
|
140
145
|
CALL_SITE_SYNTHETIC_AGENT_ERROR_MESSAGE,
|