@scalequality/cli 0.4.43 → 0.4.45
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/README.md +28 -0
- package/bin/scalequality.mjs +7 -2
- package/dist/connect.build.json +3 -2
- package/dist/connect.cjs +956 -395
- package/dist/hook.cjs +6 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -145,6 +145,34 @@ Requires Node.js 18 or newer and git. Any folder works; the CLI never runs
|
|
|
145
145
|
days are removed. Changes made by shell commands to files outside a
|
|
146
146
|
repository are not tracked.
|
|
147
147
|
|
|
148
|
+
## Your organization's rules in Claude Code
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
npx @scalequality/cli@latest agents install
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
On a computer that is already connected (`scalequality login`), this puts your
|
|
155
|
+
organization's secure development rules in Claude Code, for you only. Before
|
|
156
|
+
Claude Code reads a file or runs a command, it asks the rules on this computer.
|
|
157
|
+
|
|
158
|
+
- **It observes.** Nothing is blocked and nothing is asked of you. The rule
|
|
159
|
+
registers what it would have refused or held, so your organization can see
|
|
160
|
+
what the rules would do before deciding anything else.
|
|
161
|
+
- **What leaves this computer** is the decision alone: which agent, the kind of
|
|
162
|
+
action (a command, a file, a package), which rule, what the rule would have
|
|
163
|
+
done, the version of the rules and the time. The command, the file path and
|
|
164
|
+
the text never leave it.
|
|
165
|
+
- **Without a network** the rules already on this computer are used, and the
|
|
166
|
+
decisions are sent when the network is back. A package that could not be
|
|
167
|
+
looked up is recorded as not checked, never guessed.
|
|
168
|
+
- **Where it lives.** One entry in `~/.claude/settings.json` (your own hooks and
|
|
169
|
+
settings are kept as they are) and the files in `~/.scalequality/agents/`.
|
|
170
|
+
- **To remove it:** `npx @scalequality/cli@latest agents remove`. Your settings
|
|
171
|
+
go back to what they were.
|
|
172
|
+
|
|
173
|
+
`scalequality agents status` says whether the rule is installed and which rules
|
|
174
|
+
this computer holds. Available on macOS and Linux.
|
|
175
|
+
|
|
148
176
|
## What runs where
|
|
149
177
|
|
|
150
178
|
On your machine:
|
package/bin/scalequality.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// ScaleQuality CLI. The engine of every command (login, add, service, logout,
|
|
2
|
+
// ScaleQuality CLI. The engine of every command (login, add, agents, service, logout,
|
|
3
3
|
// and the unlisted up and connect) is built in the ScaleQuality ai-governance service
|
|
4
4
|
// (src/main/workspace-connect.ts) and copied into dist/connect.cjs by `npm run sync`.
|
|
5
5
|
import { createRequire } from 'node:module'
|
|
@@ -19,6 +19,11 @@ Usage:
|
|
|
19
19
|
computer connected, also after a restart.
|
|
20
20
|
scalequality add [PATH]
|
|
21
21
|
Add a folder (default: the current one) for the AI Workspace to use.
|
|
22
|
+
scalequality agents <install|status|remove> [--api URL]
|
|
23
|
+
Your organization's secure development rules in the coding agents of
|
|
24
|
+
this computer (Claude Code for now). The agent asks the rules here
|
|
25
|
+
before it acts: the command and the file never leave this computer,
|
|
26
|
+
only the decision. While your organization observes, nothing is blocked.
|
|
22
27
|
scalequality service <install|uninstall|status|logs>
|
|
23
28
|
The background service: reinstall it, remove it, see whether it runs,
|
|
24
29
|
read its log.
|
|
@@ -33,7 +38,7 @@ browser. Run "scalequality <command> --help" for the options of a command.`
|
|
|
33
38
|
|
|
34
39
|
// `up` (the loop the service runs, for troubleshooting) and `connect <code>`
|
|
35
40
|
// (one session by one-time code, kept for older screens) work but are not listed.
|
|
36
|
-
const COMMANDS = new Set(['connect', 'login', 'up', 'add', 'logout', 'service'])
|
|
41
|
+
const COMMANDS = new Set(['connect', 'login', 'up', 'add', 'agents', 'logout', 'service'])
|
|
37
42
|
const [command] = process.argv.slice(2)
|
|
38
43
|
|
|
39
44
|
if (!command || command === '--help' || command === '-h' || command === 'help') {
|
package/dist/connect.build.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sdkVersion": "0.3.312",
|
|
3
|
-
"sha256": "
|
|
4
|
-
"sourceCommit": "
|
|
3
|
+
"sha256": "9190eb26cb4849817e55cff41c7aa3985712add955f6f364ba083a43b02c1609",
|
|
4
|
+
"sourceCommit": "e10047878832bd557cb04d838bd842f32fce793a",
|
|
5
|
+
"hookSha256": "ffa9d61715aeed0f38756d199e54c0ae67f342adad59f86b944c4590c9d10159"
|
|
5
6
|
}
|