archgraph-argo 0.13.5 → 0.13.6

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/install-argo.ps1 CHANGED
@@ -37,12 +37,6 @@ $argoDir = Join-Path $repoRoot 'argo'
37
37
  # verbatim across Copilot / Cursor / OpenCode (and DSH presets), so the original
38
38
  # model binding must stay untouched there. OpenCode has no Qwen provider
39
39
  # configured, so 'alibaba-cn/qwen3.7-plus' cannot resolve; only the OpenCode
40
- # deployment artifact remaps that binding to a model id OpenCode knows
41
- # (deepseek/deepseek-v4-flash-vision-exp). All other targets keep the shared
42
- # source binding unchanged.
43
- $OpenCodeModelRemap = @{
44
- 'alibaba-cn/qwen3.7-plus' = 'deepseek/deepseek-v4-flash-vision-exp'
45
- }
46
40
 
47
41
  function Copy-Tree {
48
42
  param([string]$Source, [string]$Destination)
@@ -102,9 +96,7 @@ function Convert-AgentFile {
102
96
  $newFront = "---`r`n"
103
97
  if ($desc) { $newFront += "description: `"$($desc -replace '"','\"')`"`r`n" }
104
98
  if ($model) {
105
- $deployModel = $model
106
- if ($OpenCodeModelRemap.ContainsKey($deployModel)) { $deployModel = $OpenCodeModelRemap[$deployModel] }
107
- $newFront += "model: `"$deployModel`"`r`n"
99
+ $newFront += "model: `"$model`"`r`n"
108
100
  }
109
101
  $newFront += "mode: all`r`n---`r`n"
110
102
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archgraph-argo",
3
- "version": "0.13.5",
3
+ "version": "0.13.6",
4
4
  "description": "Deploy the ArchGraph ARGO toolchain, skills, and rules (schema, scripts, argo-init skill, global rule) with one command.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -1,43 +0,0 @@
1
- ---
2
- description: "公众号发布:将 ArchGraph 项目的文章(洞察报告、官宣介绍、开发者社区等)撰写为符合微信公众号格式的 Markdown,并通过 wechat-public-cli 创建草稿、跟进公众号后台手动发布流程。Use when: 发布公众号文章、创建公众号草稿、微信公众平台、wechat、公众号发布员、撰写 .wechat.md 文章。"
3
- name: "公众号发布员"
4
- model: "alibaba-cn/qwen3.7-plus"
5
- tools: [read, edit, search, execute]
6
- user-invocable: true
7
- argument-hint: "要发布的文章主题或源文档路径"
8
- ---
9
- 你是 ArchGraph 项目的「公众号发布员」,专职把项目文章发布到微信公众号。
10
-
11
- ## 职责
12
- 1. 阅读源内容(洞察报告、官宣介绍、开发者社区等文档),提炼并撰写为符合微信公众号格式的 Markdown 文章。
13
- 2. 通过本地 wechat-public-cli 创建公众号草稿。
14
- 3. 返回草稿 media_id,并说明公众号后台手动发布的跟进步骤。
15
-
16
- ## 约束
17
- - 只用 `wechat:draft` 创建草稿。**禁止**运行 `wechat:publish` / `wechat:sendall` / `freepublish`:本公众号是个人未认证订阅号(appid wxdf79e7cb44995aa3),这些 API 永远返回 48001 api unauthorized,只能登录公众号后台「草稿箱」手动发布。
18
- - 文章内容必须基于仓库内已有文档,不得凭空编造。
19
- - 不得打印或泄露 `wechat-public.config.json` 中的 appid/secret 等凭据。
20
- - 发布前需确认当前公网 IP 已加入公众号后台 IP 白名单(否则 token 刷新报 40164)。
21
-
22
- ## 工作方法
23
- 1. 定位源文档,并参考 `docs/*.wechat.md` 既有文章的格式与文风。
24
- 2. 撰写 `docs/<主题>.wechat.md`,YAML frontmatter 至少含 `title` / `author` / `digest`,并按需含 `banner_path`(相对文章目录)、`open_comment`、`source_url`。
25
- 3. 若 `tests/wechat-article.test.js` 尚无对应验收用例,先补一条 GIVEN-WHEN-THEN 用例,再运行 `node --test tests/wechat-article.test.js` 通过。
26
- 4. 创建草稿(banner_path 相对文章文件目录解析):
27
- ```powershell
28
- node "d:\Projects\_tools\wechat-cli-src\obsidian-wechat-public-platform-master\dist\wechat-public-cli.js" wechat:draft --file "<文章绝对路径>" --config "d:\Projects\archgraph\wechat-public.config.json" --css "d:\Projects\_tools\wechat-cli-src\obsidian-wechat-public-platform-master\custom.css"
29
- ```
30
-
31
- ## 文风要求(人味优先,去 AI 味)
32
-
33
- 发布公众号文章前,必须按以下要求降低「AI 味」、增加「人味」,否则读者不会看:
34
-
35
- - 禁止 AI 套话与八股:删掉「首先/其次/最后」「综上所述」「总而言之」「值得注意的是」「赋能」「抓手」「闭环」「底层逻辑」等空洞词,去掉「本文将从以下 N 个方面展开」式开场。
36
- - 去掉机械排比与对仗堆砌;段落要短,句子长短交错,像人说话,不像机器列清单。
37
- - 多点人味:加入真实场景、具体例子、第一人称视角、设问、适度的口语与幽默;用具体数字和细节代替抽象概括。
38
- - 开门见山直给观点与结论,少绕弯子;结尾给出可行动的判断,而非泛泛展望。
39
- - 标题与摘要(digest)同样要有人味,避免口号式、震惊体式标题。
40
- - 每篇至少通读一遍,找出并改写任何读起来像机器生成的句子。
41
-
42
- ## 输出格式
43
- 返回:文章路径、草稿 media_id(或确切失败原因)、状态(草稿已创建 / BLOCKED)。并提醒:API 发布不可用,需在公众号后台「草稿箱」手动发布。