@gamaze/hicortex 0.12.0 → 0.12.1
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/classify-domains.js +2 -2
- package/dist/context-cli.js +2 -5
- package/dist/db.js +2 -1
- package/dist/features.js +2 -3
- package/dist/index.js +2 -1
- package/dist/init.d.ts +9 -0
- package/dist/init.js +19 -2
- package/dist/lessons-context.js +2 -10
- package/dist/mcp-server.js +2 -2
- package/dist/nightly-status.js +2 -1
- package/dist/nightly.js +2 -2
- package/dist/paths.d.ts +1 -0
- package/dist/paths.js +17 -0
- package/dist/relink.js +2 -2
- package/dist/retrieval.d.ts +1 -1
- package/dist/retrieval.js +2 -2
- package/dist/state.js +2 -2
- package/dist/status.js +2 -1
- package/dist/uninstall.js +2 -1
- package/package.json +2 -2
package/dist/classify-domains.js
CHANGED
|
@@ -73,9 +73,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
73
73
|
})();
|
|
74
74
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
75
|
exports.runClassifyDomains = runClassifyDomains;
|
|
76
|
+
const paths_js_1 = require("./paths.js");
|
|
76
77
|
const node_fs_1 = require("node:fs");
|
|
77
78
|
const node_path_1 = require("node:path");
|
|
78
|
-
const node_os_1 = require("node:os");
|
|
79
79
|
const db_js_1 = require("./db.js");
|
|
80
80
|
const state_js_1 = require("./state.js");
|
|
81
81
|
const storage = __importStar(require("./storage.js"));
|
|
@@ -84,7 +84,7 @@ const domain_classify_js_1 = require("./domain-classify.js");
|
|
|
84
84
|
const consolidate_js_1 = require("./consolidate.js");
|
|
85
85
|
const schema_prototypes_js_1 = require("./schema-prototypes.js");
|
|
86
86
|
const nofit_js_1 = require("./nofit.js");
|
|
87
|
-
const HICORTEX_HOME = (0,
|
|
87
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
88
88
|
function readConfig(stateDir) {
|
|
89
89
|
try {
|
|
90
90
|
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(stateDir, "config.json"), "utf-8"));
|
package/dist/context-cli.js
CHANGED
|
@@ -30,16 +30,13 @@ const node_path_1 = require("node:path");
|
|
|
30
30
|
const node_os_1 = require("node:os");
|
|
31
31
|
const node_child_process_1 = require("node:child_process");
|
|
32
32
|
const context_store_js_1 = require("./context-store.js");
|
|
33
|
+
const paths_js_1 = require("./paths.js");
|
|
33
34
|
const DEFAULT_PORT = 8787;
|
|
34
35
|
const REQUEST_TIMEOUT_MS = 5000;
|
|
35
36
|
/** Thrown for any expected, user-facing failure. cli.ts prints .message + exits 1. */
|
|
36
37
|
class ContextCliError extends Error {
|
|
37
38
|
}
|
|
38
39
|
exports.ContextCliError = ContextCliError;
|
|
39
|
-
/** Home dir holding config.json. HICORTEX_HOME override is a headless/test seam. */
|
|
40
|
-
function hicortexHome() {
|
|
41
|
-
return process.env.HICORTEX_HOME ?? (0, node_path_1.join)((0, node_os_1.homedir)(), ".hicortex");
|
|
42
|
-
}
|
|
43
40
|
/**
|
|
44
41
|
* Resolve the server URL + token from a parsed config object. Pure + exported
|
|
45
42
|
* so it is unit-testable without a live config. Follows lessons-context.ts.
|
|
@@ -54,7 +51,7 @@ function resolveContextTarget(config) {
|
|
|
54
51
|
/** Read ~/.hicortex/config.json (or $HICORTEX_HOME/config.json). Missing → {}. */
|
|
55
52
|
function loadConfig() {
|
|
56
53
|
try {
|
|
57
|
-
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(hicortexHome(), "config.json"), "utf-8"));
|
|
54
|
+
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)((0, paths_js_1.hicortexHome)(), "config.json"), "utf-8"));
|
|
58
55
|
}
|
|
59
56
|
catch {
|
|
60
57
|
return {};
|
package/dist/db.js
CHANGED
|
@@ -11,13 +11,14 @@ exports.resolveDbPath = resolveDbPath;
|
|
|
11
11
|
exports.initDb = initDb;
|
|
12
12
|
exports.getSchemaVersion = getSchemaVersion;
|
|
13
13
|
exports.getStats = getStats;
|
|
14
|
+
const paths_js_1 = require("./paths.js");
|
|
14
15
|
const better_sqlite3_1 = __importDefault(require("better-sqlite3"));
|
|
15
16
|
const node_fs_1 = require("node:fs");
|
|
16
17
|
const node_path_1 = require("node:path");
|
|
17
18
|
const node_os_1 = require("node:os");
|
|
18
19
|
const EMBEDDING_DIMENSIONS = 384;
|
|
19
20
|
/** Canonical Hicortex home directory. */
|
|
20
|
-
const HICORTEX_HOME = (0,
|
|
21
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
21
22
|
/** Legacy OC plugin DB path (pre-v0.3 installations). */
|
|
22
23
|
const LEGACY_OC_DB = (0, node_path_1.join)((0, node_os_1.homedir)(), ".openclaw", "data", "hicortex.db");
|
|
23
24
|
/**
|
package/dist/features.js
CHANGED
|
@@ -21,11 +21,10 @@ exports.memoryCapReached = memoryCapReached;
|
|
|
21
21
|
exports.lessonsLimit = lessonsLimit;
|
|
22
22
|
exports.remoteIngestAllowed = remoteIngestAllowed;
|
|
23
23
|
exports.getCurrentFeatures = getCurrentFeatures;
|
|
24
|
-
const
|
|
25
|
-
const node_os_1 = require("node:os");
|
|
24
|
+
const paths_js_1 = require("./paths.js");
|
|
26
25
|
const license_js_1 = require("./license.js");
|
|
27
26
|
const state_js_1 = require("./state.js");
|
|
28
|
-
const DEFAULT_STATE_DIR = (0,
|
|
27
|
+
const DEFAULT_STATE_DIR = (0, paths_js_1.hicortexHome)();
|
|
29
28
|
// A single canonical "full" feature set — no tiers.
|
|
30
29
|
const FULL_FEATURES = {
|
|
31
30
|
reflection: true,
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* canonical nightly-from-logs, same as CC JSONL and Hermes state.db.
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const paths_js_1 = require("./paths.js");
|
|
22
23
|
const features_js_1 = require("./features.js");
|
|
23
24
|
const extensions_js_1 = require("./extensions.js");
|
|
24
25
|
const state_js_1 = require("./state.js");
|
|
@@ -30,7 +31,7 @@ const node_os_1 = require("node:os");
|
|
|
30
31
|
// ---------------------------------------------------------------------------
|
|
31
32
|
const DEFAULT_SERVER_URL = "http://127.0.0.1:8787";
|
|
32
33
|
const LESSONS_TIMEOUT_MS = 3000;
|
|
33
|
-
const HICORTEX_HOME = (0,
|
|
34
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
34
35
|
// ---------------------------------------------------------------------------
|
|
35
36
|
// Module state — initialized in registerService.start()
|
|
36
37
|
// ---------------------------------------------------------------------------
|
package/dist/init.d.ts
CHANGED
|
@@ -61,6 +61,15 @@ export declare const GENERIC_DEFAULT_DOMAINS: DomainDef[];
|
|
|
61
61
|
export declare function scaffoldDefaultDomains(configPath: string): {
|
|
62
62
|
scaffolded: boolean;
|
|
63
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* True if a resolved binary path lives in npm's ephemeral npx cache
|
|
66
|
+
* (`~/.npm/_npx/<hash>/node_modules/.bin/…`). When `hicortex init` is itself
|
|
67
|
+
* run via `npx -y @gamaze/hicortex init`, npx prepends that cache dir to PATH,
|
|
68
|
+
* so `which hicortex` resolves there. npm garbage-collects `_npx`, so any
|
|
69
|
+
* SessionStart hook or nightly timer wired to such a path breaks silently
|
|
70
|
+
* later — the "looks configured but isn't" trap (#176). Never persist it.
|
|
71
|
+
*/
|
|
72
|
+
export declare function isEphemeralNpxPath(binPath: string): boolean;
|
|
64
73
|
/**
|
|
65
74
|
* Install (or verify) the CC SessionStart hook that runs `hicortex lessons-context`.
|
|
66
75
|
* The hook fetches lessons from the configured server at session start and injects
|
package/dist/init.js
CHANGED
|
@@ -22,9 +22,11 @@ exports.parseEnvFile = parseEnvFile;
|
|
|
22
22
|
exports.generateAuthToken = generateAuthToken;
|
|
23
23
|
exports.persistAuthToken = persistAuthToken;
|
|
24
24
|
exports.scaffoldDefaultDomains = scaffoldDefaultDomains;
|
|
25
|
+
exports.isEphemeralNpxPath = isEphemeralNpxPath;
|
|
25
26
|
exports.installSessionStartHook = installSessionStartHook;
|
|
26
27
|
exports.runInit = runInit;
|
|
27
28
|
exports.resolveNightlyHour = resolveNightlyHour;
|
|
29
|
+
const paths_js_1 = require("./paths.js");
|
|
28
30
|
const node_fs_1 = require("node:fs");
|
|
29
31
|
const node_path_1 = require("node:path");
|
|
30
32
|
const node_os_1 = require("node:os");
|
|
@@ -32,7 +34,7 @@ const node_child_process_1 = require("node:child_process");
|
|
|
32
34
|
const node_readline_1 = require("node:readline");
|
|
33
35
|
const node_crypto_1 = require("node:crypto");
|
|
34
36
|
const claude_md_js_1 = require("./claude-md.js");
|
|
35
|
-
const HICORTEX_HOME = (0,
|
|
37
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
36
38
|
const CC_SETTINGS = (0, node_path_1.join)((0, node_os_1.homedir)(), ".claude", "settings.json");
|
|
37
39
|
const CC_COMMANDS_DIR = (0, node_path_1.join)((0, node_os_1.homedir)(), ".claude", "commands");
|
|
38
40
|
const OC_CONFIG = (0, node_path_1.join)((0, node_os_1.homedir)(), ".openclaw", "openclaw.json");
|
|
@@ -789,16 +791,31 @@ function findNpxPath() {
|
|
|
789
791
|
return "/usr/local/bin/npx";
|
|
790
792
|
}
|
|
791
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
* True if a resolved binary path lives in npm's ephemeral npx cache
|
|
796
|
+
* (`~/.npm/_npx/<hash>/node_modules/.bin/…`). When `hicortex init` is itself
|
|
797
|
+
* run via `npx -y @gamaze/hicortex init`, npx prepends that cache dir to PATH,
|
|
798
|
+
* so `which hicortex` resolves there. npm garbage-collects `_npx`, so any
|
|
799
|
+
* SessionStart hook or nightly timer wired to such a path breaks silently
|
|
800
|
+
* later — the "looks configured but isn't" trap (#176). Never persist it.
|
|
801
|
+
*/
|
|
802
|
+
function isEphemeralNpxPath(binPath) {
|
|
803
|
+
return binPath.includes("/_npx/");
|
|
804
|
+
}
|
|
792
805
|
/**
|
|
793
806
|
* Resolve the absolute path of the hicortex binary.
|
|
794
807
|
* For global npm installs (e.g. /usr/bin/hicortex) this is the binary itself.
|
|
795
808
|
* For dev/npx installs, falls back to `npx <packageSpec> <command>` form.
|
|
796
809
|
* Returns an array: [binaryPath] for global, or [npxPath, "-y", packageSpec] for npx.
|
|
810
|
+
*
|
|
811
|
+
* A `which hicortex` hit inside the npx cache (#176) is REJECTED — it is
|
|
812
|
+
* ephemeral, so we emit the durable `npx -y <spec>` form instead. This is the
|
|
813
|
+
* standard client path (`npx … init`), where the fix matters most.
|
|
797
814
|
*/
|
|
798
815
|
function resolveBinaryArgs() {
|
|
799
816
|
try {
|
|
800
817
|
const bin = (0, node_child_process_1.execSync)("which hicortex", { encoding: "utf-8" }).trim();
|
|
801
|
-
if (bin)
|
|
818
|
+
if (bin && !isEphemeralNpxPath(bin))
|
|
802
819
|
return [bin];
|
|
803
820
|
}
|
|
804
821
|
catch { /* not in PATH as a global binary */ }
|
package/dist/lessons-context.js
CHANGED
|
@@ -26,27 +26,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.fetchLessonsContext = fetchLessonsContext;
|
|
27
27
|
const node_fs_1 = require("node:fs");
|
|
28
28
|
const node_path_1 = require("node:path");
|
|
29
|
-
const node_os_1 = require("node:os");
|
|
30
29
|
const features_js_1 = require("./features.js");
|
|
31
30
|
const extensions_js_1 = require("./extensions.js");
|
|
32
31
|
const state_js_1 = require("./state.js");
|
|
32
|
+
const paths_js_1 = require("./paths.js");
|
|
33
33
|
const DEFAULT_PORT = 8787;
|
|
34
34
|
/** Harness name this hook injects for — used to self-gate on GET /context `clients`. */
|
|
35
35
|
const THIS_HARNESS = "cc";
|
|
36
|
-
/**
|
|
37
|
-
* Resolve the Hicortex home. Honors HICORTEX_HOME (matches the HICORTEX_DB_PATH
|
|
38
|
-
* env convention in db.ts) so headless/scratch installs can point elsewhere;
|
|
39
|
-
* defaults to ~/.hicortex. Resolved per-call so tests and env changes apply.
|
|
40
|
-
*/
|
|
41
|
-
function hicortexHome() {
|
|
42
|
-
return process.env.HICORTEX_HOME ?? (0, node_path_1.join)((0, node_os_1.homedir)(), ".hicortex");
|
|
43
|
-
}
|
|
44
36
|
/**
|
|
45
37
|
* Read ~/.hicortex/config.json and resolve the server URL + auth token, or
|
|
46
38
|
* null when there is no usable config (server not set up yet — fail soft).
|
|
47
39
|
*/
|
|
48
40
|
function resolveConfig() {
|
|
49
|
-
const home = hicortexHome();
|
|
41
|
+
const home = (0, paths_js_1.hicortexHome)();
|
|
50
42
|
let config;
|
|
51
43
|
try {
|
|
52
44
|
config = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(home, "config.json"), "utf-8"));
|
package/dist/mcp-server.js
CHANGED
|
@@ -122,7 +122,7 @@ function createMcpServer() {
|
|
|
122
122
|
if (!db)
|
|
123
123
|
return { content: [{ type: "text", text: "Hicortex not initialized" }], isError: true };
|
|
124
124
|
try {
|
|
125
|
-
const results = retrieval.
|
|
125
|
+
const results = retrieval.searchRecent(db, { project, limit });
|
|
126
126
|
return { content: [{ type: "text", text: formatResults(results) }] };
|
|
127
127
|
}
|
|
128
128
|
catch (err) {
|
|
@@ -593,7 +593,7 @@ async function startServer(options = {}) {
|
|
|
593
593
|
? req.query.privacy.split(",").map((s) => s.trim()).filter(Boolean)
|
|
594
594
|
: undefined;
|
|
595
595
|
try {
|
|
596
|
-
const results = retrieval.
|
|
596
|
+
const results = retrieval.searchRecent(db, { project, limit, privacy });
|
|
597
597
|
res.json({ results });
|
|
598
598
|
}
|
|
599
599
|
catch (err) {
|
package/dist/nightly-status.js
CHANGED
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.showNightlyStatus = showNightlyStatus;
|
|
14
|
+
const paths_js_1 = require("./paths.js");
|
|
14
15
|
const node_fs_1 = require("node:fs");
|
|
15
16
|
const node_path_1 = require("node:path");
|
|
16
17
|
const node_os_1 = require("node:os");
|
|
17
18
|
const node_child_process_1 = require("node:child_process");
|
|
18
19
|
const db_js_1 = require("./db.js");
|
|
19
20
|
const state_js_1 = require("./state.js");
|
|
20
|
-
const HICORTEX_HOME = (0,
|
|
21
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
21
22
|
const CONFIG_PATH = (0, node_path_1.join)(HICORTEX_HOME, "config.json");
|
|
22
23
|
async function showNightlyStatus() {
|
|
23
24
|
console.log("Hicortex Nightly Pipeline Status");
|
package/dist/nightly.js
CHANGED
|
@@ -46,9 +46,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
})();
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.runNightly = runNightly;
|
|
49
|
+
const paths_js_1 = require("./paths.js");
|
|
49
50
|
const node_fs_1 = require("node:fs");
|
|
50
51
|
const node_path_1 = require("node:path");
|
|
51
|
-
const node_os_1 = require("node:os");
|
|
52
52
|
let VERSION = "0.0.0";
|
|
53
53
|
try {
|
|
54
54
|
VERSION = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, "..", "package.json"), "utf-8")).version;
|
|
@@ -69,7 +69,7 @@ const oc_transcript_reader_js_1 = require("./oc-transcript-reader.js");
|
|
|
69
69
|
const features_js_1 = require("./features.js");
|
|
70
70
|
const state_js_1 = require("./state.js");
|
|
71
71
|
const telemetry_js_1 = require("./telemetry.js");
|
|
72
|
-
const HICORTEX_HOME = (0,
|
|
72
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
73
73
|
function readNightlyConfig(stateDir) {
|
|
74
74
|
try {
|
|
75
75
|
const configPath = (0, node_path_1.join)(stateDir, "config.json");
|
package/dist/paths.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hicortexHome(): string;
|
package/dist/paths.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hicortexHome = hicortexHome;
|
|
4
|
+
/**
|
|
5
|
+
* Canonical Hicortex home resolution — the single source of truth (#174).
|
|
6
|
+
*
|
|
7
|
+
* Honors the HICORTEX_HOME env override (a headless/test seam, mirroring the
|
|
8
|
+
* HICORTEX_DB_PATH convention in db.ts); otherwise defaults to ~/.hicortex.
|
|
9
|
+
* Every module that needs the home dir routes through here, so the override
|
|
10
|
+
* behaves consistently across all commands instead of being honored by some
|
|
11
|
+
* (context-cli, lessons-context) and hardcoded away by others.
|
|
12
|
+
*/
|
|
13
|
+
const node_os_1 = require("node:os");
|
|
14
|
+
const node_path_1 = require("node:path");
|
|
15
|
+
function hicortexHome() {
|
|
16
|
+
return process.env.HICORTEX_HOME ?? (0, node_path_1.join)((0, node_os_1.homedir)(), ".hicortex");
|
|
17
|
+
}
|
package/dist/relink.js
CHANGED
|
@@ -74,14 +74,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
74
74
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
75
|
exports.getStoredEmbedding = getStoredEmbedding;
|
|
76
76
|
exports.runRelink = runRelink;
|
|
77
|
+
const paths_js_1 = require("./paths.js");
|
|
77
78
|
const node_fs_1 = require("node:fs");
|
|
78
79
|
const node_path_1 = require("node:path");
|
|
79
|
-
const node_os_1 = require("node:os");
|
|
80
80
|
const db_js_1 = require("./db.js");
|
|
81
81
|
const storage = __importStar(require("./storage.js"));
|
|
82
82
|
const consolidate_js_1 = require("./consolidate.js");
|
|
83
83
|
const state_js_1 = require("./state.js");
|
|
84
|
-
const HICORTEX_HOME = (0,
|
|
84
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
85
85
|
function readConfig(stateDir) {
|
|
86
86
|
try {
|
|
87
87
|
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(stateDir, "config.json"), "utf-8"));
|
package/dist/retrieval.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare function retrieve(db: Database.Database, embedFn: EmbedFn, query:
|
|
|
55
55
|
/**
|
|
56
56
|
* Get recent context, optionally filtered by project and privacy.
|
|
57
57
|
*/
|
|
58
|
-
export declare function
|
|
58
|
+
export declare function searchRecent(db: Database.Database, options?: {
|
|
59
59
|
project?: string | null;
|
|
60
60
|
limit?: number;
|
|
61
61
|
privacy?: string[];
|
package/dist/retrieval.js
CHANGED
|
@@ -52,7 +52,7 @@ exports.l2ToCosine = l2ToCosine;
|
|
|
52
52
|
exports.effectiveStrength = effectiveStrength;
|
|
53
53
|
exports.computeScore = computeScore;
|
|
54
54
|
exports.retrieve = retrieve;
|
|
55
|
-
exports.
|
|
55
|
+
exports.searchRecent = searchRecent;
|
|
56
56
|
const storage = __importStar(require("./storage.js"));
|
|
57
57
|
const BASE_DECAY = 0.0005;
|
|
58
58
|
/**
|
|
@@ -315,7 +315,7 @@ async function retrieve(db, embedFn, query, options) {
|
|
|
315
315
|
/**
|
|
316
316
|
* Get recent context, optionally filtered by project and privacy.
|
|
317
317
|
*/
|
|
318
|
-
function
|
|
318
|
+
function searchRecent(db, options) {
|
|
319
319
|
const limit = options?.limit ?? 10;
|
|
320
320
|
const project = options?.project;
|
|
321
321
|
const privacy = options?.privacy;
|
package/dist/state.js
CHANGED
|
@@ -23,10 +23,10 @@ exports.saveState = saveState;
|
|
|
23
23
|
exports.updateState = updateState;
|
|
24
24
|
exports.migrateLegacyState = migrateLegacyState;
|
|
25
25
|
exports.describeLastNightly = describeLastNightly;
|
|
26
|
+
const paths_js_1 = require("./paths.js");
|
|
26
27
|
const node_fs_1 = require("node:fs");
|
|
27
28
|
const node_path_1 = require("node:path");
|
|
28
|
-
const
|
|
29
|
-
const HICORTEX_HOME = (0, node_path_1.join)((0, node_os_1.homedir)(), ".hicortex");
|
|
29
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
30
30
|
const STATE_FILE = "state.json";
|
|
31
31
|
/**
|
|
32
32
|
* Load the state file. Returns an empty state if the file is missing
|
package/dist/status.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.runStatus = runStatus;
|
|
7
|
+
const paths_js_1 = require("./paths.js");
|
|
7
8
|
const node_fs_1 = require("node:fs");
|
|
8
9
|
const node_path_1 = require("node:path");
|
|
9
10
|
const node_os_1 = require("node:os");
|
|
@@ -11,7 +12,7 @@ const node_child_process_1 = require("node:child_process");
|
|
|
11
12
|
const db_js_1 = require("./db.js");
|
|
12
13
|
const features_js_1 = require("./features.js");
|
|
13
14
|
const state_js_1 = require("./state.js");
|
|
14
|
-
const HICORTEX_HOME = (0,
|
|
15
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
15
16
|
const CC_SETTINGS = (0, node_path_1.join)((0, node_os_1.homedir)(), ".claude", "settings.json");
|
|
16
17
|
const OC_CONFIG = (0, node_path_1.join)((0, node_os_1.homedir)(), ".openclaw", "openclaw.json");
|
|
17
18
|
async function runStatus() {
|
package/dist/uninstall.js
CHANGED
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.runUninstall = runUninstall;
|
|
8
|
+
const paths_js_1 = require("./paths.js");
|
|
8
9
|
const node_fs_1 = require("node:fs");
|
|
9
10
|
const node_path_1 = require("node:path");
|
|
10
11
|
const node_os_1 = require("node:os");
|
|
11
12
|
const node_child_process_1 = require("node:child_process");
|
|
12
13
|
const node_readline_1 = require("node:readline");
|
|
13
14
|
const claude_md_js_1 = require("./claude-md.js");
|
|
14
|
-
const HICORTEX_HOME = (0,
|
|
15
|
+
const HICORTEX_HOME = (0, paths_js_1.hicortexHome)();
|
|
15
16
|
const CC_SETTINGS = (0, node_path_1.join)((0, node_os_1.homedir)(), ".claude", "settings.json");
|
|
16
17
|
const CC_COMMANDS_DIR = (0, node_path_1.join)((0, node_os_1.homedir)(), ".claude", "commands");
|
|
17
18
|
const CLAUDE_MD = (0, node_path_1.join)((0, node_os_1.homedir)(), ".claude", "CLAUDE.md");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamaze/hicortex",
|
|
3
|
-
"version": "0.12.
|
|
4
|
-
"description": "Self-learning memory for AI agents
|
|
3
|
+
"version": "0.12.1",
|
|
4
|
+
"description": "Self-learning memory for AI agents \u2014 experience captured automatically, distilled into lessons overnight, shared across your whole fleet. Works with Hermes, OpenClaw, Claude Code, and Pi.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"hicortex": "dist/cli.js"
|