@dreamorosi/agent-timekeeper-claude-code 0.2.2 → 0.2.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-timekeeper",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Claude Code plugin for Agent Timekeeper: records Sessions, Runs, tool calls and Interactions as Signals, and uploads them to your own endpoint",
5
5
  "author": {
6
6
  "name": "Andrea Amorosi"
package/hooks/register.js CHANGED
@@ -21504,8 +21504,25 @@ var signalId = ({
21504
21504
 
21505
21505
  // ../signal/src/producer.ts
21506
21506
  var WORD = /^[A-Za-z0-9._/@+-]{1,32}$/;
21507
+ var WRAPPERS = [
21508
+ /^(?:cd|export)(?:\s[\s\S]*?)?(?:&&|;)\s*/,
21509
+ /^[A-Za-z_][A-Za-z0-9_]*=(?:"[^"]*"|'[^']*'|[^\s"'])*\s*/,
21510
+ /^timeout\s+\d+(?:\.\d+)?[smhd]?(?:\s+|$)/,
21511
+ /^env(?:\s+|$)/
21512
+ ];
21513
+ var unwrap = (command) => {
21514
+ let rest = command.trim();
21515
+ for (; ; ) {
21516
+ const wrapper = WRAPPERS.map((pattern) => pattern.exec(rest)).find(
21517
+ (match) => match !== null
21518
+ );
21519
+ if (wrapper === void 0) return rest;
21520
+ rest = rest.slice(wrapper[0].length);
21521
+ }
21522
+ };
21507
21523
  var commandHead2 = (command) => {
21508
- const words = command.trim().split(/\s+/);
21524
+ const unwrapped = unwrap(command);
21525
+ const words = (unwrapped === "" ? command : unwrapped).trim().split(/\s+/);
21509
21526
  const [first, second] = words;
21510
21527
  if (first === void 0 || !WORD.test(first)) return void 0;
21511
21528
  if (second !== void 0 && WORD.test(second)) return `${first} ${second}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamorosi/agent-timekeeper-claude-code",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Claude Code plugin for Agent Timekeeper: records Sessions, Runs, tool calls and Interactions as Signals, and uploads them to your own endpoint",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {