@dxos/assistant-toolkit 0.14.0 → 0.16.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 (77) hide show
  1. package/dist/lib/AgentOperation.mjs +1 -55
  2. package/dist/lib/Memory.mjs +1 -19
  3. package/dist/lib/chunk-AgentOperation.mjs +55 -0
  4. package/dist/lib/chunk-AgentOperation.mjs.map +1 -0
  5. package/dist/lib/chunk-AgentOperationHandlerSet.mjs +8 -0
  6. package/dist/lib/chunk-AgentOperationHandlerSet.mjs.map +1 -0
  7. package/dist/lib/chunk-AgentSkill.mjs +46 -0
  8. package/dist/lib/chunk-AgentSkill.mjs.map +1 -0
  9. package/dist/lib/chunk-AlarmSkill.mjs +31 -0
  10. package/dist/lib/chunk-AlarmSkill.mjs.map +1 -0
  11. package/dist/lib/chunk-AutomationSkill.mjs +100 -0
  12. package/dist/lib/chunk-AutomationSkill.mjs.map +1 -0
  13. package/dist/lib/chunk-BrowserSkill.mjs +30 -0
  14. package/dist/lib/chunk-BrowserSkill.mjs.map +1 -0
  15. package/dist/lib/chunk-ChatContextSkill.mjs +31 -0
  16. package/dist/lib/chunk-ChatContextSkill.mjs.map +1 -0
  17. package/dist/lib/chunk-DelegationSkill.mjs +32 -0
  18. package/dist/lib/chunk-DelegationSkill.mjs.map +1 -0
  19. package/dist/lib/chunk-DelegationStrategy.mjs +2 -2
  20. package/dist/lib/chunk-DelegationStrategy.mjs.map +1 -1
  21. package/dist/lib/chunk-Memory.mjs +19 -0
  22. package/dist/lib/chunk-Memory.mjs.map +1 -0
  23. package/dist/lib/chunk-MemorySkill.mjs +39 -0
  24. package/dist/lib/chunk-MemorySkill.mjs.map +1 -0
  25. package/dist/lib/chunk-PlanningSkill.mjs +47 -0
  26. package/dist/lib/chunk-PlanningSkill.mjs.map +1 -0
  27. package/dist/lib/chunk-SkillManagerSkill.mjs +47 -0
  28. package/dist/lib/chunk-SkillManagerSkill.mjs.map +1 -0
  29. package/dist/lib/chunk-SlashCommand.mjs +41 -0
  30. package/dist/lib/{ns/SlashCommand.mjs.map → chunk-SlashCommand.mjs.map} +1 -1
  31. package/dist/lib/chunk-WebSearchSkill.mjs.map +1 -1
  32. package/dist/lib/chunk-operations.mjs.map +1 -1
  33. package/dist/lib/chunk-operations2.mjs.map +1 -1
  34. package/dist/lib/chunk-operations3.mjs.map +1 -1
  35. package/dist/lib/chunk-operations4.mjs +1 -1
  36. package/dist/lib/chunk-operations4.mjs.map +1 -1
  37. package/dist/lib/chunk-operations5.mjs.map +1 -1
  38. package/dist/lib/chunk-operations7.mjs.map +1 -1
  39. package/dist/lib/chunk-operations8.mjs +1 -1
  40. package/dist/lib/chunk-query.mjs +1 -1
  41. package/dist/lib/chunk-query.mjs.map +1 -1
  42. package/dist/lib/chunk-run-instructions.mjs +1 -1
  43. package/dist/lib/chunk-run-instructions.mjs.map +1 -1
  44. package/dist/lib/chunk-save.mjs +1 -1
  45. package/dist/lib/chunk-save.mjs.map +1 -1
  46. package/dist/lib/index.mjs +13 -13
  47. package/dist/lib/ns/AgentOperationHandlerSet.mjs +2 -8
  48. package/dist/lib/ns/AgentSkill.mjs +2 -45
  49. package/dist/lib/ns/AlarmSkill.mjs +3 -31
  50. package/dist/lib/ns/AutomationSkill.mjs +1 -100
  51. package/dist/lib/ns/BrowserSkill.mjs +1 -30
  52. package/dist/lib/ns/ChatContextSkill.mjs +3 -31
  53. package/dist/lib/ns/DelegationSkill.mjs +3 -32
  54. package/dist/lib/ns/DelegationStrategy.mjs +1 -2
  55. package/dist/lib/ns/MemorySkill.mjs +3 -39
  56. package/dist/lib/ns/PlanningSkill.mjs +3 -47
  57. package/dist/lib/ns/SkillManagerSkill.mjs +3 -47
  58. package/dist/lib/ns/SlashCommand.mjs +1 -41
  59. package/dist/lib/ns/WebSearchSkill.mjs +1 -2
  60. package/dist/lib/testing.mjs +1 -1
  61. package/dist/lib/testing.mjs.map +1 -1
  62. package/dist/types/src/skills/agent/operations/definitions.d.ts +1 -0
  63. package/dist/types/src/skills/agent/operations/definitions.d.ts.map +1 -1
  64. package/dist/types/tsconfig.tsbuildinfo +1 -1
  65. package/package.json +28 -28
  66. package/dist/lib/AgentOperation.mjs.map +0 -1
  67. package/dist/lib/Memory.mjs.map +0 -1
  68. package/dist/lib/ns/AgentOperationHandlerSet.mjs.map +0 -1
  69. package/dist/lib/ns/AgentSkill.mjs.map +0 -1
  70. package/dist/lib/ns/AlarmSkill.mjs.map +0 -1
  71. package/dist/lib/ns/AutomationSkill.mjs.map +0 -1
  72. package/dist/lib/ns/BrowserSkill.mjs.map +0 -1
  73. package/dist/lib/ns/ChatContextSkill.mjs.map +0 -1
  74. package/dist/lib/ns/DelegationSkill.mjs.map +0 -1
  75. package/dist/lib/ns/MemorySkill.mjs.map +0 -1
  76. package/dist/lib/ns/PlanningSkill.mjs.map +0 -1
  77. package/dist/lib/ns/SkillManagerSkill.mjs.map +0 -1
@@ -1,46 +1,3 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
1
  import { a as definitions_exports, t as AgentSkillHandlers } from "../chunk-operations7.mjs";
