@narumitw/pi-starship 0.55.0 → 0.55.2

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 (101) hide show
  1. package/README.md +21 -36
  2. package/dist/chunks/{chunk-UX6PBXVK.js → chunk-JO5PH6FN.js} +28 -110
  3. package/dist/chunks/chunk-JO5PH6FN.js.map +7 -0
  4. package/dist/chunks/{chunk-P4XMFSQW.js → chunk-YWY5RIDQ.js} +3 -7
  5. package/dist/chunks/chunk-YWY5RIDQ.js.map +7 -0
  6. package/dist/chunks/{chunk-EOGXAMTA.js → chunk-ZQZSXXPI.js} +1 -1
  7. package/dist/chunks/chunk-ZQZSXXPI.js.map +7 -0
  8. package/dist/chunks/{cloud-BKHYWCTA.js → cloud-C4VU3TX3.js} +7 -14
  9. package/dist/chunks/cloud-C4VU3TX3.js.map +7 -0
  10. package/dist/chunks/{commands-53ZO2JUK.js → commands-ATILSUVK.js} +13 -42
  11. package/dist/chunks/commands-ATILSUVK.js.map +7 -0
  12. package/dist/chunks/{deployment-RKKOEQQ2.js → deployment-FMNTYRBW.js} +6 -21
  13. package/dist/chunks/deployment-FMNTYRBW.js.map +7 -0
  14. package/dist/chunks/{development-BERD42HW.js → development-OUYXDPBS.js} +4 -8
  15. package/dist/chunks/development-OUYXDPBS.js.map +7 -0
  16. package/dist/chunks/{execution-42JTEY3N.js → execution-HJOGLMWD.js} +3 -3
  17. package/dist/chunks/execution-HJOGLMWD.js.map +7 -0
  18. package/dist/chunks/{languages-RMP6DW7H.js → languages-WXMF4GOF.js} +6 -22
  19. package/dist/chunks/languages-WXMF4GOF.js.map +7 -0
  20. package/dist/chunks/{package-LG5H7BBM.js → package-YXRZQAOV.js} +5 -14
  21. package/dist/chunks/package-YXRZQAOV.js.map +7 -0
  22. package/dist/index.ts +38 -53
  23. package/dist/index.ts.map +2 -2
  24. package/package.json +60 -61
  25. package/skills/configuring-pi-starship/references/runtime-and-security.md +5 -1
  26. package/skills/configuring-pi-starship/scripts/apply.mjs +43 -47
  27. package/skills/configuring-pi-starship/scripts/config-path.mjs +3 -3
  28. package/skills/configuring-pi-starship/scripts/script-support.mjs +6 -6
  29. package/skills/configuring-pi-starship/scripts/validate.mjs +18 -18
  30. package/src/command-configuration.ts +267 -286
  31. package/src/command-contract.ts +6 -6
  32. package/src/command-inspector.ts +27 -27
  33. package/src/command-preset-picker.ts +45 -50
  34. package/src/command-preview.ts +153 -166
  35. package/src/commands.ts +588 -618
  36. package/src/config.ts +580 -660
  37. package/src/effective-config.ts +46 -48
  38. package/src/format/formatter.ts +211 -227
  39. package/src/format/style.ts +205 -216
  40. package/src/modules/activity.ts +74 -74
  41. package/src/modules/brand.ts +9 -9
  42. package/src/modules/cache.ts +18 -18
  43. package/src/modules/catalog.ts +79 -83
  44. package/src/modules/cloud.ts +54 -54
  45. package/src/modules/context.ts +27 -27
  46. package/src/modules/cost.ts +23 -23
  47. package/src/modules/deployment.ts +45 -45
  48. package/src/modules/development.ts +80 -81
  49. package/src/modules/directory.ts +89 -113
  50. package/src/modules/display.ts +9 -9
  51. package/src/modules/execution.ts +62 -69
  52. package/src/modules/extension-status.ts +59 -64
  53. package/src/modules/fill.ts +10 -10
  54. package/src/modules/git/branch.ts +26 -26
  55. package/src/modules/git/commit.ts +21 -23
  56. package/src/modules/git/metrics.ts +22 -22
  57. package/src/modules/git/runtime.ts +299 -334
  58. package/src/modules/git/state.ts +17 -17
  59. package/src/modules/git/status.ts +77 -79
  60. package/src/modules/git/worktree.ts +10 -12
  61. package/src/modules/github-pr.ts +20 -20
  62. package/src/modules/helpers.ts +3 -3
  63. package/src/modules/index.ts +21 -21
  64. package/src/modules/inspection.ts +101 -108
  65. package/src/modules/languages.ts +52 -59
  66. package/src/modules/model.ts +57 -67
  67. package/src/modules/package.ts +12 -12
  68. package/src/modules/provider.ts +22 -24
  69. package/src/modules/render.ts +124 -140
  70. package/src/modules/thinking.ts +27 -26
  71. package/src/modules/time.ts +10 -13
  72. package/src/modules/tokens.ts +13 -13
  73. package/src/modules/truncation.ts +14 -17
  74. package/src/modules/turn.ts +9 -9
  75. package/src/modules/types.ts +125 -132
  76. package/src/modules/workspace-helpers.ts +4 -7
  77. package/src/pi-starship.ts +567 -571
  78. package/src/presets/catalog.ts +113 -113
  79. package/src/runtime/cloud.ts +122 -150
  80. package/src/runtime/command.ts +106 -108
  81. package/src/runtime/deployment.ts +150 -179
  82. package/src/runtime/development.ts +107 -124
  83. package/src/runtime/execution.ts +110 -124
  84. package/src/runtime/github-pr.ts +223 -252
  85. package/src/runtime/helpers.ts +186 -199
  86. package/src/runtime/languages.ts +149 -180
  87. package/src/runtime/package.ts +74 -87
  88. package/src/runtime/refresh-controller.ts +82 -86
  89. package/src/runtime/types.ts +38 -38
  90. package/src/runtime/workspace.ts +108 -116
  91. package/src/usage.ts +40 -40
  92. package/dist/chunks/chunk-EOGXAMTA.js.map +0 -7
  93. package/dist/chunks/chunk-P4XMFSQW.js.map +0 -7
  94. package/dist/chunks/chunk-UX6PBXVK.js.map +0 -7
  95. package/dist/chunks/cloud-BKHYWCTA.js.map +0 -7
  96. package/dist/chunks/commands-53ZO2JUK.js.map +0 -7
  97. package/dist/chunks/deployment-RKKOEQQ2.js.map +0 -7
  98. package/dist/chunks/development-BERD42HW.js.map +0 -7
  99. package/dist/chunks/execution-42JTEY3N.js.map +0 -7
  100. package/dist/chunks/languages-RMP6DW7H.js.map +0 -7
  101. package/dist/chunks/package-LG5H7BBM.js.map +0 -7
