@a-company/paradigm 5.9.0 → 5.10.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 (29) hide show
  1. package/dist/{accept-orchestration-GX2YRWM4.js → accept-orchestration-UQLM7PTQ.js} +4 -4
  2. package/dist/{agent-loader-X7TDYLFL.js → agent-loader-TFIANSF4.js} +1 -1
  3. package/dist/agent-state-S5DAWPTF.js +24 -0
  4. package/dist/{chunk-3UCH56D5.js → chunk-4BLYIB7J.js} +270 -928
  5. package/dist/chunk-4L3UTYQX.js +677 -0
  6. package/dist/chunk-54LTTQBH.js +138 -0
  7. package/dist/chunk-5OUOLN6M.js +659 -0
  8. package/dist/{chunk-SDDCVUCV.js → chunk-CL7JSK52.js} +23 -0
  9. package/dist/{chunk-MA7G4CTI.js → chunk-RJE5G7WO.js} +27 -1
  10. package/dist/{chunk-EI32ZBE6.js → chunk-RTHA3XRE.js} +19 -672
  11. package/dist/{chunk-V7BZBBI6.js → chunk-VPPK3SY4.js} +1 -1
  12. package/dist/{chunk-WQITYKHM.js → chunk-YRZ5RPEB.js} +7 -7
  13. package/dist/{diff-RQLLNAFI.js → diff-D4X53HAC.js} +4 -4
  14. package/dist/{docs-AIY6VNF7.js → docs-QIYKO3BR.js} +1 -1
  15. package/dist/index.js +19 -19
  16. package/dist/mcp.js +140 -66
  17. package/dist/model-discovery-D2H3VBGC.js +8 -0
  18. package/dist/{nomination-engine-LLREC5BZ.js → nomination-engine-RV5CNO5B.js} +2 -2
  19. package/dist/{orchestrate-XZA33TJC.js → orchestrate-JLILBBJE.js} +4 -4
  20. package/dist/{reindex-U2HEB6GW.js → reindex-5LTD53ZC.js} +3 -2
  21. package/dist/{serve-QWWJP2EW.js → serve-CAH3PHE7.js} +1 -1
  22. package/dist/session-tracker-C4BMD5WG.js +13 -0
  23. package/dist/{session-work-log-KDOH4GER.js → session-work-log-MZ47OAPB.js} +1 -1
  24. package/dist/{shift-VJUGMADR.js → shift-D2JOHHBF.js} +33 -5
  25. package/dist/{spawn-AW6GDECS.js → spawn-RCHNXDHE.js} +4 -4
  26. package/dist/{team-7HG7XK5C.js → team-O5MIIFMA.js} +6 -5
  27. package/package.json +1 -1
  28. package/dist/{chunk-LSRABQIY.js → chunk-45MUDW6E.js} +3 -3
  29. /package/dist/{platform-server-U5L2G3EU.js → platform-server-H5YO3DQD.js} +0 -0
@@ -267,7 +267,7 @@ function mergeAgentProfileWithManifest(agentDef, profile, projectName) {
267
267
  transferablePatterns: (profile.transferable || []).filter((p) => p.successRate >= 0.7).map((p) => ({ id: p.id, description: p.description, successRate: p.successRate }))
268
268
  };
269
269
  }
270
- function buildProfileEnrichment(profile, relevantSymbols, notebookEntries, ambientContext) {
270
+ function buildProfileEnrichment(profile, relevantSymbols, notebookEntries, ambientContext, agentState) {
271
271
  const parts = [];
272
272
  if (profile.personality) {
273
273
  const p = profile.personality;
@@ -304,6 +304,32 @@ function buildProfileEnrichment(profile, relevantSymbols, notebookEntries, ambie
304
304
  parts.push("");
305
305
  }
306
306
  }
307
+ if (agentState) {
308
+ parts.push("");
309
+ parts.push("## Your Recent Work on This Project");
310
+ if (agentState.lastSession) {
311
+ const ageMs = Date.now() - new Date(agentState.lastSession.date).getTime();
312
+ const ageHours = Math.floor(ageMs / (60 * 60 * 1e3));
313
+ const ageStr = ageHours < 24 ? `${ageHours}h ago` : `${Math.floor(ageHours / 24)}d ago`;
314
+ parts.push(`Last session (${ageStr}): ${agentState.lastSession.summary}`);
315
+ }
316
+ if (agentState.sessionsOnProject) {
317
+ parts.push(`Sessions on this project: ${agentState.sessionsOnProject}`);
318
+ }
319
+ if (agentState.pendingWork?.length) {
320
+ parts.push("**Pending from last session:**");
321
+ for (const item of agentState.pendingWork.slice(0, 5)) {
322
+ parts.push(`- ${item}`);
323
+ }
324
+ }
325
+ if (agentState.recentPatterns?.length) {
326
+ parts.push("**Project patterns you've learned:**");
327
+ for (const pattern of agentState.recentPatterns.slice(0, 5)) {
328
+ parts.push(`- ${pattern}`);
329
+ }
330
+ }
331
+ parts.push("");
332
+ }
307
333
  if (profile.attention) {
308
334
  const att = profile.attention;
309
335
  const attParts = [];