@gitruck/cli 1.0.3 → 1.0.5
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/AGENT.md +31 -0
- package/LICENSE +21 -21
- package/README.en.md +627 -626
- package/README.md +625 -624
- package/contracts/README.md +14 -14
- package/contracts/handoff-contracts.json +10 -10
- package/dist/index.js +286 -1
- package/package.json +66 -66
- package/skills/gtrk-cover/SKILL.md +93 -93
- package/skills/gtrk-cover/assets/workbench-template.html +955 -955
- package/skills/gtrk-cover/references/checklist.md +81 -81
- package/skills/gtrk-cover/references/layout-recipes.md +337 -337
- package/skills/gtrk-cover/references/prompt-templates.md +119 -119
- package/skills/gtrk-cover/references/workbench-guide.md +99 -99
- package/skills/gtrk-music-visualizer/SKILL.md +76 -76
- package/skills/gtrk-splitter/references/example-visual-split.json +638 -638
- package/skills/gtrk-splitter/references/example-visual-split.md +439 -439
- package/skills/gtrk-style-maker/references/ammo.md +16 -16
- package/skills/gtrk-style-maker/references/contracts-ref.md +9 -9
- package/skills/gtrk-style-maker/references/seeds/README.md +4 -4
- package/skills/gtrk-style-maker/references/seeds/seed-ecom-home-goods.md +37 -37
- package/skills/gtrk-style-maker/references/seeds/seed-psych-humanities.md +35 -35
- package/skills/gtrk-transcript/agents/openai.yaml +4 -4
- package/skills/gtrk-travel-recap/SKILL.md +212 -212
package/AGENT.md
CHANGED
|
@@ -306,6 +306,37 @@ gtrk oralcut "D:/素材/某条.mp4" --params-json '{"punctuation_breaks":{"。":
|
|
|
306
306
|
|
|
307
307
|
---
|
|
308
308
|
|
|
309
|
+
## 6.5 反馈通道:`gtrk feedback` —— **告知协议,不是普通确认框**
|
|
310
|
+
|
|
311
|
+
用户抱怨用得不顺手、或者你自己发现把事情办砸了/绕了远路,都可以上报一条。
|
|
312
|
+
但这条通道有一条**协议要求**,与本 playbook 里其它 `-y` 场景**性质不同**:
|
|
313
|
+
|
|
314
|
+
> **你替用户提交之前,MUST 先把将要发出的内容原样念给用户,得到同意,再加 `--disclosed` 重跑。**
|
|
315
|
+
|
|
316
|
+
```
|
|
317
|
+
gtrk feedback "<一句话说清哪里不顺手>" --command <命令名> [--category <类别>] [--quote "<用户原话>"]
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
- **不带 `--disclosed` 且不在真终端里 ⇒ 命令直接拒发**,零网络往返、非零退出,
|
|
321
|
+
并把「要念给用户的那段全文」打到 stderr(`--json` 时也在机读面的 `notice` 字段里)。
|
|
322
|
+
照着念、得到同意,再加 `--disclosed` 重跑即可。
|
|
323
|
+
- ⚠️ **`-y` 不能替代那句声明。** `-y` 在别处的意思是「跳过交互提示」,
|
|
324
|
+
而这里缺的不是「有没有人按回车」,是「有没有告知过用户」——两件事。
|
|
325
|
+
加了 `-y` 结果**逐项相同**(有单测钉着)。
|
|
326
|
+
- `--command` **必填**,只写命令名(可带至多两级子命令),**不要带参数**——参数里必然带路径。
|
|
327
|
+
- 类别七档:`complaint`(抱怨吐槽)/ `env_unstable`(环境不稳)/ `confused`(用法困惑)/
|
|
328
|
+
`blocked`(使用受阻)/ `agent_self_detected`(**你自己搞砸了的自首**)/
|
|
329
|
+
`feature_request`(功能诉求)/ `other`。缺省 `other`。
|
|
330
|
+
|
|
331
|
+
**MUST NOT**:
|
|
332
|
+
- 把本机绝对路径、API Key、任何配置项塞进 `--context`(白名单只认那几个中性维度,
|
|
333
|
+
塞别的会被本地直接拒,不会静默丢弃);
|
|
334
|
+
- 因为「本地已经脱敏了」就认为内容安全 —— 脱敏的判据在服务端,本地那一遍只为让
|
|
335
|
+
**你念给用户的内容 = 实际发出的内容**;
|
|
336
|
+
- 用 `-y` 或任何别的旗标去绕那道声明。
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
309
340
|
## 7. 扩展(给改 CLI 的 agent)
|
|
310
341
|
|
|
311
342
|
新增命令 = 写 `src/commands/<name>.ts` 的 `register<Name>(program)` + 在 `src/index.ts` 注册一行。
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 同合云 (Gitruck)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 同合云 (Gitruck)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|