@@ -1,11 +1,6 @@
1
1
  import { type FileHandle, open, opendir, stat } from "node:fs/promises";
2
2
  import { basename, delimiter, dirname, extname, join, resolve } from "node:path";
3
- import type {
4
- CollectorContext,
5
- WorkspaceEntry,
6
- WorkspaceFileSystem,
7
- WorkspaceRefreshInput,
8
- } from "./types.js";
3
+ import type { CollectorContext, WorkspaceEntry, WorkspaceFileSystem, WorkspaceRefreshInput } from "./types.js";
9
4
 
10
5
  export const MAX_METADATA_FILE_BYTES = 64 * 1024;
11
6
  export const COMMAND_TIMEOUT_MS = 2_000;
@@ -14,261 +9,253 @@ const MAX_DIRECTORY_ENTRIES = 2_048;
14
9
  const MAX_LABEL_LENGTH = 160;
15
10
 
16
11
  export function createFileSystem(input: WorkspaceRefreshInput): WorkspaceFileSystem {
17
- const defaults: WorkspaceFileSystem = {
18
- async readFile(path, maxBytes) {
19
- let handle: FileHandle | undefined;
20
- try {
21
- handle = await open(path, "r");
22
- const info = await handle.stat();
23
- if (!info.isFile() || info.size > maxBytes) return undefined;
24
- const buffer = Buffer.alloc(Math.min(maxBytes + 1, Number(info.size) + 1));
25
- const { bytesRead } = await handle.read(buffer, 0, buffer.length, 0);
26
- if (bytesRead > maxBytes) return undefined;
27
- return buffer.subarray(0, bytesRead).toString("utf8");
28
- } catch {
29
- return undefined;
30
- } finally {
31
- await handle?.close().catch(() => undefined);
32
- }
33
- },
34
- async readDirectory(path) {
35
- const entries: WorkspaceEntry[] = [];
36
- try {
37
- const directory = await opendir(path);
38
- for await (const entry of directory) {
39
- entries.push({
40
- name: entry.name,
41
- isFile: entry.isFile(),
42
- isDirectory: entry.isDirectory(),
43
- });
44
- if (entries.length >= MAX_DIRECTORY_ENTRIES) break;
45
- }
46
- } catch {
47
- return [];
48
- }
49
- return entries;
50
- },
51
- async fileExists(path) {
52
- try {
53
- await stat(path);
54
- return true;
55
- } catch {
56
- return false;
57
- }
58
- },
59
- };
60
- return {
61
- ...defaults,
62
- ...input.fileSystem,
63
- ...(input.fileExists ? { fileExists: input.fileExists } : {}),
64
- };
12
+ const defaults: WorkspaceFileSystem = {
13
+ async readFile(path, maxBytes) {
14
+ let handle: FileHandle | undefined;
15
+ try {
16
+ handle = await open(path, "r");
17
+ const info = await handle.stat();
18
+ if (!info.isFile() || info.size > maxBytes) return undefined;
19
+ const buffer = Buffer.alloc(Math.min(maxBytes + 1, Number(info.size) + 1));
20
+ const { bytesRead } = await handle.read(buffer, 0, buffer.length, 0);
21
+ if (bytesRead > maxBytes) return undefined;
22
+ return buffer.subarray(0, bytesRead).toString("utf8");
23
+ } catch {
24
+ return undefined;
25
+ } finally {
26
+ await handle?.close().catch(() => undefined);
27
+ }
28
+ },
29
+ async readDirectory(path) {
30
+ const entries: WorkspaceEntry[] = [];
31
+ try {
32
+ const directory = await opendir(path);
33
+ for await (const entry of directory) {
34
+ entries.push({
35
+ name: entry.name,
36
+ isFile: entry.isFile(),
37
+ isDirectory: entry.isDirectory(),
38
+ });
39
+ if (entries.length >= MAX_DIRECTORY_ENTRIES) break;
40
+ }
41
+ } catch {
42
+ return [];
43
+ }
44
+ return entries;
45
+ },
46
+ async fileExists(path) {
47
+ try {
48
+ await stat(path);
49
+ return true;
50
+ } catch {
51
+ return false;
52
+ }
53
+ },
54
+ };
55
+ return {
56
+ ...defaults,
57
+ ...input.fileSystem,
58
+ ...(input.fileExists ? { fileExists: input.fileExists } : {}),
59
+ };
65
60
  }
