@aeondave/pi-persona-mind 0.9.6 → 0.9.8

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 (55) hide show
  1. package/AGENTS.md +137 -135
  2. package/CHANGELOG.md +287 -270
  3. package/LICENSE +24 -24
  4. package/README.md +84 -171
  5. package/docs/DESIGN.md +605 -573
  6. package/docs/MEMORY-RESEARCH.md +163 -163
  7. package/package.json +15 -6
  8. package/src/core/auto-optimize.ts +323 -249
  9. package/src/core/backlog.ts +228 -228
  10. package/src/core/blocked.ts +38 -38
  11. package/src/core/capture.ts +155 -154
  12. package/src/core/context-budget.ts +74 -74
  13. package/src/core/handoff-store.ts +111 -111
  14. package/src/core/handoff.ts +70 -70
  15. package/src/core/host-compat.ts +16 -16
  16. package/src/core/ids.ts +59 -59
  17. package/src/core/inject.ts +247 -247
  18. package/src/core/knowledge-review.ts +107 -107
  19. package/src/core/memory-read.ts +34 -34
  20. package/src/core/memory.ts +321 -321
  21. package/src/core/migrate.ts +713 -713
  22. package/src/core/mind-settings.ts +54 -54
  23. package/src/core/optimize-history.ts +163 -163
  24. package/src/core/optimize-service.ts +189 -180
  25. package/src/core/optimize.ts +127 -127
  26. package/src/core/retrieval.ts +164 -164
  27. package/src/core/scanner.ts +146 -146
  28. package/src/core/scope.ts +201 -205
  29. package/src/core/service.ts +720 -720
  30. package/src/core/session-memory.ts +71 -71
  31. package/src/core/store.ts +1002 -1002
  32. package/src/extension/activity.ts +79 -79
  33. package/src/extension/auto-optimize-session.ts +143 -143
  34. package/src/extension/auto-optimize.ts +565 -569
  35. package/src/extension/handoff.ts +23 -23
  36. package/src/extension/knowledge-review.ts +229 -229
  37. package/src/extension/memory-inspector.ts +82 -82
  38. package/src/extension/mind-actions.ts +38 -38
  39. package/src/extension/mind-worker.ts +32 -32
  40. package/src/extension/persona-dependency.ts +76 -76
  41. package/src/extension/reference-anchor.ts +48 -0
  42. package/src/extension/review-evidence.ts +222 -222
  43. package/src/extension/worker-memory-anchor.ts +28 -28
  44. package/src/index.ts +1357 -1310
  45. package/src/session-memory.ts +127 -122
  46. package/src/tools/backlog.ts +126 -126
  47. package/src/tools/memory-handoff.ts +30 -30
  48. package/src/tools/memory-history.ts +46 -46
  49. package/src/tools/memory.ts +6 -4
  50. package/src/ui/card-frame.ts +161 -161
  51. package/src/ui/inspector-frame.ts +44 -44
  52. package/src/ui/memory-inspector.ts +464 -464
  53. package/src/ui/mind-result-card.ts +48 -48
  54. package/src/ui/presentation.ts +87 -87
  55. package/src/ui/session-note-card.ts +58 -56
