feat: add initial implementation of Opencode client and session handling
- Created agent.ts to export necessary components from the plugin source. - Implemented index.ts to initialize Opencode client and list projects and sessions. - Added functionality to prompt a session with specific tool instructions.
This commit is contained in:
1
.opencode/plugin/agent.ts
Normal file
1
.opencode/plugin/agent.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export * from '../../plugin/src/index.ts'
|
||||||
15
package.json
15
package.json
@@ -9,18 +9,19 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"packageManager": "pnpm@10.14.0",
|
"packageManager": "pnpm@10.28.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@kevisual/cnb": "^0.0.2",
|
"@kevisual/cnb": "^0.0.19",
|
||||||
"@types/bun": "^1.3.5",
|
"@types/bun": "^1.3.8",
|
||||||
"@types/node": "^25.0.6"
|
"@types/node": "^25.2.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@kevisual/context": "^0.0.4",
|
"@kevisual/context": "^0.0.4",
|
||||||
"@kevisual/router": "^0.0.52",
|
"@kevisual/router": "^0.0.70",
|
||||||
"@kevisual/use-config": "^1.0.24",
|
"@kevisual/use-config": "^1.0.30",
|
||||||
"@opencode-ai/plugin": "^1.1.14",
|
"@opencode-ai/plugin": "^1.1.53",
|
||||||
|
"@opencode-ai/sdk": "^1.1.53",
|
||||||
"nanoid": "^5.1.6"
|
"nanoid": "^5.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { tool } from "@opencode-ai/plugin/tool";
|
import { tool } from "@opencode-ai/plugin/tool";
|
||||||
import type { Plugin, PluginInput } from "@opencode-ai/plugin";
|
import type { Plugin, PluginInput } from "@opencode-ai/plugin";
|
||||||
|
|
||||||
const MyPlugin: Plugin = async (ctx: PluginInput) => {
|
export const MyPlugin: Plugin = async (ctx: PluginInput) => {
|
||||||
console.log("Plugin loaded!", ctx.project.name);
|
console.log("Plugin loaded!", ctx.project.worktree);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tool: {
|
tool: {
|
||||||
@@ -19,4 +19,3 @@ const MyPlugin: Plugin = async (ctx: PluginInput) => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default MyPlugin;
|
|
||||||
|
|||||||
602
pnpm-lock.yaml
generated
602
pnpm-lock.yaml
generated
@@ -12,32 +12,35 @@ importers:
|
|||||||
specifier: ^0.0.4
|
specifier: ^0.0.4
|
||||||
version: 0.0.4
|
version: 0.0.4
|
||||||
'@kevisual/router':
|
'@kevisual/router':
|
||||||
specifier: ^0.0.52
|
specifier: ^0.0.70
|
||||||
version: 0.0.52
|
version: 0.0.70
|
||||||
'@kevisual/use-config':
|
'@kevisual/use-config':
|
||||||
specifier: ^1.0.24
|
specifier: ^1.0.30
|
||||||
version: 1.0.24(dotenv@17.2.3)
|
version: 1.0.30(dotenv@17.2.3)
|
||||||
'@opencode-ai/plugin':
|
'@opencode-ai/plugin':
|
||||||
specifier: ^1.1.14
|
specifier: ^1.1.53
|
||||||
version: 1.1.14
|
version: 1.1.53
|
||||||
|
'@opencode-ai/sdk':
|
||||||
|
specifier: ^1.1.53
|
||||||
|
version: 1.1.53
|
||||||
nanoid:
|
nanoid:
|
||||||
specifier: ^5.1.6
|
specifier: ^5.1.6
|
||||||
version: 5.1.6
|
version: 5.1.6
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@kevisual/cnb':
|
'@kevisual/cnb':
|
||||||
specifier: ^0.0.2
|
specifier: ^0.0.19
|
||||||
version: 0.0.2(dotenv@17.2.3)
|
version: 0.0.19(dotenv@17.2.3)
|
||||||
'@types/bun':
|
'@types/bun':
|
||||||
specifier: ^1.3.5
|
specifier: ^1.3.8
|
||||||
version: 1.3.5
|
version: 1.3.8
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: ^25.0.6
|
specifier: ^25.2.1
|
||||||
version: 25.0.6
|
version: 25.2.1
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
'@kevisual/cnb@0.0.2':
|
'@kevisual/cnb@0.0.19':
|
||||||
resolution: {integrity: sha512-mpoIbBTiavM8T1oJ2jMStnm2PSC9d6LUAro//nceg60vD0m0Q9fh0p1Sb+PMvrUrOvcs+1zc/AjrgE9BeNWprg==}
|
resolution: {integrity: sha512-SyO1C5yGsySsslSKr2BtwsxXzualNUJVH5HKE4FQga4dX/uxepBnSoDtdczbOWf3RgsQFZNzR0cihkgtWwkmtQ==}
|
||||||
|
|
||||||
'@kevisual/context@0.0.4':
|
'@kevisual/context@0.0.4':
|
||||||
resolution: {integrity: sha512-HJeLeZQLU+7tCluSfOyvkgKLs0HjCZrdJlZgEgKRSa8XTwZfMAUt6J7qZTbrZAHBlPtX68EPu/PI8JMCeu3WAQ==}
|
resolution: {integrity: sha512-HJeLeZQLU+7tCluSfOyvkgKLs0HjCZrdJlZgEgKRSa8XTwZfMAUt6J7qZTbrZAHBlPtX68EPu/PI8JMCeu3WAQ==}
|
||||||
@@ -45,214 +48,218 @@ packages:
|
|||||||
'@kevisual/load@0.0.6':
|
'@kevisual/load@0.0.6':
|
||||||
resolution: {integrity: sha512-+3YTFehRcZ1haGel5DKYMUwmi5i6f2psyaPZlfkKU/cOXgkpwoG9/BEqPCnPjicKqqnksEpixVRkyHJ+5bjLVA==}
|
resolution: {integrity: sha512-+3YTFehRcZ1haGel5DKYMUwmi5i6f2psyaPZlfkKU/cOXgkpwoG9/BEqPCnPjicKqqnksEpixVRkyHJ+5bjLVA==}
|
||||||
|
|
||||||
'@kevisual/query@0.0.35':
|
'@kevisual/query@0.0.39':
|
||||||
resolution: {integrity: sha512-80dyy2LMCmEC72g+X4QWUKlZErhawQPgnGSBNR4yhrBcFgHIJQ14LR1Z+bS5S1I7db+1PDNpaxBTjIaoYoXunw==}
|
resolution: {integrity: sha512-3UEPBIvtdykNkrby3hvrgrHdgd17Uq+Pnr4zs+JBzATkU2eKaOqtTUJqdyIEwuySCwzGTxrnlUzWP4tziDQDLQ==}
|
||||||
|
|
||||||
'@kevisual/router@0.0.52':
|
'@kevisual/router@0.0.70':
|
||||||
resolution: {integrity: sha512-Qiv3P1XjzD813Tm79S+atrDb2eickGCI9tuy/aCu512LcoYYJqZhwwkeT4ES0DinnA13Ckqd43QWBR6UmuYkHQ==}
|
resolution: {integrity: sha512-vXlIj9jRufhcIfeuPWemjSI+dxdzSmIBq5eRxQzqEfAJ7k+mBPhoI4KxH8vHnwyL30bqm8EdODL/p6Wg8uBw3g==}
|
||||||
|
|
||||||
'@kevisual/use-config@1.0.24':
|
'@kevisual/use-config@1.0.30':
|
||||||
resolution: {integrity: sha512-R/NcK7JtJuFuT+kKGpK89EM9oCyQzy+bIoL+hPnzdQv2TuoFULgS+CoxxYBfAjX2kCjELoNFuo9nceWSNcHNMw==}
|
resolution: {integrity: sha512-kPdna0FW/X7D600aMdiZ5UTjbCo6d8d4jjauSc8RMmBwUU6WliFDSPUNKVpzm2BsDX5Nth1IXFPYMqH+wxqAmw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
dotenv: ^17
|
dotenv: ^17
|
||||||
|
|
||||||
'@noble/hashes@1.4.0':
|
'@kevisual/ws@8.19.0':
|
||||||
resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==}
|
resolution: {integrity: sha512-jLsL80wBBKkrJZrfk3SQpJ9JA/zREdlUROj7eCkmzqduAWKSI0wVcXuCKf+mLFCHB0Q0Tkh2rgzjSlurt3JQgw==}
|
||||||
engines: {node: '>= 16'}
|
engines: {node: '>=10.0.0'}
|
||||||
|
|
||||||
'@opencode-ai/plugin@1.1.14':
|
'@opencode-ai/plugin@1.1.53':
|
||||||
resolution: {integrity: sha512-tfF4bEjeF7Gm0W0ViQUhzy77AaZfRxQ/kcPa7/Bc/YM9HddzjEqz0wOJ6ePG8UdUYc0dkKSJOJVhapUbAn/tOw==}
|
resolution: {integrity: sha512-9ye7Wz2kESgt02AUDaMea4hXxj6XhWwKAG8NwFhrw09Ux54bGaMJFt1eIS8QQGIMaD+Lp11X4QdyEg96etEBJw==}
|
||||||
|
|
||||||
'@opencode-ai/sdk@1.1.14':
|
'@opencode-ai/sdk@1.1.53':
|
||||||
resolution: {integrity: sha512-PJFu2QPxnOk0VZzlPm+IxhD1wSA41PJyCG6gkxAMI767gfAO96A0ukJJN7VK/gO6MbxLF5oTFaxBX5rAGcBRVw==}
|
resolution: {integrity: sha512-RUIVnPOP1CyyU32FrOOYuE7Ge51lOBuhaFp2NSX98ncApT7ffoNetmwzqrhOiJQgZB1KrbCHLYOCK6AZfacxag==}
|
||||||
|
|
||||||
'@peculiar/asn1-cms@2.6.0':
|
'@types/bun@1.3.8':
|
||||||
resolution: {integrity: sha512-2uZqP+ggSncESeUF/9Su8rWqGclEfEiz1SyU02WX5fUONFfkjzS2Z/F1Li0ofSmf4JqYXIOdCAZqIXAIBAT1OA==}
|
resolution: {integrity: sha512-3LvWJ2q5GerAXYxO2mffLTqOzEu5qnhEAlh48Vnu8WQfnmSwbgagjGZV6BoHKJztENYEDn6QmVd949W4uESRJA==}
|
||||||
|
|
||||||
'@peculiar/asn1-csr@2.6.0':
|
'@types/node@25.2.1':
|
||||||
resolution: {integrity: sha512-BeWIu5VpTIhfRysfEp73SGbwjjoLL/JWXhJ/9mo4vXnz3tRGm+NGm3KNcRzQ9VMVqwYS2RHlolz21svzRXIHPQ==}
|
resolution: {integrity: sha512-CPrnr8voK8vC6eEtyRzvMpgp3VyVRhgclonE7qYi6P9sXwYb59ucfrnmFBTaP0yUi8Gk4yZg/LlTJULGxvTNsg==}
|
||||||
|
|
||||||
'@peculiar/asn1-ecc@2.6.0':
|
anymatch@3.1.3:
|
||||||
resolution: {integrity: sha512-FF3LMGq6SfAOwUG2sKpPXblibn6XnEIKa+SryvUl5Pik+WR9rmRA3OCiwz8R3lVXnYnyRkSZsSLdml8H3UiOcw==}
|
resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
|
||||||
|
engines: {node: '>= 8'}
|
||||||
|
|
||||||
'@peculiar/asn1-pfx@2.6.0':
|
bun-types@1.3.8:
|
||||||
resolution: {integrity: sha512-rtUvtf+tyKGgokHHmZzeUojRZJYPxoD/jaN1+VAB4kKR7tXrnDCA/RAWXAIhMJJC+7W27IIRGe9djvxKgsldCQ==}
|
resolution: {integrity: sha512-fL99nxdOWvV4LqjmC+8Q9kW3M4QTtTR1eePs94v5ctGqU8OeceWrSUaRw3JYb7tU3FkMIAjkueehrHPPPGKi5Q==}
|
||||||
|
|
||||||
'@peculiar/asn1-pkcs8@2.6.0':
|
chokidar@5.0.0:
|
||||||
resolution: {integrity: sha512-KyQ4D8G/NrS7Fw3XCJrngxmjwO/3htnA0lL9gDICvEQ+GJ+EPFqldcJQTwPIdvx98Tua+WjkdKHSC0/Km7T+lA==}
|
resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
|
||||||
|
engines: {node: '>= 20.19.0'}
|
||||||
|
|
||||||
'@peculiar/asn1-pkcs9@2.6.0':
|
cookie-es@1.2.2:
|
||||||
resolution: {integrity: sha512-b78OQ6OciW0aqZxdzliXGYHASeCvvw5caqidbpQRYW2mBtXIX2WhofNXTEe7NyxTb0P6J62kAAWLwn0HuMF1Fw==}
|
resolution: {integrity: sha512-+W7VmiVINB+ywl1HGXJXmrqkOhpKrIiVZV6tQuV54ZyQC7MMuBt81Vc336GMLoHBq5hV/F9eXgt5Mnx0Rha5Fg==}
|
||||||
|
|
||||||
'@peculiar/asn1-rsa@2.6.0':
|
crossws@0.3.5:
|
||||||
resolution: {integrity: sha512-Nu4C19tsrTsCp9fDrH+sdcOKoVfdfoQQ7S3VqjJU6vedR7tY3RLkQ5oguOIB3zFW33USDUuYZnPEQYySlgha4w==}
|
resolution: {integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==}
|
||||||
|
|
||||||
'@peculiar/asn1-schema@2.6.0':
|
defu@6.1.4:
|
||||||
resolution: {integrity: sha512-xNLYLBFTBKkCzEZIw842BxytQQATQv+lDTCEMZ8C196iJcJJMBUZxrhSTxLaohMyKK8QlzRNTRkUmanucnDSqg==}
|
resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==}
|
||||||
|
|
||||||
'@peculiar/asn1-x509-attr@2.6.0':
|
destr@2.0.5:
|
||||||
resolution: {integrity: sha512-MuIAXFX3/dc8gmoZBkwJWxUWOSvG4MMDntXhrOZpJVMkYX+MYc/rUAU2uJOved9iJEoiUx7//3D8oG83a78UJA==}
|
resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==}
|
||||||
|
|
||||||
'@peculiar/asn1-x509@2.6.0':
|
|
||||||
resolution: {integrity: sha512-uzYbPEpoQiBoTq0/+jZtpM6Gq6zADBx+JNFP3yqRgziWBxQ/Dt/HcuvRfm9zJTPdRcBqPNdaRHTVwpyiq6iNMA==}
|
|
||||||
|
|
||||||
'@peculiar/x509@1.14.3':
|
|
||||||
resolution: {integrity: sha512-C2Xj8FZ0uHWeCXXqX5B4/gVFQmtSkiuOolzAgutjTfseNOHT3pUjljDZsTSxXFGgio54bCzVFqmEOUrIVk8RDA==}
|
|
||||||
engines: {node: '>=20.0.0'}
|
|
||||||
|
|
||||||
'@types/bun@1.3.5':
|
|
||||||
resolution: {integrity: sha512-RnygCqNrd3srIPEWBd5LFeUYG7plCoH2Yw9WaZGyNmdTEei+gWaHqydbaIRkIkcbXwhBT94q78QljxN0Sk838w==}
|
|
||||||
|
|
||||||
'@types/node@25.0.6':
|
|
||||||
resolution: {integrity: sha512-NNu0sjyNxpoiW3YuVFfNz7mxSQ+S4X2G28uqg2s+CzoqoQjLPsWSbsFFyztIAqt2vb8kfEAsJNepMGPTxFDx3Q==}
|
|
||||||
|
|
||||||
asn1js@3.0.7:
|
|
||||||
resolution: {integrity: sha512-uLvq6KJu04qoQM6gvBfKFjlh6Gl0vOKQuR5cJMDHQkmwfMOQeN3F3SHCv9SNYSL+CRoHvOGFfllDlVz03GQjvQ==}
|
|
||||||
engines: {node: '>=12.0.0'}
|
|
||||||
|
|
||||||
bun-types@1.3.5:
|
|
||||||
resolution: {integrity: sha512-inmAYe2PFLs0SUbFOWSVD24sg1jFlMPxOjOSSCYqUgn4Hsc3rDc7dFvfVYjFPNHtov6kgUeulV4SxbuIV/stPw==}
|
|
||||||
|
|
||||||
bytestreamjs@2.0.1:
|
|
||||||
resolution: {integrity: sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==}
|
|
||||||
engines: {node: '>=6.0.0'}
|
|
||||||
|
|
||||||
debug@4.4.3:
|
|
||||||
resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
|
|
||||||
engines: {node: '>=6.0'}
|
|
||||||
peerDependencies:
|
|
||||||
supports-color: '*'
|
|
||||||
peerDependenciesMeta:
|
|
||||||
supports-color:
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
depd@2.0.0:
|
|
||||||
resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
|
|
||||||
engines: {node: '>= 0.8'}
|
|
||||||
|
|
||||||
dotenv@17.2.3:
|
dotenv@17.2.3:
|
||||||
resolution: {integrity: sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==}
|
resolution: {integrity: sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
|
|
||||||
ee-first@1.1.1:
|
es-toolkit@1.44.0:
|
||||||
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
|
resolution: {integrity: sha512-6penXeZalaV88MM3cGkFZZfOoLGWshWWfdy0tWw/RlVVyhvMaWSBTOvXNeiW3e5FwdS5ePW0LGEu17zT139ktg==}
|
||||||
|
|
||||||
encodeurl@2.0.0:
|
|
||||||
resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==}
|
|
||||||
engines: {node: '>= 0.8'}
|
|
||||||
|
|
||||||
es-toolkit@1.43.0:
|
|
||||||
resolution: {integrity: sha512-SKCT8AsWvYzBBuUqMk4NPwFlSdqLpJwmy6AP322ERn8W2YLIB6JBXnwMI2Qsh2gfphT3q7EKAxKb23cvFHFwKA==}
|
|
||||||
|
|
||||||
escape-html@1.0.3:
|
|
||||||
resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}
|
|
||||||
|
|
||||||
etag@1.8.1:
|
|
||||||
resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}
|
|
||||||
engines: {node: '>= 0.6'}
|
|
||||||
|
|
||||||
eventemitter3@5.0.1:
|
eventemitter3@5.0.1:
|
||||||
resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
|
resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
|
||||||
|
|
||||||
fresh@2.0.0:
|
h3@1.15.5:
|
||||||
resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
|
resolution: {integrity: sha512-xEyq3rSl+dhGX2Lm0+eFQIAzlDN6Fs0EcC4f7BNUmzaRX/PTzeuM+Tr2lHB8FoXggsQIeXLj8EDVgs5ywxyxmg==}
|
||||||
engines: {node: '>= 0.8'}
|
|
||||||
|
|
||||||
http-errors@2.0.1:
|
iron-webcrypto@1.2.1:
|
||||||
resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
|
resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==}
|
||||||
engines: {node: '>= 0.8'}
|
|
||||||
|
|
||||||
inherits@2.0.4:
|
lru-cache@11.2.5:
|
||||||
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
|
resolution: {integrity: sha512-vFrFJkWtJvJnD5hg+hJvVE8Lh/TcMzKnTgCWmtBipwI5yLX/iX+5UB2tfuyODF5E7k9xEzMdYgGqaSb1c0c5Yw==}
|
||||||
|
engines: {node: 20 || >=22}
|
||||||
mime-db@1.54.0:
|
|
||||||
resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==}
|
|
||||||
engines: {node: '>= 0.6'}
|
|
||||||
|
|
||||||
mime-types@3.0.2:
|
|
||||||
resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==}
|
|
||||||
engines: {node: '>=18'}
|
|
||||||
|
|
||||||
ms@2.1.3:
|
|
||||||
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
|
|
||||||
|
|
||||||
nanoid@5.1.6:
|
nanoid@5.1.6:
|
||||||
resolution: {integrity: sha512-c7+7RQ+dMB5dPwwCp4ee1/iV/q2P6aK1mTZcfr1BTuVlyW9hJYiMPybJCcnBlQtuSmTIWNeazm/zqNoZSSElBg==}
|
resolution: {integrity: sha512-c7+7RQ+dMB5dPwwCp4ee1/iV/q2P6aK1mTZcfr1BTuVlyW9hJYiMPybJCcnBlQtuSmTIWNeazm/zqNoZSSElBg==}
|
||||||
engines: {node: ^18 || >=20}
|
engines: {node: ^18 || >=20}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
on-finished@2.4.1:
|
node-fetch-native@1.6.7:
|
||||||
resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}
|
resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}
|
||||||
engines: {node: '>= 0.8'}
|
|
||||||
|
|
||||||
path-to-regexp@8.3.0:
|
node-mock-http@1.0.4:
|
||||||
resolution: {integrity: sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==}
|
resolution: {integrity: sha512-8DY+kFsDkNXy1sJglUfuODx1/opAGJGyrTuFqEoN90oRc2Vk0ZbD4K2qmKXBBEhZQzdKHIVfEJpDU8Ak2NJEvQ==}
|
||||||
|
|
||||||
pkijs@3.3.3:
|
normalize-path@3.0.0:
|
||||||
resolution: {integrity: sha512-+KD8hJtqQMYoTuL1bbGOqxb4z+nZkTAwVdNtWwe8Tc2xNbEmdJYIYoc6Qt0uF55e6YW6KuTHw1DjQ18gMhzepw==}
|
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
|
||||||
engines: {node: '>=16.0.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
pvtsutils@1.3.6:
|
ofetch@1.5.1:
|
||||||
resolution: {integrity: sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==}
|
resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==}
|
||||||
|
|
||||||
pvutils@1.1.5:
|
picomatch@2.3.1:
|
||||||
resolution: {integrity: sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA==}
|
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
|
||||||
engines: {node: '>=16.0.0'}
|
engines: {node: '>=8.6'}
|
||||||
|
|
||||||
range-parser@1.2.1:
|
radix3@1.1.2:
|
||||||
resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}
|
resolution: {integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==}
|
||||||
engines: {node: '>= 0.6'}
|
|
||||||
|
|
||||||
reflect-metadata@0.2.2:
|
readdirp@5.0.0:
|
||||||
resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==}
|
resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==}
|
||||||
|
engines: {node: '>= 20.19.0'}
|
||||||
selfsigned@5.5.0:
|
|
||||||
resolution: {integrity: sha512-ftnu3TW4+3eBfLRFnDEkzGxSF/10BJBkaLJuBHZX0kiPS7bRdlpZGu6YGt4KngMkdTwJE6MbjavFpqHvqVt+Ew==}
|
|
||||||
engines: {node: '>=18'}
|
|
||||||
|
|
||||||
send@1.2.1:
|
|
||||||
resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==}
|
|
||||||
engines: {node: '>= 18'}
|
|
||||||
|
|
||||||
setprototypeof@1.2.0:
|
|
||||||
resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
|
|
||||||
|
|
||||||
statuses@2.0.2:
|
|
||||||
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
|
|
||||||
engines: {node: '>= 0.8'}
|
|
||||||
|
|
||||||
toidentifier@1.0.1:
|
|
||||||
resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
|
|
||||||
engines: {node: '>=0.6'}
|
|
||||||
|
|
||||||
tslib@1.14.1:
|
|
||||||
resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
|
|
||||||
|
|
||||||
tslib@2.8.1:
|
tslib@2.8.1:
|
||||||
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
|
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
|
||||||
|
|
||||||
tsyringe@4.10.0:
|
ufo@1.6.3:
|
||||||
resolution: {integrity: sha512-axr3IdNuVIxnaK5XGEUFTu3YmAQ6lllgrvqfEoR16g/HGnYY/6We4oWENtAnzK6/LpJ2ur9PAb80RBt7/U4ugw==}
|
resolution: {integrity: sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==}
|
||||||
engines: {node: '>= 6.0.0'}
|
|
||||||
|
uncrypto@0.1.3:
|
||||||
|
resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}
|
||||||
|
|
||||||
undici-types@7.16.0:
|
undici-types@7.16.0:
|
||||||
resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}
|
resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}
|
||||||
|
|
||||||
|
unstorage@1.17.4:
|
||||||
|
resolution: {integrity: sha512-fHK0yNg38tBiJKp/Vgsq4j0JEsCmgqH58HAn707S7zGkArbZsVr/CwINoi+nh3h98BRCwKvx1K3Xg9u3VV83sw==}
|
||||||
|
peerDependencies:
|
||||||
|
'@azure/app-configuration': ^1.8.0
|
||||||
|
'@azure/cosmos': ^4.2.0
|
||||||
|
'@azure/data-tables': ^13.3.0
|
||||||
|
'@azure/identity': ^4.6.0
|
||||||
|
'@azure/keyvault-secrets': ^4.9.0
|
||||||
|
'@azure/storage-blob': ^12.26.0
|
||||||
|
'@capacitor/preferences': ^6 || ^7 || ^8
|
||||||
|
'@deno/kv': '>=0.9.0'
|
||||||
|
'@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0
|
||||||
|
'@planetscale/database': ^1.19.0
|
||||||
|
'@upstash/redis': ^1.34.3
|
||||||
|
'@vercel/blob': '>=0.27.1'
|
||||||
|
'@vercel/functions': ^2.2.12 || ^3.0.0
|
||||||
|
'@vercel/kv': ^1 || ^2 || ^3
|
||||||
|
aws4fetch: ^1.0.20
|
||||||
|
db0: '>=0.2.1'
|
||||||
|
idb-keyval: ^6.2.1
|
||||||
|
ioredis: ^5.4.2
|
||||||
|
uploadthing: ^7.4.4
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@azure/app-configuration':
|
||||||
|
optional: true
|
||||||
|
'@azure/cosmos':
|
||||||
|
optional: true
|
||||||
|
'@azure/data-tables':
|
||||||
|
optional: true
|
||||||
|
'@azure/identity':
|
||||||
|
optional: true
|
||||||
|
'@azure/keyvault-secrets':
|
||||||
|
optional: true
|
||||||
|
'@azure/storage-blob':
|
||||||
|
optional: true
|
||||||
|
'@capacitor/preferences':
|
||||||
|
optional: true
|
||||||
|
'@deno/kv':
|
||||||
|
optional: true
|
||||||
|
'@netlify/blobs':
|
||||||
|
optional: true
|
||||||
|
'@planetscale/database':
|
||||||
|
optional: true
|
||||||
|
'@upstash/redis':
|
||||||
|
optional: true
|
||||||
|
'@vercel/blob':
|
||||||
|
optional: true
|
||||||
|
'@vercel/functions':
|
||||||
|
optional: true
|
||||||
|
'@vercel/kv':
|
||||||
|
optional: true
|
||||||
|
aws4fetch:
|
||||||
|
optional: true
|
||||||
|
db0:
|
||||||
|
optional: true
|
||||||
|
idb-keyval:
|
||||||
|
optional: true
|
||||||
|
ioredis:
|
||||||
|
optional: true
|
||||||
|
uploadthing:
|
||||||
|
optional: true
|
||||||
|
|
||||||
zod@4.1.8:
|
zod@4.1.8:
|
||||||
resolution: {integrity: sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ==}
|
resolution: {integrity: sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ==}
|
||||||
|
|
||||||
|
zod@4.3.6:
|
||||||
|
resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
|
|
||||||
'@kevisual/cnb@0.0.2(dotenv@17.2.3)':
|
'@kevisual/cnb@0.0.19(dotenv@17.2.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@kevisual/query': 0.0.35
|
'@kevisual/query': 0.0.39
|
||||||
'@kevisual/router': 0.0.52
|
'@kevisual/router': 0.0.70
|
||||||
'@kevisual/use-config': 1.0.24(dotenv@17.2.3)
|
'@kevisual/use-config': 1.0.30(dotenv@17.2.3)
|
||||||
es-toolkit: 1.43.0
|
es-toolkit: 1.44.0
|
||||||
nanoid: 5.1.6
|
nanoid: 5.1.6
|
||||||
|
unstorage: 1.17.4
|
||||||
|
ws: '@kevisual/ws@8.19.0'
|
||||||
|
zod: 4.3.6
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
- '@azure/app-configuration'
|
||||||
|
- '@azure/cosmos'
|
||||||
|
- '@azure/data-tables'
|
||||||
|
- '@azure/identity'
|
||||||
|
- '@azure/keyvault-secrets'
|
||||||
|
- '@azure/storage-blob'
|
||||||
|
- '@capacitor/preferences'
|
||||||
|
- '@deno/kv'
|
||||||
|
- '@netlify/blobs'
|
||||||
|
- '@planetscale/database'
|
||||||
|
- '@upstash/redis'
|
||||||
|
- '@vercel/blob'
|
||||||
|
- '@vercel/functions'
|
||||||
|
- '@vercel/kv'
|
||||||
|
- aws4fetch
|
||||||
|
- db0
|
||||||
- dotenv
|
- dotenv
|
||||||
- supports-color
|
- idb-keyval
|
||||||
|
- ioredis
|
||||||
|
- uploadthing
|
||||||
|
|
||||||
'@kevisual/context@0.0.4': {}
|
'@kevisual/context@0.0.4': {}
|
||||||
|
|
||||||
@@ -260,245 +267,120 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
eventemitter3: 5.0.1
|
eventemitter3: 5.0.1
|
||||||
|
|
||||||
'@kevisual/query@0.0.35':
|
'@kevisual/query@0.0.39':
|
||||||
dependencies:
|
dependencies:
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
|
|
||||||
'@kevisual/router@0.0.52':
|
'@kevisual/router@0.0.70':
|
||||||
dependencies:
|
dependencies:
|
||||||
eventemitter3: 5.0.1
|
es-toolkit: 1.44.0
|
||||||
path-to-regexp: 8.3.0
|
|
||||||
selfsigned: 5.5.0
|
|
||||||
send: 1.2.1
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
|
|
||||||
'@kevisual/use-config@1.0.24(dotenv@17.2.3)':
|
'@kevisual/use-config@1.0.30(dotenv@17.2.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@kevisual/load': 0.0.6
|
'@kevisual/load': 0.0.6
|
||||||
dotenv: 17.2.3
|
dotenv: 17.2.3
|
||||||
|
|
||||||
'@noble/hashes@1.4.0': {}
|
'@kevisual/ws@8.19.0': {}
|
||||||
|
|
||||||
'@opencode-ai/plugin@1.1.14':
|
'@opencode-ai/plugin@1.1.53':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@opencode-ai/sdk': 1.1.14
|
'@opencode-ai/sdk': 1.1.53
|
||||||
zod: 4.1.8
|
zod: 4.1.8
|
||||||
|
|
||||||
'@opencode-ai/sdk@1.1.14': {}
|
'@opencode-ai/sdk@1.1.53': {}
|
||||||
|
|
||||||
'@peculiar/asn1-cms@2.6.0':
|
'@types/bun@1.3.8':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
bun-types: 1.3.8
|
||||||
'@peculiar/asn1-x509': 2.6.0
|
|
||||||
'@peculiar/asn1-x509-attr': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-csr@2.6.0':
|
'@types/node@25.2.1':
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
'@peculiar/asn1-x509': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-ecc@2.6.0':
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
'@peculiar/asn1-x509': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-pfx@2.6.0':
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-cms': 2.6.0
|
|
||||||
'@peculiar/asn1-pkcs8': 2.6.0
|
|
||||||
'@peculiar/asn1-rsa': 2.6.0
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-pkcs8@2.6.0':
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
'@peculiar/asn1-x509': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-pkcs9@2.6.0':
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-cms': 2.6.0
|
|
||||||
'@peculiar/asn1-pfx': 2.6.0
|
|
||||||
'@peculiar/asn1-pkcs8': 2.6.0
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
'@peculiar/asn1-x509': 2.6.0
|
|
||||||
'@peculiar/asn1-x509-attr': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-rsa@2.6.0':
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
'@peculiar/asn1-x509': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-schema@2.6.0':
|
|
||||||
dependencies:
|
|
||||||
asn1js: 3.0.7
|
|
||||||
pvtsutils: 1.3.6
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-x509-attr@2.6.0':
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
'@peculiar/asn1-x509': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/asn1-x509@2.6.0':
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
pvtsutils: 1.3.6
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
'@peculiar/x509@1.14.3':
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/asn1-cms': 2.6.0
|
|
||||||
'@peculiar/asn1-csr': 2.6.0
|
|
||||||
'@peculiar/asn1-ecc': 2.6.0
|
|
||||||
'@peculiar/asn1-pkcs9': 2.6.0
|
|
||||||
'@peculiar/asn1-rsa': 2.6.0
|
|
||||||
'@peculiar/asn1-schema': 2.6.0
|
|
||||||
'@peculiar/asn1-x509': 2.6.0
|
|
||||||
pvtsutils: 1.3.6
|
|
||||||
reflect-metadata: 0.2.2
|
|
||||||
tslib: 2.8.1
|
|
||||||
tsyringe: 4.10.0
|
|
||||||
|
|
||||||
'@types/bun@1.3.5':
|
|
||||||
dependencies:
|
|
||||||
bun-types: 1.3.5
|
|
||||||
|
|
||||||
'@types/node@25.0.6':
|
|
||||||
dependencies:
|
dependencies:
|
||||||
undici-types: 7.16.0
|
undici-types: 7.16.0
|
||||||
|
|
||||||
asn1js@3.0.7:
|
anymatch@3.1.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
pvtsutils: 1.3.6
|
normalize-path: 3.0.0
|
||||||
pvutils: 1.1.5
|
picomatch: 2.3.1
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
bun-types@1.3.5:
|
bun-types@1.3.8:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 25.0.6
|
'@types/node': 25.2.1
|
||||||
|
|
||||||
bytestreamjs@2.0.1: {}
|
chokidar@5.0.0:
|
||||||
|
|
||||||
debug@4.4.3:
|
|
||||||
dependencies:
|
dependencies:
|
||||||
ms: 2.1.3
|
readdirp: 5.0.0
|
||||||
|
|
||||||
depd@2.0.0: {}
|
cookie-es@1.2.2: {}
|
||||||
|
|
||||||
|
crossws@0.3.5:
|
||||||
|
dependencies:
|
||||||
|
uncrypto: 0.1.3
|
||||||
|
|
||||||
|
defu@6.1.4: {}
|
||||||
|
|
||||||
|
destr@2.0.5: {}
|
||||||
|
|
||||||
dotenv@17.2.3: {}
|
dotenv@17.2.3: {}
|
||||||
|
|
||||||
ee-first@1.1.1: {}
|
es-toolkit@1.44.0: {}
|
||||||
|
|
||||||
encodeurl@2.0.0: {}
|
|
||||||
|
|
||||||
es-toolkit@1.43.0: {}
|
|
||||||
|
|
||||||
escape-html@1.0.3: {}
|
|
||||||
|
|
||||||
etag@1.8.1: {}
|
|
||||||
|
|
||||||
eventemitter3@5.0.1: {}
|
eventemitter3@5.0.1: {}
|
||||||
|
|
||||||
fresh@2.0.0: {}
|
h3@1.15.5:
|
||||||
|
|
||||||
http-errors@2.0.1:
|
|
||||||
dependencies:
|
dependencies:
|
||||||
depd: 2.0.0
|
cookie-es: 1.2.2
|
||||||
inherits: 2.0.4
|
crossws: 0.3.5
|
||||||
setprototypeof: 1.2.0
|
defu: 6.1.4
|
||||||
statuses: 2.0.2
|
destr: 2.0.5
|
||||||
toidentifier: 1.0.1
|
iron-webcrypto: 1.2.1
|
||||||
|
node-mock-http: 1.0.4
|
||||||
|
radix3: 1.1.2
|
||||||
|
ufo: 1.6.3
|
||||||
|
uncrypto: 0.1.3
|
||||||
|
|
||||||
inherits@2.0.4: {}
|
iron-webcrypto@1.2.1: {}
|
||||||
|
|
||||||
mime-db@1.54.0: {}
|
lru-cache@11.2.5: {}
|
||||||
|
|
||||||
mime-types@3.0.2:
|
|
||||||
dependencies:
|
|
||||||
mime-db: 1.54.0
|
|
||||||
|
|
||||||
ms@2.1.3: {}
|
|
||||||
|
|
||||||
nanoid@5.1.6: {}
|
nanoid@5.1.6: {}
|
||||||
|
|
||||||
on-finished@2.4.1:
|
node-fetch-native@1.6.7: {}
|
||||||
|
|
||||||
|
node-mock-http@1.0.4: {}
|
||||||
|
|
||||||
|
normalize-path@3.0.0: {}
|
||||||
|
|
||||||
|
ofetch@1.5.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
ee-first: 1.1.1
|
destr: 2.0.5
|
||||||
|
node-fetch-native: 1.6.7
|
||||||
|
ufo: 1.6.3
|
||||||
|
|
||||||
path-to-regexp@8.3.0: {}
|
picomatch@2.3.1: {}
|
||||||
|
|
||||||
pkijs@3.3.3:
|
radix3@1.1.2: {}
|
||||||
dependencies:
|
|
||||||
'@noble/hashes': 1.4.0
|
|
||||||
asn1js: 3.0.7
|
|
||||||
bytestreamjs: 2.0.1
|
|
||||||
pvtsutils: 1.3.6
|
|
||||||
pvutils: 1.1.5
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
pvtsutils@1.3.6:
|
readdirp@5.0.0: {}
|
||||||
dependencies:
|
|
||||||
tslib: 2.8.1
|
|
||||||
|
|
||||||
pvutils@1.1.5: {}
|
|
||||||
|
|
||||||
range-parser@1.2.1: {}
|
|
||||||
|
|
||||||
reflect-metadata@0.2.2: {}
|
|
||||||
|
|
||||||
selfsigned@5.5.0:
|
|
||||||
dependencies:
|
|
||||||
'@peculiar/x509': 1.14.3
|
|
||||||
pkijs: 3.3.3
|
|
||||||
|
|
||||||
send@1.2.1:
|
|
||||||
dependencies:
|
|
||||||
debug: 4.4.3
|
|
||||||
encodeurl: 2.0.0
|
|
||||||
escape-html: 1.0.3
|
|
||||||
etag: 1.8.1
|
|
||||||
fresh: 2.0.0
|
|
||||||
http-errors: 2.0.1
|
|
||||||
mime-types: 3.0.2
|
|
||||||
ms: 2.1.3
|
|
||||||
on-finished: 2.4.1
|
|
||||||
range-parser: 1.2.1
|
|
||||||
statuses: 2.0.2
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
|
|
||||||
setprototypeof@1.2.0: {}
|
|
||||||
|
|
||||||
statuses@2.0.2: {}
|
|
||||||
|
|
||||||
toidentifier@1.0.1: {}
|
|
||||||
|
|
||||||
tslib@1.14.1: {}
|
|
||||||
|
|
||||||
tslib@2.8.1: {}
|
tslib@2.8.1: {}
|
||||||
|
|
||||||
tsyringe@4.10.0:
|
ufo@1.6.3: {}
|
||||||
dependencies:
|
|
||||||
tslib: 1.14.1
|
uncrypto@0.1.3: {}
|
||||||
|
|
||||||
undici-types@7.16.0: {}
|
undici-types@7.16.0: {}
|
||||||
|
|
||||||
|
unstorage@1.17.4:
|
||||||
|
dependencies:
|
||||||
|
anymatch: 3.1.3
|
||||||
|
chokidar: 5.0.0
|
||||||
|
destr: 2.0.5
|
||||||
|
h3: 1.15.5
|
||||||
|
lru-cache: 11.2.5
|
||||||
|
node-fetch-native: 1.6.7
|
||||||
|
ofetch: 1.5.1
|
||||||
|
ufo: 1.6.3
|
||||||
|
|
||||||
zod@4.1.8: {}
|
zod@4.1.8: {}
|
||||||
|
|
||||||
|
zod@4.3.6: {}
|
||||||
|
|||||||
49
src/index.ts
Normal file
49
src/index.ts
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
import { createOpencode, createOpencodeClient } from '@opencode-ai/sdk'
|
||||||
|
import util from 'node:util'
|
||||||
|
const showMore = (obj: any) => {
|
||||||
|
return util.inspect(obj, { showHidden: false, depth: null, colors: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
// const client = await createOpencode({
|
||||||
|
// })
|
||||||
|
const client = await createOpencodeClient({
|
||||||
|
baseUrl: "http://localhost:4096",
|
||||||
|
})
|
||||||
|
// const sessions = await client.session.list()
|
||||||
|
|
||||||
|
// console.log('session', sessions)
|
||||||
|
|
||||||
|
// const sessions = await client.session.list({
|
||||||
|
// query: {
|
||||||
|
// directory: '/home/ubuntu/kevisual'
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// console.log('session', sessions)
|
||||||
|
|
||||||
|
const project = await client.project.list()
|
||||||
|
console.log('project', project)
|
||||||
|
const first = project.data?.[0]
|
||||||
|
if (first) {
|
||||||
|
const sessions = await client.session.list()
|
||||||
|
console.log('session', sessions)
|
||||||
|
const session = sessions.data?.[0]
|
||||||
|
if (session) {
|
||||||
|
const id = session.id;
|
||||||
|
const res = await client.session.prompt({
|
||||||
|
path: { id: session.id },
|
||||||
|
body: {
|
||||||
|
// noReply: true,
|
||||||
|
tools: {
|
||||||
|
greet: false,
|
||||||
|
},
|
||||||
|
// parts: [{ type: "text", text: "执行Greet工具" }],
|
||||||
|
// parts: [{ type: "text", text: "name是 xiong" }],
|
||||||
|
parts: [
|
||||||
|
{ type: "text", text: "执行Greet工具" },
|
||||||
|
{ type: "text", text: "name是 xiong" }],
|
||||||
|
},
|
||||||
|
})
|
||||||
|
console.log('res', showMore(res))
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user