@skastr0/quasar-cli 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Guilherme Castro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # Quasar CLI
2
+
3
+ The Quasar CLI imports local AI agent session histories, validates ingestion
4
+ plans, and sends sanitized batches to a Quasar control server.
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ npm install -g @skastr0/quasar-cli
10
+ quasar --help
11
+ ```
12
+
13
+ Ephemeral runner examples:
14
+
15
+ ```bash
16
+ npx --package @skastr0/quasar-cli quasar --help
17
+ bunx -p @skastr0/quasar-cli quasar --help
18
+ pnpm --package @skastr0/quasar-cli dlx quasar --help
19
+ ```
20
+
21
+ The npm package ships a Node launcher plus prebuilt Bun standalone binaries for
22
+ macOS and Linux on arm64/x64. The Convex control app and dashboard are not
23
+ published to npm.
24
+
25
+ ## Configuration
26
+
27
+ Server-backed commands read `QUASAR_CONTROL_URL` and `QUASAR_CONTROL_TOKEN`, or
28
+ `~/.config/quasar/config.json` with:
29
+
30
+ ```json
31
+ {
32
+ "url": "http://127.0.0.1:3218",
33
+ "token": "..."
34
+ }
35
+ ```
36
+
37
+ Local discovery and planning commands are read-only against native agent
38
+ history folders.
package/bin/quasar.js ADDED
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { spawnSync } from "node:child_process";
4
+ import { createRequire } from "node:module";
5
+ import { dirname, join } from "node:path";
6
+
7
+ const require = createRequire(import.meta.url);
8
+ const platformKey = `${process.platform}-${process.arch}`;
9
+
10
+ const packageMap = {
11
+ "darwin-arm64": {
12
+ name: "@skastr0/quasar-cli-darwin-arm64",
13
+ binary: "quasar",
14
+ },
15
+ "darwin-x64": {
16
+ name: "@skastr0/quasar-cli-darwin-x64",
17
+ binary: "quasar",
18
+ },
19
+ "linux-arm64": {
20
+ name: "@skastr0/quasar-cli-linux-arm64",
21
+ binary: "quasar",
22
+ },
23
+ "linux-x64": {
24
+ name: "@skastr0/quasar-cli-linux-x64",
25
+ binary: "quasar",
26
+ },
27
+ };
28
+
29
+ const platformPackage = packageMap[platformKey];
30
+
31
+ if (platformPackage === undefined) {
32
+ console.error(`Unsupported platform: ${platformKey}`);
33
+ process.exit(1);
34
+ }
35
+
36
+ let binaryPath;
37
+ try {
38
+ const packageJsonPath = require.resolve(`${platformPackage.name}/package.json`);
39
+ binaryPath = join(dirname(packageJsonPath), "bin", platformPackage.binary);
40
+ } catch {
41
+ console.error(
42
+ `Missing ${platformPackage.name}. Reinstall @skastr0/quasar-cli for ${platformKey}.`,
43
+ );
44
+ process.exit(1);
45
+ }
46
+
47
+ const result = spawnSync(binaryPath, process.argv.slice(2), {
48
+ stdio: "inherit",
49
+ });
50
+
51
+ if (result.error) {
52
+ console.error(result.error.message);
53
+ process.exit(1);
54
+ }
55
+
56
+ if (result.signal) {
57
+ process.kill(process.pid, result.signal);
58
+ }
59
+
60
+ process.exit(result.status ?? 1);
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@skastr0/quasar-cli",
3
+ "version": "0.1.0",
4
+ "description": "Command line importer and client for Quasar AI agent sessions.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "quasar": "bin/quasar.js"
9
+ },
10
+ "files": [
11
+ "bin",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/skastr0/quasar.git",
18
+ "directory": "packages/cli"
19
+ },
20
+ "homepage": "https://github.com/skastr0/quasar#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/skastr0/quasar/issues"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "scripts": {
28
+ "dev": "bun run ./src/cli.ts",
29
+ "build": "bun build --compile ./src/cli.ts --outfile ./dist/quasar",
30
+ "build:npm-packages": "bun scripts/build-npm-packages.mjs",
31
+ "pack:dry-run": "npm pack --dry-run",
32
+ "typecheck": "tsc --noEmit",
33
+ "test": "vitest run"
34
+ },
35
+ "optionalDependencies": {
36
+ "@skastr0/quasar-cli-darwin-arm64": "0.1.0",
37
+ "@skastr0/quasar-cli-darwin-x64": "0.1.0",
38
+ "@skastr0/quasar-cli-linux-arm64": "0.1.0",
39
+ "@skastr0/quasar-cli-linux-x64": "0.1.0"
40
+ },
41
+ "devDependencies": {
42
+ "@effect/cli": "^0.75.0",
43
+ "@effect/platform": "^0.96.0",
44
+ "@effect/platform-bun": "^0.89.0",
45
+ "@skastr0/quasar-core": "workspace:*",
46
+ "effect": "^3.21.2",
47
+ "@types/bun": "^1.3.1",
48
+ "typescript": "^6.0.3",
49
+ "vitest": "^4.1.5"
50
+ }
51
+ }