66
61
 
67
62
  export function safeMetadata(value: unknown, maxLength = MAX_LABEL_LENGTH): string | undefined {
68
- if (typeof value !== "string") return undefined;
69
- const sanitized = Array.from(value, (character) => {
70
- const code = character.codePointAt(0) ?? 0;
71
- return code <= 0x1f || (code >= 0x7f && code <= 0x9f) || (code >= 0xd800 && code <= 0xdfff)
72
- ? ""
73
- : character;
74
- })
75
- .join("")
76
- .trim();
77
- if (!sanitized) return undefined;
78
- return Array.from(sanitized).slice(0, maxLength).join("");
63
+ if (typeof value !== "string") return undefined;
64
+ const sanitized = Array.from(value, (character) => {
65
+ const code = character.codePointAt(0) ?? 0;
66
+ return code <= 0x1f || (code >= 0x7f && code <= 0x9f) || (code >= 0xd800 && code <= 0xdfff) ? "" : character;
67
+ })
68
+ .join("")
69
+ .trim();
70
+ if (!sanitized) return undefined;
71
+ return Array.from(sanitized).slice(0, maxLength).join("");
79
72
  }
80
73
 
81
74
  export function ownString(record: unknown, key: string): string | undefined {
82
- if (!isRecord(record) || !Object.hasOwn(record, key)) return undefined;
83
- return safeMetadata(record[key]);
75
+ if (!isRecord(record) || !Object.hasOwn(record, key)) return undefined;
76
+ return safeMetadata(record[key]);
84
77
  }
85
78
 
86
79
  export function isRecord(value: unknown): value is Record<string, unknown> {
87
- return typeof value === "object" && value !== null && !Array.isArray(value);
80
+ return typeof value === "object" && value !== null && !Array.isArray(value);
88
81
  }
89
82
 
