@super-pocock-ai/suite 2.0.13 → 2.0.18

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.
Files changed (2) hide show
  1. package/index.js +46 -0
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -236,6 +236,31 @@ export const SuperPocockSuite = async ({ project, client, $, directory, worktree
236
236
  const composeSkillsDir = join(configDir, '@super-pocock-ai', 'compose-workflow', 'skills', 'compose')
237
237
  await installSkills(composeSkillsDir, 'compose')
238
238
 
239
+ // Initialize memory-core plugin
240
+ let memoryPlugin = null
241
+ try {
242
+ const memoryCorePath = join(configDir, '@super-pocock-ai', 'memory-core', 'dist', 'index.mjs')
243
+ if (existsSync(memoryCorePath)) {
244
+ const { MemoryCorePlugin } = await import(memoryCorePath)
245
+ memoryPlugin = await MemoryCorePlugin({ project, client, $, directory, worktree })
246
+ await client.app.log({
247
+ body: {
248
+ service: 'super-pocock-suite',
249
+ level: 'info',
250
+ message: 'Memory system initialized'
251
+ }
252
+ })
253
+ }
254
+ } catch (e) {
255
+ await client.app.log({
256
+ body: {
257
+ service: 'super-pocock-suite',
258
+ level: 'warn',
259
+ message: `Memory system initialization failed: ${e.message}`
260
+ }
261
+ })
262
+ }
263
+
239
264
  return {
240
265
  "session.created": async ({ event }) => {
241
266
  await client.app.log({
@@ -245,6 +270,27 @@ export const SuperPocockSuite = async ({ project, client, $, directory, worktree
245
270
  message: `Superpocock Suite v${SUITE_VERSION} loaded`
246
271
  }
247
272
  })
273
+ // Forward to memory plugin
274
+ if (memoryPlugin?.event) {
275
+ await memoryPlugin.event({ event })
276
+ }
277
+ },
278
+ "event": async (input) => {
279
+ // Forward all events to memory plugin
280
+ if (memoryPlugin?.event) {
281
+ await memoryPlugin.event(input)
282
+ }
283
+ },
284
+ "tool": memoryPlugin?.tool || {},
285
+ "experimental.chat.system.transform": async (input, output) => {
286
+ if (memoryPlugin?.["experimental.chat.system.transform"]) {
287
+ await memoryPlugin["experimental.chat.system.transform"](input, output)
288
+ }
289
+ },
290
+ "experimental.session.compacting": async (input, output) => {
291
+ if (memoryPlugin?.["experimental.session.compacting"]) {
292
+ await memoryPlugin["experimental.session.compacting"](input, output)
293
+ }
248
294
  }
249
295
  }
250
296
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-pocock-ai/suite",
3
- "version": "2.0.13",
3
+ "version": "2.0.18",
4
4
  "description": "Superpocock 完整套件,包含记忆系统和工作流",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,10 +13,10 @@
13
13
  "postinstall": "node postinstall.js"
14
14
  },
15
15
  "dependencies": {
16
- "@super-pocock-ai/memory-core": "2.0.13",
17
- "@super-pocock-ai/memory-agents": "2.0.13",
18
- "@super-pocock-ai/compose-workflow": "2.0.13",
19
- "@super-pocock-ai/compose-agents": "2.0.13"
16
+ "@super-pocock-ai/memory-core": "2.0.18",
17
+ "@super-pocock-ai/memory-agents": "2.0.18",
18
+ "@super-pocock-ai/compose-workflow": "2.0.18",
19
+ "@super-pocock-ai/compose-agents": "2.0.18"
20
20
  },
21
21
  "keywords": [
22
22
  "opencode",