@tpsdev-ai/flair 0.55.1 → 0.56.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/README.md +3 -3
- package/dist/bridges/builtins/markdown.js +2 -2
- package/dist/bridges/discover.js +2 -2
- package/dist/bridges/runtime/allow-list.js +2 -2
- package/dist/build-info.json +3 -3
- package/dist/cli.js +201 -95
- package/dist/commands/attention.js +2 -2
- package/dist/commands/backup.js +2 -2
- package/dist/commands/doctor.js +168 -37
- package/dist/commands/export.js +2 -2
- package/dist/commands/federation.js +229 -95
- package/dist/commands/hook.js +4 -4
- package/dist/commands/init.js +94 -70
- package/dist/commands/mcp.js +2 -2
- package/dist/commands/migrate-harness-memory.js +8 -8
- package/dist/commands/rem.js +31 -4
- package/dist/commands/service.js +25 -1
- package/dist/commands/session.js +2 -2
- package/dist/commands/uninstall.js +2 -2
- package/dist/commands/upgrade.js +88 -69
- package/dist/doctor-client.js +341 -161
- package/dist/engine-version.js +2 -2
- package/dist/federation/scheduler.js +5 -5
- package/dist/hook-install.js +359 -176
- package/dist/install/clients.js +908 -214
- package/dist/keystore.js +10 -2
- package/dist/lib/auth-resolve.js +5 -5
- package/dist/lib/config-critical-section.js +557 -0
- package/dist/lib/doctor-config-path.js +2 -2
- package/dist/lib/doctor-run.js +107 -27
- package/dist/lib/flair-paths.js +29 -0
- package/dist/lib/home.js +60 -0
- package/dist/lib/launchd-repair.js +109 -0
- package/dist/lib/mcp-enable.js +4 -4
- package/dist/lib/owned-pins.js +256 -94
- package/dist/lib/pin-write-guard.js +87 -0
- package/dist/lib/settings-bytes.js +85 -0
- package/dist/lib/socket-path-limit.js +120 -0
- package/dist/lib/uninstall-purge.js +2 -18
- package/dist/lib/upgrade-plain-tree.js +2 -2
- package/dist/lib/upgrade-status.js +164 -0
- package/dist/lib/wiring-spec.js +238 -0
- package/dist/mcp-client-assertion.js +3 -3
- package/dist/rem/promote-policy.js +102 -0
- package/dist/rem/runner.js +3 -3
- package/dist/rem/scheduler.js +5 -5
- package/dist/rem/snapshot.js +2 -2
- package/dist/resources/MemoryReflect.js +10 -0
- package/dist/resources/OAuth.js +62 -11
- package/dist/resources/Presence.js +135 -47
- package/dist/resources/admin-layout.js +7 -2
- package/dist/resources/auto-promote-lib.js +56 -0
- package/dist/resources/health.js +26 -0
- package/dist/resources/memory-reflect-lib.js +215 -6
- package/dist/resources/migrations/progress.js +17 -0
- package/dist/resources/migrations/runner.js +46 -27
- package/dist/resources/migrations/status.js +2 -1
- package/dist/src/keystore.js +10 -2
- package/dist/src/lib/home.js +60 -0
- package/dist/src/rem/promote-policy.js +102 -0
- package/dist/src/rem/scheduler.js +5 -5
- package/dist/version-check.js +2 -2
- package/dist/version-handshake.js +2 -2
- package/docs/api-reference.md +31 -6
- package/docs/auth.md +14 -2
- package/docs/deploying-on-fabric.md +5 -4
- package/docs/deployment.md +26 -37
- package/docs/embedding-in-a-harper-app.md +4 -2
- package/docs/entity-vocabulary.md +5 -5
- package/docs/federation.md +58 -19
- package/docs/hosted-on-fabric.md +7 -5
- package/docs/mcp-clients.md +29 -12
- package/docs/releasing.md +66 -22
- package/docs/spoke-bringup.md +41 -22
- package/docs/standalone-local.md +12 -16
- package/package.json +3 -1
package/dist/engine-version.js
CHANGED
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
// the engine cannot boot, we still need to read it.
|
|
19
19
|
import { existsSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { join, resolve } from "node:path";
|
|
21
|
-
import { homedir } from "node:os";
|
|
22
21
|
import { fetchDeclaredDependencies } from "./lib/npm-registry.js";
|
|
22
|
+
import { resolveHome } from "./lib/home.js";
|
|
23
23
|
/** Filename of the engine-version stamp inside the data directory. */
|
|
24
24
|
export const ENGINE_VERSION_STAMP = "engine-version.txt";
|
|
25
25
|
/** Root directory for pre-upgrade snapshots (~/.flair/upgrade-snapshots). */
|
|
26
|
-
export const UPGRADE_SNAPSHOT_ROOT = resolve(
|
|
26
|
+
export const UPGRADE_SNAPSHOT_ROOT = resolve(resolveHome(), ".flair", "upgrade-snapshots");
|
|
27
27
|
/** Read the Harper version installed alongside this flair package. */
|
|
28
28
|
export function readInstalledHarperVersion(packageRoot) {
|
|
29
29
|
for (const name of ["harper", "@harperfast/harper"]) {
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
*/
|
|
60
60
|
import { existsSync, chmodSync, rmSync, readFileSync, mkdirSync } from "node:fs";
|
|
61
61
|
import { resolve, dirname } from "node:path";
|
|
62
|
-
import { homedir } from "node:os";
|
|
63
62
|
import { fileURLToPath } from "node:url";
|
|
64
63
|
import { escapeXml } from "../lib/xml-escape.js";
|
|
65
64
|
import { detectPlatform as detectPlatformFor, spawnReport, readTemplate, renderTemplateWith, writeFileWithDir, interpretActiveResult, describeLoadFailure as describeLoadFailureFor, describeExitCode, resolveNodeBin, resolveFlairBin, formatFlairBinWarning, verifyFirstRun, probeUserLingerEnabled, STATUS_CHECK_TIMEOUT_MS, } from "../lib/scheduler-platform.js";
|
|
65
|
+
import { resolveHome } from "../lib/home.js";
|
|
66
66
|
export const LAUNCHD_LABEL = "dev.flair.federation.sync";
|
|
67
67
|
export const SYSTEMD_TIMER_UNIT = "flair-federation-sync.timer";
|
|
68
68
|
export const SYSTEMD_SERVICE_UNIT = "flair-federation-sync.service";
|
|
69
|
-
export const SHIM_PATH_DEFAULT = resolve(
|
|
70
|
-
export const LAUNCHD_PLIST_PATH = resolve(
|
|
71
|
-
export const SYSTEMD_USER_DIR = resolve(
|
|
69
|
+
export const SHIM_PATH_DEFAULT = resolve(resolveHome(), ".flair", "bin", "flair-federation-sync");
|
|
70
|
+
export const LAUNCHD_PLIST_PATH = resolve(resolveHome(), "Library", "LaunchAgents", `${LAUNCHD_LABEL}.plist`);
|
|
71
|
+
export const SYSTEMD_USER_DIR = resolve(resolveHome(), ".config", "systemd", "user");
|
|
72
72
|
export const SYSTEMD_TIMER_PATH = resolve(SYSTEMD_USER_DIR, SYSTEMD_TIMER_UNIT);
|
|
73
73
|
export const SYSTEMD_SERVICE_PATH = resolve(SYSTEMD_USER_DIR, SYSTEMD_SERVICE_UNIT);
|
|
74
74
|
/** Default seconds between one-shot syncs. See the module header for why 300. */
|
|
@@ -143,7 +143,7 @@ function buildSubstitutions(opts, shimPath, flairBin, nodeBin) {
|
|
|
143
143
|
FLAIR_BIN: flairBin,
|
|
144
144
|
NODE_BIN: nodeBin,
|
|
145
145
|
SHIM_PATH: shimPath,
|
|
146
|
-
HOME: opts.homeOverride ??
|
|
146
|
+
HOME: opts.homeOverride ?? resolveHome(),
|
|
147
147
|
INTERVAL_SECONDS: String(opts.intervalSeconds),
|
|
148
148
|
ADMIN_PASS_FILE: adminPassFile,
|
|
149
149
|
FLAIR_TARGET: opts.target ?? "",
|