opencode-navigator 0.20.0 → 0.21.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.
- package/CHANGELOG.md +14 -0
- package/PROVIDERS.md +92 -0
- package/README.md +56 -26
- package/dist/provider-limits.js +489 -187
- package/dist/rpc.js +6 -1
- package/dist/server.js +589 -1
- package/dist/tui.js +124 -79
- package/package.json +13 -10
- package/scripts/update-local-snapshot.mjs +14 -12
|
@@ -60,7 +60,8 @@ export async function updateLocalSnapshot(wrapper, target, operations = {}) {
|
|
|
60
60
|
if (target === version) return
|
|
61
61
|
|
|
62
62
|
await validate(previous, version)
|
|
63
|
-
const
|
|
63
|
+
const previousMetadata = JSON.parse(await readFile(join(previous, 'package.json'), 'utf8'))
|
|
64
|
+
const dependencies = previousMetadata.dependencies
|
|
64
65
|
|
|
65
66
|
if (!dependencies?.['@opentui/core'] || !dependencies['@opentui/solid'] || !dependencies['solid-js'])
|
|
66
67
|
throw new Error('Pinned Navigator runtime dependencies are missing')
|
|
@@ -99,20 +100,21 @@ export async function updateLocalSnapshot(wrapper, target, operations = {}) {
|
|
|
99
100
|
private: true,
|
|
100
101
|
type: 'module',
|
|
101
102
|
dependencies,
|
|
103
|
+
optionalDependencies: { ...previousMetadata.optionalDependencies, ...metadata.optionalDependencies },
|
|
102
104
|
}),
|
|
103
105
|
)
|
|
104
106
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
107
|
+
await (operations.install
|
|
108
|
+
? operations.install(staging)
|
|
109
|
+
: command('npm', [
|
|
110
|
+
'install',
|
|
111
|
+
'--prefix',
|
|
112
|
+
staging,
|
|
113
|
+
'--omit=dev',
|
|
114
|
+
'--ignore-scripts',
|
|
115
|
+
'--no-package-lock',
|
|
116
|
+
'--legacy-peer-deps',
|
|
117
|
+
]))
|
|
116
118
|
|
|
117
119
|
await validate(staging, target)
|
|
118
120
|
|