90
83
  export function setString(record: Record<string, string>, key: string, value: unknown): void {
91
- const safe = safeMetadata(value);
92
- if (!safe) return;
93
- Object.defineProperty(record, key, {
94
- value: safe,
95
- writable: true,
96
- enumerable: true,
97
- configurable: true,
98
- });
84
+ const safe = safeMetadata(value);
85
+ if (!safe) return;
86
+ Object.defineProperty(record, key, {
87
+ value: safe,
88
+ writable: true,
89
+ enumerable: true,
90
+ configurable: true,
91
+ });
99
92
  }
100
93
 
101
94
  export function optionString(
102
- context: CollectorContext,
103
- module: Parameters<CollectorContext["options"]>[0],
104
- key: string,
95
+ context: CollectorContext,
96
+ module: Parameters<CollectorContext["options"]>[0],
97
+ key: string,
105
98
  ): string | undefined {
106
- const value = context.options(module)[key];
107
- return typeof value === "string" ? value : undefined;
99
+ const value = context.options(module)[key];
100
+ return typeof value === "string" ? value : undefined;
108
101
  }
109
102
 
110
103
  export function optionBoolean(
111
- context: CollectorContext,
112
- module: Parameters<CollectorContext["options"]>[0],
113
- key: string,
104
+ context: CollectorContext,
105
+ module: Parameters<CollectorContext["options"]>[0],
106
+ key: string,
114
107
  ): boolean {
115
- return context.options(module)[key] === true;
108
+ return context.options(module)[key] === true;
116
109
  }
117
110
 
118
111
  export function optionNumber(
119
- context: CollectorContext,
120
- module: Parameters<CollectorContext["options"]>[0],
121
- key: string,
112
+ context: CollectorContext,
113
+ module: Parameters<CollectorContext["options"]>[0],
114
+ key: string,
122
115
  ): number | undefined {
123
- const value = context.options(module)[key];
124
- return typeof value === "number" ? value : undefined;
116
+ const value = context.options(module)[key];
117
+ return typeof value === "number" ? value : undefined;
125
118
  }
126
119
 
127
120
  export function optionStrings(
128
- context: CollectorContext,
129
- module: Parameters<CollectorContext["options"]>[0],
130
- key: string,
121
+ context: CollectorContext,
122
+ module: Parameters<CollectorContext["options"]>[0],
123
+ key: string,
131
124
  ): readonly string[] {
132
- const value = context.options(module)[key];
133
- return Array.isArray(value) && value.every((item) => typeof item === "string") ? value : [];
125
+ const value = context.options(module)[key];
126
+ return Array.isArray(value) && value.every((item) => typeof item === "string") ? value : [];
134
127
  }
135
128
 
136
129
  export function optionMap(
137
- context: CollectorContext,
138
- module: Parameters<CollectorContext["options"]>[0],
139
- key: string,
130
+ context: CollectorContext,
131
+ module: Parameters<CollectorContext["options"]>[0],
132
+ key: string,
140
133
  ): Readonly<Record<string, string>> {
141
- const value = context.options(module)[key];
142
- return isRecord(value) ? (value as Record<string, string>) : {};
134
+ const value = context.options(module)[key];
135
+ return isRecord(value) ? (value as Record<string, string>) : {};
143
136
  }
144
137
 
145
138
  export function exactAlias(value: string | undefined, aliases: Readonly<Record<string, string>>) {
146
- if (!value) return undefined;
147
- return Object.hasOwn(aliases, value) ? safeMetadata(aliases[value]) : value;
139
+ if (!value) return undefined;
140
+ return Object.hasOwn(aliases, value) ? safeMetadata(aliases[value]) : value;
148
141
  }
149
142
 
150
143
  export function formatVersion(raw: string, format: string | undefined): string {
151
- return (format ?? "v$raw").replaceAll("$raw", raw.replace(/^v/u, ""));
144
+ return (format ?? "v$raw").replaceAll("$raw", raw.replace(/^v/u, ""));
152
145
  }
153
146
 