3
- import { trim } from "@dxos/util";
4
- import * as Skill from "@dxos/compute/Skill";
5
- import * as Template from "@dxos/compute/Template";
6
- //#region src/skills/agent/AgentSkill.ts
7
- var AgentSkill_exports = /* @__PURE__ */ __exportAll({
8
- Handlers: () => AgentSkillHandlers,
9
- Operations: () => definitions_exports,
10
- key: () => key,
11
- make: () => make
12
- });
13
- var key = "org.dxos.skill.agent";
14
- /**
15
- * Creates the Agent skill. This is a function to avoid circular dependency issues.
16
- */
17
- var make = () => Skill.make({
18
- key,
19
- name: "Agent skill",
20
- instructions: Template.make({
21
- source: trim`
22
- You work on an agent. Each agent has instructions - the goal of the agent.
23
- The agent plan shows the current progress of the agent.
24
-
25
- {{#with agent}}
26
- <agent id="{{id}}" name="{{name}}">
27
- <instructions>
28
- {{instructions}}
29
- </instructions>
30
- <plan>
31
- {{plan}}
32
- </plan>
33
- </agent>
34
- {{/with}}
35
- `,
36
- inputs: [{
37
- name: "agent",
38
- kind: "operation",
39
- operation: "org.dxos.operation.assistantToolkit.getContext"
40
- }]
41
- })
42
- });
43
- //#endregion
44
- export { AgentSkillHandlers as Handlers, definitions_exports as Operations, key, make, AgentSkill_exports as t };
45
-
46
- //# sourceMappingURL=AgentSkill.mjs.map
2
+ import { n as key, r as make } from "../chunk-AgentSkill.mjs";
3
+ export { AgentSkillHandlers as Handlers, definitions_exports as Operations, key, make };
@@ -1,31 +1,3 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- import { i as definitions_exports, n as GetCurrentDate, r as SetAlarm, t as AlarmHandlers } from "../chunk-operations6.mjs";
3
- import { Ref } from "@dxos/echo";
4
- import { trim } from "@dxos/util";
5
- import * as Skill from "@dxos/compute/Skill";
6
- import { Text } from "@dxos/schema";
7
- //#region src/skills/alarm/AlarmSkill.ts
8
- var AlarmSkill_exports = /* @__PURE__ */ __exportAll({
9
- Handlers: () => AlarmHandlers,
10
- Operations: () => definitions_exports,
11
- key: () => key,
12
- make: () => make
13
- });
14
- var key = "org.dxos.skill.alarm";
15
- var instructions = trim`
16
- You can schedule an alarm to wake yourself up in the future and continue working.
17
- When the alarm fires you receive a prompt carrying any reminder you set.
18
- Read the current time before computing an absolute wake time.
19
- `;
20
- var make = () => Skill.make({
21
- key,
22
- name: "Alarm",
23
- description: "Schedule a self-wake and inspect the current time.",
24
- agentCanEnable: true,
25
- instructions: { source: Ref.make(Text.make({ content: instructions })) },
26
- tools: Skill.toolDefinitions({ operations: [SetAlarm, GetCurrentDate] })
27
- });
28
- //#endregion
29
- export { AlarmHandlers as Handlers, definitions_exports as Operations, key, make, AlarmSkill_exports as t };
30
-
31
- //# sourceMappingURL=AlarmSkill.mjs.map
1
+ import { i as definitions_exports, t as AlarmHandlers } from "../chunk-operations6.mjs";
2
+ import { n as key, r as make } from "../chunk-AlarmSkill.mjs";
3
+ export { AlarmHandlers as Handlers, definitions_exports as Operations, key, make };
@@ -1,100 +1 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- import { Ref, Type } from "@dxos/echo";
3
- import { trim } from "@dxos/util";
4
- import * as Skill from "@dxos/compute/Skill";
5
- import * as Operation from "@dxos/compute/Operation";
6
- import { Text } from "@dxos/schema";
7
- import * as Trigger from "@dxos/compute/Trigger";
8
- //#region src/skills/automation/AutomationSkill.ts
9
- var AutomationSkill_exports = /* @__PURE__ */ __exportAll({
10
- key: () => key,
11
- make: () => make
12
- });
13
- var key = "org.dxos.skill.automation";
14
- var instructions = trim`
15
- Automation allows you to automatically initiate actions based on events.
16
- Automations are configured by creating a trigger that references a function.
17
- Whenever event that matches the trigger occurs, the function is invoked.
18
-
19
- ## Configuration
20
-
21
- Triggers are configured by the properties of the Trigger object.
22
- - enabled: Must be true for trigger to run.
23
- - spec: Events that the trigger matches.
24
- - function: Ref to a ${Type.getTypename(Operation.PersistentOperation)} object that will be invoked. Query the functions present in the space first, and reference them in the trigger.
25
- - input: The spec of the input data that will be passed to the function.
26
-
27
- ## Input patterns
28
-
29
- Input to the invoked function is defined by the input property of the Trigger object.
30
- It's an object that supports constants or template strings.
31
-
32
- Example:
33
-
34
- {
35
- item: '{{event.item}}',
36
- instructions: 'Summarize and perform entity-extraction'
37
- mailbox: { '/': 'echo://AAA/ZZZ' }
38
- }
39
-
40
- ## Trigger kinds
41
-
42
- - Timer: Triggered by a cron schedule.
43
- - Queue: Subscribes and processes items begginging to end.
44
- Note: queues are the same as feeds. The queue EID should be of form: echo://<space-id>/<queue-id>.
45
- - Subscription: Subscribes and processes database items based on a query.
46
-
47
- Avoid: email and webhook triggers.
48
-
49
- ## Editing triggers
50
-
51
- Triggers are represented as objects of type ${Type.getTypename(Trigger.Trigger)}.
52
- You need access to the Database skill to manipulate triggers.
53
- Read trigger schema before manipulating triggers.
54
- Having a Trigger object in the database is enough to setup an automation.
55
-
56
- ## Examples
57
-
58
- Timer:
59
-
60
- {
61
- "function": { "/": "echo://AAA/ZZZ" },
62
- "enabled": true,
63
- "spec": {
64
- "kind": "timer",
65
- "cron": "*/5 * * * *"
66
- }
67
- }
68
-
69
- Queue:
70
-
71
- {
72
- "function": { "/": "echo://AAA/ZZZ" },
73
- "enabled": true,
74
- "spec": {
75
- "kind": "queue",
76
- "queue": "echo://XXX/YYY"
77
- }
78
- }
79
-
80
- Subscription:
81
-
82
- {
83
- "function": { "/": "echo://AAA/ZZZ" },
84
- "enabled": true,
85
- "spec": {
86
- "kind": "subscription",
87
- "query": { "ast": { "type": "select", "filter": { "type": "object", "typename": "dxn:org.dxos.type.person" } } }
88
- }
89
- }
90
- `;
91
- var make = () => Skill.make({
92
- key,
93
- name: "Triggers",
94
- description: "Trigger management and automation.",
95
- instructions: { source: Ref.make(Text.make({ content: instructions })) }
96
- });
97
- //#endregion
98
- export { key, make, AutomationSkill_exports as t };
99
-
100
- //# sourceMappingURL=AutomationSkill.mjs.map
1
+ export { n as key, r as make } from "../chunk-AutomationSkill.mjs";
@@ -1,30 +1 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- import { Ref } from "@dxos/echo";
3
- import { trim } from "@dxos/util";
4
- import * as Skill from "@dxos/compute/Skill";
5
- import { Text } from "@dxos/schema";
6
- //#region src/skills/browser/BrowserSkill.ts
7
- var BrowserSkill_exports = /* @__PURE__ */ __exportAll({
8
- key: () => key,
9
- make: () => make
10
- });
11
- var key = "org.dxos.skill.browser";
12
- var instructions = trim`
13
- You are able to connect and use a virtual browser with persistent session.
14
- Browser tools are provided via MCP.
15
- `;
16
- var make = () => Skill.make({
17
- key,
18
- name: "Browser",
19
- description: "Access to a real isolated browser.",
20
- agentCanEnable: true,
21
- instructions: { source: Ref.make(Text.make({ content: instructions })) },
22
- mcpServers: [{
23
- url: "https://playwright-mcp-example.dxos.workers.dev/sse",
24
- protocol: "sse"
25
- }]
26
- });
27
- //#endregion
28
- export { key, make, BrowserSkill_exports as t };
29
-
30
- //# sourceMappingURL=BrowserSkill.mjs.map
1
+ export { n as key, r as make } from "../chunk-BrowserSkill.mjs";
@@ -1,31 +1,3 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- import { i as definitions_exports, n as ContextAdd, r as ContextRemove, t as ChatContextHandlers } from "../chunk-operations5.mjs";
3
- import { Ref } from "@dxos/echo";
4
- import { trim } from "@dxos/util";
5
- import * as Skill from "@dxos/compute/Skill";
6
- import { Text } from "@dxos/schema";
7
- //#region src/skills/chat-context/ChatContextSkill.ts
8
- var ChatContextSkill_exports = /* @__PURE__ */ __exportAll({
9
- Handlers: () => ChatContextHandlers,
10
- Operations: () => definitions_exports,
11
- key: () => key,
12
- make: () => make
13
- });
14
- var key = "org.dxos.skill.chatContext";
15
- var instructions = trim`
16
- You can bind objects into the chat's context so later turns can see them, and unbind them again.
17
- Reading and writing the objects themselves — including types, relations and tags — is the
18
- Database skill's job (plugin-space).
19
- `;
20
- var make = () => Skill.make({
21
- key,
22
- name: "Chat context",
23
- description: "Bind objects into the chat's context, and unbind them.",
24
- agentCanEnable: true,
25
- instructions: { source: Ref.make(Text.make({ content: instructions })) },
26
- tools: Skill.toolDefinitions({ operations: [ContextAdd, ContextRemove] })
27
- });
28
- //#endregion
29
- export { ChatContextHandlers as Handlers, definitions_exports as Operations, key, make, ChatContextSkill_exports as t };
30
-
31
- //# sourceMappingURL=ChatContextSkill.mjs.map
1
+ import { i as definitions_exports, t as ChatContextHandlers } from "../chunk-operations5.mjs";
2
+ import { n as key, r as make } from "../chunk-ChatContextSkill.mjs";
3
+ export { ChatContextHandlers as Handlers, definitions_exports as Operations, key, make };
@@ -1,32 +1,3 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- import { i as definitions_exports, n as DelegateTask, r as DelegateTasks, t as DelegationSkillHandlers } from "../chunk-operations.mjs";
3
- import { trim } from "@dxos/util";
4
- import * as Skill from "@dxos/compute/Skill";
5
- import * as Template from "@dxos/compute/Template";
6
- //#region src/skills/delegation/DelegationSkill.ts
7
- var DelegationSkill_exports = /* @__PURE__ */ __exportAll({
8
- Handlers: () => DelegationSkillHandlers,
9
- Operations: () => definitions_exports,
10
- key: () => key,
11
- make: () => make
12
- });
13
- var key = "org.dxos.skill.delegation";
14
- var make = () => Skill.make({
15
- key,
16
- name: "Delegation",
17
- description: "Delegates work to sub-agents and tracks it as plan tasks.",
18
- tools: Skill.toolDefinitions({ operations: [DelegateTask, DelegateTasks] }),
19
- instructions: Template.make({ source: trim`
20
- {{! Delegation }}
21
-
22
- Delegate existing checklist tasks with the delegate-tasks tool, selecting by 1-based
23
- ordinal or exact title; delegate-task creates a NEW task from a title. When unsure what
24
- the checklist holds, read it first (get-agent-context when available). Delegated tasks
25
- run in the background once their dependencies are done, and each result is reported back
26
- to the conversation.
27
- ` })
28
- });
29
- //#endregion
30
- export { DelegationSkillHandlers as Handlers, definitions_exports as Operations, key, make, DelegationSkill_exports as t };
31
-
32
- //# sourceMappingURL=DelegationSkill.mjs.map
1
+ import { i as definitions_exports, t as DelegationSkillHandlers } from "../chunk-operations.mjs";
2
+ import { n as key, r as make } from "../chunk-DelegationSkill.mjs";
3
+ export { DelegationSkillHandlers as Handlers, definitions_exports as Operations, key, make };
@@ -1,2 +1 @@
1
- import { n as isSubAgentTask, r as makeDelegationStrategy } from "../chunk-DelegationStrategy.mjs";
2
- export { isSubAgentTask, makeDelegationStrategy as make };
1
+ export { n as isSubAgentTask, r as make } from "../chunk-DelegationStrategy.mjs";
@@ -1,39 +1,3 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- import { a as definitions_exports, i as SaveMemory, n as DeleteMemory, r as QueryMemories, t as MemoryHandlers } from "../chunk-operations4.mjs";
3
- import { Ref } from "@dxos/echo";
4
- import { trim } from "@dxos/util";
5
- import * as Skill from "@dxos/compute/Skill";
6
- import { Text } from "@dxos/schema";
7
- //#region src/skills/memory/MemorySkill.ts
8
- var MemorySkill_exports = /* @__PURE__ */ __exportAll({
9
- Handlers: () => MemoryHandlers,
10
- Operations: () => definitions_exports,
11
- key: () => key,
12
- make: () => make
13
- });
14
- var key = "org.dxos.skill.memory";
15
- var instructions = trim`
16
- You have the ability to save and recall memories.
17
- Memories are persistent knowledge units stored in the database.
18
- Use memories to remember facts, user preferences, decisions, and any knowledge that should persist across conversations.
19
-
20
- When the user asks you to remember something, save it as a memory with a descriptive title.
21
- When the user asks about something you might have stored, query your memories first.
22
- You can also delete outdated or incorrect memories.
23
- `;
24
- var make = () => Skill.make({
25
- key,
26
- name: "Memory",
27
- description: "Persistent memory storage and retrieval.",
28
- agentCanEnable: true,
29
- instructions: { source: Ref.make(Text.make({ content: instructions })) },
30
- tools: Skill.toolDefinitions({ operations: [
31
- SaveMemory,
32
- QueryMemories,
33
- DeleteMemory
34
- ] })
35
- });
36
- //#endregion
37
- export { MemoryHandlers as Handlers, definitions_exports as Operations, key, make, MemorySkill_exports as t };
38
-
39
- //# sourceMappingURL=MemorySkill.mjs.map
1
+ import { a as definitions_exports, t as MemoryHandlers } from "../chunk-operations4.mjs";
2
+ import { n as key, r as make } from "../chunk-MemorySkill.mjs";
3
+ export { MemoryHandlers as Handlers, definitions_exports as Operations, key, make };
@@ -1,47 +1,3 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- import { a as definitions_exports, i as UpdateTasks, n as AskQuestion, r as PlanReminder, t as PlanningHandlers } from "../chunk-operations3.mjs";
3
- import { Ref } from "@dxos/echo";
4
- import { trim } from "@dxos/util";
5
- import * as Skill from "@dxos/compute/Skill";
6
- import * as Template from "@dxos/compute/Template";
7
- import * as Operation from "@dxos/compute/Operation";
8
- //#region src/skills/planning/PlanningSkill.ts
9
- var PlanningSkill_exports = /* @__PURE__ */ __exportAll({
10
- Handlers: () => PlanningHandlers,
11
- Operations: () => definitions_exports,
12
- key: () => key,
13
- make: () => make
14
- });
15
- var key = "org.dxos.skill.planning";
16
- var make = () => Skill.make({
17
- key,
18
- name: "Planning",
19
- description: "Plans and tracks complex tasks using artifacts.",
20
- agentCanEnable: true,
21
- tools: Skill.toolDefinitions({ operations: [UpdateTasks, AskQuestion] }),
22
- instructions: Template.make({ source: trim`
23
- {{! Planning }}
24
-
25
- The conversation has a durable, numbered task checklist that you cannot see directly.
26
- Before answering any question about tasks — or acting on a task referenced by number or
27
- title — read the current checklist first (call the get-agent-context tool when available;
28
- otherwise the update-tasks result echoes it). Ordinals like "task 1" refer to that
29
- numbered list, and each line carries the task's ref.
30
- Track your work with update-tasks: address an existing task by its ref, set create only to
31
- make a new one, keep exactly one task started at a time, and mark a task done as soon as it
32
- completes. Starting a task assigns it to you.
33
- Do only what the user asked: if they name a specific task or subset, complete exactly
34
- that and stop — never start unrequested tasks on your own.
35
- A task that already exists elsewhere (a project's task, a sub-task of one you were given) is
36
- worked through its own ref — never recreate it with create. assign puts it on this checklist
37
- and makes you its assignee; unassign takes it off and clears the assignee, never deleting it.
38
- ` }),
39
- hooks: [{
40
- spec: { _tag: "end-request" },
41
- function: Ref.make(Operation.serialize(PlanReminder))
42
- }]
43
- });
44
- //#endregion
45
- export { PlanningHandlers as Handlers, definitions_exports as Operations, key, make, PlanningSkill_exports as t };
46
-
47
- //# sourceMappingURL=PlanningSkill.mjs.map
1
+ import { a as definitions_exports, t as PlanningHandlers } from "../chunk-operations3.mjs";
2
+ import { n as key, r as make } from "../chunk-PlanningSkill.mjs";
3
+ export { PlanningHandlers as Handlers, definitions_exports as Operations, key, make };
@@ -1,47 +1,3 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- import { i as definitions_exports, n as EnableSkills, r as QuerySkills, t as SkillManagerHandlers } from "../chunk-operations2.mjs";
3
- import { DXN } from "@dxos/keys";
4
- import { trim } from "@dxos/util";
5
- import * as Skill from "@dxos/compute/Skill";
6
- import * as Template from "@dxos/compute/Template";
7
- //#region src/skills/skill-manager/SkillManagerSkill.ts
8
- var SkillManagerSkill_exports = /* @__PURE__ */ __exportAll({
9
- Handlers: () => SkillManagerHandlers,
10
- Operations: () => definitions_exports,
11
- key: () => key,
12
- make: () => make
13
- });
14
- var key = "org.dxos.skill.skillManager";
15
- var make = () => Skill.make({
16
- key,
17
- name: "Skill Manager",
18
- description: "Query and enable skills in the current conversation.",
19
- instructions: Template.make({
20
- source: trim`
21
- The list below is the current set of available skills — it is rendered fresh into this prompt,
22
- so do NOT call [query-skills] to obtain it. Call [enable-skills] directly with the keys you
23
- need; only skills marked [agent-can-enable] can be enabled by the agent.
24
- Reach for [query-skills] only to re-read the list after something has changed it.
25
-
26
- <available_skills>
27
- {{#each skills}}
28
- - {{key}} "{{name}}"{{#if description}} -- {{description}}{{/if}}{{#if agentCanEnable}} [agent-can-enable]{{/if}}
29
- {{/each}}
30
- </available_skills>
31
-
32
- NOTE: A skill's tools only appear once it is enabled. Skills already enabled in this
33
- conversation expose their tools to you directly — do not re-enable a skill whose tools you
34
- can already see.
35
- `,
36
- inputs: [{
37
- name: "skills",
38
- kind: "operation",
39
- operation: DXN.getName(QuerySkills.meta.key)
40
- }]
41
- }),
42
- tools: Skill.toolDefinitions({ operations: [QuerySkills, EnableSkills] })
43
- });
44
- //#endregion
45
- export { SkillManagerHandlers as Handlers, definitions_exports as Operations, key, make, SkillManagerSkill_exports as t };
46
-
47
- //# sourceMappingURL=SkillManagerSkill.mjs.map
1
+ import { i as definitions_exports, t as SkillManagerHandlers } from "../chunk-operations2.mjs";
2
+ import { n as key, r as make } from "../chunk-SkillManagerSkill.mjs";
3
+ export { SkillManagerHandlers as Handlers, definitions_exports as Operations, key, make };
@@ -1,41 +1 @@
1
- import { t as __exportAll } from "../chunk-rolldown-runtime.mjs";
2
- //#region src/commands.ts
3
- /**
4
- * `1 3`, `1,3`, or titles. Quoting is what makes a title unambiguous — a title is often several
5
- * words (`"Draft release notes"`) and may itself be a number (`"123"`), neither of which a bare
6
- * whitespace split can express.
7
- */
8
- var parseTaskSelectors = (args) => {
9
- const selectors = [];
10
- const tokens = args.matchAll(/"([^"]*)"|'([^']*)'|([^\s,]+)/g);
11
- for (const [, doubleQuoted, singleQuoted, bare] of tokens) {
12
- const quoted = doubleQuoted ?? singleQuoted;
13
- if (quoted !== void 0) {
14
- if (quoted.length > 0) selectors.push({ title: quoted });
15
- } else if (bare !== void 0) selectors.push(/^\d+$/.test(bare) ? { ordinal: Number(bare) } : { title: bare });
16
- }
17
- return selectors;
18
- };
19
- /**
20
- * Resolves a prompt into one of `commands`: `undefined` when the text is not a known command (it
21
- * falls through to the model).
22
- */
23
- var resolveSlashCommand = (text, commands) => {
24
- if (!text.startsWith("/")) return;
25
- const [name, ...rest] = text.split(/\s+/);
26
- const command = commands.find((candidate) => candidate.command === name);
27
- return command ? {
28
- command,
29
- args: rest.join(" ")
30
- } : void 0;
31
- };
32
- //#endregion
33
- //#region src/SlashCommand.ts
34
- var SlashCommand_exports = /* @__PURE__ */ __exportAll({
35
- parseTaskSelectors: () => parseTaskSelectors,
36
- resolveSlashCommand: () => resolveSlashCommand
37
- });
38
- //#endregion
39
- export { parseTaskSelectors, resolveSlashCommand, SlashCommand_exports as t };
40
-
41
- //# sourceMappingURL=SlashCommand.mjs.map
1
+ export { n as parseTaskSelectors, r as resolveSlashCommand } from "../chunk-SlashCommand.mjs";
@@ -1,2 +1 @@
1
- import { a as WebSearchToolkit, c as definitions_exports, i as WebSearchHandlers, n as key, o as WebSearchToolkitOpaque, r as make } from "../chunk-WebSearchSkill.mjs";
2
- export { WebSearchHandlers as Handlers, definitions_exports as Operations, WebSearchToolkit as Toolkit, WebSearchToolkitOpaque as ToolkitOpaque, key, make };
1
+ export { i as Handlers, c as Operations, a as Toolkit, o as ToolkitOpaque, n as key, r as make } from "../chunk-WebSearchSkill.mjs";
@@ -1,7 +1,7 @@
1
1
  import { t as DelegationSkillHandlers } from "./chunk-operations.mjs";
