@sentinelconnector/cli 0.3.0 → 0.5.0
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/dist/commands/deployTarget.d.ts +22 -0
- package/dist/commands/deployTarget.js +64 -0
- package/dist/commands/deployTarget.js.map +1 -0
- package/dist/commands/routes.js +3 -1
- package/dist/commands/routes.js.map +1 -1
- package/dist/routes/routes.json +1842 -108
- package/package.json +1 -1
- package/skills/sentinel/SKILL.md +67 -1
package/package.json
CHANGED
package/skills/sentinel/SKILL.md
CHANGED
|
@@ -63,7 +63,8 @@ Each operation has a policy:
|
|
|
63
63
|
Never ask for an authenticator, recovery or phone code, and never pass one on. A personal API token can
|
|
64
64
|
never take an `mfa` step.
|
|
65
65
|
|
|
66
|
-
Steps with the `mfa` policy include deploying a pull request,
|
|
66
|
+
Steps with the `mfa` policy include deploying a pull request, cancelling a queued manual deployment,
|
|
67
|
+
accepting Patching terms, acknowledging
|
|
67
68
|
required checks, adding keys and secrets, and changing members and roles.
|
|
68
69
|
|
|
69
70
|
## Common jobs
|
|
@@ -76,6 +77,16 @@ and never outdated.
|
|
|
76
77
|
**Reports.** Monthly reports and the fleet status report are read-only. The sites list can be downloaded
|
|
77
78
|
as CSV or JSON: read columns by name, never by position.
|
|
78
79
|
|
|
80
|
+
**Module status across sites.** The module status list shows each module once for the organisation,
|
|
81
|
+
with one status: `security` (a site needs a security update), `update` (a site has a newer release),
|
|
82
|
+
`current` or `unknown`. Open a module to see each site that runs it, with that site's version and
|
|
83
|
+
status. Both lists download as CSV. A site's latest recent check decides its status; when that check
|
|
84
|
+
is older than the freshness window, the status falls back to what the site last reported. The answer's
|
|
85
|
+
`next_refresh_at` says when the first check behind it stops counting as recent: read the list again
|
|
86
|
+
after that time instead of reporting an old `current` as up to date. `unknown` is unknown, never safe.
|
|
87
|
+
If `sentinel routes module` finds no per-module sites operation, this version does not know it yet: use
|
|
88
|
+
the site's own module list instead.
|
|
89
|
+
|
|
79
90
|
**Patching, in order:**
|
|
80
91
|
|
|
81
92
|
1. Check that Patching is turned on for the organisation and that the site has a Git connection and a
|
|
@@ -94,6 +105,21 @@ Every deployment has a reference such as `dep_` followed by 32 letters and digit
|
|
|
94
105
|
the organisation's deployments at `/app/deployments` and one deployment at `/app/deployments/<reference>`.
|
|
95
106
|
Reading them needs Patching read, the same as jobs.
|
|
96
107
|
|
|
108
|
+
An accepted manual deployment keeps its recorded consent if its requester later loses deployment
|
|
109
|
+
permission or organisation membership. That change does not cancel it. The server still applies
|
|
110
|
+
the product, subscription, site and deployment safety checks. Autopilot has its own standing rules.
|
|
111
|
+
|
|
112
|
+
**Cancel a queued manual deployment.** Where the server and installed route list offer cancellation,
|
|
113
|
+
use it only after the person explicitly chooses to cancel and the deployment returns `can_cancel: true`.
|
|
114
|
+
The operation is `POST /sites/{site_uuid}/patching/deployments/{deployment_id}/cancel`. Current
|
|
115
|
+
organisation administrators and site managers with site access can take this `mfa` step. Over MCP,
|
|
116
|
+
give the person the dashboard link; never ask for or pass on a second-factor code. An accepted
|
|
117
|
+
cancellation returns `cancelled`: nothing was merged or sent to the hosting platform. If the worker
|
|
118
|
+
has started, 409 `deployment_not_cancellable` means the cancellation did not take effect; read the
|
|
119
|
+
deployment again. Cancellation does not stop a running deployment or reverse a merge. **Stop job**
|
|
120
|
+
stops preparation work, not a deployment. Do not use it as a substitute. If this client has no
|
|
121
|
+
cancellation operation, use **Cancel deployment** on the deployment's dashboard page when offered.
|
|
122
|
+
|
|
97
123
|
- **List:** `sentinel patching list-organization-deployments --organization-id <id>`, or `sentinel_read`
|
|
98
124
|
with that operation. Running deployments come first, then the newest. Filter with `--state` (`running`,
|
|
99
125
|
`waiting`, `needs_a_look` or `done`) or `--site-uuid`. Each answer also gives the count in each state.
|
|
@@ -133,6 +159,32 @@ and Black run on the organisation's own key and have no Included AI or AI credit
|
|
|
133
159
|
you go past its 20-site limit is refused (`site_limit_exceeded`); the dashboard's setup wizard is not a
|
|
134
160
|
CLI route, so `sentinel sites` and the activation quote still add sites.
|
|
135
161
|
|
|
162
|
+
## Reviewing changes
|
|
163
|
+
|
|
164
|
+
When Patching writes a change, a separate AI agent reviews it before the pull request opens. The reviewer
|
|
165
|
+
cannot edit files. When it finds problems, the coding agent fixes them and the reviewer checks again, up
|
|
166
|
+
to a set number of rounds for the job kind. The job's run log names each round, its verdict and its
|
|
167
|
+
findings.
|
|
168
|
+
|
|
169
|
+
- **Approved:** the pull request notes say it was reviewed and approved, and after how many rounds.
|
|
170
|
+
- **Findings left open** (the rounds ran out, the reviewer rejected the change, or a round could not
|
|
171
|
+
run): the pull request still opens, held for a person. The job says "The code review still has open
|
|
172
|
+
findings" and lists them. Autopilot waits. Report the findings in plain words and leave the decision
|
|
173
|
+
to merge or deploy to the person.
|
|
174
|
+
|
|
175
|
+
Which key reviews applies only to the organisation's own AI keys. Included AI reviews on the platform's
|
|
176
|
+
model, which cannot be chosen. Read the organisation default with `sentinel routes ai-reviewer`, then the
|
|
177
|
+
`get-ai-reviewer` operation: `offered` is true only when the organisation has active keys from both
|
|
178
|
+
Anthropic and OpenAI, and `keys` lists the keys that may review. Changing it (`put-ai-reviewer`) needs an
|
|
179
|
+
organisation administrator. A site's own choice (`PUT /sites/{site_uuid}/patching/ai-reviewer`) needs
|
|
180
|
+
permission to run Patching updates. The body is `ai_reviewer`: `null` (the site follows the organisation;
|
|
181
|
+
the organisation follows the default, an Anthropic key reviews when an OpenAI key codes), `"same"` (the
|
|
182
|
+
coding key reviews too, as a separate agent) or `"key"` with `ai_reviewer_connection_id` set to one of
|
|
183
|
+
the listed keys. Each key runs on its own model and is billed by its provider. If the chosen key cannot
|
|
184
|
+
be used for a job (removed, not active, no accepted Patching AI terms for the site, busy, or at its cap),
|
|
185
|
+
the coding key reviews and the job's activity says so. The site's Patching tab asks for the terms; give
|
|
186
|
+
the person that link.
|
|
187
|
+
|
|
136
188
|
## Choosing what a manual run updates
|
|
137
189
|
|
|
138
190
|
A manual security or maintenance run updates everything it can, unless the person chooses packages. Do
|
|
@@ -233,6 +285,20 @@ running, merging and deploying still require their own authority and server gate
|
|
|
233
285
|
for the organisation, a required checks acknowledgement for that website. It never merges or deploys a
|
|
234
286
|
run that took a new major: that one waits for a person.
|
|
235
287
|
|
|
288
|
+
**Maintenance branch.** Some sites keep a long-lived branch, such as `develop`, between updates and
|
|
289
|
+
production. When the site's Patching settings name one, Deploy and Autopilot merge the pull request into
|
|
290
|
+
that branch and stop: Sentinel takes no backup and does not deploy production. The site's own process
|
|
291
|
+
takes the branch to production. The deploy gate shows it as `target: branch` with `target_branch`.
|
|
292
|
+
|
|
293
|
+
- Say plainly where the merge goes before the person agrees. "Deployed" means "merged" here.
|
|
294
|
+
- In the CLI the person adds `--merge-into <branch>` to `sentinel sites deploy-pull-request`. Without it
|
|
295
|
+
the server refuses with `target_changed`, so nobody agrees to a production deploy and gets a merge, or
|
|
296
|
+
the other way round.
|
|
297
|
+
- Sentinel judges the merge on that branch's own required checks, read just before it merges. Tests must
|
|
298
|
+
block the merge itself; a test that runs only in the deploy pipeline does not count here.
|
|
299
|
+
- Sentinel never overrides a missing approval for these merges. The person approves on the Git host.
|
|
300
|
+
- A runtime update that goes into the production branch waits until the person deploys it themselves.
|
|
301
|
+
|
|
236
302
|
When Autopilot pauses, the reason is on the site's Patching tab. **Resume** sends the run back to its
|
|
237
303
|
checks. Fix the cause first: resuming does not clear a reason that is still true.
|
|
238
304
|
|