@angelmsger/fx 0.17.0 → 0.18.1
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/CHANGELOG.md +11 -0
- package/dist/adapters/error-tracker/sentry/client.js +7 -0
- package/dist/adapters/error-tracker/sentry/client.js.map +1 -1
- package/dist/adapters/error-tracker/sentry/provider.js +5 -1
- package/dist/adapters/error-tracker/sentry/provider.js.map +1 -1
- package/dist/adapters/error-tracker/sentry/service.js +8 -3
- package/dist/adapters/error-tracker/sentry/service.js.map +1 -1
- package/dist/adapters/error-tracker/sentry/tracker.js +8 -0
- package/dist/adapters/error-tracker/sentry/tracker.js.map +1 -1
- package/dist/application/doctor/index.js +40 -23
- package/dist/application/doctor/index.js.map +1 -1
- package/dist/application/doctor/tools.js +1 -0
- package/dist/application/doctor/tools.js.map +1 -1
- package/dist/application/login/check.js +11 -0
- package/dist/application/login/check.js.map +1 -1
- package/dist/application/login/stage.js +1 -1
- package/dist/application/login/stage.js.map +1 -1
- package/dist/application/member/list.js +2 -3
- package/dist/application/member/list.js.map +1 -1
- package/dist/application/member/selectors.js +13 -0
- package/dist/application/member/selectors.js.map +1 -0
- package/dist/application/member/show.js +2 -2
- package/dist/application/member/show.js.map +1 -1
- package/dist/application/member/view.js +40 -0
- package/dist/application/member/view.js.map +1 -0
- package/dist/application/readiness/can.js +12 -3
- package/dist/application/readiness/can.js.map +1 -1
- package/dist/application/readiness/index.js +32 -2
- package/dist/application/readiness/index.js.map +1 -1
- package/dist/application/readiness/where.js +49 -9
- package/dist/application/readiness/where.js.map +1 -1
- package/dist/application/release/errors.js +6 -0
- package/dist/application/release/errors.js.map +1 -1
- package/dist/application/release/facts.js +14 -4
- package/dist/application/release/facts.js.map +1 -1
- package/dist/application/services/operation.js +1 -0
- package/dist/application/services/operation.js.map +1 -1
- package/dist/application/tool/check.js +4 -4
- package/dist/application/tool/check.js.map +1 -1
- package/dist/application/tool/install.js +2 -1
- package/dist/application/tool/install.js.map +1 -1
- package/dist/application/tool/scope.js +4 -3
- package/dist/application/tool/scope.js.map +1 -1
- package/dist/application/tool/version.js +1 -0
- package/dist/application/tool/version.js.map +1 -1
- package/dist/cli/commands/can.js +1 -1
- package/dist/cli/commands/can.js.map +1 -1
- package/dist/cli/commands/doctor.js +1 -1
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/index.js +2 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/member/selectors.js +21 -0
- package/dist/cli/commands/member/selectors.js.map +1 -0
- package/dist/cli/notices.js +5 -4
- package/dist/cli/notices.js.map +1 -1
- package/dist/cli/release-coverage.js +47 -0
- package/dist/cli/release-coverage.js.map +1 -0
- package/dist/cli/release-view.js +26 -38
- package/dist/cli/release-view.js.map +1 -1
- package/dist/domain/manifest/providers.js.map +1 -1
- package/dist/domain/manifest/rules/services.js +1 -1
- package/dist/domain/manifest/rules/services.js.map +1 -1
- package/dist/domain/members/selectors.js +26 -0
- package/dist/domain/members/selectors.js.map +1 -0
- package/dist/domain/report.js +1 -0
- package/dist/domain/report.js.map +1 -1
- package/dist/domain/setup/planner.js +20 -18
- package/dist/domain/setup/planner.js.map +1 -1
- package/dist/domain/toolchain/command.js +6 -0
- package/dist/domain/toolchain/command.js.map +1 -0
- package/package.json +1 -1
- package/skills/fx-workspace/SKILL.md +7 -1
- package/skills/fx-workspace/references/commands.md +19 -1
- package/skills/fx-workspace/references/workspace-tasks.md +19 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../src/domain/toolchain/command.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,eAAe,CAC7B,MAAyB,EACzB,OAAuC;IAEvC,IAAI,OAAO,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC;QACvF,OAAO,MAAM,CAAC;IAChB,OAAO,CAAC,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fx-workspace
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.18.1
|
|
4
4
|
description: 'Use only when the user explicitly asks for the fx workspace CLI or manifest, or the current task is inside an fx-managed workspace or routed by its fx-derived AGENTS.md. Drive workspace init and sync, repository status and selection, manifest validation and editing, companion tools and login, doctor, agent Skills, repository ownership, environment coordinates and readiness through can/where, and release checks across dependencies, branches, builds and errors. Do not use for generic Sentry, OpenObserve, Jenkins, Kubernetes, logs, errors or builds outside an fx-managed workspace.'
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
@@ -18,6 +18,12 @@ Run `fx self info --format json` once when the running version is not yet known.
|
|
|
18
18
|
Keep that executable prefix; its `initialization_guide` and `bundled_skill`
|
|
19
19
|
identify the instructions shipped with this version.
|
|
20
20
|
|
|
21
|
+
For a service task, use scoped `can`/`where` and keep the returned
|
|
22
|
+
`execution.binary_path` and `execution.cwd` when calling its companion. A new
|
|
23
|
+
shell may resolve the same name to a different installation. Read the companion
|
|
24
|
+
Skill for that installation. `ready` establishes preparation, not every API scope:
|
|
25
|
+
verify the operation the user needs before requesting more permissions.
|
|
26
|
+
|
|
21
27
|
Choose the guide for the user's task:
|
|
22
28
|
|
|
23
29
|
| Task | Guide |
|
|
@@ -104,6 +104,13 @@ Read `detail` and the step's own guidance. A missing `check` comes from an older
|
|
|
104
104
|
or a check that did not run; `fx doctor --tool <tool> [--env <env>]` shows the tool's
|
|
105
105
|
message.
|
|
106
106
|
|
|
107
|
+
When a tool was inspected, `execution` contains its canonical `tool`, configured `binary`, nullable
|
|
108
|
+
`binary_path` and `version`, and the workspace `cwd`. Use this executable instead
|
|
109
|
+
of resolving the name again in another shell. Checked provider entry/coordinate
|
|
110
|
+
commands and direct handoff vectors use that path. Manifest shell templates stay
|
|
111
|
+
verbatim; `--no-check` does not bind or verify a tool. Recheck after changing an
|
|
112
|
+
installation. A ready tool does not establish permission for every API operation.
|
|
113
|
+
|
|
107
114
|
A bound provider without a companion tool has no installation or login check;
|
|
108
115
|
`ready` means preparation is complete, not that every repository query will succeed.
|
|
109
116
|
|
|
@@ -149,6 +156,11 @@ reason, and a note of the environment may follow.
|
|
|
149
156
|
Use `--area <id>` and optionally `--scenario <id>` for a business context. Keep `memberships`, `responsible_teams`, and `assignments` separate. Read each edge's source and status. A confirmed function without a team leaves team classification uncovered. Multiple confirmed teams are valid. `candidate`, `multiple_candidates`, `not_configured`, and `not_covered` do not confirm a team. Date filters evaluate declared intervals only.
|
|
150
157
|
`fx member list --team <id> --function <id> --area <id>` requires a single matching assignment. Without business scope, either kind of relationship may match. Keep collective `all` separate from named people.
|
|
151
158
|
|
|
159
|
+
`fx member selectors [--kind area|scenario|team|function]` returns vocabulary rows
|
|
160
|
+
with `kind`, canonical `id`, display `name` and nullable parent `area`. Results contain
|
|
161
|
+
no people. A name supplied as an area that exactly identifies a scenario/team/function
|
|
162
|
+
returns the corresponding explicit queries instead of an unrelated fuzzy area.
|
|
163
|
+
|
|
152
164
|
`fx repo show <repo>` — the resolved entry, disk state and URLs, plus `owners`: `[]` when the members document names nobody, `null` when the workspace has no members document at all, else items of `area`, `lead`, `scenario`, `devLead`, `roles`, every person as `{id, name, email}` (name and email `null` when the id is not in the document, `all` included); `contact` is the project's contact. Its `next_steps` use the canonical repository name and explicit workspace to select an unpicked repository and synchronize missing shared checkouts; inspection itself never changes selection or downloads files.
|
|
153
165
|
|
|
154
166
|
### Diagnostic reports
|
|
@@ -164,7 +176,13 @@ same ambiguous setup. Doctor marks its missing verification as incomplete.
|
|
|
164
176
|
optional host activation can remain unverified. An incomplete verdict exits 12.
|
|
165
177
|
`fx release check` returns `ok`, `complete`, summary and findings and exits zero when its
|
|
166
178
|
checklist was produced. Findings carry group, id, level, coverage, message, fix and
|
|
167
|
-
handoff;
|
|
179
|
+
handoff; caught query errors also carry a structured `failure` with recovery, retained
|
|
180
|
+
in compact JSON. Full results also carry evidence. Incomplete checks are not passes:
|
|
181
|
+
`RELEASE_INCOMPLETE` means no confirmed failure but missing evidence, and a known
|
|
182
|
+
failure can also have incomplete coverage. Human output groups identical unavailable
|
|
183
|
+
causes separately from confirmed problems; `--details` expands all repository checks.
|
|
184
|
+
A missing error-tracker project is incomplete coverage and must be corrected or
|
|
185
|
+
explicitly marked not covered; never substitute an organization-wide query. `repos[]` says what each release would ship,
|
|
168
186
|
in summaries too. For `can`, inspect its capability status.
|
|
169
187
|
|
|
170
188
|
Doctor groups are `repos`, `root`, `tools`, `login`, `agents`, `manifest`, `self`,
|
|
@@ -59,6 +59,12 @@ use canonical names for mutations. An ambiguous match is not permission to guess
|
|
|
59
59
|
Before querying a service, use `fx where <repo> --env <env>` and select its
|
|
60
60
|
`capability` row. Without a repository, use `fx can <capability|tool> [--env <env>]`.
|
|
61
61
|
Inspect `ready`/`status`, coordinates and handoffs, then use the companion's Skill.
|
|
62
|
+
Use `execution.binary_path` from the check, and its `cwd`, for subsequent companion
|
|
63
|
+
calls. Checked provider commands and direct handoff vectors are already bound to
|
|
64
|
+
that executable. Manifest-authored shell templates remain verbatim: inspect them
|
|
65
|
+
against the returned execution evidence before use. After an update, compare its
|
|
66
|
+
`binary_path`/`version_after` with the next readiness result and reload the matching
|
|
67
|
+
companion Skill. Do not substitute a bare command from another shell's PATH.
|
|
62
68
|
A printed command is not permission for a write. fx's diagnostic provider queries
|
|
63
69
|
are read-only; source contributions use a separate explicit write workflow.
|
|
64
70
|
|
|
@@ -91,12 +97,19 @@ Authorization persists across steps; a handoff does not expand it.
|
|
|
91
97
|
`login <tool> --env <env> --dry-run --no-input`. Omit `--env` for unscoped tools.
|
|
92
98
|
`login --list` describes recipes without verifying them. Load the companion's
|
|
93
99
|
Skill before provider-specific setup.
|
|
100
|
+
A scoped doctor checks/fixes only the named tools and their setup. Executable
|
|
101
|
+
failures block dependent command checks; they do not establish missing credentials.
|
|
102
|
+
Reuse the cause and next action already returned instead of rerunning an unchanged probe.
|
|
94
103
|
2. Perform authorized local preparation. Verify the package, registry and exact
|
|
95
104
|
vectors before installation. Preserve working configuration; fix confirmed
|
|
96
105
|
PATH/runtime problems before reinstalling. A run step may still open a browser
|
|
97
106
|
or create credentials, so inspect its effects.
|
|
98
107
|
3. Hand off only what requires the person: consent, access, credentials or a new
|
|
99
108
|
approval. Never request tokens in chat. Continue independent work while waiting.
|
|
109
|
+
Test the requested operation first: lack of search permission does not establish
|
|
110
|
+
that a known document cannot be read. If a Sentry instance rejects device OAuth
|
|
111
|
+
with `invalid_client`, follow its token acquisition instructions rather than
|
|
112
|
+
repeating that flow; a declared `service.auth_scheme: token` selects manual setup.
|
|
100
113
|
4. Re-run the same readiness check and resume the original task on `ready`.
|
|
101
114
|
Do not repeat unchanged failures or reinitialize successful setup.
|
|
102
115
|
|
|
@@ -111,6 +124,12 @@ stand in for `fx`; `self update` cannot repair an entry that cannot execute.
|
|
|
111
124
|
|
|
112
125
|
## Routing
|
|
113
126
|
|
|
127
|
+
For member filters, discover exact values with `fx member selectors`, optionally
|
|
128
|
+
`--kind area|scenario|team|function`. A scenario belongs under its returned `area`;
|
|
129
|
+
do not use a similarly named area as a substitute. Missing account keys are unknown,
|
|
130
|
+
not confirmed accounts. Responsibility evidence supports a proposal; changing an
|
|
131
|
+
existing work-item owner must still follow the user's requested scope.
|
|
132
|
+
|
|
114
133
|
| Task | Entry |
|
|
115
134
|
| ------------------------------------------ | ---------------------------------------------------------------------------------------- |
|
|
116
135
|
| Discover or repair workspace identity | `fx workspace list/show`; `workspace relocate/rebind/unregister --dry-run` |
|