package/src/core/scope.ts CHANGED
@@ -1,205 +1,201 @@
1
- /**
2
- * Scope resolution — where a mind's stores live, and which persona owns the view.
3
- *
4
- * Active ownership is supplied by the live companion protocol.
5
- *
6
- * Layout under `<agentDir>/persona-mind/`:
7
- * memory/ltm/<persona>.json long-term, per persona (identity)
8
- * memory/ltm/_shared.json long-term, shared across personas
9
- * memory/project/<project>.json durable repository knowledge
10
- * memory/stm/<project>.json short-term, per project (decays)
11
- * backlog/<project>.json backlog, per project
12
- */
13
-
14
- import { existsSync, realpathSync } from "node:fs";
15
- import { createHash } from "node:crypto";
16
- import { homedir } from "node:os";
17
- import { basename, dirname, join, resolve, win32 } from "node:path";
18
-
19
- export const DEFAULT_PERSONA = "_default";
20
- export const SHARED_SCOPE = "_shared";
21
-
22
- export interface ScopePaths {
23
- /** Long-term memory for the active persona. */
24
- ltm: string;
25
- /** Long-term memory shared across personas. */
26
- shared: string;
27
- /** Durable repository knowledge, attributed to its recording persona. */
28
- projectLtm: string;
29
- /** Short-term memory for the current project. */
30
- stm: string;
31
- /** Backlog for the current project. */
32
- backlog: string;
33
- }
34
-
35
- /** Persona/shared facts span projects, so every memory writer uses one profile transaction lock. */
36
- export function memoryMutationLockPath(paths: Pick<ScopePaths, "shared">): string {
37
- return `${paths.shared}.memory-transaction.lock`;
38
- }
39
-
40
- export interface Scope {
41
- persona: string;
42
- projectRoot: string;
43
- slug: string;
44
- paths: ScopePaths;
45
- /** True when the resolved project is the user's home directory (no real git workspace). */
46
- homeWorkspace?: true;
47
- }
48
-
49
- /** The internal scope names a real persona must never be allowed to occupy (they back the shared
50
- * tier and the no-persona fallback; a collision would bleed private↔shared memory or merge scopes).
51
- * Compared case-insensitively — a case-insensitive filesystem aliases `_SHARED.json` to `_shared.json`. */
52
- const RESERVED_SCOPES: ReadonlySet<string> = new Set([DEFAULT_PERSONA, SHARED_SCOPE]);
53
-
54
- /** Windows reserved device base names: `NUL.json`/`CON.json`/… resolve to the device (a silent
55
- * write-to-void) in legacy Win32 path resolution, so a persona named after one must not be a filename. */
56
- const WIN_RESERVED = /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$/i;
57
- const MAX_CANONICAL_CACHE_ENTRIES = 256;
58
- const canonicalProjectCache = new Map<string, string>();
59
-
60
- function isReservedSegment(s: string): boolean {
61
- const deviceBase = s.split(".", 1)[0] ?? s;
62
- return RESERVED_SCOPES.has(s.toLowerCase()) || WIN_RESERVED.test(deviceBase);
63
- }
64
-
65
- /** A stable 12-hex content id for a persona name, used when it has no filesystem-safe characters. */
66
- function personaHash(name: string): string {
67
- return createHash("sha256").update(name).digest("hex").slice(0, 12);
68
- }
69
-
70
- /** A filesystem-safe single path segment for a persona name (no separators, no traversal). Two hazards
71
- * are guarded: a name with no safe characters (CJK/Cyrillic/emoji) would collapse to one sentinel and
72
- * merge every such persona (and the no-persona scope) — it gets a stable content-derived segment; and a
73
- * name that lands on an internal sentinel or a Windows device name is prefixed so it can never hijack
74
- * that reserved store. */
75
- export function sanitizePersona(name: string, platform: NodeJS.Platform | string = process.platform): string {
76
- const s = name
77
- .replace(/[^a-zA-Z0-9._-]+/g, "-")
78
- .replace(/^[-.]+|[-.]+$/g, "")
79
- .slice(0, 64);
80
- if (!s) return `persona-${personaHash(name)}`;
81
- const lossy = s !== name || (platform === "win32" && s !== s.toLowerCase());
82
- if (isReservedSegment(s)) return `persona-${s}-${personaHash(name)}`;
83
- return lossy ? `${s}-${personaHash(name)}` : s;
84
- }
85
-
86
- /**
87
- * The agent dir the mind should use, mirroring pi-persona's own `PI_AGENT_DIR || getAgentDir()`
88
- * precedence so both extensions co-locate their data: an explicit override (tests) wins, else
89
- * `PI_AGENT_DIR`, else `undefined` — signalling the caller to fall back to Pi's `getAgentDir()`
90
- * (kept lazy so tests that inject a dir never invoke the SDK). Env is injectable for tests.
91
- */
92
- export function preferredAgentDir(explicit: string | undefined, env: NodeJS.ProcessEnv = process.env): string | undefined {
93
- if (explicit !== undefined) return explicit;
94
- // Raw value with a truthiness check, exactly as pi-persona does (`PI_AGENT_DIR || getAgentDir()`);
95
- // trimming here would make the two extensions resolve different dirs for a padded value.
96
- const override = env.PI_AGENT_DIR;
97
- return override ? override : undefined;
98
- }
99
-
100
- export interface ProjectSlugOptions {
101
- /** Injectable for tests and alternate filesystem providers; defaults to realpathSync.native. */
102
- realpath?: (path: string) => string;
103
- /** Injectable platform seam; defaults to the current Node platform. */
104
- platform?: NodeJS.Platform | string;
105
- }
106
-
107
- /** Canonical project identity: resolved, realpathed, and case-folded on Windows. */
108
- export function canonicalProjectIdentity(projectRoot: string, opts: ProjectSlugOptions = {}): string {
109
- const platform = opts.platform ?? process.platform;
110
- const resolved = platform === "win32" ? win32.resolve(projectRoot) : resolve(projectRoot);
111
- // The default realpath provider is stable for a live project root and is the only path we cache.
112
- // Injectable providers stay uncached so tests and alternate filesystems observe every call.
113
- const cacheKey = opts.realpath === undefined ? `${platform}\0${platform === "win32" ? resolved.toLowerCase() : resolved}` : undefined;
114
- if (cacheKey !== undefined) {
115
- const cached = canonicalProjectCache.get(cacheKey);
116
- if (cached !== undefined) return cached;
117
- }
118
- let canonical: string;
119
- let cacheable = false;
120
- try {
121
- canonical = (opts.realpath ?? ((path: string) => realpathSync.native(path)))(resolved);
122
- cacheable = true;
123
- } catch {
124
- canonical = resolved;
125
- }
126
- if (platform === "win32") canonical = canonical.toLowerCase();
127
- if (cacheKey !== undefined && cacheable) {
128
- if (canonicalProjectCache.size >= MAX_CANONICAL_CACHE_ENTRIES) {
129
- const oldest = canonicalProjectCache.keys().next().value;
130
- if (oldest !== undefined) canonicalProjectCache.delete(oldest);
131
- }
132
- canonicalProjectCache.set(cacheKey, canonical);
133
- }
134
- return canonical;
135
- }
136
-
137
- /** A stable per-project store name: sanitized basename + a 24-hex hash of the canonical path. */
138
- export function projectSlug(projectRoot: string, opts: ProjectSlugOptions = {}): string {
139
- const canonical = canonicalProjectIdentity(projectRoot, opts);
140
- const hash = createHash("sha256").update(canonical).digest("hex").slice(0, 24);
141
- const baseName = (opts.platform ?? process.platform) === "win32" ? win32.basename(canonical) : basename(canonical);
142
- const base =
143
- (baseName || "project")
144
- .replace(/[^a-zA-Z0-9._-]+/g, "-")
145
- .replace(/^-+|-+$/g, "")
146
- .slice(0, 48) || "project";
147
- return `${base}-${hash}`;
148
- }
149
-
150
- export interface ProjectRootOptions {
151
- /** Never treat this directory as a git project root (typically the user's home). */
152
- homedir?: string;
153
- /** Equality used to compare walked directories against `homedir`. Defaults to string equality. */
154
- samePath?: (a: string, b: string) => boolean;
155
- }
156
-
157
- /** Walk up from `startDir` to the nearest directory that satisfies `hasGit`; else return `startDir`.
158
- * A git-initialized home directory is skipped so every folder under `~` does not share one backlog. */
159
- export function findProjectRoot(startDir: string, hasGit: (dir: string) => boolean, opts: ProjectRootOptions = {}): string {
160
- const home = opts.homedir;
161
- const same = opts.samePath ?? ((a, b) => a === b);
162
- let cur = startDir;
163
- for (;;) {
164
- if (hasGit(cur) && !(home !== undefined && same(cur, home))) return cur;
165
- const parent = dirname(cur);
166
- if (parent === cur) return startDir;
167
- cur = parent;
168
- }
169
- }
170
-
171
- /** Build store paths for a (persona, project-slug) pair. Inputs must be pre-sanitized. */
172
- export function mindPaths(agentDir: string, persona: string, slug: string): ScopePaths {
173
- const base = join(agentDir, "persona-mind");
174
- return {
175
- ltm: join(base, "memory", "ltm", `${persona}.json`),
176
- shared: join(base, "memory", "ltm", `${SHARED_SCOPE}.json`),
177
- projectLtm: join(base, "memory", "project", `${slug}.json`),
178
- stm: join(base, "memory", "stm", `${slug}.json`),
179
- backlog: join(base, "backlog", `${slug}.json`),
180
- };
181
- }
182
-
183
-
184
- export interface ScopeResolutionOptions {
185
- /** Authoritative owner from the loaded companion; null explicitly means Persona is off. */
186
- persona: string | null;
187
- homedir?: string;
188
- }
189
-
190
- /** Resolve paths from an explicit live owner; never infer ownership from global settings. */
191
- export function resolveScope(agentDir: string, cwd: string, opts: ScopeResolutionOptions): Scope {
192
- if (!opts || (opts.persona !== null && (typeof opts.persona !== "string" || !opts.persona.trim()))) throw new Error("live persona owner is unavailable");
193
- const rawPersona = opts.persona;
194
- const persona = rawPersona ? sanitizePersona(rawPersona) : DEFAULT_PERSONA;
195
- const home = opts.homedir ?? homedir();
196
- const start = resolve(cwd);
197
- const projectRoot = findProjectRoot(start, (d) => existsSync(join(d, ".git")), {
198
- homedir: home,
199
- samePath: (a, b) => canonicalProjectIdentity(a) === canonicalProjectIdentity(b),
200
- });
201
- const slug = projectSlug(projectRoot);
202
- const paths = mindPaths(agentDir, persona, slug);
203
- const homeWorkspace = canonicalProjectIdentity(projectRoot) === canonicalProjectIdentity(home);
204
- return homeWorkspace ? { persona, projectRoot, slug, paths, homeWorkspace: true } : { persona, projectRoot, slug, paths };
205
- }
1
+ /**
2
+ * Scope resolution — where a mind's stores live, and which persona owns the view.
3
+ *
4
+ * Active ownership is supplied by the live companion protocol.
5
+ *
6
+ * Layout under `<agentDir>/persona-mind/`:
7
+ * memory/ltm/<persona>.json long-term, per persona (identity)
8
+ * memory/ltm/_shared.json long-term, shared across personas
9
+ * memory/project/<project>.json durable repository knowledge
10
+ * memory/stm/<project>.json short-term, per project (decays)
11
+ * backlog/<project>.json backlog, per project
12
+ */
13
+
14
+ import { existsSync, realpathSync } from "node:fs";
15
+ import { createHash } from "node:crypto";
16
+ import { homedir } from "node:os";
17
+ import { basename, dirname, join, resolve, win32 } from "node:path";
18
+
19
+ export const DEFAULT_PERSONA = "_default";
20
+ export const SHARED_SCOPE = "_shared";
21
+
22
+ export interface ScopePaths {
23
+ /** Long-term memory for the active persona. */
24
+ ltm: string;
25
+ /** Long-term memory shared across personas. */
26
+ shared: string;
27
+ /** Durable repository knowledge, attributed to its recording persona. */
28
+ projectLtm: string;
29
+ /** Short-term memory for the current project. */
30
+ stm: string;
31
+ /** Backlog for the current project. */
32
+ backlog: string;
33
+ }
34
+
35
+ /** Persona/shared facts span projects, so every memory writer uses one profile transaction lock. */
36
+ export function memoryMutationLockPath(paths: Pick<ScopePaths, "shared">): string {
37
+ return `${paths.shared}.memory-transaction.lock`;
38
+ }
39
+
40
+ export interface Scope {
41
+ persona: string;
42
+ projectRoot: string;
43
+ slug: string;
44
+ paths: ScopePaths;
45
+ /** True when the resolved project is the user's home directory (no real git workspace). */
46
+ homeWorkspace?: true;
47
+ }
48
+
49
+ /** The internal scope names a real persona must never be allowed to occupy (they back the shared
50
+ * tier and the no-persona fallback; a collision would bleed private↔shared memory or merge scopes).
51
+ * Compared case-insensitively — a case-insensitive filesystem aliases `_SHARED.json` to `_shared.json`. */
52
+ const RESERVED_SCOPES: ReadonlySet<string> = new Set([DEFAULT_PERSONA, SHARED_SCOPE]);
53
+
54
+ /** Windows reserved device base names: `NUL.json`/`CON.json`/… resolve to the device (a silent
55
+ * write-to-void) in legacy Win32 path resolution, so a persona named after one must not be a filename. */
56
+ const WIN_RESERVED = /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$/i;
57
+ const MAX_CANONICAL_CACHE_ENTRIES = 256;
58
+ const canonicalProjectCache = new Map<string, string>();
59
+
60
+ function isReservedSegment(s: string): boolean {
61
+ const deviceBase = s.split(".", 1)[0] ?? s;
62
+ return RESERVED_SCOPES.has(s.toLowerCase()) || WIN_RESERVED.test(deviceBase);
63
+ }
64
+
65
+ /** A stable 12-hex content id for a persona name, used when it has no filesystem-safe characters. */
66
+ function personaHash(name: string): string {
67
+ return createHash("sha256").update(name).digest("hex").slice(0, 12);
68
+ }
69
+
70
+ /** A filesystem-safe single path segment for a persona name (no separators, no traversal). Two hazards
71
+ * are guarded: a name with no safe characters (CJK/Cyrillic/emoji) would collapse to one sentinel and
72
+ * merge every such persona (and the no-persona scope) — it gets a stable content-derived segment; and a
73
+ * name that lands on an internal sentinel or a Windows device name is prefixed so it can never hijack
74
+ * that reserved store. */
75
+ export function sanitizePersona(name: string, platform: NodeJS.Platform | string = process.platform): string {
76
+ const s = name
77
+ .replace(/[^a-zA-Z0-9._-]+/g, "-")
78
+ .replace(/^[-.]+|[-.]+$/g, "")
79
+ .slice(0, 64);
80
+ if (!s) return `persona-${personaHash(name)}`;
81
+ const lossy = s !== name || (platform === "win32" && s !== s.toLowerCase());
82
+ if (isReservedSegment(s)) return `persona-${s}-${personaHash(name)}`;
83
+ return lossy ? `${s}-${personaHash(name)}` : s;
84
+ }
85
+
86
+ /**
87
+ * An explicit override wins. Otherwise, `undefined` delegates native profile resolution to Pi.
88
+ * The Persona alias supplies the root only when Pi has no explicit profile selection.
89
+ */
90
+ export function preferredAgentDir(explicit: string | undefined, env: NodeJS.ProcessEnv = process.env): string | undefined {
91
+ if (explicit !== undefined) return explicit;
92
+ if (env.PI_CODING_AGENT_DIR) return undefined;
93
+ return env.PI_AGENT_DIR || undefined;
94
+ }
95
+
96
+ export interface ProjectSlugOptions {
97
+ /** Injectable for tests and alternate filesystem providers; defaults to realpathSync.native. */
98
+ realpath?: (path: string) => string;
99
+ /** Injectable platform seam; defaults to the current Node platform. */
100
+ platform?: NodeJS.Platform | string;
101
+ }
102
+
103
+ /** Canonical project identity: resolved, realpathed, and case-folded on Windows. */
104
+ export function canonicalProjectIdentity(projectRoot: string, opts: ProjectSlugOptions = {}): string {
105
+ const platform = opts.platform ?? process.platform;
106
+ const resolved = platform === "win32" ? win32.resolve(projectRoot) : resolve(projectRoot);
107
+ // The default realpath provider is stable for a live project root and is the only path we cache.
108
+ // Injectable providers stay uncached so tests and alternate filesystems observe every call.
109
+ const cacheKey = opts.realpath === undefined ? `${platform}\0${platform === "win32" ? resolved.toLowerCase() : resolved}` : undefined;
110
+ if (cacheKey !== undefined) {
111
+ const cached = canonicalProjectCache.get(cacheKey);
112
+ if (cached !== undefined) return cached;
113
+ }
114
+ let canonical: string;
115
+ let cacheable = false;
116
+ try {
117
+ canonical = (opts.realpath ?? ((path: string) => realpathSync.native(path)))(resolved);
118
+ cacheable = true;
119
+ } catch {
120
+ canonical = resolved;
121
+ }
122
+ if (platform === "win32") canonical = canonical.toLowerCase();
123
+ if (cacheKey !== undefined && cacheable) {
124
+ if (canonicalProjectCache.size >= MAX_CANONICAL_CACHE_ENTRIES) {
125
+ const oldest = canonicalProjectCache.keys().next().value;
126
+ if (oldest !== undefined) canonicalProjectCache.delete(oldest);
127
+ }
128
+ canonicalProjectCache.set(cacheKey, canonical);
129
+ }
130
+ return canonical;
131
+ }
132
+
133
+ /** A stable per-project store name: sanitized basename + a 24-hex hash of the canonical path. */
134
+ export function projectSlug(projectRoot: string, opts: ProjectSlugOptions = {}): string {
135
+ const canonical = canonicalProjectIdentity(projectRoot, opts);
136
+ const hash = createHash("sha256").update(canonical).digest("hex").slice(0, 24);
137
+ const baseName = (opts.platform ?? process.platform) === "win32" ? win32.basename(canonical) : basename(canonical);
138
+ const base =
139
+ (baseName || "project")
140
+ .replace(/[^a-zA-Z0-9._-]+/g, "-")
141
+ .replace(/^-+|-+$/g, "")
142
+ .slice(0, 48) || "project";
143
+ return `${base}-${hash}`;
144
+ }
145
+
146
+ export interface ProjectRootOptions {
147
+ /** Never treat this directory as a git project root (typically the user's home). */
148
+ homedir?: string;
149
+ /** Equality used to compare walked directories against `homedir`. Defaults to string equality. */
150
+ samePath?: (a: string, b: string) => boolean;
151
+ }
152
+
153
+ /** Walk up from `startDir` to the nearest directory that satisfies `hasGit`; else return `startDir`.
154
+ * A git-initialized home directory is skipped so every folder under `~` does not share one backlog. */
155
+ export function findProjectRoot(startDir: string, hasGit: (dir: string) => boolean, opts: ProjectRootOptions = {}): string {
156
+ const home = opts.homedir;
157
+ const same = opts.samePath ?? ((a, b) => a === b);
158
+ let cur = startDir;
159
+ for (;;) {
160
+ if (hasGit(cur) && !(home !== undefined && same(cur, home))) return cur;
161
+ const parent = dirname(cur);
162
+ if (parent === cur) return startDir;
163
+ cur = parent;
164
+ }
165
+ }
166
+
167
+ /** Build store paths for a (persona, project-slug) pair. Inputs must be pre-sanitized. */
168
+ export function mindPaths(agentDir: string, persona: string, slug: string): ScopePaths {
169
+ const base = join(agentDir, "persona-mind");
170
+ return {
171
+ ltm: join(base, "memory", "ltm", `${persona}.json`),
172
+ shared: join(base, "memory", "ltm", `${SHARED_SCOPE}.json`),
173
+ projectLtm: join(base, "memory", "project", `${slug}.json`),
174
+ stm: join(base, "memory", "stm", `${slug}.json`),
175
+ backlog: join(base, "backlog", `${slug}.json`),
176
+ };
177
+ }
178
+
179
+
180
+ export interface ScopeResolutionOptions {
181
+ /** Authoritative owner from the loaded companion; null explicitly means Persona is off. */
182
+ persona: string | null;
183
+ homedir?: string;
184
+ }
185
+
186
+ /** Resolve paths from an explicit live owner; never infer ownership from global settings. */
187
+ export function resolveScope(agentDir: string, cwd: string, opts: ScopeResolutionOptions): Scope {
188
+ if (!opts || (opts.persona !== null && (typeof opts.persona !== "string" || !opts.persona.trim()))) throw new Error("live persona owner is unavailable");
189
+ const rawPersona = opts.persona;
190
+ const persona = rawPersona ? sanitizePersona(rawPersona) : DEFAULT_PERSONA;
191
+ const home = opts.homedir ?? homedir();
192
+ const start = resolve(cwd);
193
+ const projectRoot = findProjectRoot(start, (d) => existsSync(join(d, ".git")), {
194
+ homedir: home,
195
+ samePath: (a, b) => canonicalProjectIdentity(a) === canonicalProjectIdentity(b),
196
+ });
197
+ const slug = projectSlug(projectRoot);
198
+ const paths = mindPaths(agentDir, persona, slug);
199
+ const homeWorkspace = canonicalProjectIdentity(projectRoot) === canonicalProjectIdentity(home);
200
+ return homeWorkspace ? { persona, projectRoot, slug, paths, homeWorkspace: true } : { persona, projectRoot, slug, paths };
201
+ }