@vite-plugin-opencode-assistant/shared 1.0.51 → 1.0.52
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/es/constants.d.ts +1 -1
- package/es/index.d.ts +5 -5
- package/es/index.mjs +5 -0
- package/es/{logger.js → logger.mjs} +1 -1
- package/es/{utils.js → utils.mjs} +1 -1
- package/lib/constants.d.ts +1 -1
- package/lib/{index.js → index.cjs} +10 -10
- package/lib/index.d.ts +5 -5
- package/lib/{logger.js → logger.cjs} +1 -1
- package/lib/{utils.js → utils.cjs} +1 -1
- package/package.json +5 -5
- package/es/index.js +0 -5
- /package/es/{constants.js → constants.mjs} +0 -0
- /package/es/{process-logger.js → process-logger.mjs} +0 -0
- /package/es/{types.js → types.mjs} +0 -0
- /package/lib/{constants.js → constants.cjs} +0 -0
- /package/lib/{process-logger.js → process-logger.cjs} +0 -0
- /package/lib/{types.js → types.cjs} +0 -0
package/es/constants.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview OpenCode 插件常量定义
|
|
3
3
|
*/
|
|
4
|
-
import type { OpenCodeLanguage, OpenCodeSettings } from "./types
|
|
4
|
+
import type { OpenCodeLanguage, OpenCodeSettings } from "./types";
|
|
5
5
|
/** ==================== 网络相关 ==================== */
|
|
6
6
|
/** 默认主机名 */
|
|
7
7
|
export declare const DEFAULT_HOSTNAME = "127.0.0.1";
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./constants
|
|
2
|
-
export * from "./logger
|
|
3
|
-
export * from "./process-logger
|
|
4
|
-
export * from "./types
|
|
5
|
-
export * from "./utils
|
|
1
|
+
export * from "./constants";
|
|
2
|
+
export * from "./logger";
|
|
3
|
+
export * from "./process-logger";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export * from "./utils";
|
package/es/index.mjs
ADDED
|
@@ -38,7 +38,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
import { LOG_PREFIX } from "./constants.
|
|
41
|
+
import { LOG_PREFIX } from "./constants.mjs";
|
|
42
42
|
var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
|
|
43
43
|
LogLevel2[LogLevel2["DEBUG"] = 0] = "DEBUG";
|
|
44
44
|
LogLevel2[LogLevel2["INFO"] = 1] = "INFO";
|
|
@@ -19,7 +19,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
import net from "net";
|
|
22
|
-
import { CHROME_DEVTOOLS_PORT, CHROME_DEVTOOLS_CHECK_TIMEOUT } from "./constants.
|
|
22
|
+
import { CHROME_DEVTOOLS_PORT, CHROME_DEVTOOLS_CHECK_TIMEOUT } from "./constants.mjs";
|
|
23
23
|
function truncate(value, maxLength) {
|
|
24
24
|
if (value.length <= maxLength) {
|
|
25
25
|
return value;
|
package/lib/constants.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview OpenCode 插件常量定义
|
|
3
3
|
*/
|
|
4
|
-
import type { OpenCodeLanguage, OpenCodeSettings } from "./types
|
|
4
|
+
import type { OpenCodeLanguage, OpenCodeSettings } from "./types";
|
|
5
5
|
/** ==================== 网络相关 ==================== */
|
|
6
6
|
/** 默认主机名 */
|
|
7
7
|
export declare const DEFAULT_HOSTNAME = "127.0.0.1";
|
|
@@ -14,16 +14,16 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
15
|
var lib_exports = {};
|
|
16
16
|
module.exports = __toCommonJS(lib_exports);
|
|
17
|
-
__reExport(lib_exports, require("./constants.
|
|
18
|
-
__reExport(lib_exports, require("./logger.
|
|
19
|
-
__reExport(lib_exports, require("./process-logger.
|
|
20
|
-
__reExport(lib_exports, require("./types.
|
|
21
|
-
__reExport(lib_exports, require("./utils.
|
|
17
|
+
__reExport(lib_exports, require("./constants.cjs"), module.exports);
|
|
18
|
+
__reExport(lib_exports, require("./logger.cjs"), module.exports);
|
|
19
|
+
__reExport(lib_exports, require("./process-logger.cjs"), module.exports);
|
|
20
|
+
__reExport(lib_exports, require("./types.cjs"), module.exports);
|
|
21
|
+
__reExport(lib_exports, require("./utils.cjs"), module.exports);
|
|
22
22
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23
23
|
0 && (module.exports = {
|
|
24
|
-
...require("./constants.
|
|
25
|
-
...require("./logger.
|
|
26
|
-
...require("./process-logger.
|
|
27
|
-
...require("./types.
|
|
28
|
-
...require("./utils.
|
|
24
|
+
...require("./constants.cjs"),
|
|
25
|
+
...require("./logger.cjs"),
|
|
26
|
+
...require("./process-logger.cjs"),
|
|
27
|
+
...require("./types.cjs"),
|
|
28
|
+
...require("./utils.cjs")
|
|
29
29
|
});
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./constants
|
|
2
|
-
export * from "./logger
|
|
3
|
-
export * from "./process-logger
|
|
4
|
-
export * from "./types
|
|
5
|
-
export * from "./utils
|
|
1
|
+
export * from "./constants";
|
|
2
|
+
export * from "./logger";
|
|
3
|
+
export * from "./process-logger";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export * from "./utils";
|
|
@@ -68,7 +68,7 @@ __export(logger_exports, {
|
|
|
68
68
|
setVerbose: () => setVerbose
|
|
69
69
|
});
|
|
70
70
|
module.exports = __toCommonJS(logger_exports);
|
|
71
|
-
var import_constants = require("./constants.
|
|
71
|
+
var import_constants = require("./constants.cjs");
|
|
72
72
|
var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
|
|
73
73
|
LogLevel2[LogLevel2["DEBUG"] = 0] = "DEBUG";
|
|
74
74
|
LogLevel2[LogLevel2["INFO"] = 1] = "INFO";
|
|
@@ -56,7 +56,7 @@ __export(utils_exports, {
|
|
|
56
56
|
});
|
|
57
57
|
module.exports = __toCommonJS(utils_exports);
|
|
58
58
|
var import_net = __toESM(require("net"));
|
|
59
|
-
var import_constants = require("./constants.
|
|
59
|
+
var import_constants = require("./constants.cjs");
|
|
60
60
|
function truncate(value, maxLength) {
|
|
61
61
|
if (value.length <= maxLength) {
|
|
62
62
|
return value;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-plugin-opencode-assistant/shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "lib/index.
|
|
6
|
-
"module": "es/index.
|
|
5
|
+
"main": "lib/index.cjs",
|
|
6
|
+
"module": "es/index.mjs",
|
|
7
7
|
"types": "es/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"es",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./es/index.d.ts",
|
|
15
|
-
"import": "./es/index.
|
|
16
|
-
"require": "./lib/index.
|
|
15
|
+
"import": "./es/index.mjs",
|
|
16
|
+
"require": "./lib/index.cjs"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"publishConfig": {
|
package/es/index.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|