opencode-graphiti 0.1.1 → 0.1.2

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/esm/src/config.js CHANGED
@@ -14,7 +14,7 @@ const GraphitiConfigSchema = z.object({
14
14
  * Load Graphiti configuration from JSONC files with defaults applied.
15
15
  */
16
16
  export function loadConfig() {
17
- const explorer = cosmiconfigSync("graphiti");
17
+ const explorer = cosmiconfigSync("graphiti", { searchStrategy: "global" });
18
18
  const result = explorer.search();
19
19
  const candidate = result?.config ?? {};
20
20
  const merged = {
@@ -1,5 +1,4 @@
1
1
  import type { Plugin } from "@opencode-ai/plugin";
2
- export { makeGroupId } from "./utils.js";
3
2
  /**
4
3
  * OpenCode plugin entry point for Graphiti memory integration.
5
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,qBAAqB,CAAC;AAW/D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,MA4CtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,qBAAqB,CAAC;AAW/D;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,MA4CtB,CAAC"}
package/esm/src/index.js CHANGED
@@ -6,7 +6,6 @@ import { GraphitiClient } from "./services/client.js";
6
6
  import { logger } from "./services/logger.js";
7
7
  import { SessionManager } from "./session.js";
8
8
  import { makeGroupId, makeUserGroupId } from "./utils.js";
9
- export { makeGroupId } from "./utils.js";
10
9
  /**
11
10
  * OpenCode plugin entry point for Graphiti memory integration.
12
11
  */
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "opencode-graphiti",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "OpenCode plugin for persistent memory via Graphiti knowledge graph",
5
5
  "license": "MIT",
6
- "main": "./script/mod.js",
6
+ "main": "./esm/mod.js",
7
7
  "module": "./esm/mod.js",
8
8
  "exports": {
9
9
  ".": {
@@ -50,7 +50,7 @@ const GraphitiConfigSchema = z.object({
50
50
  * Load Graphiti configuration from JSONC files with defaults applied.
51
51
  */
52
52
  function loadConfig() {
53
- const explorer = (0, cosmiconfig_1.cosmiconfigSync)("graphiti");
53
+ const explorer = (0, cosmiconfig_1.cosmiconfigSync)("graphiti", { searchStrategy: "global" });
54
54
  const result = explorer.search();
55
55
  const candidate = result?.config ?? {};
56
56
  const merged = {
@@ -1,5 +1,4 @@
1
1
  import type { Plugin } from "@opencode-ai/plugin";
2
- export { makeGroupId } from "./utils.js";
3
2
  /**
4
3
  * OpenCode plugin entry point for Graphiti memory integration.
5
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,qBAAqB,CAAC;AAW/D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,MA4CtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,qBAAqB,CAAC;AAW/D;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,MA4CtB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.graphiti = exports.makeGroupId = void 0;
3
+ exports.graphiti = void 0;
4
4
  const config_js_1 = require("./config.js");
5
5
  const chat_js_1 = require("./handlers/chat.js");
6
6
  const compacting_js_1 = require("./handlers/compacting.js");
@@ -9,8 +9,6 @@ const client_js_1 = require("./services/client.js");
9
9
  const logger_js_1 = require("./services/logger.js");
10
10
  const session_js_1 = require("./session.js");
11
11
  const utils_js_1 = require("./utils.js");
12
- var utils_js_2 = require("./utils.js");
13
- Object.defineProperty(exports, "makeGroupId", { enumerable: true, get: function () { return utils_js_2.makeGroupId; } });
14
12
  /**
15
13
  * OpenCode plugin entry point for Graphiti memory integration.
16
14
  */