@iwsdk/cli 0.5.1 → 0.5.3
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 +10 -0
- package/bin/iwsdk.js +20 -0
- package/dist/cli.js +2629 -19
- package/dist/cli.js.map +1 -1
- package/dist/commands/runtime.d.ts.map +1 -1
- package/dist/contract.js +127 -1
- package/dist/contract.js.map +1 -1
- package/dist/help.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +253 -12
- package/dist/index.js.map +1 -1
- package/dist/node-engine.d.ts +8 -0
- package/dist/node-engine.d.ts.map +1 -0
- package/dist/runtime-contract.d.ts +3 -0
- package/dist/runtime-contract.d.ts.map +1 -1
- package/dist/runtime-transport.d.ts.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -12,6 +12,16 @@ It owns:
|
|
|
12
12
|
- runtime-resolved MCP stdio access
|
|
13
13
|
- direct runtime control commands
|
|
14
14
|
|
|
15
|
+
## Running without a local install
|
|
16
|
+
|
|
17
|
+
Starter apps install this package and should run `npx iwsdk ...` from the app
|
|
18
|
+
directory. Elsewhere, use the scoped package explicitly so npm does not resolve
|
|
19
|
+
the unrelated `iwsdk` placeholder package:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm exec --package @iwsdk/cli -- iwsdk --help
|
|
23
|
+
```
|
|
24
|
+
|
|
15
25
|
## Coding-agent adapters
|
|
16
26
|
|
|
17
27
|
`iwsdk adapter sync` preserves unrelated settings while configuring the native
|
package/bin/iwsdk.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { existsSync } from 'fs';
|
|
10
|
+
import { fileURLToPath } from 'url';
|
|
11
|
+
|
|
12
|
+
const entrypoint = new URL('../dist/cli.js', import.meta.url);
|
|
13
|
+
if (!existsSync(fileURLToPath(entrypoint))) {
|
|
14
|
+
console.error(
|
|
15
|
+
'The local @iwsdk/cli package has not been built. Run "corepack pnpm@10.18.3 --filter @iwsdk/cli build" from the immersive-web-sdk repository, then retry.',
|
|
16
|
+
);
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
} else {
|
|
19
|
+
await import(entrypoint.href);
|
|
20
|
+
}
|