tmuxes 0.1.2 → 0.1.4

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/public/index.html CHANGED
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>tmuxes</title>
7
- <script type="module" crossorigin src="/assets/index-BmRC6hB0.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-n4LbpWeu.css">
7
+ <script type="module" crossorigin src="/assets/index-F0cL3gdE.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-BorZEUXh.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
package/dist/attention.js DELETED
@@ -1,54 +0,0 @@
1
- /** Heuristic classification of an agent's recent terminal output, used to turn
2
- * "this session went idle" into a meaningful notification: is the agent waiting
3
- * for a decision (a prompt on screen), or did it simply finish / go quiet?
4
- *
5
- * This is intentionally fuzzy — it scans the tail of the pane for the prompt
6
- * shapes the common CLI agents (Claude Code, Codex, OpenCode, Hermes) and
7
- * ordinary shells use when they want input. False positives just mean a
8
- * "decision" badge instead of a "done" badge; both still notify. */
9
- /** Strip ANSI/VT escapes so the regex matches plain text (capture-pane is
10
- * already plain, but winshell scrollback carries raw escapes). */
11
- export function stripAnsi(s) {
12
- return s
13
- // CSI sequences: ESC [ ... final-byte
14
- .replace(/\x1b\[[0-9;?]*[ -/]*[@-~]/g, '')
15
- // OSC sequences: ESC ] ... (BEL | ESC \)
16
- .replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g, '')
17
- // Other two-byte escapes
18
- .replace(/\x1b[@-Z\\-_]/g, '');
19
- }
20
- /** Prompts that mean "the agent/shell is waiting on the user". */
21
- const DECISION_RE = new RegExp([
22
- '\\(y/n\\)',
23
- '\\[y/n\\]',
24
- '\\(yes/no\\)',
25
- '\\by/N\\b',
26
- '\\bN/y\\b',
27
- 'press enter to',
28
- 'do you want',
29
- 'would you like',
30
- 'proceed\\?',
31
- '\\bapprove\\b',
32
- '\\ballow\\b[^?\\n]*\\?',
33
- '\\bconfirm\\b',
34
- 'continue\\?',
35
- 'overwrite\\?',
36
- 'waiting for (?:your|input)',
37
- 'select an option',
38
- '\\bchoose\\b',
39
- '❯\\s*\\d', // Claude/OpenCode arrow-selected numbered choices
40
- '»\\s*\\d',
41
- '\\b\\d\\.\\s*(?:yes|no)\\b',
42
- ].join('|'), 'i');
43
- export function classifyTail(text) {
44
- return DECISION_RE.test(stripAnsi(text)) ? 'decision' : 'done';
45
- }
46
- /** Last N non-empty lines of stripped text, trimmed for display. */
47
- export function lastLines(text, n) {
48
- const lines = stripAnsi(text)
49
- .split('\n')
50
- .map((l) => l.replace(/\s+$/, ''))
51
- .filter((l) => l.length > 0);
52
- return lines.slice(-n).join('\n').slice(0, 500);
53
- }
54
- //# sourceMappingURL=attention.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attention.js","sourceRoot":"","sources":["../src/attention.ts"],"names":[],"mappings":"AAAA;;;;;;;qEAOqE;AAUrE;mEACmE;AACnE,MAAM,UAAU,SAAS,CAAC,CAAS;IACjC,OAAO,CAAC;QACN,sCAAsC;SACrC,OAAO,CAAC,4BAA4B,EAAE,EAAE,CAAC;QAC1C,yCAAyC;SACxC,OAAO,CAAC,oCAAoC,EAAE,EAAE,CAAC;QAClD,yBAAyB;SACxB,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC;AAED,kEAAkE;AAClE,MAAM,WAAW,GAAG,IAAI,MAAM,CAC5B;IACE,WAAW;IACX,WAAW;IACX,cAAc;IACd,WAAW;IACX,WAAW;IACX,gBAAgB;IAChB,aAAa;IACb,gBAAgB;IAChB,YAAY;IACZ,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,aAAa;IACb,cAAc;IACd,4BAA4B;IAC5B,kBAAkB;IAClB,cAAc;IACd,UAAU,EAAE,kDAAkD;IAC9D,UAAU;I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