@copado/agentia-cli 1.0.0-rc.0 → 1.0.0
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 +9 -0
- package/README.md +278 -271
- package/dist/commands/setup.js +14 -2
- package/dist/commands/update.js +11 -4
- package/dist/lib/cli-update.js +6 -1
- package/dist/lib/defaults-store.js +3 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/version-warning.js +3 -0
- package/oclif.manifest.json +335 -327
- package/package.json +1 -1
- package/templates/skills/agentia-cicd/references/pipelines.md +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
import { isVersionCacheStale, readVersionCache, resolveUpdateCandidate, versionCachePath, } from './cli-version.js';
|
|
4
|
+
import { readUpdateChannel } from './defaults-store.js';
|
|
4
5
|
let spawnRefreshFn = spawnVersionRefresh;
|
|
5
6
|
let spawnChildFn = spawn;
|
|
6
7
|
const LOCAL_DEVELOPMENT_VERSION = '0.0.0-dev.0';
|
|
@@ -48,8 +49,10 @@ export async function checkVersionWarning(options) {
|
|
|
48
49
|
let warning;
|
|
49
50
|
if (cache !== undefined && (cache.rc !== undefined || cache.latest !== undefined)) {
|
|
50
51
|
try {
|
|
52
|
+
const preferredChannel = await readUpdateChannel();
|
|
51
53
|
const candidate = resolveUpdateCandidate({
|
|
52
54
|
currentVersion: options.currentVersion,
|
|
55
|
+
preferredChannel,
|
|
53
56
|
tags: {
|
|
54
57
|
...(cache.latest === undefined ? {} : { latest: cache.latest }),
|
|
55
58
|
...(cache.rc === undefined ? {} : { rc: cache.rc }),
|