@zhin.js/plugin-code-runner 4.0.10 → 4.0.12

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.
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { defineCommand } from '@zhin.js/command';
2
+ import { defineCommand } from 'zhin.js/command';
3
3
  import { formatResult, runCode } from "../../lib/run-code.js";
4
4
  export default defineCommand({
5
5
  description: '在沙箱中运行代码片段(/code-runner run <语言> <代码>)',
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { formatResult, runCode } from '../../src/run-code.js';
3
3
 
4
4
  export default defineCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-code-runner",
3
- "version": "4.0.10",
3
+ "version": "4.0.12",
4
4
  "description": "Sandboxed code execution plugin for Zhin.js (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -37,24 +37,26 @@
37
37
  "url": "https://github.com/lc-cn"
38
38
  },
39
39
  "license": "MIT",
40
- "dependencies": {
41
- "@zhin.js/command": "1.0.13",
42
- "@zhin.js/plugin-runtime": "1.1.6"
43
- },
44
40
  "devDependencies": {
45
41
  "typescript": "^6.0.3",
46
42
  "vitest": "^4.1.10",
47
43
  "zod": "^4.4.3",
48
- "@zhin.js/agent": "1.1.10"
44
+ "@zhin.js/agent": "1.1.12",
45
+ "zhin.js": "6.0.10"
49
46
  },
50
47
  "peerDependencies": {
51
48
  "zod": "^4.0.0",
52
- "@zhin.js/agent": "1.1.10"
49
+ "@zhin.js/agent": "1.1.12",
50
+ "@zhin.js/command": "1.0.14",
51
+ "zhin.js": "6.0.10"
53
52
  },
54
53
  "peerDependenciesMeta": {
55
54
  "@zhin.js/agent": {
56
55
  "optional": true
57
56
  },
57
+ "@zhin.js/command": {
58
+ "optional": true
59
+ },
58
60
  "zod": {
59
61
  "optional": true
60
62
  }
package/plugin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { definePlugin } from '@zhin.js/plugin-runtime';
2
+ import { definePlugin } from 'zhin.js';
3
3
  export default definePlugin({
4
4
  name: 'code-runner',
5
5
  metadata: {