@vibe-forge/workspace-assets 0.10.1 → 0.11.1
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.
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
]
|
|
468
468
|
},
|
|
469
469
|
"options": {
|
|
470
|
-
"systemPrompt": "<system-prompt>\nThe project system rules are:\n# review\n\n> 必须检查发布改动的回归风险。\n\n# demo/security\n\n> Use when: 插件安全规则\n> Rule file path: node_modules/@vibe-forge/plugin-demo/rules/security.md\n> Only read this rule file when the task matches the scenario above.\n</system-prompt>\n\n\n<system-prompt>\nThe following skill modules are loaded for the project:\n# research\n\n> Skill description: 检索资料\n> Skill file path: .ai/skills/research/SKILL.md\n> Resolve relative paths in the resource content relative to the directory containing this skill file.\n\n<skill-content>\n先阅读 README.md,再补充结论。\n</skill-content>\n</system-prompt>\n\n\n<system-prompt>\nThe project includes the following entities:\n - architect: 负责拆解方案的实体\n\nWhen solving user problems, you may specify entities through `
|
|
470
|
+
"systemPrompt": "<system-prompt>\nThe project system rules are:\n# review\n\n> 必须检查发布改动的回归风险。\n\n# demo/security\n\n> Use when: 插件安全规则\n> Rule file path: node_modules/@vibe-forge/plugin-demo/rules/security.md\n> Only read this rule file when the task matches the scenario above.\n</system-prompt>\n\n\n<system-prompt>\nThe following skill modules are loaded for the project:\n# research\n\n> Skill description: 检索资料\n> Skill file path: .ai/skills/research/SKILL.md\n> Resolve relative paths in the resource content relative to the directory containing this skill file.\n\n<skill-content>\n先阅读 README.md,再补充结论。\n</skill-content>\n</system-prompt>\n\n\n<system-prompt>\nThe project includes the following entities:\n - architect: 负责拆解方案的实体\n\nWhen solving user problems, you may specify entities through `VibeForge.StartTasks` as needed and have them coordinate multiple entity types to complete the work; use `VibeForge.GetTaskInfo` and `wait` to track progress.\n</system-prompt>\n\n\n<system-prompt>\nYou are a professional project execution manager who can skillfully direct other entities to work toward your goal. Expectations:\n\n- Never complete code development work alone\n- You must coordinate other developers to complete tasks\n- You must keep them aligned with the goal and verify that their completion reports meet the requirements\n\nChoose the appropriate workflow based on the user's needs and the actual development goal, and use the workflow identifier to locate and load the corresponding definition.\n- Pass the identifier based on the actual need. This is not a path; use the standard workflow loading capability to resolve it.\n- Decide how to pass parameters based on their descriptions and actual usage scenarios.\nThe project includes the following workflows:\n- Workflow name: release\n - Description: 正式发布流程\n - Identifier: release\n - Parameters:\n - None\n\n- Workflow name: demo/release\n - Description: 插件发布流程\n - Identifier: demo/release\n - Parameters:\n - None\n\n</system-prompt>\n\n\n执行正式发布,并整理变更摘要。",
|
|
471
471
|
"tools": {
|
|
472
472
|
"include": [
|
|
473
473
|
"Edit",
|
|
@@ -554,6 +554,12 @@
|
|
|
554
554
|
"status": "prompt",
|
|
555
555
|
"reason": "Mapped into the generated system prompt."
|
|
556
556
|
},
|
|
557
|
+
{
|
|
558
|
+
"assetId": "skill:workspace:workspace:research:<workspace>/.ai/skills/research/SKILL.md",
|
|
559
|
+
"adapter": "claude-code",
|
|
560
|
+
"status": "native",
|
|
561
|
+
"reason": "Synced into the Claude mock home as a native skill."
|
|
562
|
+
},
|
|
557
563
|
{
|
|
558
564
|
"assetId": "skill:workspace:workspace:research:<workspace>/.ai/skills/research/SKILL.md",
|
|
559
565
|
"adapter": "claude-code",
|
package/__tests__/bundle.spec.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import process from 'node:process'
|
|
2
1
|
import { join } from 'node:path'
|
|
2
|
+
import process from 'node:process'
|
|
3
3
|
|
|
4
4
|
import { describe, expect, it } from 'vitest'
|
|
5
5
|
|
|
@@ -129,8 +129,8 @@ describe('resolveWorkspaceAssetBundle', () => {
|
|
|
129
129
|
useDefaultVibeForgeMcpServer: true
|
|
130
130
|
})
|
|
131
131
|
|
|
132
|
-
expect(enabledBundle.mcpServers).toHaveProperty('
|
|
133
|
-
expect(enabledBundle.mcpServers
|
|
132
|
+
expect(enabledBundle.mcpServers).toHaveProperty('VibeForge')
|
|
133
|
+
expect(enabledBundle.mcpServers.VibeForge?.payload.config).toEqual(expect.objectContaining({
|
|
134
134
|
command: process.execPath,
|
|
135
135
|
args: [expect.stringMatching(/packages\/mcp\/cli\.js$/)]
|
|
136
136
|
}))
|
|
@@ -141,7 +141,7 @@ describe('resolveWorkspaceAssetBundle', () => {
|
|
|
141
141
|
useDefaultVibeForgeMcpServer: false
|
|
142
142
|
})
|
|
143
143
|
|
|
144
|
-
expect(disabledBundle.mcpServers).not.toHaveProperty('
|
|
144
|
+
expect(disabledBundle.mcpServers).not.toHaveProperty('VibeForge')
|
|
145
145
|
})
|
|
146
146
|
|
|
147
147
|
it('skips disabled plugin instances and lets disabled child overrides suppress default child activation', async () => {
|
|
@@ -173,8 +173,8 @@ describe('workspace asset prompt builders', () => {
|
|
|
173
173
|
])
|
|
174
174
|
|
|
175
175
|
expect(prompt).toContain('reviewer: 负责代码审查')
|
|
176
|
-
expect(prompt).toContain('`
|
|
177
|
-
expect(prompt).toContain('`GetTaskInfo`')
|
|
176
|
+
expect(prompt).toContain('`VibeForge.StartTasks`')
|
|
177
|
+
expect(prompt).toContain('`VibeForge.GetTaskInfo`')
|
|
178
178
|
expect(prompt).toContain('`wait`')
|
|
179
179
|
expect(prompt).not.toContain('run-tasks')
|
|
180
180
|
expect(prompt).not.toContain('需要关注变更风险')
|
|
@@ -479,19 +479,23 @@ describe('resolvePromptAssetSelection', () => {
|
|
|
479
479
|
|
|
480
480
|
await writeDocument(
|
|
481
481
|
join(workspace, '.ai/plugins/demo/.vf-plugin.json'),
|
|
482
|
-
JSON.stringify(
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
482
|
+
JSON.stringify(
|
|
483
|
+
{
|
|
484
|
+
version: 1,
|
|
485
|
+
adapter: 'claude',
|
|
486
|
+
name: 'demo',
|
|
487
|
+
scope: 'demo',
|
|
488
|
+
installedAt: new Date().toISOString(),
|
|
489
|
+
source: {
|
|
490
|
+
type: 'path',
|
|
491
|
+
path: './demo'
|
|
492
|
+
},
|
|
493
|
+
nativePluginPath: 'native',
|
|
494
|
+
vibeForgePluginPath: 'vibe-forge'
|
|
491
495
|
},
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
496
|
+
null,
|
|
497
|
+
2
|
|
498
|
+
)
|
|
495
499
|
)
|
|
496
500
|
await writeDocument(
|
|
497
501
|
join(workspace, '.ai/plugins/demo/vibe-forge/skills/research/SKILL.md'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibe-forge/workspace-assets",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Workspace asset resolution and adapter asset planning for Vibe Forge",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#~/*.js": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"fast-glob": "^3.3.3",
|
|
30
30
|
"front-matter": "^4.0.2",
|
|
31
31
|
"js-yaml": "^4.1.1",
|
|
32
|
-
"@vibe-forge/
|
|
33
|
-
"@vibe-forge/
|
|
34
|
-
"@vibe-forge/
|
|
35
|
-
"@vibe-forge/
|
|
32
|
+
"@vibe-forge/config": "^0.11.1",
|
|
33
|
+
"@vibe-forge/definition-core": "^0.11.0",
|
|
34
|
+
"@vibe-forge/types": "^0.11.2",
|
|
35
|
+
"@vibe-forge/utils": "^0.11.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/js-yaml": "^4.0.9"
|
package/src/prompt-builders.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
resolveSpecIdentifier
|
|
6
6
|
} from '@vibe-forge/definition-core'
|
|
7
7
|
import type { Definition, Entity, Rule, Skill, Spec } from '@vibe-forge/types'
|
|
8
|
-
import { resolvePromptPath } from '@vibe-forge/utils'
|
|
8
|
+
import { CANONICAL_VIBE_FORGE_MCP_SERVER_NAME, resolvePromptPath } from '@vibe-forge/utils'
|
|
9
9
|
|
|
10
10
|
const toMarkdownBlockquote = (content: string) => (
|
|
11
11
|
content
|
|
@@ -178,7 +178,7 @@ export const generateEntitiesRoutePrompt = (entities: Definition<Entity>[]) => {
|
|
|
178
178
|
})
|
|
179
179
|
.join('')
|
|
180
180
|
}\n` +
|
|
181
|
-
|
|
181
|
+
`When solving user problems, you may specify entities through \`${CANONICAL_VIBE_FORGE_MCP_SERVER_NAME}.StartTasks\` as needed and have them coordinate multiple entity types to complete the work; use \`${CANONICAL_VIBE_FORGE_MCP_SERVER_NAME}.GetTaskInfo\` and \`wait\` to track progress.\n` +
|
|
182
182
|
'</system-prompt>\n'
|
|
183
183
|
)
|
|
184
184
|
}
|