@dzhi/ocpg 0.10.0 → 0.12.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/ocpg.ts +10 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -85,4 +85,4 @@ Enable the commit hooks once per clone ([pre-commit](https://pre-commit.com)):
85
85
  pre-commit install
86
86
  ```
87
87
 
88
- It runs lint and typecheck on commits that touch `.ts` files. `bun test` is deliberately excluded from both the hook and CI, because it writes to a real database.
88
+ It runs lint and typecheck on commits that touch `.ts` files. `bun test` is left out of the hook because it writes to a real database — CI runs it against a throwaway Postgres service container instead.
package/ocpg.ts CHANGED
@@ -453,8 +453,14 @@ const ocpg = Plugin.define({
453
453
  });
454
454
  editor.add({
455
455
  name: "memory_remember",
456
+ // This description is the only place the write policy is guaranteed to
457
+ // reach the model: it is in the tool schema every session, whereas the
458
+ // injected block is skipped entirely for projects with no memories and
459
+ // the user may have no project instructions at all.
456
460
  description:
457
- "Store a memory for this project. Use after user corrections, architecture decisions, or non-trivial fixes.",
461
+ "Store a durable memory for this project. Use after user corrections (immediately), " +
462
+ "architecture decisions, non-trivial fixes, environment facts, and stated preferences. " +
463
+ "Do not store session progress, secrets, or anything the code itself already states.",
458
464
  input: {
459
465
  type: "object",
460
466
  properties: {
@@ -467,7 +473,9 @@ const ocpg = Plugin.define({
467
473
  items: { type: "string", maxLength: MAX_TAG_LENGTH },
468
474
  maxItems: MAX_TAGS,
469
475
  description:
470
- "Category prefixes: preference, decision, debug, env, architecture, workaround, language:<x>, framework:<x>, tool:<x>",
476
+ "Category prefixes: preference, decision, debug, env, architecture, workaround, " +
477
+ "language:<x>, framework:<x>, tool:<x>. Project scoping is automatic (a project " +
478
+ "column, not a tag) - never add project:<name>.",
471
479
  },
472
480
  force: {
473
481
  type: "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzhi/ocpg",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "description": "Postgres-backed persistent memory plugin for OpenCode",
6
6
  "main": "ocpg.ts",