@h-rig/cli 0.0.6-alpha.41 → 0.0.6-alpha.42

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/bin/rig.js CHANGED
@@ -7690,10 +7690,16 @@ class RigRemoteAgentSession extends PiAgentSession {
7690
7690
  await this.remote.sendPrompt(trimmed, behavior);
7691
7691
  }
7692
7692
  async steer(text2) {
7693
- await this.remote.sendPrompt(text2, "steer");
7693
+ const trimmed = text2.trim();
7694
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
7695
+ return;
7696
+ await this.remote.sendPrompt(trimmed, "steer");
7694
7697
  }
7695
7698
  async followUp(text2) {
7696
- await this.remote.sendPrompt(text2, "followUp");
7699
+ const trimmed = text2.trim();
7700
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
7701
+ return;
7702
+ await this.remote.sendPrompt(trimmed, "followUp");
7697
7703
  }
7698
7704
  async abort() {
7699
7705
  await this.remote.abort();
@@ -789,10 +789,16 @@ class RigRemoteAgentSession extends PiAgentSession {
789
789
  await this.remote.sendPrompt(trimmed, behavior);
790
790
  }
791
791
  async steer(text) {
792
- await this.remote.sendPrompt(text, "steer");
792
+ const trimmed = text.trim();
793
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
794
+ return;
795
+ await this.remote.sendPrompt(trimmed, "steer");
793
796
  }
794
797
  async followUp(text) {
795
- await this.remote.sendPrompt(text, "followUp");
798
+ const trimmed = text.trim();
799
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
800
+ return;
801
+ await this.remote.sendPrompt(trimmed, "followUp");
796
802
  }
797
803
  async abort() {
798
804
  await this.remote.abort();
@@ -563,10 +563,16 @@ class RigRemoteAgentSession extends PiAgentSession {
563
563
  await this.remote.sendPrompt(trimmed, behavior);
564
564
  }
565
565
  async steer(text) {
566
- await this.remote.sendPrompt(text, "steer");
566
+ const trimmed = text.trim();
567
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
568
+ return;
569
+ await this.remote.sendPrompt(trimmed, "steer");
567
570
  }
568
571
  async followUp(text) {
569
- await this.remote.sendPrompt(text, "followUp");
572
+ const trimmed = text.trim();
573
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
574
+ return;
575
+ await this.remote.sendPrompt(trimmed, "followUp");
570
576
  }
571
577
  async abort() {
572
578
  await this.remote.abort();
@@ -543,10 +543,16 @@ class RigRemoteAgentSession extends PiAgentSession {
543
543
  await this.remote.sendPrompt(trimmed, behavior);
544
544
  }
545
545
  async steer(text) {
546
- await this.remote.sendPrompt(text, "steer");
546
+ const trimmed = text.trim();
547
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
548
+ return;
549
+ await this.remote.sendPrompt(trimmed, "steer");
547
550
  }
548
551
  async followUp(text) {
549
- await this.remote.sendPrompt(text, "followUp");
552
+ const trimmed = text.trim();
553
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
554
+ return;
555
+ await this.remote.sendPrompt(trimmed, "followUp");
550
556
  }
551
557
  async abort() {
552
558
  await this.remote.abort();
@@ -867,10 +867,16 @@ class RigRemoteAgentSession extends PiAgentSession {
867
867
  await this.remote.sendPrompt(trimmed, behavior);
868
868
  }
869
869
  async steer(text) {
870
- await this.remote.sendPrompt(text, "steer");
870
+ const trimmed = text.trim();
871
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
872
+ return;
873
+ await this.remote.sendPrompt(trimmed, "steer");
871
874
  }
872
875
  async followUp(text) {
873
- await this.remote.sendPrompt(text, "followUp");
876
+ const trimmed = text.trim();
877
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
878
+ return;
879
+ await this.remote.sendPrompt(trimmed, "followUp");
874
880
  }
875
881
  async abort() {
876
882
  await this.remote.abort();
@@ -1270,10 +1270,16 @@ class RigRemoteAgentSession extends PiAgentSession {
1270
1270
  await this.remote.sendPrompt(trimmed, behavior);
1271
1271
  }
1272
1272
  async steer(text) {
1273
- await this.remote.sendPrompt(text, "steer");
1273
+ const trimmed = text.trim();
1274
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
1275
+ return;
1276
+ await this.remote.sendPrompt(trimmed, "steer");
1274
1277
  }
1275
1278
  async followUp(text) {
1276
- await this.remote.sendPrompt(text, "followUp");
1279
+ const trimmed = text.trim();
1280
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
1281
+ return;
1282
+ await this.remote.sendPrompt(trimmed, "followUp");
1277
1283
  }
1278
1284
  async abort() {
1279
1285
  await this.remote.abort();
@@ -7496,10 +7496,16 @@ class RigRemoteAgentSession extends PiAgentSession {
7496
7496
  await this.remote.sendPrompt(trimmed, behavior);
7497
7497
  }
7498
7498
  async steer(text2) {
7499
- await this.remote.sendPrompt(text2, "steer");
7499
+ const trimmed = text2.trim();
7500
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
7501
+ return;
7502
+ await this.remote.sendPrompt(trimmed, "steer");
7500
7503
  }
7501
7504
  async followUp(text2) {
7502
- await this.remote.sendPrompt(text2, "followUp");
7505
+ const trimmed = text2.trim();
7506
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
7507
+ return;
7508
+ await this.remote.sendPrompt(trimmed, "followUp");
7503
7509
  }
7504
7510
  async abort() {
7505
7511
  await this.remote.abort();
package/dist/src/index.js CHANGED
@@ -7686,10 +7686,16 @@ class RigRemoteAgentSession extends PiAgentSession {
7686
7686
  await this.remote.sendPrompt(trimmed, behavior);
7687
7687
  }
7688
7688
  async steer(text2) {
7689
- await this.remote.sendPrompt(text2, "steer");
7689
+ const trimmed = text2.trim();
7690
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
7691
+ return;
7692
+ await this.remote.sendPrompt(trimmed, "steer");
7690
7693
  }
7691
7694
  async followUp(text2) {
7692
- await this.remote.sendPrompt(text2, "followUp");
7695
+ const trimmed = text2.trim();
7696
+ if (trimmed.startsWith("/") && await this._tryExecuteExtensionCommand(trimmed))
7697
+ return;
7698
+ await this.remote.sendPrompt(trimmed, "followUp");
7693
7699
  }
7694
7700
  async abort() {
7695
7701
  await this.remote.abort();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/cli",
3
- "version": "0.0.6-alpha.41",
3
+ "version": "0.0.6-alpha.42",
4
4
  "type": "module",
5
5
  "description": "Rig package",
6
6
  "license": "UNLICENSED",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@clack/prompts": "^1.2.0",
26
- "@earendil-works/pi-coding-agent": "npm:@h-rig/pi-coding-agent@0.0.6-alpha.41",
27
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.41",
28
- "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.41",
29
- "@rig/client": "npm:@h-rig/client@0.0.6-alpha.41",
30
- "@rig/server": "npm:@h-rig/server@0.0.6-alpha.41",
26
+ "@earendil-works/pi-coding-agent": "npm:@h-rig/pi-coding-agent@0.0.6-alpha.42",
27
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.42",
28
+ "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.42",
29
+ "@rig/client": "npm:@h-rig/client@0.0.6-alpha.42",
30
+ "@rig/server": "npm:@h-rig/server@0.0.6-alpha.42",
31
31
  "picocolors": "^1.1.1"
32
32
  }
33
33
  }