openfactor 0.3.0-1790498850.gd78bdf819997

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/SKILL.md ADDED
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: openfactor-developer-api-cli
3
+ description: "Use the openfactor developer API CLI for authenticated API operations, automation, command discovery, and OpenClaw authorization."
4
+ ---
5
+
6
+ # openfactor Developer API CLI
7
+
8
+ The `openfactor` binary carries its own command catalog and embedded task
9
+ guides. This file delegates to the binary so documentation never drifts from
10
+ the version in front of you.
11
+
12
+ ## Discovery
13
+
14
+ - `openfactor docs list` - list task guides
15
+ - `openfactor docs show <name>` - read a guide
16
+ - `openfactor --llms` - machine-readable command catalog with schemas
17
+ - `openfactor <command> --help` or `--help --verbose` - command help and schemas
18
+
19
+ ## Non-interactive essentials
20
+
21
+ - `--yes` - skip confirmation for destructive commands
22
+ - `--no-input` - fail rather than prompt
23
+ - `--input-file PATH|-` - supply request JSON from a file or stdin
24
+ - Exit codes: `0` success, `2` usage error, `66` not found, `70` internal,
25
+ `73` conflict, `75` rate-limited, `77` auth/forbidden, `127` unknown command,
26
+ `130` interrupt
27
+ - See `openfactor docs show automation` for full scripting guidance
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ const { spawnSync } = require("node:child_process");
4
+ const { dirname, join } = require("node:path");
5
+
6
+ const target = "openfactor-" + process.platform + "-" + process.arch;
7
+ let binary;
8
+ try {
9
+ binary = join(
10
+ dirname(require.resolve(target + "/package.json")),
11
+ "openfactor",
12
+ );
13
+ } catch {
14
+ console.error(
15
+ "Open Factor CLI: no native binary is installed for this platform (supported: darwin-arm64, darwin-x64, linux-arm64, linux-x64). Reinstall openfactor with optional dependencies enabled, or install the native release with: curl -fsSL https://assets.openfactor.ai/cli/releases/install.sh | sh -s -- openfactor",
16
+ );
17
+ process.exit(1);
18
+ }
19
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
20
+ if (result.error) throw result.error;
21
+ if (result.signal) process.kill(process.pid, result.signal);
22
+ process.exit(result.status ?? 1);
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "openfactor",
3
+ "version": "0.3.0-1790498850.gd78bdf819997",
4
+ "description": "Open Factor developer API CLI",
5
+ "license": "UNLICENSED",
6
+ "homepage": "https://openfactor.ai/developers",
7
+ "keywords": [
8
+ "openfactor",
9
+ "cli",
10
+ "agents",
11
+ "mcp"
12
+ ],
13
+ "bin": {
14
+ "openfactor": "bin/openfactor.js"
15
+ },
16
+ "files": [
17
+ "bin",
18
+ "SKILL.md"
19
+ ],
20
+ "engines": {
21
+ "node": ">=18"
22
+ },
23
+ "optionalDependencies": {
24
+ "openfactor-darwin-arm64": "0.3.0-1790498850.gd78bdf819997",
25
+ "openfactor-darwin-x64": "0.3.0-1790498850.gd78bdf819997",
26
+ "openfactor-linux-arm64": "0.3.0-1790498850.gd78bdf819997",
27
+ "openfactor-linux-x64": "0.3.0-1790498850.gd78bdf819997"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ }
32
+ }