@skastr0/quartz 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 +21 -0
- package/README.md +27 -0
- package/bin/quartz.js +54 -0
- package/package.json +44 -0
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,27 @@
|
|
|
1
|
+
# @skastr0/quartz
|
|
2
|
+
|
|
3
|
+
Agent-native TypeScript code intelligence CLI for Quartz.
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
|
|
7
|
+
Experimental. The command protocol, package surface, and install channels may change while Quartz is in `0.y.z`.
|
|
8
|
+
|
|
9
|
+
## Run
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx -y @skastr0/quartz capabilities
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
bunx @skastr0/quartz capabilities
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm dlx @skastr0/quartz capabilities
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The npm package uses a small Node launcher that selects the matching prebuilt Quartz binary for your platform. Supported npm binary packages are macOS arm64, macOS x64, Linux arm64, and Linux x64.
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
Run `quartz capabilities` and `quartz schema list` to discover the protocol. The full CLI documentation lives in the repository README.
|
package/bin/quartz.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawnSync } from "node:child_process"
|
|
4
|
+
import { existsSync } from "node:fs"
|
|
5
|
+
import { createRequire } from "node:module"
|
|
6
|
+
import { dirname, join } from "node:path"
|
|
7
|
+
|
|
8
|
+
const require = createRequire(import.meta.url)
|
|
9
|
+
const platformKey = `${process.platform}-${process.arch}`
|
|
10
|
+
|
|
11
|
+
const packageMap = {
|
|
12
|
+
"darwin-arm64": "@skastr0/quartz-darwin-arm64",
|
|
13
|
+
"darwin-x64": "@skastr0/quartz-darwin-x64",
|
|
14
|
+
"linux-arm64": "@skastr0/quartz-linux-arm64",
|
|
15
|
+
"linux-x64": "@skastr0/quartz-linux-x64",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const packageName = packageMap[platformKey]
|
|
19
|
+
|
|
20
|
+
if (packageName === undefined) {
|
|
21
|
+
console.error(`quartz: unsupported platform ${platformKey}`)
|
|
22
|
+
process.exit(1)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
let packageJsonPath
|
|
26
|
+
try {
|
|
27
|
+
packageJsonPath = require.resolve(`${packageName}/package.json`)
|
|
28
|
+
} catch {
|
|
29
|
+
console.error(`quartz: missing platform package ${packageName}`)
|
|
30
|
+
console.error("Reinstall @skastr0/quartz with optional dependencies enabled.")
|
|
31
|
+
process.exit(1)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const binaryPath = join(dirname(packageJsonPath), "bin", "quartz")
|
|
35
|
+
|
|
36
|
+
if (!existsSync(binaryPath)) {
|
|
37
|
+
console.error(`quartz: platform binary not found at ${binaryPath}`)
|
|
38
|
+
process.exit(1)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const result = spawnSync(binaryPath, process.argv.slice(2), {
|
|
42
|
+
stdio: "inherit",
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
if (result.error) {
|
|
46
|
+
console.error(result.error.message)
|
|
47
|
+
process.exit(1)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (result.signal) {
|
|
51
|
+
process.kill(process.pid, result.signal)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
process.exit(result.status ?? 1)
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@skastr0/quartz",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Agent-native TypeScript code intelligence CLI for Quartz.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/skastr0/quartz.git",
|
|
10
|
+
"directory": "packages/npm/quartz"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/skastr0/quartz#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/skastr0/quartz/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"quartz",
|
|
18
|
+
"cli",
|
|
19
|
+
"typescript",
|
|
20
|
+
"code-intelligence",
|
|
21
|
+
"static-analysis",
|
|
22
|
+
"agent-tools"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"bin": {
|
|
28
|
+
"quartz": "bin/quartz.js"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"bin",
|
|
32
|
+
"README.md",
|
|
33
|
+
"LICENSE"
|
|
34
|
+
],
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=18"
|
|
37
|
+
},
|
|
38
|
+
"optionalDependencies": {
|
|
39
|
+
"@skastr0/quartz-darwin-arm64": "0.1.0",
|
|
40
|
+
"@skastr0/quartz-darwin-x64": "0.1.0",
|
|
41
|
+
"@skastr0/quartz-linux-arm64": "0.1.0",
|
|
42
|
+
"@skastr0/quartz-linux-x64": "0.1.0"
|
|
43
|
+
}
|
|
44
|
+
}
|