xyne-plugin-spaces 0.1.0 → 0.3.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/package.json +2 -2
- package/src/index.ts +16 -0
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xyne-plugin-spaces",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"xyne-plugin": "^1.2.
|
|
10
|
+
"xyne-plugin": "^1.2.10"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"typescript": "^5.9.3"
|
package/src/index.ts
CHANGED
|
@@ -332,6 +332,22 @@ const spacesTools = {
|
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
const plugin: Plugin = async (_input) => ({
|
|
335
|
+
"chat.system.transform": async (
|
|
336
|
+
_input: { sessionID: string; model: unknown },
|
|
337
|
+
output: { system: string[] },
|
|
338
|
+
) => {
|
|
339
|
+
output.system.push([
|
|
340
|
+
"",
|
|
341
|
+
"## Xyne Spaces",
|
|
342
|
+
"You have access to a 'spaces' agent (via the Task tool) that can search the team's Xyne Spaces workspace.",
|
|
343
|
+
"PROACTIVELY delegate to the spaces agent to gather context before making decisions:",
|
|
344
|
+
"- Before architectural decisions, ask spaces agent to search memory for past decisions on the topic",
|
|
345
|
+
"- Before implementing a feature, ask spaces agent for SOPs or patterns the team follows",
|
|
346
|
+
"- When debugging, ask spaces agent for related tickets or known issues",
|
|
347
|
+
"- When you need to understand a ticket or conversation, delegate to the spaces agent",
|
|
348
|
+
"Example: Use the Task tool with subagent_type='spaces' and a prompt like 'Search memory for decisions about authentication patterns'",
|
|
349
|
+
].join("\n"))
|
|
350
|
+
},
|
|
335
351
|
agent: {
|
|
336
352
|
spaces: {
|
|
337
353
|
description:
|