@samva/cli 0.1.0 → 0.1.2
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/AGENTS.md +4 -2
- package/README.md +17 -6
- package/bin/samva.cjs +57 -0
- package/dist/bin.mjs +61636 -0
- package/package.json +21 -23
- package/bin/samva +0 -3
- package/install.cjs +0 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@samva/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Samva CLI — email and platform operations from your terminal",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -18,20 +18,22 @@
|
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "https://github.com/AryaLabsHQ/samva.git",
|
|
21
|
-
"directory": "
|
|
21
|
+
"directory": "packages/cli"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
|
-
"samva": "./bin/samva"
|
|
24
|
+
"samva": "./bin/samva.cjs"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
|
-
"bin/samva",
|
|
28
|
-
"
|
|
29
|
-
"package.json",
|
|
27
|
+
"bin/samva.cjs",
|
|
28
|
+
"dist/bin.mjs",
|
|
30
29
|
"README.md",
|
|
31
30
|
"AGENTS.md",
|
|
32
31
|
"LICENSE"
|
|
33
32
|
],
|
|
34
33
|
"type": "module",
|
|
34
|
+
"exports": {
|
|
35
|
+
"./package.json": "./package.json"
|
|
36
|
+
},
|
|
35
37
|
"publishConfig": {
|
|
36
38
|
"access": "public"
|
|
37
39
|
},
|
|
@@ -39,33 +41,29 @@
|
|
|
39
41
|
"samva": "bun src/bin.ts",
|
|
40
42
|
"build": "tsdown",
|
|
41
43
|
"build:release-artifacts": "bun run scripts/build-release-artifacts.ts",
|
|
42
|
-
"test:package": "vitest run --root ../.. --project cli apps/cli/tests/package-install.e2e.test.ts",
|
|
43
44
|
"test": "vitest run --root ../.. --project cli",
|
|
45
|
+
"test:package": "vitest run --root ../.. --project cli packages/cli/tests/package-install.e2e.test.ts",
|
|
44
46
|
"typecheck": "tsgo --noEmit"
|
|
45
47
|
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@effect/platform-bun": "4.0.0-beta.102",
|
|
48
|
-
"@samva/contracts": "0.0.0",
|
|
49
|
-
"@samva/core": "0.0.0",
|
|
50
|
-
"@samva/markup": "0.0.0",
|
|
51
|
-
"@samva/vite": "0.1.0",
|
|
52
|
-
"effect": "4.0.0-beta.102",
|
|
53
|
-
"samva": "0.0.1"
|
|
54
|
-
},
|
|
55
48
|
"devDependencies": {
|
|
49
|
+
"@effect/platform-bun": "4.0.0-beta.102",
|
|
56
50
|
"@effect/vitest": "4.0.0-beta.102",
|
|
51
|
+
"@samva/markup": "0.1.1",
|
|
52
|
+
"@samva/vite": "0.1.1",
|
|
57
53
|
"@types/node": "^26.1.1",
|
|
54
|
+
"effect": "4.0.0-beta.102",
|
|
55
|
+
"samva": "0.2.0",
|
|
58
56
|
"tsdown": "^0.22.13",
|
|
59
57
|
"typescript": "^6.0.3",
|
|
60
|
-
"vite": "~8.2.0",
|
|
61
58
|
"vitest": "^4.1.10"
|
|
62
59
|
},
|
|
63
|
-
"
|
|
64
|
-
"
|
|
60
|
+
"optionalDependencies": {
|
|
61
|
+
"@samva/cli-darwin-arm64": "0.1.2",
|
|
62
|
+
"@samva/cli-darwin-x64": "0.1.2",
|
|
63
|
+
"@samva/cli-linux-arm64": "0.1.2",
|
|
64
|
+
"@samva/cli-linux-x64": "0.1.2"
|
|
65
65
|
},
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"optional": true
|
|
69
|
-
}
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=18"
|
|
70
68
|
}
|
|
71
69
|
}
|
package/bin/samva
DELETED
package/install.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const { chmodSync, copyFileSync, renameSync, rmSync } = require("node:fs");
|
|
4
|
-
const { dirname, join } = require("node:path");
|
|
5
|
-
|
|
6
|
-
const target = `${process.platform}-${process.arch}`;
|
|
7
|
-
const supported = new Set(["darwin-arm64", "darwin-x64", "linux-arm64", "linux-x64"]);
|
|
8
|
-
|
|
9
|
-
if (!supported.has(target)) {
|
|
10
|
-
console.error(
|
|
11
|
-
`samva: unsupported platform ${target}; supported platforms are ${[...supported].join(", ")}`,
|
|
12
|
-
);
|
|
13
|
-
process.exit(1);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const packageName = `@samva/cli-${target}`;
|
|
17
|
-
let manifest;
|
|
18
|
-
// oxlint-disable-next-line samva/no-try-catch-or-throw -- install-time CommonJS boundary must report a missing optional platform package
|
|
19
|
-
try {
|
|
20
|
-
manifest = require.resolve(`${packageName}/package.json`, { paths: [__dirname] });
|
|
21
|
-
} catch {
|
|
22
|
-
console.error(
|
|
23
|
-
`samva: ${packageName} is missing; reinstall @samva/cli without omitting optional dependencies`,
|
|
24
|
-
);
|
|
25
|
-
process.exit(1);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const source = join(dirname(manifest), "samva");
|
|
29
|
-
const destination = join(__dirname, "bin", "samva");
|
|
30
|
-
const temporary = `${destination}.installing`;
|
|
31
|
-
|
|
32
|
-
rmSync(temporary, { force: true });
|
|
33
|
-
copyFileSync(source, temporary);
|
|
34
|
-
chmodSync(temporary, 0o755);
|
|
35
|
-
renameSync(temporary, destination);
|