@onequery/cli 0.0.0-bootstrap.0-darwin-arm64
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
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# onequery
|
|
2
|
+
|
|
3
|
+
Rust CLI workspace for `onequery` and the companion CLI API contract.
|
|
4
|
+
|
|
5
|
+
Key references:
|
|
6
|
+
|
|
7
|
+
- CLI workflow architecture note: `docs/ARCHITECTURE.md`
|
|
8
|
+
- Split OpenAPI source: `../../packages/cli-contract/openapi/source/cli.openapi.yaml`
|
|
9
|
+
- Generated JSON API contract: `../../packages/cli-contract/openapi/generated/cli.openapi.json`
|
|
10
|
+
|
|
11
|
+
Runtime config:
|
|
12
|
+
|
|
13
|
+
- On Unix-like systems, the user config file is `${XDG_CONFIG_HOME:-~/.config}/onequery/config.toml`.
|
|
14
|
+
- On Windows, the user config file is `%APPDATA%\\onequery\\config.toml`.
|
|
15
|
+
- `config.toml` stores `[org].active`, `[api].server_url`, and `[api].request_timeout_sec`.
|
|
16
|
+
- Runtime config is resolved in this order: built-in defaults -> user config file -> internal typed runtime overrides.
|
|
17
|
+
- `onequery org use <org>` persists `active_org`. Passing `--org <org>` for a command takes precedence over the stored `active_org` value for that invocation.
|
|
18
|
+
- `onequery auth logout` clears both the stored auth session and the stored `active_org`, so later org-scoped commands fail explicitly until a new org is selected.
|
|
19
|
+
|
|
20
|
+
Credential storage:
|
|
21
|
+
|
|
22
|
+
- On Unix-like systems, the CLI persists the full auth session blob to `${XDG_CONFIG_HOME:-~/.config}/onequery/auth.json`.
|
|
23
|
+
- On Windows, the CLI persists the full auth session blob to `%APPDATA%\\onequery\\auth.json`.
|
|
24
|
+
- `auth.json` stores the user identity, bearer token, session timing metadata, and the last refresh timestamp.
|
|
25
|
+
- Authenticated commands now run an explicit auth-session lifecycle before building an authenticated API client:
|
|
26
|
+
load `auth.json` on startup -> call the CLI session refresh contract -> persist the returned token and timing metadata.
|
|
27
|
+
|
|
28
|
+
Version cache:
|
|
29
|
+
|
|
30
|
+
- Release builds refresh `${XDG_CONFIG_HOME:-~/.config}/onequery/version.json` on Unix-like systems and `%APPDATA%\\onequery\\version.json` on Windows as a cached latest-version record sourced from the npm dist-tags for `@onequery/cli`.
|
|
31
|
+
- The cache format mirrors Codex: `latest_version`, `last_checked_at`, and `dismissed_version`.
|
|
32
|
+
|
|
33
|
+
Install:
|
|
34
|
+
|
|
35
|
+
- `curl -fsSL https://onequery.wordbricks.ai/ | sh`
|
|
36
|
+
- `bun install -g @onequery/cli`
|
|
37
|
+
- `bunx @onequery/cli --help`
|
|
38
|
+
- `npx @onequery/cli --help`
|
|
39
|
+
- The published npm package currently supports macOS and Linux only.
|
|
40
|
+
- Packaged `onequery serve` uses a bundled native server executable and does not require `bun` on `PATH`.
|
|
41
|
+
- Linux npm installs ship musl-linked binaries so the CLI runs on both glibc and musl-based distributions, including Alpine.
|
|
42
|
+
|
|
43
|
+
Release:
|
|
44
|
+
|
|
45
|
+
- Keep `apps/cli/package.json` at `0.0.0-dev`.
|
|
46
|
+
- Keep `apps/cli/Cargo.toml` and `apps/cli/Cargo.lock` at `0.0.0` on normal development commits.
|
|
47
|
+
- Only temporary `release/...` branches should change `apps/cli/Cargo.toml` and `apps/cli/Cargo.lock` to the real release version before tagging.
|
|
48
|
+
- After the release is tagged, close or delete that temporary release branch/PR so `origin/main` stays at `0.0.0`.
|
|
49
|
+
- Configure npm trusted publishing for `@onequery/cli` with GitHub Actions using the workflow filename `cli-release.yml`.
|
|
50
|
+
- Push a tag like `cli-v0.1.0` or `cli-v0.1.0-alpha.1`.
|
|
51
|
+
- The `cli-release` workflow validates `cli-v<version>` against `apps/cli/Cargo.toml`, builds the CLI binaries plus per-target self-host server executables, stages versioned npm tarballs plus stable installer asset names, creates a GitHub release, and publishes the versioned tarballs to npm with `npm publish --provenance`.
|
|
52
|
+
- Linux npm platform tarballs are staged from musl artifacts for the broadest runtime compatibility.
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cpu": [
|
|
3
|
+
"arm64"
|
|
4
|
+
],
|
|
5
|
+
"description": "OneQuery CLI",
|
|
6
|
+
"files": [
|
|
7
|
+
"vendor",
|
|
8
|
+
"README.md"
|
|
9
|
+
],
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"name": "@onequery/cli",
|
|
12
|
+
"os": [
|
|
13
|
+
"darwin"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/wordbricks/onequery.git",
|
|
21
|
+
"directory": "apps/cli"
|
|
22
|
+
},
|
|
23
|
+
"version": "0.0.0-bootstrap.0-darwin-arm64",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
Binary file
|
|
Binary file
|