@use05/cli 0.0.0-stage → 0.0.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.
Files changed (3) hide show
  1. package/README.md +11 -2
  2. package/bin/use05.js +31 -0
  3. package/package.json +25 -4
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # Temporary Holding Version
1
+ # @use05/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 05 lets AI-written code land with no pull request to review. Agents declare a plan; 05 seals it, checks the result on the exact code, signs the evidence and keeps several agents out of each other's way. You approve by exception, and the change lands as a commit.
4
+
5
+ ```sh
6
+ npm install -g @use05/cli
7
+ use05 init
8
+ ```
9
+
10
+ This package runs the native `use05` binary for your machine (macOS and Linux, x64 and arm64), installed from one of the `@use05/cli-*` packages. Every release's binaries are also on GitHub with checksums: https://github.com/use05-dev/use05/releases
11
+
12
+ Documentation: https://github.com/use05-dev/use05
package/bin/use05.js ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ // Runs the use05 binary for this machine. npm installs exactly one platform package, chosen by
3
+ // its "os" and "cpu" fields; this finds it and hands over arguments, stdio and the exit code.
4
+ "use strict";
5
+
6
+ const { spawnSync } = require("child_process");
7
+ const path = require("path");
8
+
9
+ const pkg = `@use05/cli-${process.platform}-${process.arch}`;
10
+ let bin;
11
+ try {
12
+ bin = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), "bin", "use05");
13
+ } catch {
14
+ const shipped = ["darwin-arm64", "darwin-x64", "linux-arm64", "linux-x64"].includes(`${process.platform}-${process.arch}`);
15
+ console.error(
16
+ shipped
17
+ ? `use05: npm did not install ${pkg}, which holds the binary. Reinstall without --no-optional or --omit=optional.`
18
+ : `use05: there is no binary for ${process.platform}-${process.arch}. 05 ships for macOS and Linux on x64 and arm64.`
19
+ );
20
+ process.exit(1);
21
+ }
22
+
23
+ const result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
24
+ if (result.error) {
25
+ console.error(`use05: could not run ${bin}: ${result.error.message}`);
26
+ process.exit(1);
27
+ }
28
+ if (result.signal) {
29
+ process.kill(process.pid, result.signal);
30
+ }
31
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,27 @@
1
1
  {
2
2
  "name": "@use05/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "05: the acceptance layer for AI-written code. Prove and verify what agents did.",
5
+ "license": "Apache-2.0",
6
+ "homepage": "https://use05.dev",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/use05-dev/use05.git"
10
+ },
11
+ "bin": {
12
+ "use05": "bin/use05.js"
13
+ },
14
+ "files": [
15
+ "bin/use05.js",
16
+ "README.md"
17
+ ],
18
+ "engines": {
19
+ "node": ">=18"
20
+ },
21
+ "optionalDependencies": {
22
+ "@use05/cli-darwin-arm64": "0.0.1",
23
+ "@use05/cli-darwin-x64": "0.0.1",
24
+ "@use05/cli-linux-arm64": "0.0.1",
25
+ "@use05/cli-linux-x64": "0.0.1"
26
+ }
27
+ }