The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): keep createdBy=learn through the starmap share code
teknium1d735097376ce
diff --git a/apps/desktop/src/app/starmap/share-code.test.ts b/apps/desktop/src/app/starmap/share-code.test.tsindex 6cf33f869fa..ea7f8ce94f9 100644--- a/apps/desktop/src/app/starmap/share-code.test.ts+++ b/apps/desktop/src/app/starmap/share-code.test.ts@@ -29,7 +29,7 @@ function sampleGraph(): StarmapGraph {},{category: 'devops',- createdBy: null,+ createdBy: 'learn',id: 'skill-b',kind: 'skill',label: 'skill-b',diff --git a/apps/desktop/src/app/starmap/share-code.ts b/apps/desktop/src/app/starmap/share-code.tsindex 7531715408f..d800e40ab17 100644--- a/apps/desktop/src/app/starmap/share-code.ts+++ b/apps/desktop/src/app/starmap/share-code.ts@@ -20,7 +20,7 @@ const trim = (s: string): string => (s.length > MAX_LABEL ? s.slice(0, MAX_LABELconst KINDS = ['skill', 'memory'] as constconst STATES = ['active', 'archived', 'disabled', 'draft'] as constconst MEM_SOURCES = ['none', 'memory', 'profile'] as const-const CREATED_BY = ['none', 'agent', 'user'] as const+const CREATED_BY = ['none', 'agent', 'user', 'learn'] as constconst REC_BITS = 12 // time position resolution: 1/4096 of the span — sub-pixel here.const REC_MAX = (1 << REC_BITS) - 1diff --git a/apps/desktop/src/app/starmap/text.ts b/apps/desktop/src/app/starmap/text.tsindex c0563d046ff..d13edb86439 100644--- a/apps/desktop/src/app/starmap/text.ts+++ b/apps/desktop/src/app/starmap/text.ts@@ -23,7 +23,7 @@ export function metaBadges(n: StarmapNode): string[] {} else {out.push(n.category)- if (n.createdBy === 'agent') {+ if (n.createdBy === 'agent' || n.createdBy === 'learn') {out.push('learned')}