oc-solomemory-dev 1.0.6-dev.70f1ae5 → 1.0.6-dev.9316276

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.

Potentially problematic release.


This version of oc-solomemory-dev might be problematic. Click here for more details.

@@ -0,0 +1,2 @@
1
+ export declare function login(): Promise<number>;
2
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/cli/auth.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAuB7C"}
@@ -0,0 +1,5 @@
1
+ import * as readline from "node:readline";
2
+ export declare function createReadline(): readline.Interface;
3
+ export declare function confirm(rl: readline.Interface, question: string): Promise<boolean>;
4
+ export declare function prompt(rl: readline.Interface, question: string): Promise<string>;
5
+ //# sourceMappingURL=prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/cli/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,wBAAgB,cAAc,IAAI,QAAQ,CAAC,SAAS,CAKnD;AAED,wBAAsB,OAAO,CAAC,EAAE,EAAE,QAAQ,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAMxF;AAED,wBAAsB,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMtF"}
package/dist/cli.js CHANGED
@@ -339,7 +339,7 @@ var OPENCODE_COMMAND_DIR = path2.join(OPENCODE_CONFIG_DIR, "command");
339
339
  var JSON_INDENT_SPACES = 2;
340
340
  var SEPARATOR_WIDTH = 50;
341
341
  function getPluginTag() {
342
- return "1.0.6-dev.70f1ae5".includes("-dev.") ? "dev" : "latest";
342
+ return "1.0.6".includes("-dev.") ? "dev" : "latest";
343
343
  }
344
344
  function getPluginName() {
345
345
  return `oc-solomemory@${getPluginTag()}`;
package/dist/index.js CHANGED
@@ -13807,7 +13807,7 @@ async function handleEvent(event, context) {
13807
13807
  }
13808
13808
  }
13809
13809
  function initPlugin(ctx) {
13810
- const version2 = "1.0.6-dev.70f1ae5";
13810
+ const version2 = "1.0.6";
13811
13811
  const { directory } = ctx;
13812
13812
  const tags = getTags(directory);
13813
13813
  const projectScopeTag = tags.repository ?? tags.project;
@@ -0,0 +1,71 @@
1
+ import { type SessionMessage } from "./messages.js";
2
+ export interface CompactionOptions {
3
+ threshold?: number;
4
+ getModelLimit?: (providerID: string, modelID: string) => number | undefined;
5
+ }
6
+ export interface CompactionContext {
7
+ directory: string;
8
+ client: {
9
+ session: {
10
+ summarize: (params: {
11
+ path: {
12
+ id: string;
13
+ };
14
+ body: {
15
+ providerID: string;
16
+ modelID: string;
17
+ };
18
+ query: {
19
+ directory: string;
20
+ };
21
+ }) => Promise<unknown>;
22
+ messages: (params: {
23
+ path: {
24
+ id: string;
25
+ };
26
+ query: {
27
+ directory: string;
28
+ };
29
+ }) => Promise<{
30
+ data?: SessionMessage[];
31
+ }>;
32
+ promptAsync: (params: {
33
+ path: {
34
+ id: string;
35
+ };
36
+ body: {
37
+ agent?: string;
38
+ parts: Array<{
39
+ type: string;
40
+ text: string;
41
+ }>;
42
+ };
43
+ query: {
44
+ directory: string;
45
+ };
46
+ }) => Promise<unknown>;
47
+ };
48
+ tui: {
49
+ showToast: (params: {
50
+ body: {
51
+ title: string;
52
+ message: string;
53
+ variant: string;
54
+ duration: number;
55
+ };
56
+ }) => Promise<unknown>;
57
+ };
58
+ };
59
+ }
60
+ export declare function createCompactionHook(ctx: CompactionContext, tags: {
61
+ user: string;
62
+ project: string;
63
+ }, options?: CompactionOptions): {
64
+ event({ event }: {
65
+ event: {
66
+ type: string;
67
+ properties?: unknown;
68
+ };
69
+ }): Promise<void>;
70
+ };
71
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AAM,CAAA;qBAAE,CAAC,CAAA;iBAAE,CAAC;gBAAC,KAAK,EAAE;oBAAE,SAAS,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;SAC3K,CAAC;QACF,GAAG,EAAE;YACH,SAAS,EAAE,CAAC,MAAM,EAAE;gBAAE,IAAI,EAAE;oBAAE,KAAK,EAAE,MAAM,CAAC;oBAAC,OAAO,EAAE,MAAM,CAAC;oBAAC,OAAO,EAAE,MAAM,CAAC;oBAAC,QAAQ,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;SAC1H,CAAC;KACH,CAAC;CACH;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EACvC,OAAO,CAAC,EAAE,iBAAiB;qBA6NF;QAAE,KAAK,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE;EAgE3E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-solomemory-dev",
3
- "version": "1.0.6-dev.70f1ae5",
3
+ "version": "1.0.6-dev.9316276",
4
4
  "description": "Persistent memory plugin for OpenCode — your AI agent remembers across sessions and projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",