2
2
  import { t as SkillManagerHandlers } from "./chunk-operations2.mjs";
3
3
  import { t as PlanningHandlers } from "./chunk-operations3.mjs";
4
- import { Memory } from "./Memory.mjs";
4
+ import { t as Memory } from "./chunk-Memory.mjs";
5
5
  import { t as MemoryHandlers } from "./chunk-operations4.mjs";
6
6
  import { t as ChatContextHandlers } from "./chunk-operations5.mjs";
7
7
  import { t as AlarmHandlers } from "./chunk-operations6.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"testing.mjs","names":[],"sources":["../../src/skills/testing.ts","../../src/testing/operations.ts","../../src/testing/plugins.tsx"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Arr from 'effect/Array';\nimport * as Effect from 'effect/Effect';\nimport { pipe } from 'effect/Function';\n\nimport { ConsolePrinter } from '@dxos/ai';\nimport { AiRequest, AiSession, GenerationObserver, Harness } from '@dxos/assistant';\nimport * as Skill from '@dxos/compute/Skill';\nimport { Database, Ref } from '@dxos/echo';\nimport { log } from '@dxos/log';\n\nexport type TestStep = Pick<AiSession.RunProps, 'prompt' | 'system'> & {\n test?: () => Promise<void>;\n};\n\n/**\n * Runs the prompt steps, calling the test function after each step.\n */\nexport const runSteps: (\n session: AiSession.Session,\n steps: TestStep[],\n) => Effect.Effect<void, AiRequest.RunError, AiRequest.RunRequirements> = Effect.fn(function* (\n session: AiSession.Session,\n steps: TestStep[],\n) {\n for (const { test, ...props } of steps) {\n yield* session.createRequest({\n ...props,\n observer: GenerationObserver.fromPrinter(new ConsolePrinter({ mode: 'json' })),\n });\n const messages = yield* Effect.promise(() => session.getHistory());\n log.info('conversation', { messages });\n if (test) {\n yield* Effect.promise(() => test());\n }\n }\n});\n\n/**\n * Binds skills from the skill definitions.\n */\n// TODO(dmaretskyi): Potentially the agent will auto-bind the skills.\nexport const addSkills = Effect.fnUntraced(function* (skills: Skill.Definition[]) {\n const skillRefs = yield* pipe(\n skills,\n Arr.map((skill) => skill.make()),\n Effect.forEach(Database.add),\n Effect.map(Arr.map(Ref.make)),\n );\n yield* Harness.bindContext({ skills: skillRefs });\n});\n","//\n// Copyright 2026 DXOS.org\n//\n\nimport { AssistantTestLayerWithTriggers } from '@dxos/agent-runtime/testing';\nimport { AiContext } from '@dxos/assistant';\nimport * as Agent from '@dxos/assistant/Agent';\nimport * as Chat from '@dxos/assistant/Chat';\nimport { SpaceProperties } from '@dxos/client-protocol';\nimport * as Instructions from '@dxos/compute/Instructions';\nimport * as OperationHandlerSet from '@dxos/compute/OperationHandlerSet';\nimport * as Routine from '@dxos/compute/Routine';\nimport * as Skill from '@dxos/compute/Skill';\nimport * as Trigger from '@dxos/compute/Trigger';\nimport { Collection, Feed, Tag } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { Employer, Organization, Outline, Person, Task, TaskSet } from '@dxos/types';\n\nimport { AgentHandlers } from '../operations/index.ts';\nimport { AgentSkillHandlers } from '../skills/agent/operations/index.ts';\nimport { AlarmHandlers } from '../skills/alarm/operations/index.ts';\nimport { ChatContextHandlers } from '../skills/chat-context/operations/index.ts';\nimport { DelegationSkillHandlers } from '../skills/delegation/operations/index.ts';\nimport { MemoryHandlers } from '../skills/memory/operations/index.ts';\nimport { PlanningHandlers } from '../skills/planning/operations/index.ts';\nimport { SkillManagerHandlers } from '../skills/skill-manager/operations/index.ts';\nimport * as Memory from '../types/Memory.ts';\n\n/**\n * Shared layer for operation tests: every handler in the package plus the types those handlers\n * touch, with no language model. Defined once so a `.test.ts` per handler does not restate it —\n * handler sets are lazy, so registering all of them costs nothing until one is invoked.\n */\nexport const OperationTestLayer = AssistantTestLayerWithTriggers({\n operationHandlers: OperationHandlerSet.merge(\n AgentHandlers,\n AgentSkillHandlers,\n AlarmHandlers,\n ChatContextHandlers,\n DelegationSkillHandlers,\n MemoryHandlers,\n PlanningHandlers,\n SkillManagerHandlers,\n ),\n types: [\n Agent.Agent,\n AiContext.Binding,\n Chat.Chat,\n Collection.Collection,\n Employer.Employer,\n Feed.Feed,\n Instructions.Instructions,\n Memory.Memory,\n Organization.Organization,\n Person.Person,\n Outline.Outline,\n Routine.Routine,\n Task.Task,\n TaskSet.TaskSet,\n Skill.Skill,\n SpaceProperties,\n Tag.Tag,\n Text.Text,\n Trigger.Trigger,\n ],\n disableLlmMemoization: true,\n});\n","//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport React from 'react';\n\nimport * as Capabilities from '@dxos/app-framework/Capabilities';\nimport * as Capability from '@dxos/app-framework/Capability';\nimport * as Surface from '@dxos/app-framework/Surface';\nimport * as AppSurface from '@dxos/app-toolkit/AppSurface';\nimport { DXN, Format, type Obj, Type } from '@dxos/echo';\nimport { Syntax } from '@dxos/react-ui-syntax-highlighter';\nimport * as Card from '@dxos/react-ui/Card';\nimport * as Position from '@dxos/util/Position';\n\nexport const MapSchema = Schema.Struct({\n coordinates: Format.GeoPoint,\n}).pipe(Type.makeObject(DXN.make('com.example.type.map', '0.1.0')));\n\nexport type MapSchema = Type.InstanceType<typeof MapSchema>;\n\n// TODO(burdon): Move to ECHO def.\nexport type ArtifactsContext = {\n items: Obj.Unknown[];\n getArtifacts: () => Obj.Unknown[];\n addArtifact: (artifact: Obj.Unknown) => void;\n};\n\ndeclare global {\n interface ToolContextExtensions {\n artifacts?: ArtifactsContext;\n }\n}\n\nexport const capabilities: Capability.AnyContribution[] = [\n Capability.contribute(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'pluginDefault',\n filter: Surface.makeFilter(AppSurface.CardContent),\n position: Position.last,\n component: ({ data }) => (\n <Card.Body>\n <Syntax.Root data={data}>\n <Syntax.Content>\n <Syntax.Filter />\n <Syntax.Viewport>\n <Syntax.Code />\n </Syntax.Viewport>\n </Syntax.Content>\n </Syntax.Root>\n </Card.Body>\n ),\n }),\n ),\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAa,WAG6D,OAAO,GAAG,WAClF,SACA,OACA;CACA,KAAK,MAAM,EAAE,MAAM,GAAG,WAAW,OAAO;EACtC,OAAO,QAAQ,cAAc;GAC3B,GAAG;GACH,UAAU,mBAAmB,YAAY,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC,CAAC;EAC/E,CAAC;EACD,MAAM,WAAW,OAAO,OAAO,cAAc,QAAQ,WAAW,CAAC;EACjE,IAAI,KAAK,gBAAgB,EAAE,SAAS,GAAA;GAAA,YAAA;GAAA,GAAA;GAAA,GAAA;GAAA,GAAA;EAAA,CAAC;EACrC,IAAI,MACF,OAAO,OAAO,cAAc,KAAK,CAAC;CAEtC;AACF,CAAC;;;;AAMD,IAAa,YAAY,OAAO,WAAW,WAAW,QAA4B;CAChF,MAAM,YAAY,OAAO,KACvB,QACA,IAAI,KAAK,UAAU,MAAM,KAAK,CAAC,GAC/B,OAAO,QAAQ,SAAS,GAAG,GAC3B,OAAO,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,CAC9B;CACA,OAAO,QAAQ,YAAY,EAAE,QAAQ,UAAU,CAAC;AAClD,CAAC;;;;;;;;ACpBD,IAAa,qBAAqB,+BAA+B;CAC/D,mBAAmB,oBAAoB,MACrC,eACA,oBACA,eACA,qBACA,yBACA,gBACA,kBACA,oBACF;CACA,OAAO;EACL,MAAM;EACN,UAAU;EACV,KAAK;EACL,WAAW;EACX,SAAS;EACT,KAAK;EACL,aAAa;EACb;EACA,aAAa;EACb,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,KAAK;EACL,QAAQ;EACR,MAAM;EACN;EACA,IAAI;EACJ,KAAK;EACL,QAAQ;CACV;CACA,uBAAuB;AACzB,CAAC;;;AClDD,IAAa,YAAY,OAAO,OAAO,EACrC,aAAa,OAAO,SACtB,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,IAAI,KAAK,wBAAwB,OAAO,CAAC,CAAC;AAiBlE,IAAa,eAA6C,CACxD,WAAW,WACT,aAAa,cACb,QAAQ,OAAO;CACb,IAAI;CACJ,QAAQ,QAAQ,WAAW,WAAW,WAAW;CACjD,UAAU,SAAS;CACnB,YAAY,EAAE,WACZ,oBAAC,KAAK,MAAN,EAAA,UACE,oBAAC,OAAO,MAAR;EAAmB;EACjB,UAAA,qBAAC,OAAO,SAAR,EAAA,UAAA,CACE,oBAAC,OAAO,QAAR,CAAgB,CAAA,GAChB,oBAAC,OAAO,UAAR,EAAA,UACE,oBAAC,OAAO,MAAR,CAAc,CAAA,EACC,CAAA,CACH,EAAA,CAAA;CACL,CAAA,EACJ,CAAA;AAEf,CAAC,CACH,CACF"}
