@basou/cli 0.22.0 → 0.23.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/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/program.js +7 -1
- package/dist/program.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3287,7 +3287,10 @@ async function probeStaleness(args) {
|
|
|
3287
3287
|
|
|
3288
3288
|
// src/commands/orient.ts
|
|
3289
3289
|
function registerOrientCommand(program2) {
|
|
3290
|
-
program2.command("orient").description("Show the workspace's current position (also writes .basou/orientation.md)").option("-q, --quiet", "Write the file without printing the body").option(
|
|
3290
|
+
program2.command("orient").description("Show the workspace's current position (also writes .basou/orientation.md)").option("-q, --quiet", "Write the file without printing the body").option(
|
|
3291
|
+
"--refresh",
|
|
3292
|
+
"Import all adapters first (writes provenance), then show a guaranteed-fresh position; bare orient is read-only"
|
|
3293
|
+
).option("-v, --verbose", "Show error causes").action(async (opts) => {
|
|
3291
3294
|
await runOrient(opts);
|
|
3292
3295
|
});
|
|
3293
3296
|
}
|
|
@@ -3308,6 +3311,9 @@ async function doRunOrient(options, ctx) {
|
|
|
3308
3311
|
const probeCtx = { cwd: repositoryRoot };
|
|
3309
3312
|
if (ctx.claudeProjectsDir !== void 0) probeCtx.claudeProjectsDir = ctx.claudeProjectsDir;
|
|
3310
3313
|
if (ctx.codexSessionsDir !== void 0) probeCtx.codexSessionsDir = ctx.codexSessionsDir;
|
|
3314
|
+
if (options.refresh === true) {
|
|
3315
|
+
await refreshAll({ options: {}, ctx: probeCtx, paths, nowIso });
|
|
3316
|
+
}
|
|
3311
3317
|
const staleness = await probeStaleness({ ctx: probeCtx, paths, nowIso });
|
|
3312
3318
|
let federatedRoots = [];
|
|
3313
3319
|
try {
|