@mingfuyun/star-allinone 0.4.7 → 0.4.8

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  This is a Umi Max + Ant Design 5 PC admin app. Shared skills live in `.agents/skills/shared-*` and are synced from `@mingfuyun/star-allinone`. Do not edit `shared-*`. Put project-only rules in `.agents/skills/custom-entry/references/` (preferred) or legacy `.agents/project/`.
4
4
 
5
- Always-on instructions are this file. Do not add `.cursor/rules`.
5
+ Always-on instructions are this file. **Normative sources are only this file and `.agents/skills/**`. Do not add `.cursor/rules`.** Do not use global Codex skills under `~/.codex/skills` as a business entry (including retired names such as `publish-starlink-test`, `review-and-commit`, `i-have-adhd`, `zentao-connect`).
6
6
 
7
7
  Peer React is **18.3.1**. The npm package does not export a table.
8
8
 
@@ -17,14 +17,17 @@ Props for `MFProTable` are in `.agents/skills/shared-project-conventions/referen
17
17
 
18
18
  ## Default workflow
19
19
 
20
- User-facing shared entries only:
20
+ In business repos, dialogue uses **one entry only**: `$custom-entry`. It reads this file and `custom-entry/references/*`, then delegates to `shared-*` or internal `custom-*`. Do not treat direct `$shared-*` as the production entry.
21
21
 
22
- - One endpoint: `pnpm exec star-allinone gen service --operation "METHOD /path/"` or `$shared-api-to-service`.
23
- - Pages: `$shared-design-to-page`. Standard lists run `pnpm exec star-allinone gen page` inside that skill.
22
+ - Full requirement / end-to-end flow: intent `flow` (orchestrator `shared-dev-flow` when available; until then: output an implementation plan, wait for `确认方案`, then follow the composite order in `$custom-entry`).
23
+ - One endpoint: via `$custom-entry` → `shared-api-to-service`, or `pnpm exec star-allinone gen service --operation "METHOD /path/"`.
24
+ - Pages: via `$custom-entry` → `shared-design-to-page`. Standard lists run `pnpm exec star-allinone gen page` inside that skill.
24
25
  - Project health: `pnpm exec star-allinone doctor`.
25
- - Review and commit: `$shared-review-and-submit`. Wait for confirmation.
26
- - Test publish: `$shared-publish-test` after explicit pipeline confirmation.
27
- - Tracking: `$shared-tracking`. Load the SDK from OSS. Do not commit `tracking-sdk.global.min.js`.
26
+ - Review and commit: via `$custom-entry` → `shared-review-and-submit`. Wait for confirmation (`确认提交` / `确认提交并推送`).
27
+ - Test publish: via `$custom-entry` → `shared-publish-test` after explicit pipeline confirmation (`确认推送流水线` / `发布测试环境`).
28
+ - Tracking: via `$custom-entry` → `shared-tracking`. Load the SDK from OSS. Do not commit `tracking-sdk.global.min.js`.
29
+
30
+ This `examples/AGENTS.md` seeds new projects. Prefer aligning production repos to `$custom-entry` as above.
28
31
 
29
32
  ## Hard rules
30
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingfuyun/star-allinone",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "星系运维前端能力包",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -56,7 +56,7 @@ before or as part of `max build`. Do not treat `pnpm test` as unit tests; in bus
56
56
  - Current HEAD is a named branch, not detached.
57
57
  - `origin/<branch>` exists and matches local `HEAD`. Push first when it does not.
58
58
  - `YUNXIAO_ACCESS_TOKEN` is available. Request approval for the external Yunxiao CLI call.
59
- - Never print access tokens.
59
+ - If `YUNXIAO_ACCESS_TOKEN` is unset, the publish script loads `~/.codex/secrets/yunxiao.env` in the same shell when that file exists. Do not ask the user to `export` the token. Never print, copy, or paste the token.
60
60
 
61
61
  ## After the run
62
62
 
@@ -69,6 +69,16 @@ if [[ "$local_commit" != "$remote_commit" ]]; then
69
69
  exit 1
70
70
  fi
71
71
 
72
+ if [[ -z "${YUNXIAO_ACCESS_TOKEN:-}" ]]; then
73
+ yunxiao_env="${HOME}/.codex/secrets/yunxiao.env"
74
+ if [[ -f "$yunxiao_env" ]]; then
75
+ # Load token for this shell only. Do not print file contents.
76
+ set -a
77
+ # shellcheck disable=SC1090
78
+ source "$yunxiao_env"
79
+ set +a
80
+ fi
81
+ fi
72
82
  if [[ -z "${YUNXIAO_ACCESS_TOKEN:-}" ]]; then
73
83
  echo "error: YUNXIAO_ACCESS_TOKEN is unavailable" >&2
74
84
  exit 1
@@ -54,7 +54,7 @@ Then stop and wait. Do not run Git writes.
54
54
 
55
55
  ## Confirmation gate
56
56
 
57
- Execute the commit phase only after an explicit reply such as `确认` or `确认提交并推送` that authorizes the latest proposal.
57
+ Execute the commit phase only after an explicit reply such as `确认`、`确认提交` or `确认提交并推送` that authorizes the latest proposal.
58
58
 
59
59
  1. Re-check branch, status, and full diff.
60
60
  2. Confirm the review scope did not change.