154
147
  export async function runBounded(
155
- context: CollectorContext,
156
- command: string,
157
- args: string[],
148
+ context: CollectorContext,
149
+ command: string,
150
+ args: string[],
158
151
  ): Promise<string | undefined> {
159
- try {
160
- const result = await context.input.exec(command, args, {
161
- cwd: context.input.cwd,
162
- timeout: COMMAND_TIMEOUT_MS,
163
- maxOutputBytes: MAX_COMMAND_OUTPUT_BYTES,
164
- signal: context.input.signal,
165
- environment: context.input.environment,
166
- });
167
- if (result.code !== 0 || result.killed) return undefined;
168
- const selectedOutput = result.stdout || result.stderr;
169
- const output = Buffer.from(selectedOutput).subarray(0, MAX_COMMAND_OUTPUT_BYTES + 1);
170
- if (output.byteLength > MAX_COMMAND_OUTPUT_BYTES) return undefined;
171
- return output.toString("utf8");
172
- } catch {
173
- return undefined;
174
- }
152
+ try {
153
+ const result = await context.input.exec(command, args, {
154
+ cwd: context.input.cwd,
155
+ timeout: COMMAND_TIMEOUT_MS,
156
+ maxOutputBytes: MAX_COMMAND_OUTPUT_BYTES,
157
+ signal: context.input.signal,
158
+ environment: context.input.environment,
159
+ });
160
+ if (result.code !== 0 || result.killed) return undefined;
161
+ const selectedOutput = result.stdout || result.stderr;
162
+ const output = Buffer.from(selectedOutput).subarray(0, MAX_COMMAND_OUTPUT_BYTES + 1);
163
+ if (output.byteLength > MAX_COMMAND_OUTPUT_BYTES) return undefined;
164
+ return output.toString("utf8");
165
+ } catch {
166
+ return undefined;
167
+ }
175
168
  }
176
169
 
177
170
  export function parseIni(source: string): Record<string, Record<string, string>> {
178
- const result: Record<string, Record<string, string>> = {};
179
- let section = "";
180
- for (const rawLine of source.split(/\r?\n/u)) {
181
- const line = rawLine.trim();
182
- if (!line || line.startsWith("#") || line.startsWith(";")) continue;
183
- const sectionMatch = /^\[([^\]]+)\]$/u.exec(line);
184
- if (sectionMatch?.[1]) {
185
- section = sectionMatch[1].trim();
186
- if (!Object.hasOwn(result, section)) setOwn(result, section, {});
187
- continue;
188
- }
189
- const separator = line.indexOf("=");
190
- if (separator <= 0) continue;
191
- const key = line.slice(0, separator).trim();
192
- const value = safeMetadata(line.slice(separator + 1));
193
- if (!value) continue;
194
- if (!Object.hasOwn(result, section)) setOwn(result, section, {});
195
- setOwn(result[section] as Record<string, string>, key, value);
196
- }
197
- return result;
171
+ const result: Record<string, Record<string, string>> = {};
172
+ let section = "";
173
+ for (const rawLine of source.split(/\r?\n/u)) {
174
+ const line = rawLine.trim();
175
+ if (!line || line.startsWith("#") || line.startsWith(";")) continue;
176
+ const sectionMatch = /^\[([^\]]+)\]$/u.exec(line);
177
+ if (sectionMatch?.[1]) {
178
+ section = sectionMatch[1].trim();
179
+ if (!Object.hasOwn(result, section)) setOwn(result, section, {});
180
+ continue;
181
+ }
182
+ const separator = line.indexOf("=");
183
+ if (separator <= 0) continue;
184
+ const key = line.slice(0, separator).trim();
185
+ const value = safeMetadata(line.slice(separator + 1));
186
+ if (!value) continue;
187
+ if (!Object.hasOwn(result, section)) setOwn(result, section, {});
188
+ setOwn(result[section] as Record<string, string>, key, value);
189
+ }
190
+ return result;
198
191
  }
199
192
 
200
193
  export function envPathList(value: string | undefined): string[] {
201
- return (value ?? "")
202
- .split(delimiter)
203
- .map((part) => part.trim())
204
- .filter(Boolean);
194
+ return (value ?? "")
195
+ .split(delimiter)
196
+ .map((part) => part.trim())
197
+ .filter(Boolean);
205
198
  }
206
199
 
