@dsh-cc/command-init 0.6.0 → 0.6.2
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/README.i18n.yaml +6 -0
- package/README.md +23 -0
- package/README.zh.md +23 -0
- package/package.json +2 -2
package/README.i18n.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
|
|
2
|
+
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
|
+
# after editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm check:readme --write
|
|
5
|
+
README.md: 8a30832c5c1171ee61fec2abf000f9a3539b22f9
|
|
6
|
+
README.zh.md: ccfae4d2467a2afc5d88e4620e3322524bdbbe7b
|
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @dsh-cc/command-init
|
|
2
|
+
|
|
3
|
+
English | [中文](README.zh.md)
|
|
4
|
+
|
|
5
|
+
Human-facing `/init` slash command: queue a CLAUDE.md initialization for the model. The command does no analysis itself — it hands a CC-faithful init prompt to the agent as a follow-up user turn and immediately acknowledges.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { apply } from '@dsh-cc/command-init'
|
|
11
|
+
|
|
12
|
+
apply(ctx)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## What it provides
|
|
16
|
+
|
|
17
|
+
- `/init` — submits the init instruction (analyze the repository, identify build/test commands, note conventions, write or refresh CLAUDE.md) via `invocation.agent.followup`, then replies `Initializing CLAUDE.md…`.
|
|
18
|
+
- The prompt is exported as `INIT_PROMPT` (with `initContent()` returning its user-message content block) so hosts can inspect or reuse it.
|
|
19
|
+
|
|
20
|
+
## Notes
|
|
21
|
+
|
|
22
|
+
- Injects only the `commands` service; the actual work happens in the queued model turn, not the command handler.
|
|
23
|
+
- Wraps the command with `@dsh-cc/command-usage` so `help`/`-h`/`--help` render deterministic help.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @dsh-cc/command-init
|
|
2
|
+
|
|
3
|
+
[English](README.md) | 中文
|
|
4
|
+
|
|
5
|
+
面向用户的 `/init` 斜杠命令:为模型排队一次 CLAUDE.md 初始化。命令本身不做任何分析——它把一份忠实移植 Claude Code 的初始化提示词作为后续用户轮次交给 agent,随后立即确认。
|
|
6
|
+
|
|
7
|
+
## 用法
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { apply } from '@dsh-cc/command-init'
|
|
11
|
+
|
|
12
|
+
apply(ctx)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 提供的能力
|
|
16
|
+
|
|
17
|
+
- `/init` —— 通过 `invocation.agent.followup` 提交初始化指令(分析仓库结构、确定构建/测试命令、记录约定、写入或刷新 CLAUDE.md),然后回复 `Initializing CLAUDE.md…`。
|
|
18
|
+
- 提示词以 `INIT_PROMPT` 导出(`initContent()` 返回其用户消息内容块),宿主可以检视或复用。
|
|
19
|
+
|
|
20
|
+
## 备注
|
|
21
|
+
|
|
22
|
+
- 仅注入 `commands` 服务;实际工作发生在排队的模型轮次中,而非命令处理器内。
|
|
23
|
+
- 命令经 `@dsh-cc/command-usage` 包装,因此 `help`/`-h`/`--help` 会渲染确定性的帮助文本。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-cc/command-init",
|
|
3
3
|
"description": "Human-facing slash command to queue CLAUDE.md initialization via a model turn",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dsh-cc/dsh-cc.git",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@dsh-cc/command-usage": "^0.6.
|
|
45
|
+
"@dsh-cc/command-usage": "^0.6.2"
|
|
46
46
|
}
|
|
47
47
|
}
|