@spzhongwin/skill-logger-plugin 1.0.11 → 1.0.13
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/active-skills.js +67 -0
- package/dist/active-skills.test.js +29 -0
- package/dist/config-sync.js +439 -0
- package/dist/config-sync.test.js +145 -0
- package/dist/hooks.js +337 -0
- package/dist/hooks.test.js +123 -0
- package/dist/http.js +54 -0
- package/dist/identity.js +56 -0
- package/dist/index.js +240 -78
- package/dist/index.test.js +39 -0
- package/dist/integration.test.js +102 -0
- package/dist/matcher.js +362 -0
- package/dist/matcher.test.js +139 -0
- package/dist/paths.js +62 -0
- package/dist/paths.test.js +49 -0
- package/dist/reporter.js +267 -0
- package/dist/reporter.test.js +128 -0
- package/dist/semver.js +64 -0
- package/dist/semver.test.js +21 -0
- package/dist/skill-version.js +23 -0
- package/dist/types.js +9 -0
- package/dist/updater.js +352 -0
- package/dist/updater.test.js +212 -0
- package/dist/ws-client.js +484 -0
- package/openclaw.plugin.json +50 -50
- package/package.json +37 -37
- package/src/active-skills.test.ts +32 -32
- package/src/active-skills.ts +77 -77
- package/src/config-sync.test.ts +165 -165
- package/src/config-sync.ts +544 -544
- package/src/hooks.test.ts +251 -251
- package/src/hooks.ts +517 -517
- package/src/http.ts +61 -61
- package/src/identity.ts +64 -64
- package/src/index.test.ts +53 -53
- package/src/index.ts +226 -226
- package/src/integration.test.ts +119 -119
- package/src/matcher.test.ts +170 -170
- package/src/matcher.ts +393 -393
- package/src/paths.test.ts +57 -57
- package/src/paths.ts +84 -84
- package/src/reporter.test.ts +139 -139
- package/src/reporter.ts +298 -298
- package/src/sample-config.json +72 -72
- package/src/semver.test.ts +23 -23
- package/src/semver.ts +60 -60
- package/src/skill-version.ts +53 -53
- package/src/types.ts +198 -198
- package/src/updater.test.ts +325 -237
- package/src/updater.ts +549 -433
- package/src/ws-client.test.ts +48 -37
- package/src/ws-client.ts +717 -642
- package/test-ws.ts +17 -17
- package/tsconfig.json +14 -14
package/test-ws.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { GatewayWsClient } from './src/ws-client.ts';
|
|
2
|
-
|
|
3
|
-
const client = new GatewayWsClient({
|
|
4
|
-
serverUrl: 'wss://aishuo.co/gateway/ws',
|
|
5
|
-
gatewayId: 'test-local-gateway',
|
|
6
|
-
authToken: 'song3i3wnjwej0923iuwejewjwjkwekwejkew',
|
|
7
|
-
enableFileLog: true,
|
|
8
|
-
updater: {} as any
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
console.log("Connecting...");
|
|
12
|
-
client.connect();
|
|
13
|
-
|
|
14
|
-
setTimeout(() => {
|
|
15
|
-
console.log("Test finished.");
|
|
16
|
-
process.exit(0);
|
|
17
|
-
}, 3000);
|
|
1
|
+
import { GatewayWsClient } from './src/ws-client.ts';
|
|
2
|
+
|
|
3
|
+
const client = new GatewayWsClient({
|
|
4
|
+
serverUrl: 'wss://aishuo.co/gateway/ws',
|
|
5
|
+
gatewayId: 'test-local-gateway',
|
|
6
|
+
authToken: 'song3i3wnjwej0923iuwejewjwjkwekwejkew',
|
|
7
|
+
enableFileLog: true,
|
|
8
|
+
updater: {} as any
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
console.log("Connecting...");
|
|
12
|
+
client.connect();
|
|
13
|
+
|
|
14
|
+
setTimeout(() => {
|
|
15
|
+
console.log("Test finished.");
|
|
16
|
+
process.exit(0);
|
|
17
|
+
}, 3000);
|
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "NodeNext",
|
|
5
|
-
"moduleResolution": "NodeNext",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"rootDir": "./src",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"forceConsistentCasingInFileNames": true
|
|
12
|
-
},
|
|
13
|
-
"include": ["src/**/*"]
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"outDir": "./dist",
|
|
7
|
+
"rootDir": "./src",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true
|
|
12
|
+
},
|
|
13
|
+
"include": ["src/**/*"]
|
|
14
|
+
}
|