207
200
  export function directMatch(
208
- entries: readonly WorkspaceEntry[],
209
- files: readonly string[],
210
- extensions: readonly string[],
211
- folders: readonly string[],
201
+ entries: readonly WorkspaceEntry[],
202
+ files: readonly string[],
203
+ extensions: readonly string[],
204
+ folders: readonly string[],
212
205
  ): boolean {
213
- const positiveFiles = files.filter((value) => !value.startsWith("!"));
214
- const negativeFiles = new Set(
215
- files.filter((value) => value.startsWith("!")).map((v) => v.slice(1)),
216
- );
217
- const positiveExtensions = extensions
218
- .filter((value) => !value.startsWith("!"))
219
- .map((value) => value.replace(/^\./u, ""));
220
- const negativeExtensions = new Set(
221
- extensions
222
- .filter((value) => value.startsWith("!"))
223
- .map((value) => value.slice(1).replace(/^\./u, "")),
224
- );
225
- const positiveFolders = folders.filter((value) => !value.startsWith("!"));
226
- const negativeFolders = new Set(
227
- folders.filter((value) => value.startsWith("!")).map((value) => value.slice(1)),
228
- );
229
- if (
230
- entries.some(
231
- (entry) =>
232
- negativeFiles.has(entry.name) ||
233
- (entry.isFile && negativeExtensions.has(extname(entry.name).slice(1))) ||
234
- (entry.isDirectory && negativeFolders.has(entry.name)),
235
- )
236
- ) {
237
- return false;
238
- }
239
- return entries.some(
240
- (entry) =>
241
- positiveFiles.includes(entry.name) ||
242
- (entry.isFile && positiveExtensions.includes(extname(entry.name).slice(1))) ||
243
- (entry.isDirectory && positiveFolders.includes(entry.name)),
244
- );
206
+ const positiveFiles = files.filter((value) => !value.startsWith("!"));
207
+ const negativeFiles = new Set(files.filter((value) => value.startsWith("!")).map((v) => v.slice(1)));
208
+ const positiveExtensions = extensions
209
+ .filter((value) => !value.startsWith("!"))
210
+ .map((value) => value.replace(/^\./u, ""));
211
+ const negativeExtensions = new Set(
212
+ extensions.filter((value) => value.startsWith("!")).map((value) => value.slice(1).replace(/^\./u, "")),
213
+ );
214
+ const positiveFolders = folders.filter((value) => !value.startsWith("!"));
215
+ const negativeFolders = new Set(folders.filter((value) => value.startsWith("!")).map((value) => value.slice(1)));
216
+ if (
217
+ entries.some(
218
+ (entry) =>
219
+ negativeFiles.has(entry.name) ||
220
+ (entry.isFile && negativeExtensions.has(extname(entry.name).slice(1))) ||
221
+ (entry.isDirectory && negativeFolders.has(entry.name)),
222
+ )
223
+ ) {
224
+ return false;
225
+ }
226
+ return entries.some(
227
+ (entry) =>
228
+ positiveFiles.includes(entry.name) ||
229
+ (entry.isFile && positiveExtensions.includes(extname(entry.name).slice(1))) ||
230
+ (entry.isDirectory && positiveFolders.includes(entry.name)),
231
+ );
245
232
  }
246
233
 
247
234
  export function parentDirectories(start: string, limit: number): string[] {
248
- const result: string[] = [];
249
- let current = resolve(start);
250
- for (let index = 0; index < limit; index += 1) {
251
- const parent = dirname(current);
252
- if (parent === current) break;
253
- result.push(parent);
254
- current = parent;
255
- }
256
- return result;
235
+ const result: string[] = [];
236
+ let current = resolve(start);
237
+ for (let index = 0; index < limit; index += 1) {
238
+ const parent = dirname(current);
239
+ if (parent === current) break;
240
+ result.push(parent);
241
+ current = parent;
242
+ }
243
+ return result;
257
244
  }
258
245
 
259
246
  export function pathName(path: string): string {
260
- return basename(path.replace(/[\\/]+$/u, "")) || path;
247
+ return basename(path.replace(/[\\/]+$/u, "")) || path;
261
248
  }
262
249
 
263
250
  export function joinHome(input: WorkspaceRefreshInput, ...parts: string[]): string {
264
- return join(input.homeDir, ...parts);
251
+ return join(input.homeDir, ...parts);
265
252
  }
266
253
 
267
254
  function setOwn<T>(record: Record<string, T>, key: string, value: T): void {
268
- Object.defineProperty(record, key, {
269
- value,
270
- writable: true,
271
- enumerable: true,
272
- configurable: true,
273
- });
255
+ Object.defineProperty(record, key, {
256
+ value,
257
+ writable: true,
258
+ enumerable: true,
259
+ configurable: true,
260
+ });
274
261
  }