@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.
- package/dist/lib/AgentOperation.mjs +1 -55
- package/dist/lib/Memory.mjs +1 -19
- package/dist/lib/chunk-AgentOperation.mjs +55 -0
- package/dist/lib/chunk-AgentOperation.mjs.map +1 -0
- package/dist/lib/chunk-AgentOperationHandlerSet.mjs +8 -0
- package/dist/lib/chunk-AgentOperationHandlerSet.mjs.map +1 -0
- package/dist/lib/chunk-AgentSkill.mjs +46 -0
- package/dist/lib/chunk-AgentSkill.mjs.map +1 -0
- package/dist/lib/chunk-AlarmSkill.mjs +31 -0
- package/dist/lib/chunk-AlarmSkill.mjs.map +1 -0
- package/dist/lib/chunk-AutomationSkill.mjs +100 -0
- package/dist/lib/chunk-AutomationSkill.mjs.map +1 -0
- package/dist/lib/chunk-BrowserSkill.mjs +30 -0
- package/dist/lib/chunk-BrowserSkill.mjs.map +1 -0
- package/dist/lib/chunk-ChatContextSkill.mjs +31 -0
- package/dist/lib/chunk-ChatContextSkill.mjs.map +1 -0
- package/dist/lib/chunk-DelegationSkill.mjs +32 -0
- package/dist/lib/chunk-DelegationSkill.mjs.map +1 -0
- package/dist/lib/chunk-DelegationStrategy.mjs +2 -2
- package/dist/lib/chunk-DelegationStrategy.mjs.map +1 -1
- package/dist/lib/chunk-Memory.mjs +19 -0
- package/dist/lib/chunk-Memory.mjs.map +1 -0
- package/dist/lib/chunk-MemorySkill.mjs +39 -0
- package/dist/lib/chunk-MemorySkill.mjs.map +1 -0
- package/dist/lib/chunk-PlanningSkill.mjs +47 -0
- package/dist/lib/chunk-PlanningSkill.mjs.map +1 -0
- package/dist/lib/chunk-SkillManagerSkill.mjs +47 -0
- package/dist/lib/chunk-SkillManagerSkill.mjs.map +1 -0
- package/dist/lib/chunk-SlashCommand.mjs +41 -0
- package/dist/lib/{ns/SlashCommand.mjs.map → chunk-SlashCommand.mjs.map} +1 -1
- package/dist/lib/chunk-WebSearchSkill.mjs.map +1 -1
- package/dist/lib/chunk-operations.mjs.map +1 -1
- package/dist/lib/chunk-operations2.mjs.map +1 -1
- package/dist/lib/chunk-operations3.mjs.map +1 -1
- package/dist/lib/chunk-operations4.mjs +1 -1
- package/dist/lib/chunk-operations4.mjs.map +1 -1
- package/dist/lib/chunk-operations5.mjs.map +1 -1
- package/dist/lib/chunk-operations7.mjs.map +1 -1
- package/dist/lib/chunk-operations8.mjs +1 -1
- package/dist/lib/chunk-query.mjs +1 -1
- package/dist/lib/chunk-query.mjs.map +1 -1
- package/dist/lib/chunk-run-instructions.mjs +1 -1
- package/dist/lib/chunk-run-instructions.mjs.map +1 -1
- package/dist/lib/chunk-save.mjs +1 -1
- package/dist/lib/chunk-save.mjs.map +1 -1
- package/dist/lib/index.mjs +13 -13
- package/dist/lib/ns/AgentOperationHandlerSet.mjs +2 -8
- package/dist/lib/ns/AgentSkill.mjs +2 -45
- package/dist/lib/ns/AlarmSkill.mjs +3 -31
- package/dist/lib/ns/AutomationSkill.mjs +1 -100
- package/dist/lib/ns/BrowserSkill.mjs +1 -30
- package/dist/lib/ns/ChatContextSkill.mjs +3 -31
- package/dist/lib/ns/DelegationSkill.mjs +3 -32
- package/dist/lib/ns/DelegationStrategy.mjs +1 -2
- package/dist/lib/ns/MemorySkill.mjs +3 -39
- package/dist/lib/ns/PlanningSkill.mjs +3 -47
- package/dist/lib/ns/SkillManagerSkill.mjs +3 -47
- package/dist/lib/ns/SlashCommand.mjs +1 -41
- package/dist/lib/ns/WebSearchSkill.mjs +1 -2
- package/dist/lib/testing.mjs +1 -1
- package/dist/lib/testing.mjs.map +1 -1
- package/dist/types/src/skills/agent/operations/definitions.d.ts +1 -0
- package/dist/types/src/skills/agent/operations/definitions.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +28 -28
- package/dist/lib/AgentOperation.mjs.map +0 -1
- package/dist/lib/Memory.mjs.map +0 -1
- package/dist/lib/ns/AgentOperationHandlerSet.mjs.map +0 -1
- package/dist/lib/ns/AgentSkill.mjs.map +0 -1
- package/dist/lib/ns/AlarmSkill.mjs.map +0 -1
- package/dist/lib/ns/AutomationSkill.mjs.map +0 -1
- package/dist/lib/ns/BrowserSkill.mjs.map +0 -1
- package/dist/lib/ns/ChatContextSkill.mjs.map +0 -1
- package/dist/lib/ns/DelegationSkill.mjs.map +0 -1
- package/dist/lib/ns/MemorySkill.mjs.map +0 -1
- package/dist/lib/ns/PlanningSkill.mjs.map +0 -1
- package/dist/lib/ns/SkillManagerSkill.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/assistant-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Assistant toolkit, definitions, and utilities.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -104,41 +104,41 @@
|
|
|
104
104
|
"src"
|
|
105
105
|
],
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@dxos/agent-runtime": "0.
|
|
108
|
-
"@dxos/ai": "0.
|
|
109
|
-
"@dxos/app-toolkit": "0.
|
|
110
|
-
"@dxos/assistant": "0.
|
|
111
|
-
"@dxos/client-protocol": "0.
|
|
112
|
-
"@dxos/compute": "0.
|
|
113
|
-
"@dxos/compute-runtime": "0.
|
|
114
|
-
"@dxos/echo": "0.
|
|
115
|
-
"@dxos/edge-client": "0.
|
|
116
|
-
"@dxos/effect": "0.
|
|
117
|
-
"@dxos/errors": "0.
|
|
118
|
-
"@dxos/invariant": "0.
|
|
119
|
-
"@dxos/keys": "0.
|
|
120
|
-
"@dxos/log": "0.
|
|
121
|
-
"@dxos/protocols": "0.
|
|
122
|
-
"@dxos/react-ui": "0.
|
|
123
|
-
"@dxos/schema": "0.
|
|
124
|
-
"@dxos/types": "0.
|
|
125
|
-
"@dxos/util": "0.
|
|
107
|
+
"@dxos/agent-runtime": "0.16.0",
|
|
108
|
+
"@dxos/ai": "0.16.0",
|
|
109
|
+
"@dxos/app-toolkit": "0.16.0",
|
|
110
|
+
"@dxos/assistant": "0.16.0",
|
|
111
|
+
"@dxos/client-protocol": "0.16.0",
|
|
112
|
+
"@dxos/compute": "0.16.0",
|
|
113
|
+
"@dxos/compute-runtime": "0.16.0",
|
|
114
|
+
"@dxos/echo": "0.16.0",
|
|
115
|
+
"@dxos/edge-client": "0.16.0",
|
|
116
|
+
"@dxos/effect": "0.16.0",
|
|
117
|
+
"@dxos/errors": "0.16.0",
|
|
118
|
+
"@dxos/invariant": "0.16.0",
|
|
119
|
+
"@dxos/keys": "0.16.0",
|
|
120
|
+
"@dxos/log": "0.16.0",
|
|
121
|
+
"@dxos/protocols": "0.16.0",
|
|
122
|
+
"@dxos/react-ui": "0.16.0",
|
|
123
|
+
"@dxos/schema": "0.16.0",
|
|
124
|
+
"@dxos/types": "0.16.0",
|
|
125
|
+
"@dxos/util": "0.16.0"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"effect": "4.0.
|
|
128
|
+
"effect": "4.0.4",
|
|
129
129
|
"react": "~19.2.7",
|
|
130
130
|
"react-dom": "~19.2.7",
|
|
131
|
-
"@dxos/app-framework": "0.
|
|
132
|
-
"@dxos/client-protocol": "0.
|
|
133
|
-
"@dxos/plugin-markdown": "0.
|
|
134
|
-
"@dxos/react-ui-syntax-highlighter": "0.
|
|
135
|
-
"@dxos/ui-theme": "0.
|
|
131
|
+
"@dxos/app-framework": "0.16.0",
|
|
132
|
+
"@dxos/client-protocol": "0.16.0",
|
|
133
|
+
"@dxos/plugin-markdown": "0.16.0",
|
|
134
|
+
"@dxos/react-ui-syntax-highlighter": "0.16.0",
|
|
135
|
+
"@dxos/ui-theme": "0.16.0"
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {
|
|
138
|
-
"effect": "4.0.
|
|
138
|
+
"effect": "4.0.4",
|
|
139
139
|
"react": "~19.2.7",
|
|
140
140
|
"react-dom": "~19.2.7",
|
|
141
|
-
"@dxos/ui-theme": "^0.
|
|
141
|
+
"@dxos/ui-theme": "^0.16.0"
|
|
142
142
|
},
|
|
143
143
|
"publishConfig": {
|
|
144
144
|
"access": "public"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentOperation.mjs","names":[],"sources":["../../src/types/AgentOperation.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, OpaqueToolkit } from '@dxos/ai';\nimport * as Chat from '@dxos/assistant/Chat';\nimport * as Instructions from '@dxos/compute/Instructions';\nimport * as Operation from '@dxos/compute/Operation';\nimport * as Trace from '@dxos/compute/Trace';\nimport { Database, Feed, Ref, Registry } from '@dxos/echo';\nimport { DXN } from '@dxos/keys';\nimport { Text } from '@dxos/schema';\n\nexport const RunInstructions = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistantToolkit.runInstructions'),\n name: 'Run Instructions',\n description: 'Agentic worker that executes a provided prompt using skills and tools.',\n icon: 'ph--brain--regular',\n },\n input: Schema.Struct({\n instructions: Ref.Ref(Instructions.Instructions),\n\n /**\n * Input object or data.\n * References get auto-resolved.\n */\n input: Schema.Any.pipe(Schema.annotate({ title: 'Input' })),\n\n /**\n * When set, runs in this chat (history, queue, and bound context). Routine skills and context objects are merged into the conversation for this request.\n */\n chat: Schema.optional(Ref.Ref(Chat.Chat)),\n\n /**\n * @default `dxn:com.anthropic.model.claude-opus-5.default`.\n */\n model: Schema.optional(DXN.Schema),\n\n systemInstructions: Schema.optional(Schema.String).annotate({\n description: 'Additional system instructions to add to the system prompt.',\n }),\n }),\n output: Schema.Any,\n // ECHO types that the handler loads via Database.load(). Declaring them here ensures the\n // runtime registers their schema before remote invocation (e.g. via the EDGE function service).\n types: [Instructions.Instructions, Text.Text, Feed.Feed, Chat.Chat],\n services: [\n AiService.AiService,\n Database.Service,\n OpaqueToolkit.OpaqueToolkitProvider,\n Registry.Service,\n Trace.TraceService,\n ],\n});\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAa,kBAAkB,UAAU,KAAK;CAC5C,MAAM;EACJ,KAAK,MAAI,KAAK,qDAAqD;EACnE,MAAM;EACN,aAAa;EACb,MAAM;CACR;CACA,OAAO,OAAO,OAAO;EACnB,cAAc,IAAI,IAAI,aAAa,YAAY;;;;;EAM/C,OAAO,OAAO,IAAI,KAAK,OAAO,SAAS,EAAE,OAAO,QAAQ,CAAC,CAAC;;;;EAK1D,MAAM,OAAO,SAAS,IAAI,IAAI,KAAK,IAAI,CAAC;;;;EAKxC,OAAO,OAAO,SAAS,MAAI,MAAM;EAEjC,oBAAoB,OAAO,SAAS,OAAO,MAAM,CAAC,CAAC,SAAS,EAC1D,aAAa,8DACf,CAAC;CACH,CAAC;CACD,QAAQ,OAAO;CAGf,OAAO;EAAC,aAAa;EAAc,KAAK;EAAM,KAAK;EAAM,KAAK;CAAI;CAClE,UAAU;EACR,UAAU;EACV,SAAS;EACT,cAAc;EACd,SAAS;EACT,MAAM;CACR;AACF,CAAC"}
|
package/dist/lib/Memory.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Memory.mjs","names":[],"sources":["../../src/types/Memory.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, DXN, Type } from '@dxos/echo';\n\n/**\n * Unit of knowledge generated by an agent.\n */\nexport class Memory extends Type.makeObject<Memory>(DXN.make('org.dxos.type.memory', '0.1.0'))(\n Schema.Struct({\n title: Schema.String,\n content: Schema.String,\n }).pipe(\n Annotation.LabelAnnotation.set(['title']),\n Annotation.IconAnnotation.set({ icon: 'ph--brain--regular', hue: 'pink' }),\n ),\n) {}\n"],"mappings":";;;;;;;;AAaA,IAAa,SAAb,cAA4B,KAAK,WAAmB,IAAI,KAAK,wBAAwB,OAAO,CAAC,CAAC,CAC5F,OAAO,OAAO;CACZ,OAAO,OAAO;CACd,SAAS,OAAO;AAClB,CAAC,CAAC,CAAC,KACD,WAAW,gBAAgB,IAAI,CAAC,OAAO,CAAC,GACxC,WAAW,eAAe,IAAI;CAAE,MAAM;CAAsB,KAAK;AAAO,CAAC,CAC3E,CACF,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentOperationHandlerSet.mjs","names":[],"sources":["../../../src/AgentOperationHandlerSet.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nexport { AgentHandlers as handlers } from './operations/index.ts';\n"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AgentSkill.mjs","names":[],"sources":["../../../src/skills/agent/AgentSkill.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Skill from '@dxos/compute/Skill';\nimport * as Template from '@dxos/compute/Template';\nimport { trim } from '@dxos/util';\n\nexport const key = 'org.dxos.skill.agent';\n\n/**\n * Creates the Agent skill. This is a function to avoid circular dependency issues.\n */\nexport const make = () =>\n Skill.make({\n key,\n name: 'Agent skill',\n instructions: Template.make({\n source: trim`\n You work on an agent. Each agent has instructions - the goal of the agent.\n The agent plan shows the current progress of the agent.\n\n {{#with agent}}\n <agent id=\"{{id}}\" name=\"{{name}}\">\n <instructions>\n {{instructions}}\n </instructions>\n <plan>\n {{plan}}\n </plan>\n </agent>\n {{/with}}\n `,\n inputs: [\n {\n name: 'agent',\n kind: 'operation',\n operation: 'org.dxos.operation.assistantToolkit.getContext',\n },\n ],\n }),\n });\n\nexport { AgentSkillHandlers as Handlers } from './operations/index.ts';\nexport * as Operations from './operations/definitions.ts';\n"],"mappings":";;;;;;;;;;;;AAUA,IAAa,MAAM;;;;AAKnB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,cAAc,SAAS,KAAK;EAC1B,QAAQ,IAAI;;;;;;;;;;;;;;;EAeZ,QAAQ,CACN;GACE,MAAM;GACN,MAAM;GACN,WAAW;EACb,CACF;CACF,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmSkill.mjs","names":[],"sources":["../../../src/skills/alarm/AlarmSkill.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Skill from '@dxos/compute/Skill';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { GetCurrentDate, SetAlarm } from './operations/definitions.ts';\n\nexport const key = 'org.dxos.skill.alarm';\n\nconst instructions = trim`\n You can schedule an alarm to wake yourself up in the future and continue working.\n When the alarm fires you receive a prompt carrying any reminder you set.\n Read the current time before computing an absolute wake time.\n`;\n\nexport const make = () =>\n Skill.make({\n key,\n name: 'Alarm',\n description: 'Schedule a self-wake and inspect the current time.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make({ content: instructions })),\n },\n tools: Skill.toolDefinitions({ operations: [SetAlarm, GetCurrentDate] }),\n });\n\nexport { AlarmHandlers as Handlers } from './operations/index.ts';\nexport * as Operations from './operations/definitions.ts';\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAa,MAAM;AAEnB,IAAM,eAAe,IAAI;;;;;AAMzB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,aAAa;CACb,gBAAgB;CAChB,cAAc,EACZ,QAAQ,IAAI,KAAK,KAAK,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,EACvD;CACA,OAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,UAAU,cAAc,EAAE,CAAC;AACzE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationSkill.mjs","names":[],"sources":["../../../src/skills/automation/AutomationSkill.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Operation from '@dxos/compute/Operation';\nimport * as Skill from '@dxos/compute/Skill';\nimport * as Trigger from '@dxos/compute/Trigger';\nimport { Ref, Type } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nexport const key = 'org.dxos.skill.automation';\n\nconst instructions = trim`\n Automation allows you to automatically initiate actions based on events.\n Automations are configured by creating a trigger that references a function.\n Whenever event that matches the trigger occurs, the function is invoked.\n\n ## Configuration\n\n Triggers are configured by the properties of the Trigger object.\n - enabled: Must be true for trigger to run.\n - spec: Events that the trigger matches.\n - 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.\n - input: The spec of the input data that will be passed to the function.\n\n ## Input patterns\n\n Input to the invoked function is defined by the input property of the Trigger object.\n It's an object that supports constants or template strings.\n\n Example:\n\n {\n item: '{{event.item}}',\n instructions: 'Summarize and perform entity-extraction'\n mailbox: { '/': 'echo://AAA/ZZZ' }\n }\n\n ## Trigger kinds\n\n - Timer: Triggered by a cron schedule.\n - Queue: Subscribes and processes items begginging to end.\n Note: queues are the same as feeds. The queue EID should be of form: echo://<space-id>/<queue-id>.\n - Subscription: Subscribes and processes database items based on a query.\n\n Avoid: email and webhook triggers.\n\n ## Editing triggers\n\n Triggers are represented as objects of type ${Type.getTypename(Trigger.Trigger)}.\n You need access to the Database skill to manipulate triggers.\n Read trigger schema before manipulating triggers.\n Having a Trigger object in the database is enough to setup an automation. \n\n ## Examples\n\n Timer:\n\n {\n \"function\": { \"/\": \"echo://AAA/ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"timer\",\n \"cron\": \"*/5 * * * *\"\n }\n }\n\n Queue:\n\n {\n \"function\": { \"/\": \"echo://AAA/ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"queue\",\n \"queue\": \"echo://XXX/YYY\"\n }\n }\n\n Subscription:\n\n {\n \"function\": { \"/\": \"echo://AAA/ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"subscription\",\n \"query\": { \"ast\": { \"type\": \"select\", \"filter\": { \"type\": \"object\", \"typename\": \"dxn:org.dxos.type.person\" } } }\n }\n }\n`;\n\nexport const make = () =>\n Skill.make({\n key,\n name: 'Triggers',\n description: 'Trigger management and automation.',\n instructions: {\n source: Ref.make(Text.make({ content: instructions })),\n },\n });\n"],"mappings":";;;;;;;;;;;;AAaA,IAAa,MAAM;AAEnB,IAAM,eAAe,IAAI;;;;;;;;;;yBAUA,KAAK,YAAY,UAAU,mBAAmB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA2BzB,KAAK,YAAY,QAAQ,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyClF,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,aAAa;CACb,cAAc,EACZ,QAAQ,IAAI,KAAK,KAAK,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,EACvD;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserSkill.mjs","names":[],"sources":["../../../src/skills/browser/BrowserSkill.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Skill from '@dxos/compute/Skill';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nexport const key = 'org.dxos.skill.browser';\n\nconst instructions = trim`\n You are able to connect and use a virtual browser with persistent session.\n Browser tools are provided via MCP.\n`;\n\nexport const make = () =>\n Skill.make({\n key,\n name: 'Browser',\n description: 'Access to a real isolated browser.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make({ content: instructions })),\n },\n mcpServers: [\n {\n // https://dash.cloudflare.com/950816f3f59b079880a1ae33fb0ec320/workers/services/view/playwright-mcp-example/production\n url: 'https://playwright-mcp-example.dxos.workers.dev/sse',\n protocol: 'sse',\n },\n ],\n });\n"],"mappings":";;;;;;;;;;AAWA,IAAa,MAAM;AAEnB,IAAM,eAAe,IAAI;;;;AAKzB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,aAAa;CACb,gBAAgB;CAChB,cAAc,EACZ,QAAQ,IAAI,KAAK,KAAK,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,EACvD;CACA,YAAY,CACV;EAEE,KAAK;EACL,UAAU;CACZ,CACF;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContextSkill.mjs","names":[],"sources":["../../../src/skills/chat-context/ChatContextSkill.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Skill from '@dxos/compute/Skill';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { ContextAdd, ContextRemove } from './operations/definitions.ts';\n\nexport const key = 'org.dxos.skill.chatContext';\n\nconst instructions = trim`\n You can bind objects into the chat's context so later turns can see them, and unbind them again.\n Reading and writing the objects themselves — including types, relations and tags — is the\n Database skill's job (plugin-space).\n`;\n\nexport const make = () =>\n Skill.make({\n key,\n name: 'Chat context',\n description: \"Bind objects into the chat's context, and unbind them.\",\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make({ content: instructions })),\n },\n tools: Skill.toolDefinitions({\n operations: [ContextAdd, ContextRemove],\n }),\n });\n\nexport { ChatContextHandlers as Handlers } from './operations/index.ts';\nexport * as Operations from './operations/definitions.ts';\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAa,MAAM;AAEnB,IAAM,eAAe,IAAI;;;;;AAMzB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,aAAa;CACb,gBAAgB;CAChB,cAAc,EACZ,QAAQ,IAAI,KAAK,KAAK,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,EACvD;CACA,OAAO,MAAM,gBAAgB,EAC3B,YAAY,CAAC,YAAY,aAAa,EACxC,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DelegationSkill.mjs","names":[],"sources":["../../../src/skills/delegation/DelegationSkill.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Skill from '@dxos/compute/Skill';\nimport * as Template from '@dxos/compute/Template';\nimport { trim } from '@dxos/util';\n\nimport { DelegateTask, DelegateTasks } from './operations/definitions.ts';\n\nexport const key = 'org.dxos.skill.delegation';\n\nexport const make = () =>\n Skill.make({\n key,\n name: 'Delegation',\n description: 'Delegates work to sub-agents and tracks it as plan tasks.',\n tools: Skill.toolDefinitions({ operations: [DelegateTask, DelegateTasks] }),\n instructions: Template.make({\n source: trim`\n {{! Delegation }}\n\n Delegate existing checklist tasks with the delegate-tasks tool, selecting by 1-based\n ordinal or exact title; delegate-task creates a NEW task from a title. When unsure what\n the checklist holds, read it first (get-agent-context when available). Delegated tasks\n run in the background once their dependencies are done, and each result is reported back\n to the conversation.\n `,\n }),\n });\n\nexport { DelegationSkillHandlers as Handlers } from './operations/index.ts';\nexport * as Operations from './operations/definitions.ts';\n"],"mappings":";;;;;;;;;;;;AAYA,IAAa,MAAM;AAEnB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,aAAa;CACb,OAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,cAAc,aAAa,EAAE,CAAC;CAC1E,cAAc,SAAS,KAAK,EAC1B,QAAQ,IAAI;;;;;;;;QASd,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MemorySkill.mjs","names":[],"sources":["../../../src/skills/memory/MemorySkill.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Skill from '@dxos/compute/Skill';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { DeleteMemory, QueryMemories, SaveMemory } from './operations/definitions.ts';\n\nexport const key = 'org.dxos.skill.memory';\n\nconst instructions = trim`\n You have the ability to save and recall memories.\n Memories are persistent knowledge units stored in the database.\n Use memories to remember facts, user preferences, decisions, and any knowledge that should persist across conversations.\n\n When the user asks you to remember something, save it as a memory with a descriptive title.\n When the user asks about something you might have stored, query your memories first.\n You can also delete outdated or incorrect memories.\n`;\n\nexport const make = () =>\n Skill.make({\n key,\n name: 'Memory',\n description: 'Persistent memory storage and retrieval.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make({ content: instructions })),\n },\n tools: Skill.toolDefinitions({ operations: [SaveMemory, QueryMemories, DeleteMemory] }),\n });\n\nexport { MemoryHandlers as Handlers } from './operations/index.ts';\nexport * as Operations from './operations/definitions.ts';\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAa,MAAM;AAEnB,IAAM,eAAe,IAAI;;;;;;;;;AAUzB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,aAAa;CACb,gBAAgB;CAChB,cAAc,EACZ,QAAQ,IAAI,KAAK,KAAK,KAAK,EAAE,SAAS,aAAa,CAAC,CAAC,EACvD;CACA,OAAO,MAAM,gBAAgB,EAAE,YAAY;EAAC;EAAY;EAAe;CAAY,EAAE,CAAC;AACxF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PlanningSkill.mjs","names":[],"sources":["../../../src/skills/planning/PlanningSkill.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Operation from '@dxos/compute/Operation';\nimport * as Skill from '@dxos/compute/Skill';\nimport * as Template from '@dxos/compute/Template';\nimport { Ref } from '@dxos/echo';\nimport { trim } from '@dxos/util';\n\nimport { AskQuestion, PlanReminder, UpdateTasks } from './operations/definitions.ts';\n\nexport const key = 'org.dxos.skill.planning';\n\nexport const make = () =>\n Skill.make({\n key,\n name: 'Planning',\n description: 'Plans and tracks complex tasks using artifacts.',\n agentCanEnable: true,\n tools: Skill.toolDefinitions({ operations: [UpdateTasks, AskQuestion] }),\n instructions: Template.make({\n source: trim`\n {{! Planning }}\n\n The conversation has a durable, numbered task checklist that you cannot see directly.\n Before answering any question about tasks — or acting on a task referenced by number or\n title — read the current checklist first (call the get-agent-context tool when available;\n otherwise the update-tasks result echoes it). Ordinals like \"task 1\" refer to that\n numbered list, and each line carries the task's ref.\n Track your work with update-tasks: address an existing task by its ref, set create only to\n make a new one, keep exactly one task started at a time, and mark a task done as soon as it\n completes. Starting a task assigns it to you.\n Do only what the user asked: if they name a specific task or subset, complete exactly\n that and stop — never start unrequested tasks on your own.\n A task that already exists elsewhere (a project's task, a sub-task of one you were given) is\n worked through its own ref — never recreate it with create. assign puts it on this checklist\n and makes you its assignee; unassign takes it off and clears the assignee, never deleting it.\n `,\n }),\n // At the end of every request, remind the agent to keep working while its plan has open tasks.\n // The reminder enqueues onto the owning host (Tier B), which keeps the process alive.\n hooks: [\n {\n spec: { _tag: 'end-request' },\n function: Ref.make(Operation.serialize(PlanReminder)),\n },\n ],\n });\n\nexport { PlanningHandlers as Handlers } from './operations/index.ts';\nexport * as Operations from './operations/definitions.ts';\n"],"mappings":";;;;;;;;;;;;;;AAcA,IAAa,MAAM;AAEnB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,aAAa;CACb,gBAAgB;CAChB,OAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,aAAa,WAAW,EAAE,CAAC;CACvE,cAAc,SAAS,KAAK,EAC1B,QAAQ,IAAI;;;;;;;;;;;;;;;;QAiBd,CAAC;CAGD,OAAO,CACL;EACE,MAAM,EAAE,MAAM,cAAc;EAC5B,UAAU,IAAI,KAAK,UAAU,UAAU,YAAY,CAAC;CACtD,CACF;AACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SkillManagerSkill.mjs","names":[],"sources":["../../../src/skills/skill-manager/SkillManagerSkill.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Skill from '@dxos/compute/Skill';\nimport * as Template from '@dxos/compute/Template';\nimport { DXN } from '@dxos/keys';\nimport { trim } from '@dxos/util';\n\nimport { EnableSkills, QuerySkills } from './operations/definitions.ts';\n\nexport const key = 'org.dxos.skill.skillManager';\n\nexport const make = () =>\n Skill.make({\n key,\n name: 'Skill Manager',\n description: 'Query and enable skills in the current conversation.',\n instructions: Template.make({\n source: trim`\n The list below is the current set of available skills — it is rendered fresh into this prompt,\n so do NOT call [query-skills] to obtain it. Call [enable-skills] directly with the keys you\n need; only skills marked [agent-can-enable] can be enabled by the agent.\n Reach for [query-skills] only to re-read the list after something has changed it.\n\n <available_skills>\n {{#each skills}}\n - {{key}} \"{{name}}\"{{#if description}} -- {{description}}{{/if}}{{#if agentCanEnable}} [agent-can-enable]{{/if}}\n {{/each}}\n </available_skills>\n\n NOTE: A skill's tools only appear once it is enabled. Skills already enabled in this\n conversation expose their tools to you directly — do not re-enable a skill whose tools you\n can already see.\n `,\n inputs: [\n {\n name: 'skills',\n kind: 'operation',\n operation: DXN.getName(QuerySkills.meta.key),\n },\n ],\n }),\n tools: Skill.toolDefinitions({ operations: [QuerySkills, EnableSkills] }),\n });\n\nexport { SkillManagerHandlers as Handlers } from './operations/index.ts';\nexport * as Operations from './operations/definitions.ts';\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAa,MAAM;AAEnB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,aAAa;CACb,cAAc,SAAS,KAAK;EAC1B,QAAQ,IAAI;;;;;;;;;;;;;;;;EAgBZ,QAAQ,CACN;GACE,MAAM;GACN,MAAM;GACN,WAAW,IAAI,QAAQ,YAAY,KAAK,GAAG;EAC7C,CACF;CACF,CAAC;CACD,OAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,aAAa,YAAY,EAAE,CAAC;AAC1E,CAAC"}
|