mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-06-06 09:30:42 +08:00
fix: replace hardcoded ~/.desirecore paths with ${DESIRECORE_ROOT} variable (#16)
## Summary
- 将所有技能文件中的硬编码 `~/.desirecore/` 和 `$HOME/.desirecore/` 路径替换为
`${DESIRECORE_ROOT}/` 变量
- 递增 manifest.json version 至 1.2.1
## Why
dev 模式下 `DESIRECORE_HOME=~/.desirecore-dev`,硬编码路径导致技能读取错误的端口文件和目录。主仓库的
`variable-substitutor.ts` 会在运行时将 `${DESIRECORE_ROOT}` 替换为实际根目录。
## Test plan
- [ ] `npm run dev` 启动后触发任意技能,确认端口路径解析为
`~/.desirecore-dev/agent-service.port`
- [ ] prod 模式确认路径为 `~/.desirecore/agent-service.port`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
@@ -38,7 +38,7 @@ metadata:
|
||||
Guides the Agent to design, edit, test, and execute Workflow workflows. Use when the user asks to create a workflow, orchestrate multi-step automation, design an approval pipeline, or turn repetitive multi-node tasks into a reusable DSL.
|
||||
body: ./SKILL.md
|
||||
source_hash: sha256:aa197c62ae8a33d7
|
||||
translated_by: ai:claude-opus-4-7
|
||||
translated_by: human
|
||||
translated_at: '2026-05-04'
|
||||
market:
|
||||
icon: >-
|
||||
@@ -147,7 +147,7 @@ workflow is a **Procedural Skill** that empowers the Agent to orchestrate multi-
|
||||
**DSL file location**:
|
||||
|
||||
```
|
||||
~/.desirecore/workflows/<wf_id>/workflow.dsl.yaml
|
||||
${DESIRECORE_ROOT}/workflows/<wf_id>/workflow.dsl.yaml
|
||||
```
|
||||
|
||||
Where `wf_id` uses a `wf_` prefix + snake_case, e.g. `wf_legal_review`, `wf_daily_report`.
|
||||
@@ -539,7 +539,7 @@ All dynamic values in the DSL are uniformly referenced using the `{{}}` template
|
||||
|
||||
A workflow can reference user-preconfigured secrets via `{{secrets.keyName}}` for scenarios such as API calls.
|
||||
|
||||
- Secrets are preconfigured by the user in `~/.desirecore/config/secrets.json`
|
||||
- Secrets are preconfigured by the user in `${DESIRECORE_ROOT}/config/secrets.json`
|
||||
- The engine automatically resolves `{{secrets.*}}` at runtime, replacing them with the actual values
|
||||
- Secrets are resolved only during the execution phase; their actual values are not exposed during validation or dry-run
|
||||
|
||||
@@ -563,7 +563,7 @@ Use the `WorkflowValidate` tool to validate the structure and reference integrit
|
||||
```
|
||||
Tool: WorkflowValidate
|
||||
Parameters:
|
||||
path: ~/.desirecore/workflows/<wf_id>/workflow.dsl.yaml
|
||||
path: ${DESIRECORE_ROOT}/workflows/<wf_id>/workflow.dsl.yaml
|
||||
```
|
||||
|
||||
**What is validated**:
|
||||
@@ -587,7 +587,7 @@ Use the `WorkflowTest` tool to perform a simulated execution (dry-run) without a
|
||||
```
|
||||
Tool: WorkflowTest
|
||||
Parameters:
|
||||
path: ~/.desirecore/workflows/<wf_id>/workflow.dsl.yaml
|
||||
path: ${DESIRECORE_ROOT}/workflows/<wf_id>/workflow.dsl.yaml
|
||||
params: # Optional, used to simulate trigger parameters
|
||||
filePath: /path/to/input.md
|
||||
```
|
||||
@@ -610,7 +610,7 @@ Use the `WorkflowRun` tool to start the workflow.
|
||||
```
|
||||
Tool: WorkflowRun
|
||||
Parameters:
|
||||
path: ~/.desirecore/workflows/<wf_id>/workflow.dsl.yaml
|
||||
path: ${DESIRECORE_ROOT}/workflows/<wf_id>/workflow.dsl.yaml
|
||||
params: # Optional, passed in as the {{trigger.key}} context
|
||||
filePath: /path/to/input.md
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user