koneck 2.128.6 → 2.128.7

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.
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The terminal, not KONECK, supplies the tab's icon; OSC 0 supplies its useful text.
3
+ * It works in Windows Terminal, GNOME Terminal, iTerm, and most terminal multiplexers.
4
+ */
5
+ export declare function terminalTitle(cwd: string, working?: boolean): string;
6
+ /** Write one title update only for an interactive terminal. */
7
+ export declare function setTerminalTitle(output: {
8
+ isTTY?: boolean;
9
+ write: (text: string) => unknown;
10
+ }, cwd: string, working?: boolean): void;
11
+ //# sourceMappingURL=terminal-title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terminal-title.d.ts","sourceRoot":"","sources":["../src/terminal-title.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,UAAQ,GAAG,MAAM,CAGlE;AAED,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;CAAE,EAC7D,GAAG,EAAE,MAAM,EACX,OAAO,UAAQ,GACd,IAAI,CAGN"}
@@ -0,0 +1,20 @@
1
+ import path from 'path';
2
+ /** Strip terminal-control bytes before placing a filesystem name in an OSC sequence. */
3
+ function safeTitlePart(value) {
4
+ return value.replace(/[\u0000-\u001f\u007f\u009b]/g, '').trim();
5
+ }
6
+ /**
7
+ * The terminal, not KONECK, supplies the tab's icon; OSC 0 supplies its useful text.
8
+ * It works in Windows Terminal, GNOME Terminal, iTerm, and most terminal multiplexers.
9
+ */
10
+ export function terminalTitle(cwd, working = false) {
11
+ const project = safeTitlePart(path.basename(path.resolve(cwd))) || 'terminal';
12
+ return `✦ KONECK · ${project}${working ? ' · Working' : ''}`;
13
+ }
14
+ /** Write one title update only for an interactive terminal. */
15
+ export function setTerminalTitle(output, cwd, working = false) {
16
+ if (!output.isTTY)
17
+ return;
18
+ output.write(`\u001b]0;${terminalTitle(cwd, working)}\u0007`);
19
+ }
20
+ //# sourceMappingURL=terminal-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terminal-title.js","sourceRoot":"","sources":["../src/terminal-title.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,wFAAwF;AACxF,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,KAAK,CAAC,OAAO,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAClE,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,GAAW,EAAE,OAAO,GAAG,KAAK;IACxD,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC;IAC9E,OAAO,cAAc,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAC/D,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,gBAAgB,CAC9B,MAA6D,EAC7D,GAAW,EACX,OAAO,GAAG,KAAK;IAEf,IAAI,CAAC,MAAM,CAAC,KAAK;QAAE,OAAO;IAC1B,MAAM,CAAC,KAAK,CAAC,YAAY,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AAChE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koneck",
3
- "version": "2.128.6",
3
+ "version": "2.128.7",
4
4
  "description": "Kinetically Orchestrated Neural Execution Engine for Code",
5
5
  "type": "module",
6
6
  "bin": {