wspai 0.43.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/README.md +16 -0
- package/bin/wspai.js +25 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# wspai
|
|
2
|
+
|
|
3
|
+
Short npm alias for the Workspai CLI.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx wspai --help
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
This package delegates to the canonical `workspai` package. Keep the `wspai` package version and its
|
|
10
|
+
`workspai` dependency version aligned with `packages/cli/package.json`.
|
|
11
|
+
|
|
12
|
+
Canonical package:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npx workspai --help
|
|
16
|
+
```
|
package/bin/wspai.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawnSync } from 'node:child_process';
|
|
4
|
+
import { createRequire } from 'node:module';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
function resolveWorkspaiEntrypoint() {
|
|
10
|
+
const packageJsonPath = require.resolve('workspai/package.json');
|
|
11
|
+
return path.join(path.dirname(packageJsonPath), 'dist', 'index.js');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const result = spawnSync(process.execPath, [resolveWorkspaiEntrypoint(), ...process.argv.slice(2)], {
|
|
15
|
+
cwd: process.cwd(),
|
|
16
|
+
env: process.env,
|
|
17
|
+
stdio: 'inherit',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
if (result.error) {
|
|
21
|
+
console.error(`[wspai] Failed to launch Workspai: ${result.error.message}`);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
process.exit(result.status ?? 1);
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wspai",
|
|
3
|
+
"version": "0.43.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Short npm alias for the Workspai CLI.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"wspai",
|
|
8
|
+
"workspai",
|
|
9
|
+
"workspace-ai",
|
|
10
|
+
"workspace-intelligence",
|
|
11
|
+
"ai",
|
|
12
|
+
"cli"
|
|
13
|
+
],
|
|
14
|
+
"author": "RapidKit Labs",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/rapidkitlabs/workspai.git",
|
|
19
|
+
"directory": "packages/wspai"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"wspai": "bin/wspai.js"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"bin",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"workspai": "0.43.0"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"registry": "https://registry.npmjs.org",
|
|
33
|
+
"access": "public"
|
|
34
|
+
}
|
|
35
|
+
}
|