@magclaw/cli-core 0.1.22

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,7 @@
1
+ # @magclaw/cli-core
2
+
3
+ Shared local MagClaw CLI implementation.
4
+
5
+ This package owns the reusable command implementation used by
6
+ `@magclaw/daemon` and `@magclaw/computer`. Install the public entry packages
7
+ instead of using this package directly.
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { formatDaemonLogLine, main } from '../src/cli.js';
3
+
4
+ main(process.argv).catch((error) => {
5
+ console.error(formatDaemonLogLine('error', 'daemon', error?.message || String(error)));
6
+ process.exit(1);
7
+ });
package/bin/magclaw.js ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { formatDaemonLogLine, main } from '../src/cli.js';
3
+
4
+ main(process.argv).catch((error) => {
5
+ console.error(formatDaemonLogLine('error', 'daemon', error?.message || String(error)));
6
+ process.exit(1);
7
+ });
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@magclaw/cli-core",
3
+ "version": "0.1.22",
4
+ "description": "Shared local MagClaw CLI implementation used by daemon and computer packages.",
5
+ "type": "module",
6
+ "bin": {
7
+ "magclaw": "bin/magclaw.js",
8
+ "magclaw-daemon": "bin/magclaw-daemon.js"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "files": [
14
+ "bin/",
15
+ "src/",
16
+ "README.md"
17
+ ],
18
+ "engines": {
19
+ "node": ">=20"
20
+ },
21
+ "license": "UNLICENSED"
22
+ }