buckyos 0.7.188 → 0.7.189
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/cli/dist/cli.mjs +6 -3
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/pikg_protocol.ts +4 -1
- package/cli/version.ts +1 -1
- package/package.json +1 -1
|
@@ -698,7 +698,10 @@ export function extToolsManifestErrors(value: unknown): string[] {
|
|
|
698
698
|
if (manifest.schema !== EXT_TOOLS_MANIFEST_SCHEMA) errors.push(`schema must be ${EXT_TOOLS_MANIFEST_SCHEMA}`)
|
|
699
699
|
if (typeof manifest.id !== 'string' || !EXT_TOOLS_ID.test(manifest.id)) errors.push('id must be lowercase letters, digits and -')
|
|
700
700
|
if (typeof manifest.version !== 'string' || !EXT_TOOLS_VERSION.test(manifest.version)) errors.push('version must be letters, digits and ._+-')
|
|
701
|
-
if (!Array.isArray(manifest.provides)
|
|
701
|
+
if (!Array.isArray(manifest.provides)) errors.push('provides must be a list')
|
|
702
|
+
else if (manifest.provides.length === 0 && !(Array.isArray(manifest.online) && manifest.online.length > 0)) {
|
|
703
|
+
errors.push('a package provides commands or declares online items')
|
|
704
|
+
}
|
|
702
705
|
const online = extToolsOnlineErrors(manifest)
|
|
703
706
|
errors.push(...online.errors)
|
|
704
707
|
const commands = new Set<string>()
|
package/cli/version.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by scripts/generate-cli-version.mjs. Do not edit.
|
|
2
|
-
export const PACKAGE_VERSION = '0.7.
|
|
2
|
+
export const PACKAGE_VERSION = '0.7.189'
|
|
3
3
|
export const TOOL_VERSION = PACKAGE_VERSION
|
|
4
4
|
export const SDK_VERSION = PACKAGE_VERSION
|
|
5
5
|
export const PROTOCOL_VERSION = '1'
|