opencode-cloud 1.0.7 → 1.0.10

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 CHANGED
@@ -9,6 +9,13 @@
9
9
 
10
10
  A production-ready toolkit for deploying [opencode](https://github.com/anomalyco/opencode) as a persistent cloud service.
11
11
 
12
+ ## Quick install (cargo)
13
+
14
+ ```bash
15
+ cargo install opencode-cloud
16
+ opencode-cloud --version
17
+ ```
18
+
12
19
  ## Features
13
20
 
14
21
  - Cross-platform CLI (`opencode-cloud` / `occ`)
@@ -171,6 +178,16 @@ This is a monorepo with:
171
178
 
172
179
  The npm package compiles the Rust core on install (no prebuilt binaries).
173
180
 
181
+ ### Cargo.toml Sync Requirement
182
+
183
+ The `packages/core/Cargo.toml` file must use **explicit values** rather than `workspace = true` references. This is because when users install the npm package, they only get `packages/core/` without the workspace root `Cargo.toml`, so workspace inheritance would fail.
184
+
185
+ When updating package metadata (version, edition, rust-version, etc.), keep both files in sync:
186
+ - `Cargo.toml` (workspace root)
187
+ - `packages/core/Cargo.toml`
188
+
189
+ Use `scripts/set-all-versions.sh <version>` to update versions across all files automatically.
190
+
174
191
  ## License
175
192
 
176
193
  MIT
package/dist/index.d.ts CHANGED
@@ -2,8 +2,7 @@
2
2
  /**
3
3
  * opencode-cloud Node.js CLI
4
4
  *
5
- * This is a thin wrapper that calls into the Rust core library via NAPI bindings.
6
- * The heavy lifting is done in Rust - this just provides npm/npx distribution.
5
+ * DEPRECATED: This package is deprecated. Please install via cargo instead.
7
6
  */
8
7
  export {};
9
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;GAKG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;GAIG"}
package/dist/index.js CHANGED
@@ -2,47 +2,24 @@
2
2
  /**
3
3
  * opencode-cloud Node.js CLI
4
4
  *
5
- * This is a thin wrapper that calls into the Rust core library via NAPI bindings.
6
- * The heavy lifting is done in Rust - this just provides npm/npx distribution.
5
+ * DEPRECATED: This package is deprecated. Please install via cargo instead.
7
6
  */
8
- import { getVersionJs } from "@opencode-cloud/core";
9
- const args = process.argv.slice(2);
10
- function printHelp() {
11
- console.log(`
12
- opencode-cloud - Manage your opencode cloud service
7
+ const RED = "\x1b[31m";
8
+ const YELLOW = "\x1b[33m";
9
+ const CYAN = "\x1b[36m";
10
+ const RESET = "\x1b[0m";
11
+ const BOLD = "\x1b[1m";
12
+ console.error(`
13
+ ${YELLOW}${BOLD}Notice:${RESET} The npm package for opencode-cloud is deprecated.
13
14
 
14
- USAGE:
15
- opencode-cloud [OPTIONS] [COMMAND]
15
+ Please install via cargo instead:
16
16
 
17
- OPTIONS:
18
- -V, --version Print version information
19
- -h, --help Print help information
17
+ ${CYAN}cargo install opencode-cloud${RESET}
20
18
 
21
- COMMANDS:
22
- (none yet - real commands coming in future phases)
19
+ This provides a native binary with better performance and full feature support.
23
20
 
24
- For more information, see: https://github.com/pRizz/opencode-cloud
21
+ ${RED}Requires:${RESET} Rust 1.85+ (install from https://rustup.rs)
25
22
  `);
26
- }
27
- function printVersion() {
28
- const version = getVersionJs();
29
- console.log(version);
30
- }
31
- function main() {
32
- // Handle --version / -V
33
- if (args.includes("--version") || args.includes("-V")) {
34
- printVersion();
35
- process.exit(0);
36
- }
37
- // Handle --help / -h
38
- if (args.includes("--help") || args.includes("-h") || args.length === 0) {
39
- printHelp();
40
- process.exit(0);
41
- }
42
- // Unknown command
43
- console.error(`Unknown command: ${args.join(" ")}`);
44
- console.error('Run "opencode-cloud --help" for usage information.');
45
- process.exit(1);
46
- }
47
- main();
23
+ process.exit(1);
24
+ export {};
48
25
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],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,GAAG,UAAU,CAAC;AACxB,MAAM,KAAK,GAAG,SAAS,CAAC;AACxB,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB,OAAO,CAAC,KAAK,CAAC;EACZ,MAAM,GAAG,IAAI,UAAU,KAAK;;;;IAI1B,IAAI,+BAA+B,KAAK;;;;EAI1C,GAAG,YAAY,KAAK;CACrB,CAAC,CAAC;AAEH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-cloud",
3
- "version": "1.0.7",
3
+ "version": "1.0.10",
4
4
  "description": "CLI for managing opencode as a persistent cloud service",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "arm64"
39
39
  ],
40
40
  "dependencies": {
41
- "@opencode-cloud/core": "1.0.7"
41
+ "@opencode-cloud/core": "1.0.10"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "^5.7.3",
package/src/index.ts CHANGED
@@ -2,54 +2,25 @@
2
2
  /**
3
3
  * opencode-cloud Node.js CLI
4
4
  *
5
- * This is a thin wrapper that calls into the Rust core library via NAPI bindings.
6
- * The heavy lifting is done in Rust - this just provides npm/npx distribution.
5
+ * DEPRECATED: This package is deprecated. Please install via cargo instead.
7
6
  */
8
7
 
9
- import { getVersionJs } from "@opencode-cloud/core";
8
+ const RED = "\x1b[31m";
9
+ const YELLOW = "\x1b[33m";
10
+ const CYAN = "\x1b[36m";
11
+ const RESET = "\x1b[0m";
12
+ const BOLD = "\x1b[1m";
10
13
 
11
- const args = process.argv.slice(2);
14
+ console.error(`
15
+ ${YELLOW}${BOLD}Notice:${RESET} The npm package for opencode-cloud is deprecated.
12
16
 
13
- function printHelp(): void {
14
- console.log(`
15
- opencode-cloud - Manage your opencode cloud service
17
+ Please install via cargo instead:
16
18
 
17
- USAGE:
18
- opencode-cloud [OPTIONS] [COMMAND]
19
+ ${CYAN}cargo install opencode-cloud${RESET}
19
20
 
20
- OPTIONS:
21
- -V, --version Print version information
22
- -h, --help Print help information
21
+ This provides a native binary with better performance and full feature support.
23
22
 
24
- COMMANDS:
25
- (none yet - real commands coming in future phases)
26
-
27
- For more information, see: https://github.com/pRizz/opencode-cloud
23
+ ${RED}Requires:${RESET} Rust 1.85+ (install from https://rustup.rs)
28
24
  `);
29
- }
30
-
31
- function printVersion(): void {
32
- const version = getVersionJs();
33
- console.log(version);
34
- }
35
-
36
- function main(): void {
37
- // Handle --version / -V
38
- if (args.includes("--version") || args.includes("-V")) {
39
- printVersion();
40
- process.exit(0);
41
- }
42
-
43
- // Handle --help / -h
44
- if (args.includes("--help") || args.includes("-h") || args.length === 0) {
45
- printHelp();
46
- process.exit(0);
47
- }
48
-
49
- // Unknown command
50
- console.error(`Unknown command: ${args.join(" ")}`);
51
- console.error('Run "opencode-cloud --help" for usage information.');
52
- process.exit(1);
53
- }
54
25
 
55
- main();
26
+ process.exit(1);