opencode-sync-plugin 0.2.0 → 0.2.1

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.
@@ -49,6 +49,7 @@ function clearConfig() {
49
49
  }
50
50
 
51
51
  export {
52
+ __require,
52
53
  getConfig,
53
54
  setConfig,
54
55
  clearConfig
package/dist/cli.js CHANGED
@@ -1,9 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
+ __require,
3
4
  clearConfig,
4
5
  getConfig,
5
6
  setConfig
6
- } from "./chunk-EFSO6MGO.js";
7
+ } from "./chunk-QO5Y7TD5.js";
7
8
 
8
9
  // src/cli.ts
9
10
  import { readFileSync, existsSync } from "fs";
@@ -200,12 +201,14 @@ function help() {
200
201
  }
201
202
  function prompt(question) {
202
203
  return new Promise((resolve) => {
203
- process.stdout.write(question);
204
- let input = "";
205
- process.stdin.setEncoding("utf8");
206
- process.stdin.once("data", (data) => {
207
- input = data.toString().trim();
208
- resolve(input);
204
+ const readline = __require("readline");
205
+ const rl = readline.createInterface({
206
+ input: process.stdin,
207
+ output: process.stdout
208
+ });
209
+ rl.question(question, (answer) => {
210
+ rl.close();
211
+ resolve(answer.trim());
209
212
  });
210
213
  });
211
214
  }
package/dist/config.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  clearConfig,
3
3
  getConfig,
4
4
  setConfig
5
- } from "./chunk-EFSO6MGO.js";
5
+ } from "./chunk-QO5Y7TD5.js";
6
6
  export {
7
7
  clearConfig,
8
8
  getConfig,
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getConfig
3
- } from "./chunk-EFSO6MGO.js";
3
+ } from "./chunk-QO5Y7TD5.js";
4
4
 
5
5
  // src/index.ts
6
6
  var syncedMessages = /* @__PURE__ */ new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sync-plugin",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Sync your OpenCode sessions to the cloud",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",