1
+ {"version":3,"file":"testing.mjs","names":["Memory.Memory"],"sources":["../../src/skills/testing.ts","../../src/testing/operations.ts","../../src/testing/plugins.tsx"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Arr from 'effect/Array';\nimport * as Effect from 'effect/Effect';\nimport { pipe } from 'effect/Function';\n\nimport { ConsolePrinter } from '@dxos/ai';\nimport { AiRequest, AiSession, GenerationObserver, Harness } from '@dxos/assistant';\nimport * as Skill from '@dxos/compute/Skill';\nimport { Database, Ref } from '@dxos/echo';\nimport { log } from '@dxos/log';\n\nexport type TestStep = Pick<AiSession.RunProps, 'prompt' | 'system'> & {\n test?: () => Promise<void>;\n};\n\n/**\n * Runs the prompt steps, calling the test function after each step.\n */\nexport const runSteps: (\n session: AiSession.Session,\n steps: TestStep[],\n) => Effect.Effect<void, AiRequest.RunError, AiRequest.RunRequirements> = Effect.fn(function* (\n session: AiSession.Session,\n steps: TestStep[],\n) {\n for (const { test, ...props } of steps) {\n yield* session.createRequest({\n ...props,\n observer: GenerationObserver.fromPrinter(new ConsolePrinter({ mode: 'json' })),\n });\n const messages = yield* Effect.promise(() => session.getHistory());\n log.info('conversation', { messages });\n if (test) {\n yield* Effect.promise(() => test());\n }\n }\n});\n\n/**\n * Binds skills from the skill definitions.\n */\n// TODO(dmaretskyi): Potentially the agent will auto-bind the skills.\nexport const addSkills = Effect.fnUntraced(function* (skills: Skill.Definition[]) {\n const skillRefs = yield* pipe(\n skills,\n Arr.map((skill) => skill.make()),\n Effect.forEach(Database.add),\n Effect.map(Arr.map(Ref.make)),\n );\n yield* Harness.bindContext({ skills: skillRefs });\n});\n","//\n// Copyright 2026 DXOS.org\n//\n\nimport { AssistantTestLayerWithTriggers } from '@dxos/agent-runtime/testing';\nimport { AiContext } from '@dxos/assistant';\nimport * as Agent from '@dxos/assistant/Agent';\nimport * as Chat from '@dxos/assistant/Chat';\nimport { SpaceProperties } from '@dxos/client-protocol';\nimport * as Instructions from '@dxos/compute/Instructions';\nimport * as OperationHandlerSet from '@dxos/compute/OperationHandlerSet';\nimport * as Routine from '@dxos/compute/Routine';\nimport * as Skill from '@dxos/compute/Skill';\nimport * as Trigger from '@dxos/compute/Trigger';\nimport { Collection, Feed, Tag } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { Employer, Organization, Outline, Person, Task, TaskSet } from '@dxos/types';\n\nimport { AgentHandlers } from '../operations/index.ts';\nimport { AgentSkillHandlers } from '../skills/agent/operations/index.ts';\nimport { AlarmHandlers } from '../skills/alarm/operations/index.ts';\nimport { ChatContextHandlers } from '../skills/chat-context/operations/index.ts';\nimport { DelegationSkillHandlers } from '../skills/delegation/operations/index.ts';\nimport { MemoryHandlers } from '../skills/memory/operations/index.ts';\nimport { PlanningHandlers } from '../skills/planning/operations/index.ts';\nimport { SkillManagerHandlers } from '../skills/skill-manager/operations/index.ts';\nimport * as Memory from '../types/Memory.ts';\n\n/**\n * Shared layer for operation tests: every handler in the package plus the types those handlers\n * touch, with no language model. Defined once so a `.test.ts` per handler does not restate it —\n * handler sets are lazy, so registering all of them costs nothing until one is invoked.\n */\nexport const OperationTestLayer = AssistantTestLayerWithTriggers({\n operationHandlers: OperationHandlerSet.merge(\n AgentHandlers,\n AgentSkillHandlers,\n AlarmHandlers,\n ChatContextHandlers,\n DelegationSkillHandlers,\n MemoryHandlers,\n PlanningHandlers,\n SkillManagerHandlers,\n ),\n types: [\n Agent.Agent,\n AiContext.Binding,\n Chat.Chat,\n Collection.Collection,\n Employer.Employer,\n Feed.Feed,\n Instructions.Instructions,\n Memory.Memory,\n Organization.Organization,\n Person.Person,\n Outline.Outline,\n Routine.Routine,\n Task.Task,\n TaskSet.TaskSet,\n Skill.Skill,\n SpaceProperties,\n Tag.Tag,\n Text.Text,\n Trigger.Trigger,\n ],\n disableLlmMemoization: true,\n});\n","//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport React from 'react';\n\nimport * as Capabilities from '@dxos/app-framework/Capabilities';\nimport * as Capability from '@dxos/app-framework/Capability';\nimport * as Surface from '@dxos/app-framework/Surface';\nimport * as AppSurface from '@dxos/app-toolkit/AppSurface';\nimport { DXN, Format, type Obj, Type } from '@dxos/echo';\nimport { Syntax } from '@dxos/react-ui-syntax-highlighter';\nimport * as Card from '@dxos/react-ui/Card';\nimport * as Position from '@dxos/util/Position';\n\nexport const MapSchema = Schema.Struct({\n coordinates: Format.GeoPoint,\n}).pipe(Type.makeObject(DXN.make('com.example.type.map', '0.1.0')));\n\nexport type MapSchema = Type.InstanceType<typeof MapSchema>;\n\n// TODO(burdon): Move to ECHO def.\nexport type ArtifactsContext = {\n items: Obj.Unknown[];\n getArtifacts: () => Obj.Unknown[];\n addArtifact: (artifact: Obj.Unknown) => void;\n};\n\ndeclare global {\n interface ToolContextExtensions {\n artifacts?: ArtifactsContext;\n }\n}\n\nexport const capabilities: Capability.AnyContribution[] = [\n Capability.contribute(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'pluginDefault',\n filter: Surface.makeFilter(AppSurface.CardContent),\n position: Position.last,\n component: ({ data }) => (\n <Card.Body>\n <Syntax.Root data={data}>\n <Syntax.Content>\n <Syntax.Filter />\n <Syntax.Viewport>\n <Syntax.Code />\n </Syntax.Viewport>\n </Syntax.Content>\n </Syntax.Root>\n </Card.Body>\n ),\n }),\n ),\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAa,WAG6D,OAAO,GAAG,WAClF,SACA,OACA;CACA,KAAK,MAAM,EAAE,MAAM,GAAG,WAAW,OAAO;EACtC,OAAO,QAAQ,cAAc;GAC3B,GAAG;GACH,UAAU,mBAAmB,YAAY,IAAI,eAAe,EAAE,MAAM,OAAO,CAAC,CAAC;EAC/E,CAAC;EACD,MAAM,WAAW,OAAO,OAAO,cAAc,QAAQ,WAAW,CAAC;EACjE,IAAI,KAAK,gBAAgB,EAAE,SAAS,GAAA;GAAA,YAAA;GAAA,GAAA;GAAA,GAAA;GAAA,GAAA;EAAA,CAAC;EACrC,IAAI,MACF,OAAO,OAAO,cAAc,KAAK,CAAC;CAEtC;AACF,CAAC;;;;AAMD,IAAa,YAAY,OAAO,WAAW,WAAW,QAA4B;CAChF,MAAM,YAAY,OAAO,KACvB,QACA,IAAI,KAAK,UAAU,MAAM,KAAK,CAAC,GAC/B,OAAO,QAAQ,SAAS,GAAG,GAC3B,OAAO,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,CAC9B;CACA,OAAO,QAAQ,YAAY,EAAE,QAAQ,UAAU,CAAC;AAClD,CAAC;;;;;;;;ACpBD,IAAa,qBAAqB,+BAA+B;CAC/D,mBAAmB,oBAAoB,MACrC,eACA,oBACA,eACA,qBACA,yBACA,gBACA,kBACA,oBACF;CACA,OAAO;EACL,MAAM;EACN,UAAU;EACV,KAAK;EACL,WAAW;EACX,SAAS;EACT,KAAK;EACL,aAAa;EACbA;EACA,aAAa;EACb,OAAO;EACP,QAAQ;EACR,QAAQ;EACR,KAAK;EACL,QAAQ;EACR,MAAM;EACN;EACA,IAAI;EACJ,KAAK;EACL,QAAQ;CACV;CACA,uBAAuB;AACzB,CAAC;;;AClDD,IAAa,YAAY,OAAO,OAAO,EACrC,aAAa,OAAO,SACtB,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,IAAI,KAAK,wBAAwB,OAAO,CAAC,CAAC;AAiBlE,IAAa,eAA6C,CACxD,WAAW,WACT,aAAa,cACb,QAAQ,OAAO;CACb,IAAI;CACJ,QAAQ,QAAQ,WAAW,WAAW,WAAW;CACjD,UAAU,SAAS;CACnB,YAAY,EAAE,WACZ,oBAAC,KAAK,MAAN,EAAA,UACE,oBAAC,OAAO,MAAR;EAAmB;EACjB,UAAA,qBAAC,OAAO,SAAR,EAAA,UAAA,CACE,oBAAC,OAAO,QAAR,CAAgB,CAAA,GAChB,oBAAC,OAAO,UAAR,EAAA,UACE,oBAAC,OAAO,MAAR,CAAc,CAAA,EACC,CAAA,CACH,EAAA,CAAA;CACL,CAAA,EACJ,CAAA;AAEf,CAAC,CACH,CACF"}
@@ -16,6 +16,7 @@ export declare const Relay: Operation.Definition<{
16
16
  } | {
17
17
  readonly feed: import("@dxos/echo/internal").Ref<import("@dxos/echo/Feed").Feed & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
18
18
  readonly item: any;
19
+ readonly items?: readonly any[] | undefined;
19
20
  readonly cursor: string;
20
21
  } | {
21
22
  readonly data?: {
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/skills/agent/operations/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAO,MAAM,YAAY,CAAC;AAGhD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAkBhB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;6CAerB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;0BA8BzB,CAAC"}
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/skills/agent/operations/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAO,MAAM,YAAY,CAAC;AAGhD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAkBhB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;6CAerB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;0BA8BzB,CAAC"}