@rely-ai/caliber 1.19.1 → 1.19.3
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/bin.js +6 -4
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -8295,9 +8295,11 @@ async function learnObserveCommand(options) {
|
|
|
8295
8295
|
} catch {
|
|
8296
8296
|
}
|
|
8297
8297
|
}
|
|
8298
|
-
async function learnFinalizeCommand() {
|
|
8299
|
-
|
|
8300
|
-
|
|
8298
|
+
async function learnFinalizeCommand(options) {
|
|
8299
|
+
if (!options?.force) {
|
|
8300
|
+
const { isCaliberRunning: isCaliberRunning2 } = await Promise.resolve().then(() => (init_lock(), lock_exports));
|
|
8301
|
+
if (isCaliberRunning2()) return;
|
|
8302
|
+
}
|
|
8301
8303
|
if (!acquireFinalizeLock()) return;
|
|
8302
8304
|
let analyzed = false;
|
|
8303
8305
|
try {
|
|
@@ -8495,7 +8497,7 @@ program.command("refresh").description("Update docs based on recent code changes
|
|
|
8495
8497
|
program.command("hooks").description("Manage auto-refresh hooks (toggle interactively)").option("--install", "Enable all hooks non-interactively").option("--remove", "Disable all hooks non-interactively").action(tracked("hooks", hooksCommand));
|
|
8496
8498
|
var learn = program.command("learn", { hidden: true }).description("[dev] Session learning \u2014 observe tool usage and extract reusable instructions");
|
|
8497
8499
|
learn.command("observe").description("Record a tool event from stdin (called by hooks)").option("--failure", "Mark event as a tool failure").action(tracked("learn:observe", learnObserveCommand));
|
|
8498
|
-
learn.command("finalize").description("Analyze session events and update
|
|
8500
|
+
learn.command("finalize").description("Analyze session events and update CALIBER_LEARNINGS.md (called on SessionEnd)").option("--force", "Skip the running-process check (for manual invocation)").action(tracked("learn:finalize", (opts) => learnFinalizeCommand(opts)));
|
|
8499
8501
|
learn.command("install").description("Install learning hooks into .claude/settings.json").action(tracked("learn:install", learnInstallCommand));
|
|
8500
8502
|
learn.command("remove").description("Remove learning hooks from .claude/settings.json").action(tracked("learn:remove", learnRemoveCommand));
|
|
8501
8503
|
learn.command("status").description("Show learning system status").action(tracked("learn:status", learnStatusCommand));
|
package/package.json
CHANGED