@lore-co/cli 0.1.27 → 0.1.28
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/README.md +17 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +85 -56
- package/dist/cli.js.map +1 -1
- package/dist/command-help.d.ts +33 -0
- package/dist/command-help.d.ts.map +1 -0
- package/dist/command-help.js +200 -0
- package/dist/command-help.js.map +1 -0
- package/dist/demo.d.ts.map +1 -1
- package/dist/demo.js +15 -2
- package/dist/demo.js.map +1 -1
- package/dist/generated-assets.d.ts +4 -4
- package/dist/generated-assets.js +4 -4
- package/dist/guard.d.ts.map +1 -1
- package/dist/guard.js +4 -3
- package/dist/guard.js.map +1 -1
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +1 -0
- package/dist/runtime.js.map +1 -1
- package/dist/self-host.d.ts +1 -1
- package/dist/self-host.js +2 -2
- package/dist/update.js +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -25,6 +25,21 @@ lore doctor
|
|
|
25
25
|
|
|
26
26
|
The package requires Node.js 22 or newer and installs the `lore` command.
|
|
27
27
|
|
|
28
|
+
## Find the right command
|
|
29
|
+
|
|
30
|
+
Run `lore help` for the command list, `lore help <command>` for its use case,
|
|
31
|
+
options and examples, or `lore help self-host up` for a subcommand.
|
|
32
|
+
`lore <command> --help` works too. Help does not require a workspace connection.
|
|
33
|
+
|
|
34
|
+
Use `ask` to find existing knowledge, `remember` to save a reusable lesson,
|
|
35
|
+
`resume` to pick up previous work, and `continue` to hand it to another agent.
|
|
36
|
+
Use `status` to check connections and `doctor` when something is not working.
|
|
37
|
+
|
|
38
|
+
`lore demo` runs real Claude and Codex sessions in your connected workspace.
|
|
39
|
+
It removes its temporary learning after the run; the sessions and delivery
|
|
40
|
+
history remain available through the Sessions filter for Lore setup and tests.
|
|
41
|
+
Native-agent acceptance tests use a separate disposable stack.
|
|
42
|
+
|
|
28
43
|
`connect` auto-detects the `codex`, `claude`, `cursor`, `opencode`, and
|
|
29
44
|
`polytoken` executables plus existing Cursor, OpenCode, and Polytoken
|
|
30
45
|
configuration directories.
|
|
@@ -164,7 +179,7 @@ content-free `guard_check` audit event.
|
|
|
164
179
|
|
|
165
180
|
```sh
|
|
166
181
|
lore update
|
|
167
|
-
lore update --version v0.1.
|
|
182
|
+
lore update --version v0.1.28
|
|
168
183
|
```
|
|
169
184
|
|
|
170
185
|
`update` resolves the latest release to an exact tag, or uses the exact
|
|
@@ -482,7 +497,7 @@ same-repository, non-draft pull requests bearing the corresponding
|
|
|
482
497
|
`lore:codex-review` or `lore:devin-review` label.
|
|
483
498
|
|
|
484
499
|
Generated jobs require a published standalone binary release and default to
|
|
485
|
-
`treadiehq/lore-releases` at `v0.1.
|
|
500
|
+
`treadiehq/lore-releases` at `v0.1.28`. Set `LORE_CLI_REPOSITORY` to the publicly
|
|
486
501
|
readable `owner/repository` and `LORE_CLI_VERSION` to an existing release tag
|
|
487
502
|
when using another release source.
|
|
488
503
|
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AA0BA,OAAO,EAwBL,KAAK,yBAAyB,EAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAgCtB,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AACxD,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,4BAA4B,uBAAuB,CAAC;AACjE,QAAA,MAAM,sBAAsB,kGAA4B,CAAC;AACzD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1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CACpB;AAED,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,aAAa,CAAC,CAmJxB;AA6LD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAKvE;AAED,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,MAAM,CAKR;AA0zBD,wBAAsB,MAAM,CAC1B,IAAI,GAAE,SAAS,MAAM,EAA0B,GAC9C,OAAO,CAAC,IAAI,CAAC,CA8Kf"}
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { COMMAND_GUIDES, ROOT_HELP, helpTopic } from "./command-help.js";
|
|
2
3
|
import { runShareCommand } from "./share.js";
|
|
3
4
|
import { codexApprovalDetail, inspectCodexHookApproval } from "./codex-hook-approval.js";
|
|
4
5
|
import { claudeOnlyCommand, disableDevinCli, runDevinCliHook } from "./devin-cli.js";
|
|
@@ -78,62 +79,6 @@ const AGENT_MANIFESTS = {
|
|
|
78
79
|
opencode: OPENCODE_RELIABILITY_INTEGRATION,
|
|
79
80
|
polytoken: POLYTOKEN_RELIABILITY_INTEGRATION,
|
|
80
81
|
};
|
|
81
|
-
const ROOT_HELP = `lore
|
|
82
|
-
Connect local coding agents to Lore shared engineering memory.
|
|
83
|
-
|
|
84
|
-
Usage:
|
|
85
|
-
lore <command> [options]
|
|
86
|
-
|
|
87
|
-
Commands:
|
|
88
|
-
connect Configure Lore and install native agent integrations
|
|
89
|
-
share Get a private workspace link to a learning, session, or delivery
|
|
90
|
-
ask Query shared knowledge and prior session context
|
|
91
|
-
remember Save a durable fact, convention, correction, or decision
|
|
92
|
-
guard Control Context Guard (off, assist, enforce)
|
|
93
|
-
resume Continue previous work with saved Lore context
|
|
94
|
-
continue Hand the current work to a different agent (--on <agent>)
|
|
95
|
-
run Run a coding agent with configured recovery
|
|
96
|
-
recovery Inspect recovery metrics, record feedback, or disable recovery
|
|
97
|
-
attach Reconnect to a live Lore-managed session (--from <machine>)
|
|
98
|
-
machines List registered machines and their live sessions
|
|
99
|
-
github Prepare/post GitHub reviews and observe corrections
|
|
100
|
-
devin Start and manage Lore-enabled Devin sessions
|
|
101
|
-
host Call auditable APIs from external agent hosts
|
|
102
|
-
status Show connector and agent integration state
|
|
103
|
-
doctor Diagnose configuration, integrations, and API reachability
|
|
104
|
-
self-host Run a version-pinned local Docker Compose deployment
|
|
105
|
-
demo Prove a file-scoped Claude-to-Codex handoff
|
|
106
|
-
update Install the latest Lore CLI binary
|
|
107
|
-
disconnect Remove Lore-owned integrations and local credentials
|
|
108
|
-
hook Internal native hook handler
|
|
109
|
-
|
|
110
|
-
Discover:
|
|
111
|
-
lore connect --help
|
|
112
|
-
lore ask --help
|
|
113
|
-
lore remember --help
|
|
114
|
-
lore guard --help
|
|
115
|
-
lore resume --help
|
|
116
|
-
lore continue --help
|
|
117
|
-
lore attach --help
|
|
118
|
-
lore status --help
|
|
119
|
-
lore doctor --help
|
|
120
|
-
lore self-host --help
|
|
121
|
-
lore disconnect --help
|
|
122
|
-
lore host --help
|
|
123
|
-
|
|
124
|
-
Examples:
|
|
125
|
-
lore connect --token "$LORE_WORKSPACE_TOKEN"
|
|
126
|
-
lore ask "How should payment retries work?"
|
|
127
|
-
lore remember "Use pnpm for this repository." --repo acme/app
|
|
128
|
-
lore resume
|
|
129
|
-
lore continue --on codex
|
|
130
|
-
lore connect github --repo owner/repository
|
|
131
|
-
lore status --json
|
|
132
|
-
lore doctor
|
|
133
|
-
lore demo
|
|
134
|
-
lore update
|
|
135
|
-
lore devin --help
|
|
136
|
-
`;
|
|
137
82
|
const CONNECT_HELP = `lore connect
|
|
138
83
|
Authorize this device and idempotently install agent integrations.
|
|
139
84
|
|
|
@@ -2536,8 +2481,92 @@ async function doctorCommand(args) {
|
|
|
2536
2481
|
process.exitCode = 1;
|
|
2537
2482
|
}
|
|
2538
2483
|
}
|
|
2484
|
+
async function printCommandHelp(path) {
|
|
2485
|
+
const topic = helpTopic(path);
|
|
2486
|
+
process.stdout.write(`When to use: ${COMMAND_GUIDES[topic.command]}\n\n`);
|
|
2487
|
+
if (topic.text) {
|
|
2488
|
+
process.stdout.write(topic.text);
|
|
2489
|
+
return;
|
|
2490
|
+
}
|
|
2491
|
+
const args = [...(topic.subcommand ? [topic.subcommand] : []), "--help"];
|
|
2492
|
+
// Help never loads workspace credentials, makes requests, or runs an agent.
|
|
2493
|
+
switch (topic.command) {
|
|
2494
|
+
case "connect":
|
|
2495
|
+
process.stdout.write(CONNECT_HELP);
|
|
2496
|
+
return;
|
|
2497
|
+
case "status":
|
|
2498
|
+
process.stdout.write(STATUS_HELP);
|
|
2499
|
+
return;
|
|
2500
|
+
case "doctor":
|
|
2501
|
+
process.stdout.write(DOCTOR_HELP);
|
|
2502
|
+
return;
|
|
2503
|
+
case "disconnect":
|
|
2504
|
+
process.stdout.write(DISCONNECT_HELP);
|
|
2505
|
+
return;
|
|
2506
|
+
case "share":
|
|
2507
|
+
await runShareCommand(args, null);
|
|
2508
|
+
return;
|
|
2509
|
+
case "ask":
|
|
2510
|
+
await runAskCommand(args, null);
|
|
2511
|
+
return;
|
|
2512
|
+
case "remember":
|
|
2513
|
+
await runRememberCommand(args, null);
|
|
2514
|
+
return;
|
|
2515
|
+
case "guard":
|
|
2516
|
+
await runGuardCommand(args, null);
|
|
2517
|
+
return;
|
|
2518
|
+
case "resume":
|
|
2519
|
+
await runResumeCommand(args, null, getLorePaths());
|
|
2520
|
+
return;
|
|
2521
|
+
case "continue":
|
|
2522
|
+
await runContinueCommand(args, null, getLorePaths());
|
|
2523
|
+
return;
|
|
2524
|
+
case "attach":
|
|
2525
|
+
await runAttachCommand(args, null, getLorePaths());
|
|
2526
|
+
return;
|
|
2527
|
+
case "machines":
|
|
2528
|
+
await runMachinesCommand(args, null, getLorePaths());
|
|
2529
|
+
return;
|
|
2530
|
+
case "host":
|
|
2531
|
+
await runHostCommand(args);
|
|
2532
|
+
return;
|
|
2533
|
+
case "devin":
|
|
2534
|
+
if (topic.subcommand === "cli") {
|
|
2535
|
+
process.stdout.write((await import("./devin-cli.js")).DEVIN_CLI_HELP);
|
|
2536
|
+
return;
|
|
2537
|
+
}
|
|
2538
|
+
await runDevinCommand(args);
|
|
2539
|
+
return;
|
|
2540
|
+
case "self-host":
|
|
2541
|
+
await runSelfHostCommand(args);
|
|
2542
|
+
return;
|
|
2543
|
+
case "demo":
|
|
2544
|
+
await runDemoCommand(args, null);
|
|
2545
|
+
return;
|
|
2546
|
+
case "update":
|
|
2547
|
+
await updateCommand(args);
|
|
2548
|
+
return;
|
|
2549
|
+
default: throw new Error(`Help is unavailable for ${topic.command}`);
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2539
2552
|
export async function runCli(args = process.argv.slice(2)) {
|
|
2540
2553
|
const command = args[0];
|
|
2554
|
+
if (command === "help") {
|
|
2555
|
+
const path = args.slice(1);
|
|
2556
|
+
if (!path.length || (path.length === 1 && ["--help", "-h"].includes(path[0])))
|
|
2557
|
+
process.stdout.write(ROOT_HELP);
|
|
2558
|
+
else
|
|
2559
|
+
await printCommandHelp(path);
|
|
2560
|
+
return;
|
|
2561
|
+
}
|
|
2562
|
+
const separator = args.indexOf("--");
|
|
2563
|
+
const helpIndex = args.findIndex((value, index) => index > 0 && (separator < 0 || index < separator) && (value === "--help" || value === "-h"));
|
|
2564
|
+
if (helpIndex > 0) {
|
|
2565
|
+
const subcommand = args[1];
|
|
2566
|
+
const grouped = ["connect", "guard", "recovery", "github", "devin", "host", "self-host"].includes(command ?? "");
|
|
2567
|
+
await printCommandHelp([command, ...(grouped && subcommand && !subcommand.startsWith("-") ? [subcommand] : [])]);
|
|
2568
|
+
return;
|
|
2569
|
+
}
|
|
2541
2570
|
if (command === undefined || command === "--help" || command === "-h") {
|
|
2542
2571
|
process.stdout.write(ROOT_HELP);
|
|
2543
2572
|
return;
|