@eleboucher/pi-memini 0.5.3 → 0.5.4

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/dist/index.js +7 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -487,7 +487,8 @@ export default function meminiExtension(pi) {
487
487
  parameters: Type.Object({
488
488
  content: Type.String({ description: "The fact to remember" }),
489
489
  tier: Type.Optional(Type.String({
490
- description: "semantic=durable knowledge, procedural=how-to, episodic=what happened, working=transient (default semantic)",
490
+ description: "semantic=durable knowledge, procedural=how-to, episodic=what happened, working=transient " +
491
+ "(omit to let the server classify from the content)",
491
492
  })),
492
493
  tags: Type.Optional(Type.Array(Type.String(), { description: "Optional keywords for later search/filtering." })),
493
494
  category: Type.Optional(Type.String({
@@ -495,9 +496,11 @@ export default function meminiExtension(pi) {
495
496
  })),
496
497
  }),
497
498
  async execute(_toolCallId, params) {
498
- const body = { content: params.content, tier: params.tier || "semantic" };
499
- if (!VALID_TIERS.includes(body.tier))
500
- body.tier = "semantic";
499
+ // No client-side tier default: an omitted (or invalid) tier lets the
500
+ // server classify the content and apply its own default.
501
+ const body = { content: params.content };
502
+ if (params.tier && VALID_TIERS.includes(params.tier))
503
+ body.tier = params.tier;
501
504
  if (params.tags?.length)
502
505
  body.tags = params.tags;
503
506
  if (params.category)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleboucher/pi-memini",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Shared cross-session memory for the Pi coding agent, backed by a memini service.",
5
5
  "files": [
6
6
  "dist"