openclaw-overlay-plugin 0.7.36 → 0.7.37
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/index.js +10 -10
- package/dist/src/test/cli.test.js +1 -1
- package/index.ts +10 -10
- package/package.json +1 -1
- package/src/test/cli.test.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -552,7 +552,7 @@ export default function register(api) {
|
|
|
552
552
|
try {
|
|
553
553
|
api.logger.info("Starting BSV overlay WebSocket relay...");
|
|
554
554
|
const env = buildEnvironment(pluginConfig);
|
|
555
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
555
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
556
556
|
// Initialize the service system if available
|
|
557
557
|
try {
|
|
558
558
|
await initializeServiceSystem();
|
|
@@ -581,7 +581,7 @@ export default function register(api) {
|
|
|
581
581
|
(async () => {
|
|
582
582
|
try {
|
|
583
583
|
const env = buildEnvironment(pluginConfig);
|
|
584
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
584
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
585
585
|
const regPath = path.join(process.env.HOME || '', '.openclaw', 'openclaw-overlay', 'registration.json');
|
|
586
586
|
const onboardSentFile = path.join(process.env.HOME || '', '.openclaw', 'openclaw-overlay', 'onboarding-sent.flag');
|
|
587
587
|
if (!fs.existsSync(regPath) && !fs.existsSync(onboardSentFile)) {
|
|
@@ -626,7 +626,7 @@ export default function register(api) {
|
|
|
626
626
|
.action(async () => {
|
|
627
627
|
try {
|
|
628
628
|
const env = buildEnvironment(pluginConfig);
|
|
629
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
629
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
630
630
|
const result = await handleStatus(env, cliPath);
|
|
631
631
|
console.log(JSON.stringify(result, null, 2));
|
|
632
632
|
}
|
|
@@ -640,7 +640,7 @@ export default function register(api) {
|
|
|
640
640
|
.action(async () => {
|
|
641
641
|
try {
|
|
642
642
|
const env = buildEnvironment(pluginConfig);
|
|
643
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
643
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
644
644
|
const result = await handleBalance(env, cliPath);
|
|
645
645
|
console.log(JSON.stringify(result, null, 2));
|
|
646
646
|
}
|
|
@@ -654,7 +654,7 @@ export default function register(api) {
|
|
|
654
654
|
.action(async () => {
|
|
655
655
|
try {
|
|
656
656
|
const env = buildEnvironment(pluginConfig);
|
|
657
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
657
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
658
658
|
const result = await handleAddress(env, cliPath);
|
|
659
659
|
console.log(JSON.stringify(result, null, 2));
|
|
660
660
|
}
|
|
@@ -670,7 +670,7 @@ export default function register(api) {
|
|
|
670
670
|
.action(async (options) => {
|
|
671
671
|
try {
|
|
672
672
|
const env = buildEnvironment(pluginConfig);
|
|
673
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
673
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
674
674
|
const result = await handleDiscover(options, env, cliPath);
|
|
675
675
|
if (result.agents) {
|
|
676
676
|
console.log("\nAgents:");
|
|
@@ -697,7 +697,7 @@ export default function register(api) {
|
|
|
697
697
|
.action(async () => {
|
|
698
698
|
try {
|
|
699
699
|
const env = buildEnvironment(pluginConfig);
|
|
700
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
700
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
701
701
|
const result = await handleRegister(env, cliPath);
|
|
702
702
|
console.log(JSON.stringify(result, null, 2));
|
|
703
703
|
}
|
|
@@ -713,7 +713,7 @@ export default function register(api) {
|
|
|
713
713
|
.action(async (options) => {
|
|
714
714
|
try {
|
|
715
715
|
const env = buildEnvironment(pluginConfig);
|
|
716
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
716
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
717
717
|
const result = await handleOnboard(options, env, cliPath);
|
|
718
718
|
console.log(JSON.stringify(result, null, 2));
|
|
719
719
|
}
|
|
@@ -727,7 +727,7 @@ export default function register(api) {
|
|
|
727
727
|
.action(async () => {
|
|
728
728
|
try {
|
|
729
729
|
const env = buildEnvironment(pluginConfig);
|
|
730
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
730
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
731
731
|
const result = await handlePendingRequests(env, cliPath);
|
|
732
732
|
console.log(JSON.stringify(result, null, 2));
|
|
733
733
|
}
|
|
@@ -740,7 +740,7 @@ export default function register(api) {
|
|
|
740
740
|
async function executeOverlayAction(params, config, api) {
|
|
741
741
|
const { action } = params;
|
|
742
742
|
const env = buildEnvironment(config);
|
|
743
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
743
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
744
744
|
switch (action) {
|
|
745
745
|
case "request":
|
|
746
746
|
return await handleServiceRequest(params, env, cliPath, config, api);
|
|
@@ -12,7 +12,7 @@ import os from 'node:os';
|
|
|
12
12
|
import { fileURLToPath } from 'node:url';
|
|
13
13
|
const execFileAsync = promisify(execFile);
|
|
14
14
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
15
|
-
const CLI_PATH = path.resolve(__dirname, '..', '..', 'dist', 'cli.js');
|
|
15
|
+
const CLI_PATH = path.resolve(__dirname, '..', '..', 'dist', 'src', 'cli.js');
|
|
16
16
|
// Simple test runner (matches project convention — no external framework)
|
|
17
17
|
let passed = 0;
|
|
18
18
|
let failed = 0;
|
package/index.ts
CHANGED
|
@@ -597,7 +597,7 @@ export default function register(api: any) {
|
|
|
597
597
|
try {
|
|
598
598
|
api.logger.info("Starting BSV overlay WebSocket relay...");
|
|
599
599
|
const env = buildEnvironment(pluginConfig);
|
|
600
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
600
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
601
601
|
|
|
602
602
|
// Initialize the service system if available
|
|
603
603
|
try {
|
|
@@ -629,7 +629,7 @@ export default function register(api: any) {
|
|
|
629
629
|
(async () => {
|
|
630
630
|
try {
|
|
631
631
|
const env = buildEnvironment(pluginConfig);
|
|
632
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
632
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
633
633
|
|
|
634
634
|
const regPath = path.join(process.env.HOME || '', '.openclaw', 'openclaw-overlay', 'registration.json');
|
|
635
635
|
const onboardSentFile = path.join(process.env.HOME || '', '.openclaw', 'openclaw-overlay', 'onboarding-sent.flag');
|
|
@@ -678,7 +678,7 @@ export default function register(api: any) {
|
|
|
678
678
|
.action(async () => {
|
|
679
679
|
try {
|
|
680
680
|
const env = buildEnvironment(pluginConfig);
|
|
681
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
681
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
682
682
|
const result = await handleStatus(env, cliPath);
|
|
683
683
|
console.log(JSON.stringify(result, null, 2));
|
|
684
684
|
} catch (error: any) {
|
|
@@ -692,7 +692,7 @@ export default function register(api: any) {
|
|
|
692
692
|
.action(async () => {
|
|
693
693
|
try {
|
|
694
694
|
const env = buildEnvironment(pluginConfig);
|
|
695
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
695
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
696
696
|
const result = await handleBalance(env, cliPath);
|
|
697
697
|
console.log(JSON.stringify(result, null, 2));
|
|
698
698
|
} catch (error: any) {
|
|
@@ -706,7 +706,7 @@ export default function register(api: any) {
|
|
|
706
706
|
.action(async () => {
|
|
707
707
|
try {
|
|
708
708
|
const env = buildEnvironment(pluginConfig);
|
|
709
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
709
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
710
710
|
const result = await handleAddress(env, cliPath);
|
|
711
711
|
console.log(JSON.stringify(result, null, 2));
|
|
712
712
|
} catch (error: any) {
|
|
@@ -722,7 +722,7 @@ export default function register(api: any) {
|
|
|
722
722
|
.action(async (options: any) => {
|
|
723
723
|
try {
|
|
724
724
|
const env = buildEnvironment(pluginConfig);
|
|
725
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
725
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
726
726
|
const result = await handleDiscover(options, env, cliPath);
|
|
727
727
|
|
|
728
728
|
if (result.agents) {
|
|
@@ -751,7 +751,7 @@ export default function register(api: any) {
|
|
|
751
751
|
.action(async () => {
|
|
752
752
|
try {
|
|
753
753
|
const env = buildEnvironment(pluginConfig);
|
|
754
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
754
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
755
755
|
const result = await handleRegister(env, cliPath);
|
|
756
756
|
console.log(JSON.stringify(result, null, 2));
|
|
757
757
|
} catch (error: any) {
|
|
@@ -767,7 +767,7 @@ export default function register(api: any) {
|
|
|
767
767
|
.action(async (options: any) => {
|
|
768
768
|
try {
|
|
769
769
|
const env = buildEnvironment(pluginConfig);
|
|
770
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
770
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
771
771
|
const result = await handleOnboard(options, env, cliPath);
|
|
772
772
|
console.log(JSON.stringify(result, null, 2));
|
|
773
773
|
} catch (error: any) {
|
|
@@ -781,7 +781,7 @@ export default function register(api: any) {
|
|
|
781
781
|
.action(async () => {
|
|
782
782
|
try {
|
|
783
783
|
const env = buildEnvironment(pluginConfig);
|
|
784
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
784
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
785
785
|
const result = await handlePendingRequests(env, cliPath);
|
|
786
786
|
console.log(JSON.stringify(result, null, 2));
|
|
787
787
|
} catch (error: any) {
|
|
@@ -794,7 +794,7 @@ export default function register(api: any) {
|
|
|
794
794
|
async function executeOverlayAction(params: any, config: any, api: any) {
|
|
795
795
|
const { action } = params;
|
|
796
796
|
const env = buildEnvironment(config);
|
|
797
|
-
const cliPath = path.join(__dirname, 'dist', 'cli.js');
|
|
797
|
+
const cliPath = path.join(__dirname, 'dist', 'src', 'cli.js');
|
|
798
798
|
|
|
799
799
|
switch (action) {
|
|
800
800
|
case "request":
|
package/package.json
CHANGED
package/src/test/cli.test.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
14
14
|
|
|
15
15
|
const execFileAsync = promisify(execFile);
|
|
16
16
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
17
|
-
const CLI_PATH = path.resolve(__dirname, '..', '..', 'dist', 'cli.js');
|
|
17
|
+
const CLI_PATH = path.resolve(__dirname, '..', '..', 'dist', 'src', 'cli.js');
|
|
18
18
|
|
|
19
19
|
// Simple test runner (matches project convention — no external framework)
|
|
20
20
|
let passed = 0;
|