teapot-coding-agent 0.17.8 → 0.17.9
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.
- package/dist/server/api.js +4 -1
- package/package.json +1 -1
- package/public/assets/{index-CaI-awx-.js → index---2ewwxO.js} +22 -22
- package/public/assets/index---2ewwxO.js.map +1 -0
- package/public/assets/{index-B348dGFX.css → index-Dk6pnmQd.css} +1 -1
- package/public/assets/{shiki-DgWHrnpa.js → shiki-yEid1sXe.js} +2 -2
- package/public/assets/{shiki-DgWHrnpa.js.map → shiki-yEid1sXe.js.map} +1 -1
- package/public/index.html +2 -2
- package/public/assets/index-CaI-awx-.js.map +0 -1
package/dist/server/api.js
CHANGED
|
@@ -387,6 +387,8 @@ export function buildApp(master) {
|
|
|
387
387
|
for (const d of dirents) {
|
|
388
388
|
if (d.name.startsWith(".") && !(showHidden && d.name !== "." && d.name !== ".."))
|
|
389
389
|
continue; // hidden files stay out unless the caller opted in
|
|
390
|
+
// .git behaves like an ignored entry (dimmed/hidden with the rest)
|
|
391
|
+
const forceIgnored = !d.isDirectory() ? false : d.name === ".git";
|
|
390
392
|
const isDir = d.isDirectory();
|
|
391
393
|
let size;
|
|
392
394
|
if (!isDir) {
|
|
@@ -397,11 +399,12 @@ export function buildApp(master) {
|
|
|
397
399
|
/* vanished mid-scan — fine */
|
|
398
400
|
}
|
|
399
401
|
}
|
|
402
|
+
const gitIg = ignoredNames.has(d.name);
|
|
400
403
|
entries.push({
|
|
401
404
|
name: d.name,
|
|
402
405
|
dir: isDir,
|
|
403
406
|
...(size !== undefined ? { size } : {}),
|
|
404
|
-
...(
|
|
407
|
+
...(gitIg || forceIgnored ? { ignored: true } : {}),
|
|
405
408
|
});
|
|
406
409
|
}
|
|
407
410
|
entries.sort((x, y) => (x.dir !== y.dir ? (x.dir ? -1 : 1) : x.name.localeCompare(y.name)));
|