Skip to content

The agent that grows with you

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.ts
index 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.ts
index 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_LABEL
const KINDS = ['skill', 'memory'] as const
const STATES = ['active', 'archived', 'disabled', 'draft'] as const
const MEM_SOURCES = ['none', 'memory', 'profile'] as const
-const CREATED_BY = ['none', 'agent', 'user'] as const
+const CREATED_BY = ['none', 'agent', 'user', 'learn'] as const
const REC_BITS = 12 // time position resolution: 1/4096 of the span — sub-pixel here.
const REC_MAX = (1 << REC_BITS) - 1
diff --git a/apps/desktop/src/app/starmap/text.ts b/apps/desktop/src/app/starmap/text.ts
index 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')
}