@lore-co/cli 0.2.36 → 0.2.38
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 +4 -4
- package/dist/cli.d.ts +18 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +118 -13
- package/dist/cli.js.map +1 -1
- package/dist/codex-hook-approval.d.ts +7 -2
- package/dist/codex-hook-approval.d.ts.map +1 -1
- package/dist/codex-hook-approval.js +8 -4
- package/dist/codex-hook-approval.js.map +1 -1
- package/dist/command-help.d.ts.map +1 -1
- package/dist/command-help.js +19 -4
- package/dist/command-help.js.map +1 -1
- package/dist/devin-cli.d.ts.map +1 -1
- package/dist/devin-cli.js +9 -2
- package/dist/devin-cli.js.map +1 -1
- package/dist/devin.d.ts.map +1 -1
- package/dist/devin.js +30 -5
- package/dist/devin.js.map +1 -1
- package/dist/generated-assets.d.ts +8 -8
- package/dist/generated-assets.d.ts.map +1 -1
- package/dist/generated-assets.js +8 -8
- package/dist/generated-assets.js.map +1 -1
- package/dist/github.d.ts +6 -0
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +60 -23
- package/dist/github.js.map +1 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +4 -8
- package/dist/host.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lore-agent.d.ts +2 -1
- package/dist/lore-agent.d.ts.map +1 -1
- package/dist/lore-agent.js +14 -6
- package/dist/lore-agent.js.map +1 -1
- package/dist/owned-files.d.ts +5 -0
- package/dist/owned-files.d.ts.map +1 -1
- package/dist/owned-files.js +22 -7
- package/dist/owned-files.js.map +1 -1
- package/dist/public-rules.d.ts +20 -0
- package/dist/public-rules.d.ts.map +1 -0
- package/dist/public-rules.js +99 -0
- package/dist/public-rules.js.map +1 -0
- package/dist/recovery-cloud-workspace.d.ts.map +1 -1
- package/dist/recovery-cloud-workspace.js +2 -2
- package/dist/recovery-cloud-workspace.js.map +1 -1
- package/dist/recovery-cloud.d.ts +21 -3
- package/dist/recovery-cloud.d.ts.map +1 -1
- package/dist/recovery-cloud.js +77 -10
- package/dist/recovery-cloud.js.map +1 -1
- package/dist/recovery-state.d.ts.map +1 -1
- package/dist/recovery-state.js +8 -5
- package/dist/recovery-state.js.map +1 -1
- package/dist/remember.d.ts.map +1 -1
- package/dist/remember.js +12 -2
- package/dist/remember.js.map +1 -1
- package/dist/runtime.d.ts +10 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +70 -12
- package/dist/runtime.js.map +1 -1
- package/dist/self-host.d.ts +1 -1
- package/dist/self-host.d.ts.map +1 -1
- package/dist/self-host.js +9 -3
- package/dist/self-host.js.map +1 -1
- package/dist/skills.d.ts +2 -1
- package/dist/skills.d.ts.map +1 -1
- package/dist/skills.js +15 -5
- package/dist/skills.js.map +1 -1
- package/dist/status-health.d.ts +5 -0
- package/dist/status-health.d.ts.map +1 -1
- package/dist/status-health.js +13 -3
- package/dist/status-health.js.map +1 -1
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +2 -1
- package/dist/telemetry.js.map +1 -1
- package/dist/uninstall.d.ts +2 -0
- package/dist/uninstall.d.ts.map +1 -1
- package/dist/uninstall.js +1 -1
- package/dist/uninstall.js.map +1 -1
- package/dist/update.js +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -436,7 +436,7 @@ content-free `guard_check` audit event.
|
|
|
436
436
|
|
|
437
437
|
```sh
|
|
438
438
|
lore update
|
|
439
|
-
lore update --version v0.2.
|
|
439
|
+
lore update --version v0.2.38
|
|
440
440
|
```
|
|
441
441
|
|
|
442
442
|
`update` resolves the latest release to an exact tag, or uses the exact
|
|
@@ -459,7 +459,7 @@ receive timestamped backups, and customer-edited skill files are preserved with
|
|
|
459
459
|
a warning. The report is by agent and lists only what you need to do:
|
|
460
460
|
|
|
461
461
|
```text
|
|
462
|
-
✓ Lore 0.2.
|
|
462
|
+
✓ Lore 0.2.38 is installed
|
|
463
463
|
✓ Updated Lore for Claude Code and Codex
|
|
464
464
|
|
|
465
465
|
Next
|
|
@@ -832,7 +832,7 @@ same-repository, non-draft pull requests bearing the corresponding
|
|
|
832
832
|
`lore:codex-review` or `lore:devin-review` label.
|
|
833
833
|
|
|
834
834
|
Generated jobs require a published standalone binary release and default to
|
|
835
|
-
`treadiehq/lore-releases` at `v0.2.
|
|
835
|
+
`treadiehq/lore-releases` at `v0.2.38`. Set `LORE_CLI_REPOSITORY` to the publicly
|
|
836
836
|
readable `owner/repository` and `LORE_CLI_VERSION` to an existing release tag
|
|
837
837
|
when using another release source.
|
|
838
838
|
|
|
@@ -887,7 +887,7 @@ Managed Devin and Cursor jobs can produce offers in the hosted **Recovery**
|
|
|
887
887
|
page, currently restricted to platform admins for testing. Customer workspaces
|
|
888
888
|
do not see the page or recovery notices. CLI runners need a token attributed to
|
|
889
889
|
an active platform admin. Pair a desktop checkout with `lore recovery cloud runner --name my-machine`
|
|
890
|
-
to launch an installed agent after dashboard acceptance. Provider setup, SSH
|
|
890
|
+
to launch an installed agent after dashboard acceptance; the runner asks in its terminal before it starts the agent. Provider setup, SSH
|
|
891
891
|
workers, managed destinations, paired workspace exports with verified restoration,
|
|
892
892
|
and the pushed-checkpoint fallback when no exporter is available
|
|
893
893
|
are documented in [recovery](../../docs/recovery.md#managed-cloud-recovery).
|
package/dist/cli.d.ts
CHANGED
|
@@ -9,6 +9,14 @@ import { genericMcpServers, type GenericMcpAgent } from "./generic-mcp.js";
|
|
|
9
9
|
import { type OutputStyle } from "./terminal-output.js";
|
|
10
10
|
import { type ReliabilityStoreInspection } from "./reliability-store.js";
|
|
11
11
|
export declare const LORE_OPENCODE_PLUGIN = "@lore-co/opencode";
|
|
12
|
+
/**
|
|
13
|
+
* The entry Lore writes to OpenCode's plugin list. OpenCode installs each
|
|
14
|
+
* plugin spec once into its own cache folder and never re-resolves it, so an
|
|
15
|
+
* unversioned entry stays on the first release it installed. Pinning this
|
|
16
|
+
* CLI's release gives each update a new spec that OpenCode installs on its
|
|
17
|
+
* next start; the plugin is published to npm at every CLI release.
|
|
18
|
+
*/
|
|
19
|
+
export declare const LORE_OPENCODE_PLUGIN_SPEC: string;
|
|
12
20
|
export declare const DEFAULT_HOSTED_API_URL = "https://api.uselore.co";
|
|
13
21
|
export declare const DEFAULT_HOSTED_DASHBOARD_URL = "https://app.uselore.co";
|
|
14
22
|
declare const CONFIGURED_AGENT_NAMES: readonly ["bob", "claude", "codex", "copilot-cli", "copilot-vscode", "cursor", "opencode", "polytoken"];
|
|
@@ -42,6 +50,8 @@ export interface LorePaths {
|
|
|
42
50
|
cursorMcp: string;
|
|
43
51
|
cursorUserData: string;
|
|
44
52
|
openCodeConfig: string;
|
|
53
|
+
/** OpenCode's own cache, where it installs npm plugins. */
|
|
54
|
+
openCodeCache: string;
|
|
45
55
|
polytokenHooks: string;
|
|
46
56
|
t3Settings: string;
|
|
47
57
|
}
|
|
@@ -63,6 +73,8 @@ export interface ConnectorConfig {
|
|
|
63
73
|
capture?: "on" | "off";
|
|
64
74
|
/** "off" stops the once-per-session /recap reminder Lore gives agents while nothing is recorded. Absent means on. */
|
|
65
75
|
recapReminder?: "off";
|
|
76
|
+
/** "off" stops rules other teams published for this checkout and its dependencies (Public rules beta). Absent means on. */
|
|
77
|
+
packageRules?: "off";
|
|
66
78
|
connectedAt: string;
|
|
67
79
|
timeoutMs: number;
|
|
68
80
|
}
|
|
@@ -291,6 +303,7 @@ export declare function disconnectInstallation(paths?: LorePaths, preservePendin
|
|
|
291
303
|
connected: false;
|
|
292
304
|
changedHookFiles: string[];
|
|
293
305
|
backups: string[];
|
|
306
|
+
warnings: string[];
|
|
294
307
|
}>;
|
|
295
308
|
export interface DoctorCheck {
|
|
296
309
|
name: string;
|
|
@@ -350,6 +363,11 @@ export declare function setRecapReminder(reminder: "on" | "off", paths?: LorePat
|
|
|
350
363
|
recapReminder: "on" | "off";
|
|
351
364
|
changed: boolean;
|
|
352
365
|
}>;
|
|
366
|
+
/** Rules other teams published for a checkout and its dependencies. Hooks read it on each prompt. */
|
|
367
|
+
export declare function setPackageRules(setting: "on" | "off", paths?: LorePaths): Promise<{
|
|
368
|
+
packageRules: "on" | "off";
|
|
369
|
+
changed: boolean;
|
|
370
|
+
}>;
|
|
353
371
|
/** MCP-only agents from `lore connect --agent generic`: their skills, and that nothing records them. */
|
|
354
372
|
export declare function genericAgentChecks(paths: LorePaths): Promise<DoctorCheck[]>;
|
|
355
373
|
export declare function runCli(args?: readonly string[]): Promise<void>;
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAiK,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAM9O,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAElF,OAAO,EAAgD,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAM/G,OAAO,EAkBL,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAC;AAqBzB,OAAO,EAcL,wCAAwC,EAMxC,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAElC,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AActB,OAAO,EAAsC,iBAAiB,EAAmF,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAoBhM,OAAO,EAAqD,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG3G,OAAO,EAIL,KAAK,0BAA0B,EAChC,MAAM,wBAAwB,CAAC;AAMhC,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;A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AAE,KAAK,GAAE,SAA0B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAY5H;AAED,+GAA+G;AAC/G,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,GAAE,SAA0B,GAAG,OAAO,CAAC;IAAE,aAAa,EAAE,IAAI,GAAG,KAAK,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAS5J;AAED,qGAAqG;AACrG,wBAAsB,eAAe,CAAC,OAAO,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,GAAE,SAA0B,GAAG,OAAO,CAAC;IAAE,YAAY,EAAE,IAAI,GAAG,KAAK,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CASzJ;AAyCD,wGAAwG;AACxG,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAmBjF;AAwQD,wBAAsB,MAAM,CAAC,IAAI,GAAE,SAAS,MAAM,EAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAmB3F"}
|
package/dist/cli.js
CHANGED
|
@@ -59,6 +59,14 @@ import { openNoFollow } from "@lore-co/core/no-follow";
|
|
|
59
59
|
import { HOSTED_LORE_DASHBOARD_URL, currentDashboardUrl } from "@lore-co/sdk";
|
|
60
60
|
const LORE_OWNER_ARGUMENT = "--owner lore";
|
|
61
61
|
export const LORE_OPENCODE_PLUGIN = "@lore-co/opencode";
|
|
62
|
+
/**
|
|
63
|
+
* The entry Lore writes to OpenCode's plugin list. OpenCode installs each
|
|
64
|
+
* plugin spec once into its own cache folder and never re-resolves it, so an
|
|
65
|
+
* unversioned entry stays on the first release it installed. Pinning this
|
|
66
|
+
* CLI's release gives each update a new spec that OpenCode installs on its
|
|
67
|
+
* next start; the plugin is published to npm at every CLI release.
|
|
68
|
+
*/
|
|
69
|
+
export const LORE_OPENCODE_PLUGIN_SPEC = `${LORE_OPENCODE_PLUGIN}@${LORE_VERSION}`;
|
|
62
70
|
export const DEFAULT_HOSTED_API_URL = "https://api.uselore.co";
|
|
63
71
|
export const DEFAULT_HOSTED_DASHBOARD_URL = HOSTED_LORE_DASHBOARD_URL;
|
|
64
72
|
const CONFIGURED_AGENT_NAMES = NATIVE_CODING_AGENT_NAMES;
|
|
@@ -217,9 +225,10 @@ Usage:
|
|
|
217
225
|
lore capture repair [--json]
|
|
218
226
|
|
|
219
227
|
With capture off, Lore installs no Stop or SessionEnd hooks and never sends a
|
|
220
|
-
prompt or response as a turn.
|
|
221
|
-
|
|
222
|
-
|
|
228
|
+
prompt or response as a turn. Lore still reads your prompt and changes to find
|
|
229
|
+
relevant context, and doesn't keep them. Context injection, Guard, lore ask,
|
|
230
|
+
lore remember, and the lore skill's "remember this session" keep working.
|
|
231
|
+
Folder rules still decide where Lore runs at all.
|
|
223
232
|
|
|
224
233
|
While nothing is recorded, Lore asks your agent to suggest /recap once in a
|
|
225
234
|
session where you confirm a decision. lore capture reminder off stops that.
|
|
@@ -289,6 +298,8 @@ export function getLorePaths(home, environment = process.env, cwd = process.cwd(
|
|
|
289
298
|
: isWindows() ? resolve(environment.APPDATA || resolve(resolvedHome, "AppData", "Roaming"), "Cursor")
|
|
290
299
|
: resolve(resolvedHome, ".config", "Cursor"),
|
|
291
300
|
openCodeConfig: resolve(resolvedHome, ".config", "opencode", "opencode.json"),
|
|
301
|
+
// OpenCode uses xdg-basedir on every platform, Windows included.
|
|
302
|
+
openCodeCache: resolve(environment.XDG_CACHE_HOME?.trim() || resolve(resolvedHome, ".cache"), "opencode"),
|
|
292
303
|
polytokenHooks: resolve(xdgConfigHome, "polytoken", "hooks.json"),
|
|
293
304
|
t3Settings: resolve(t3Home, "userdata", "settings.json"),
|
|
294
305
|
};
|
|
@@ -863,10 +874,26 @@ export function mergeLoreOpenCodePlugin(input) {
|
|
|
863
874
|
const plugins = Array.isArray(result.plugin) ? result.plugin : [];
|
|
864
875
|
result.plugin = [
|
|
865
876
|
...plugins.filter((plugin) => !isLoreOpenCodePlugin(plugin)),
|
|
866
|
-
|
|
877
|
+
LORE_OPENCODE_PLUGIN_SPEC,
|
|
867
878
|
];
|
|
868
879
|
return result;
|
|
869
880
|
}
|
|
881
|
+
/**
|
|
882
|
+
* Remove Lore's older plugin copies from OpenCode's cache, which holds one
|
|
883
|
+
* folder per installed spec (about 100 MB each). The current release and the
|
|
884
|
+
* newest other copy stay, since a running OpenCode may still be loading it.
|
|
885
|
+
* Other plugins are never touched, and any failure leaves the cache as is.
|
|
886
|
+
*/
|
|
887
|
+
async function pruneOpenCodePluginCache(paths) {
|
|
888
|
+
const scope = resolve(paths.openCodeCache, "packages", "@lore-co");
|
|
889
|
+
const current = `opencode@${LORE_VERSION}`;
|
|
890
|
+
const names = await readdir(scope).catch(() => []);
|
|
891
|
+
const older = await Promise.all(names
|
|
892
|
+
.filter((name) => /^opencode(?:-plugin)?@/u.test(name) && name !== current)
|
|
893
|
+
.map(async (name) => ({ name, modified: (await stat(resolve(scope, name)).catch(() => null))?.mtimeMs ?? 0 })));
|
|
894
|
+
older.sort((a, b) => b.modified - a.modified);
|
|
895
|
+
await Promise.all(older.slice(1).map(({ name }) => rm(resolve(scope, name), { recursive: true, force: true }).catch(() => undefined)));
|
|
896
|
+
}
|
|
870
897
|
export function removeLoreOpenCodePlugin(input) {
|
|
871
898
|
const result = cloneObject(input);
|
|
872
899
|
if (!Array.isArray(result.plugin)) {
|
|
@@ -1030,7 +1057,7 @@ function openCodeInstallationUnits(input, paths, index, total) {
|
|
|
1030
1057
|
? configuration.plugin
|
|
1031
1058
|
: [];
|
|
1032
1059
|
const owned = plugins.filter(isLoreOpenCodePlugin);
|
|
1033
|
-
const exactCount = owned.filter((candidate) => candidate ===
|
|
1060
|
+
const exactCount = owned.filter((candidate) => candidate === LORE_OPENCODE_PLUGIN_SPEC).length;
|
|
1034
1061
|
if (configuration.mcp !== undefined && !isObject(configuration.mcp)) {
|
|
1035
1062
|
throw new Error('OpenCode configuration field "mcp" must be a JSON object');
|
|
1036
1063
|
}
|
|
@@ -1217,6 +1244,7 @@ function parseConnectorConfig(value) {
|
|
|
1217
1244
|
: { agentConfigPaths }),
|
|
1218
1245
|
...(value.capture === "off" ? { capture: "off" } : {}),
|
|
1219
1246
|
...(value.recapReminder === "off" ? { recapReminder: "off" } : {}),
|
|
1247
|
+
...(value.packageRules === "off" ? { packageRules: "off" } : {}),
|
|
1220
1248
|
connectedAt: value.connectedAt,
|
|
1221
1249
|
timeoutMs,
|
|
1222
1250
|
};
|
|
@@ -1720,6 +1748,9 @@ async function installRuntime(paths) {
|
|
|
1720
1748
|
rm(resolve(dirname(paths.runtime), "guard-evaluation.js"), { force: true }),
|
|
1721
1749
|
rm(resolve(dirname(paths.runtime), "capture-conflict.js"), { force: true }),
|
|
1722
1750
|
rm(resolve(dirname(paths.runtime), "skill-context.js"), { force: true }),
|
|
1751
|
+
rm(resolve(dirname(paths.runtime), "delivered-text.js"), { force: true }),
|
|
1752
|
+
rm(resolve(dirname(paths.runtime), "control-characters.js"), { force: true }),
|
|
1753
|
+
rm(resolve(dirname(paths.runtime), "injected-context.js"), { force: true }),
|
|
1723
1754
|
rm(resolve(dirname(paths.runtime), "learning-line.js"), { force: true }),
|
|
1724
1755
|
rm(resolve(dirname(paths.runtime), "dashboard-url.js"), { force: true }),
|
|
1725
1756
|
rm(resolve(dirname(paths.runtime), "image-bytes.js"), { force: true }),
|
|
@@ -1733,6 +1764,9 @@ async function installRuntime(paths) {
|
|
|
1733
1764
|
rm(resolve(dirname(paths.runtime), "host-envelopes.js"), { force: true }),
|
|
1734
1765
|
rm(resolve(dirname(paths.runtime), "approach-guidance.js"), { force: true }),
|
|
1735
1766
|
rm(resolve(dirname(paths.runtime), "skill-guidance.js"), { force: true }),
|
|
1767
|
+
rm(resolve(dirname(paths.runtime), "public-rules-client.js"), { force: true }),
|
|
1768
|
+
rm(resolve(dirname(paths.runtime), "public-rule-text.js"), { force: true }),
|
|
1769
|
+
rm(resolve(dirname(paths.runtime), "package-names.js"), { force: true }),
|
|
1736
1770
|
rm(paths.runtimeContextFallback, { force: true }),
|
|
1737
1771
|
rm(paths.runtimeInvocationHealthWriter, { force: true }),
|
|
1738
1772
|
rm(paths.runtimeVersion, { force: true }),
|
|
@@ -1763,11 +1797,15 @@ async function installRuntime(paths) {
|
|
|
1763
1797
|
}
|
|
1764
1798
|
const runtimeVersion = `export const RUNTIME_VERSION = ${JSON.stringify(LORE_VERSION)};\n`;
|
|
1765
1799
|
const runtimeFiles = {
|
|
1766
|
-
"lore-hook.mjs": runtime.replaceAll("@lore-co/core/guard-evaluation", "./guard-evaluation.js").replaceAll("@lore-co/core/capture-conflict", "./capture-conflict.js").replaceAll("@lore-co/core/learning-line", "./learning-line.js").replaceAll("@lore-co/core/dashboard-url", "./dashboard-url.js").replaceAll("@lore-co/core/skill-context", "./skill-context.js").replaceAll("@lore-co/core/system-command", "./system-command.js"),
|
|
1800
|
+
"lore-hook.mjs": runtime.replaceAll("@lore-co/core/guard-evaluation", "./guard-evaluation.js").replaceAll("@lore-co/core/capture-conflict", "./capture-conflict.js").replaceAll("@lore-co/core/learning-line", "./learning-line.js").replaceAll("@lore-co/core/dashboard-url", "./dashboard-url.js").replaceAll("@lore-co/core/skill-context", "./skill-context.js").replaceAll("@lore-co/core/delivered-text", "./delivered-text.js").replaceAll("@lore-co/core/system-command", "./system-command.js").replaceAll("@lore-co/core/public-rules-client", "./public-rules-client.js"),
|
|
1767
1801
|
"guard-evaluation.js": guardEvaluation,
|
|
1768
1802
|
"capture-conflict.js": await readFile(fileURLToPath(import.meta.resolve("@lore-co/core/capture-conflict")), "utf8"),
|
|
1769
1803
|
// Fits a redacted skill pack back within its cap; it has no imports.
|
|
1770
1804
|
"skill-context.js": await readFile(fileURLToPath(import.meta.resolve("@lore-co/core/skill-context")), "utf8"),
|
|
1805
|
+
// Cleans and frames server text before it reaches an agent; imports the two files beside it, which have no imports.
|
|
1806
|
+
"delivered-text.js": await readFile(fileURLToPath(import.meta.resolve("@lore-co/core/delivered-text")), "utf8"),
|
|
1807
|
+
"control-characters.js": await readFile(resolve(dirname(fileURLToPath(import.meta.resolve("@lore-co/core/delivered-text"))), "control-characters.js"), "utf8"),
|
|
1808
|
+
"injected-context.js": await readFile(resolve(dirname(fileURLToPath(import.meta.resolve("@lore-co/core/delivered-text"))), "injected-context.js"), "utf8"),
|
|
1771
1809
|
// Formats Guard items the way every integration does; imports only repository-address.js.
|
|
1772
1810
|
"learning-line.js": await readFile(fileURLToPath(import.meta.resolve("@lore-co/core/learning-line")), "utf8"),
|
|
1773
1811
|
// Reads a dashboard address saved before the hosted dashboard moved; it has no imports.
|
|
@@ -1783,6 +1821,10 @@ async function installRuntime(paths) {
|
|
|
1783
1821
|
"user-message.js": await readFile(fileURLToPath(import.meta.resolve("@lore-co/core/user-message")), "utf8"),
|
|
1784
1822
|
// user-message.js imports the host-envelope registry it derives from.
|
|
1785
1823
|
"host-envelopes.js": await readFile(fileURLToPath(import.meta.resolve("@lore-co/core/host-envelopes")), "utf8"),
|
|
1824
|
+
// Public rules beta: reads the checkout's dependencies and fetches other teams' rules; imports only the files beside it.
|
|
1825
|
+
"public-rules-client.js": await readFile(fileURLToPath(import.meta.resolve("@lore-co/core/public-rules-client")), "utf8"),
|
|
1826
|
+
"public-rule-text.js": await readFile(resolve(dirname(fileURLToPath(import.meta.resolve("@lore-co/core/public-rules-client"))), "public-rule-text.js"), "utf8"),
|
|
1827
|
+
"package-names.js": await readFile(resolve(dirname(fileURLToPath(import.meta.resolve("@lore-co/core/public-rules-client"))), "package-names.js"), "utf8"),
|
|
1786
1828
|
"approach-guidance.js": await readFile(resolve(sourceDirectory, "approach-guidance.js"), "utf8"),
|
|
1787
1829
|
"skill-guidance.js": await readFile(resolve(sourceDirectory, "skill-guidance.js"), "utf8"),
|
|
1788
1830
|
"repository.js": repository,
|
|
@@ -1812,6 +1854,9 @@ async function installRuntime(paths) {
|
|
|
1812
1854
|
atomicWrite(resolve(dirname(paths.runtime), "guard-evaluation.js"), guardEvaluation, 0o600),
|
|
1813
1855
|
atomicWrite(resolve(dirname(paths.runtime), "capture-conflict.js"), runtimeFiles["capture-conflict.js"], 0o600),
|
|
1814
1856
|
atomicWrite(resolve(dirname(paths.runtime), "skill-context.js"), runtimeFiles["skill-context.js"], 0o600),
|
|
1857
|
+
atomicWrite(resolve(dirname(paths.runtime), "delivered-text.js"), runtimeFiles["delivered-text.js"], 0o600),
|
|
1858
|
+
atomicWrite(resolve(dirname(paths.runtime), "control-characters.js"), runtimeFiles["control-characters.js"], 0o600),
|
|
1859
|
+
atomicWrite(resolve(dirname(paths.runtime), "injected-context.js"), runtimeFiles["injected-context.js"], 0o600),
|
|
1815
1860
|
atomicWrite(resolve(dirname(paths.runtime), "learning-line.js"), runtimeFiles["learning-line.js"], 0o600),
|
|
1816
1861
|
atomicWrite(resolve(dirname(paths.runtime), "dashboard-url.js"), runtimeFiles["dashboard-url.js"], 0o600),
|
|
1817
1862
|
atomicWrite(resolve(dirname(paths.runtime), "image-bytes.js"), imageBytes, 0o600),
|
|
@@ -1825,6 +1870,9 @@ async function installRuntime(paths) {
|
|
|
1825
1870
|
atomicWrite(resolve(dirname(paths.runtime), "host-envelopes.js"), runtimeFiles["host-envelopes.js"], 0o600),
|
|
1826
1871
|
atomicWrite(resolve(dirname(paths.runtime), "approach-guidance.js"), runtimeFiles["approach-guidance.js"], 0o600),
|
|
1827
1872
|
atomicWrite(resolve(dirname(paths.runtime), "skill-guidance.js"), runtimeFiles["skill-guidance.js"], 0o600),
|
|
1873
|
+
atomicWrite(resolve(dirname(paths.runtime), "public-rules-client.js"), runtimeFiles["public-rules-client.js"], 0o600),
|
|
1874
|
+
atomicWrite(resolve(dirname(paths.runtime), "public-rule-text.js"), runtimeFiles["public-rule-text.js"], 0o600),
|
|
1875
|
+
atomicWrite(resolve(dirname(paths.runtime), "package-names.js"), runtimeFiles["package-names.js"], 0o600),
|
|
1828
1876
|
atomicWrite(paths.runtimeRepository, repository, 0o600),
|
|
1829
1877
|
atomicWrite(resolve(dirname(paths.runtime), "repository-address.js"), runtimeFiles["repository-address.js"], 0o600),
|
|
1830
1878
|
atomicWrite(resolve(dirname(paths.runtime), "capture-policy.js"), runtimeFiles["capture-policy.js"], 0o600),
|
|
@@ -1917,6 +1965,9 @@ async function writeAgentEntries(entries, paths, now) {
|
|
|
1917
1965
|
backups.push(result.backup);
|
|
1918
1966
|
}
|
|
1919
1967
|
}
|
|
1968
|
+
if (entries.installations.some((installation) => installation.agent === "opencode")) {
|
|
1969
|
+
await pruneOpenCodePluginCache(paths);
|
|
1970
|
+
}
|
|
1920
1971
|
return { changedFiles, backups };
|
|
1921
1972
|
}
|
|
1922
1973
|
/**
|
|
@@ -2314,6 +2365,7 @@ async function connectWithCredentialLocked(options, identity) {
|
|
|
2314
2365
|
agentConfigPaths,
|
|
2315
2366
|
...(capture ? {} : { capture: "off" }),
|
|
2316
2367
|
...(existing?.recapReminder === "off" ? { recapReminder: "off" } : {}),
|
|
2368
|
+
...(existing?.packageRules === "off" ? { packageRules: "off" } : {}),
|
|
2317
2369
|
connectedAt: connection.profiles.find(value => value.connectionId === connection.fields.connectionId)?.connectedAt ?? now.toISOString(),
|
|
2318
2370
|
timeoutMs,
|
|
2319
2371
|
};
|
|
@@ -2931,6 +2983,9 @@ async function inspectRuntimeInstallation(required, paths) {
|
|
|
2931
2983
|
"guard-evaluation.js": resolve(dirname(paths.runtime), "guard-evaluation.js"),
|
|
2932
2984
|
"capture-conflict.js": resolve(dirname(paths.runtime), "capture-conflict.js"),
|
|
2933
2985
|
"skill-context.js": resolve(dirname(paths.runtime), "skill-context.js"),
|
|
2986
|
+
"delivered-text.js": resolve(dirname(paths.runtime), "delivered-text.js"),
|
|
2987
|
+
"control-characters.js": resolve(dirname(paths.runtime), "control-characters.js"),
|
|
2988
|
+
"injected-context.js": resolve(dirname(paths.runtime), "injected-context.js"),
|
|
2934
2989
|
"learning-line.js": resolve(dirname(paths.runtime), "learning-line.js"),
|
|
2935
2990
|
"dashboard-url.js": resolve(dirname(paths.runtime), "dashboard-url.js"),
|
|
2936
2991
|
"image-bytes.js": resolve(dirname(paths.runtime), "image-bytes.js"),
|
|
@@ -2944,6 +2999,9 @@ async function inspectRuntimeInstallation(required, paths) {
|
|
|
2944
2999
|
"host-envelopes.js": resolve(dirname(paths.runtime), "host-envelopes.js"),
|
|
2945
3000
|
"approach-guidance.js": resolve(dirname(paths.runtime), "approach-guidance.js"),
|
|
2946
3001
|
"skill-guidance.js": resolve(dirname(paths.runtime), "skill-guidance.js"),
|
|
3002
|
+
"public-rules-client.js": resolve(dirname(paths.runtime), "public-rules-client.js"),
|
|
3003
|
+
"public-rule-text.js": resolve(dirname(paths.runtime), "public-rule-text.js"),
|
|
3004
|
+
"package-names.js": resolve(dirname(paths.runtime), "package-names.js"),
|
|
2947
3005
|
"repository.js": paths.runtimeRepository,
|
|
2948
3006
|
"repository-address.js": resolve(dirname(paths.runtime), "repository-address.js"),
|
|
2949
3007
|
"capture-policy.js": resolve(dirname(paths.runtime), "capture-policy.js"),
|
|
@@ -3211,6 +3269,15 @@ function formatRetrievalFailureDiagnostics(retrieval) {
|
|
|
3211
3269
|
return (`local_retrieval_failure_reasons: ${reasons.length === 0 ? "-" : reasons.join(" ")}\n` +
|
|
3212
3270
|
`last_retrieval_failure: ${last === null ? "-" : `${last.reason} (${last.path} request, agent ${last.agent}, at ${last.at})`}\n`);
|
|
3213
3271
|
}
|
|
3272
|
+
/**
|
|
3273
|
+
* A plugin agent still running an older Lore although every plugin entry
|
|
3274
|
+
* already names this release: `lore update` has done its part, and only a
|
|
3275
|
+
* restart makes the agent load the new copy.
|
|
3276
|
+
*/
|
|
3277
|
+
function pluginAwaitsRestart(agent) {
|
|
3278
|
+
const plugin = agent.installation.units.filter((unit) => /(?:^|\/)plugin$/u.test(unit.id));
|
|
3279
|
+
return agent.installation.runtime === "stale" && plugin.length > 0 && plugin.every((unit) => unit.state === "exact");
|
|
3280
|
+
}
|
|
3214
3281
|
/**
|
|
3215
3282
|
* The plain lines at the top of `lore status`: live context over the last
|
|
3216
3283
|
* days on this machine, then a server behind this CLI and out-of-date Lore
|
|
@@ -3226,7 +3293,11 @@ function statusHealth(data, serverVersion) {
|
|
|
3226
3293
|
// Hook agents share the runtime above; a plugin carries its own copy.
|
|
3227
3294
|
if (agent.installation.runtime !== "stale" || targetFor(agent.agent).runtimeRequired)
|
|
3228
3295
|
continue;
|
|
3229
|
-
staleFiles.push({
|
|
3296
|
+
staleFiles.push({
|
|
3297
|
+
name: `${agentDisplayName(agent.agent)} plugin`,
|
|
3298
|
+
version: agent.installation.runtimeVersion,
|
|
3299
|
+
...(pluginAwaitsRestart(agent) ? { restart: agentDisplayName(agent.agent) } : {}),
|
|
3300
|
+
});
|
|
3230
3301
|
}
|
|
3231
3302
|
const lines = [
|
|
3232
3303
|
contextHealthLine(context ?? undefined),
|
|
@@ -3324,7 +3395,7 @@ async function disconnectCommand(args) {
|
|
|
3324
3395
|
return;
|
|
3325
3396
|
}
|
|
3326
3397
|
const result = await disconnectInstallation();
|
|
3327
|
-
writeResult(result, parsed.json, `disconnected: yes\nchanged_hook_files: ${result.changedHookFiles.length}\n`);
|
|
3398
|
+
writeResult(result, parsed.json, `disconnected: yes\nchanged_hook_files: ${result.changedHookFiles.length}\n${result.warnings.map(warning => `warning: ${warning}\n`).join("")}`);
|
|
3328
3399
|
}
|
|
3329
3400
|
export async function disconnectInstallation(paths = getLorePaths(), preservePendingState = false) {
|
|
3330
3401
|
await disableRecovery(paths.home);
|
|
@@ -3379,8 +3450,11 @@ export async function disconnectInstallation(paths = getLorePaths(), preservePen
|
|
|
3379
3450
|
backups.push(result.backup);
|
|
3380
3451
|
}
|
|
3381
3452
|
}
|
|
3382
|
-
|
|
3383
|
-
|
|
3453
|
+
// A Lore file that can't be removed is reported; disconnecting still removes the credentials.
|
|
3454
|
+
const warnings = [
|
|
3455
|
+
...await removeLoreSkill(paths, [...installations, { agent: GENERIC_AGENT, configPath: paths.config }]),
|
|
3456
|
+
...await removeLoreAgent(paths, installations),
|
|
3457
|
+
];
|
|
3384
3458
|
await removeGenericAgents(paths.loreDirectory);
|
|
3385
3459
|
await Promise.all([
|
|
3386
3460
|
rm(paths.config, { force: true }),
|
|
@@ -3397,6 +3471,9 @@ export async function disconnectInstallation(paths = getLorePaths(), preservePen
|
|
|
3397
3471
|
rm(resolve(dirname(paths.runtime), "guard-evaluation.js"), { force: true }),
|
|
3398
3472
|
rm(resolve(dirname(paths.runtime), "capture-conflict.js"), { force: true }),
|
|
3399
3473
|
rm(resolve(dirname(paths.runtime), "skill-context.js"), { force: true }),
|
|
3474
|
+
rm(resolve(dirname(paths.runtime), "delivered-text.js"), { force: true }),
|
|
3475
|
+
rm(resolve(dirname(paths.runtime), "control-characters.js"), { force: true }),
|
|
3476
|
+
rm(resolve(dirname(paths.runtime), "injected-context.js"), { force: true }),
|
|
3400
3477
|
rm(resolve(dirname(paths.runtime), "learning-line.js"), { force: true }),
|
|
3401
3478
|
rm(resolve(dirname(paths.runtime), "dashboard-url.js"), { force: true }),
|
|
3402
3479
|
rm(resolve(dirname(paths.runtime), "image-bytes.js"), { force: true }),
|
|
@@ -3408,6 +3485,9 @@ export async function disconnectInstallation(paths = getLorePaths(), preservePen
|
|
|
3408
3485
|
rm(resolve(dirname(paths.runtime), "user-message.js"), { force: true }),
|
|
3409
3486
|
rm(resolve(dirname(paths.runtime), "host-envelopes.js"), { force: true }),
|
|
3410
3487
|
rm(resolve(dirname(paths.runtime), "skill-guidance.js"), { force: true }),
|
|
3488
|
+
rm(resolve(dirname(paths.runtime), "public-rules-client.js"), { force: true }),
|
|
3489
|
+
rm(resolve(dirname(paths.runtime), "public-rule-text.js"), { force: true }),
|
|
3490
|
+
rm(resolve(dirname(paths.runtime), "package-names.js"), { force: true }),
|
|
3411
3491
|
rm(paths.runtimeInvocationHealthWriter, { force: true }),
|
|
3412
3492
|
rm(paths.runtimeVersion, { force: true }),
|
|
3413
3493
|
rm(paths.runtimePackage, { force: true }),
|
|
@@ -3416,7 +3496,7 @@ export async function disconnectInstallation(paths = getLorePaths(), preservePen
|
|
|
3416
3496
|
rm(paths.queue, { recursive: true, force: true }),
|
|
3417
3497
|
]),
|
|
3418
3498
|
]);
|
|
3419
|
-
return { connected: false, changedHookFiles, backups };
|
|
3499
|
+
return { connected: false, changedHookFiles, backups, warnings };
|
|
3420
3500
|
}
|
|
3421
3501
|
const CAPTURE_SWITCHES_UNCHECKED = { pausedBy: null, checked: false, reason: "not connected" };
|
|
3422
3502
|
async function captureSwitches(config, home, cwd) {
|
|
@@ -3693,6 +3773,19 @@ export async function setRecapReminder(reminder, paths = getLorePaths()) {
|
|
|
3693
3773
|
});
|
|
3694
3774
|
return { recapReminder: reminder, changed: true };
|
|
3695
3775
|
}
|
|
3776
|
+
/** Rules other teams published for a checkout and its dependencies. Hooks read it on each prompt. */
|
|
3777
|
+
export async function setPackageRules(setting, paths = getLorePaths()) {
|
|
3778
|
+
const config = await readConnectorConfig(paths);
|
|
3779
|
+
if (config === null)
|
|
3780
|
+
throw new Error("Lore is not connected. Run lore connect.");
|
|
3781
|
+
if ((config.packageRules ?? "on") === setting)
|
|
3782
|
+
return { packageRules: setting, changed: false };
|
|
3783
|
+
await withDirectoryLock(resolve(paths.loreDirectory, "connections.lock"), async () => {
|
|
3784
|
+
const { packageRules: _previous, ...rest } = config;
|
|
3785
|
+
await atomicWriteJson(paths.config, { ...rest, ...(setting === "off" ? { packageRules: setting } : {}) }, 65536);
|
|
3786
|
+
});
|
|
3787
|
+
return { packageRules: setting, changed: true };
|
|
3788
|
+
}
|
|
3696
3789
|
async function captureCommand(args) {
|
|
3697
3790
|
if (args[0] === "repair") {
|
|
3698
3791
|
await runCaptureRepairCommand(args.slice(1), await readConnectorConfig(getLorePaths(), process.cwd()));
|
|
@@ -3846,7 +3939,7 @@ async function doctorCommand(args) {
|
|
|
3846
3939
|
checks.push({
|
|
3847
3940
|
name: `${agent.agent}-${agent.integration}`,
|
|
3848
3941
|
status: agent.installation.state === "complete" ? "ok" : "error",
|
|
3849
|
-
detail: `${agent.installation.state}: ${agent.installation.installedUnits}/${agent.installation.expectedUnits} exact Lore ${agent.integration} units`,
|
|
3942
|
+
detail: `${agent.installation.state}: ${agent.installation.installedUnits}/${agent.installation.expectedUnits} exact Lore ${agent.integration} units${pluginAwaitsRestart(agent) ? `. Restart ${agentDisplayName(agent.agent)} to load Lore ${LORE_VERSION}` : ""}`,
|
|
3850
3943
|
});
|
|
3851
3944
|
checks.push({
|
|
3852
3945
|
name: `${agent.agent}-invocation`,
|
|
@@ -3862,7 +3955,7 @@ async function doctorCommand(args) {
|
|
|
3862
3955
|
: "warning",
|
|
3863
3956
|
detail: agent.invocationError !== null
|
|
3864
3957
|
? agent.invocationError === "runtime_version_mismatch"
|
|
3865
|
-
? `observed Lore ${agent.invocation.runtimeVersion}; expected ${LORE_VERSION}`
|
|
3958
|
+
? `observed Lore ${agent.invocation.runtimeVersion}; expected ${LORE_VERSION}. ${pluginAwaitsRestart(agent) ? `Restart ${agentDisplayName(agent.agent)}` : "Run lore update"}`
|
|
3866
3959
|
: `health record unavailable (${agent.invocationError})`
|
|
3867
3960
|
: agent.invocation.state === "successful"
|
|
3868
3961
|
? `last completed ${agent.invocation.lastSuccessfulAt}`
|
|
@@ -3881,6 +3974,7 @@ async function doctorCommand(args) {
|
|
|
3881
3974
|
home: paths.home,
|
|
3882
3975
|
cwd: process.cwd(),
|
|
3883
3976
|
configPaths: agent.configFiles ?? [agent.configFile],
|
|
3977
|
+
capture: captureEnabled(config),
|
|
3884
3978
|
});
|
|
3885
3979
|
checks.push({
|
|
3886
3980
|
name: "codex-hook-approval",
|
|
@@ -4123,6 +4217,17 @@ async function executeCli(args = process.argv.slice(2)) {
|
|
|
4123
4217
|
await listConnections(getLorePaths().home);
|
|
4124
4218
|
return;
|
|
4125
4219
|
case "config":
|
|
4220
|
+
if (commandArgs[0] === "package-rules") {
|
|
4221
|
+
const json = commandArgs.includes("--json");
|
|
4222
|
+
const [setting, ...extra] = commandArgs.slice(1).filter(argument => argument !== "--json");
|
|
4223
|
+
if ((setting !== "on" && setting !== "off") || extra.length > 0)
|
|
4224
|
+
throw new Error("Usage: lore config package-rules off|on [--json]");
|
|
4225
|
+
const result = await setPackageRules(setting);
|
|
4226
|
+
writeResult(result, json, setting === "on"
|
|
4227
|
+
? "package rules: on. Your agents get rules other teams published for this repository and the packages it uses. Only names already public reach Lore.\n"
|
|
4228
|
+
: "package rules: off. Your agents on this machine no longer get rules other teams published.\n");
|
|
4229
|
+
return;
|
|
4230
|
+
}
|
|
4126
4231
|
await runConfigCommand(commandArgs, getLorePaths().config);
|
|
4127
4232
|
return;
|
|
4128
4233
|
case "capture":
|