@senpi/runtime 3.0.190 → 3.0.191
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/senpi/paper.d.ts +2 -1
- package/dist/senpi/paper.d.ts.map +1 -1
- package/dist/senpi/paper.js +12 -3
- package/dist/senpi/paper.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/senpi/paper.d.ts
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* The address format is a copy of what hypaper issues today: `0x`, 16 zeros, a 13-digit
|
|
8
8
|
* millisecond timestamp, then 11 lowercase hex (hypaper `src/engine/wallets.ts:44-45,342` at
|
|
9
9
|
* `c646d59`). When hypaper ships S12's `0x00000000deadbeef` + 24 hex, this regex changes on the same
|
|
10
|
-
* day as the MCP's and paper-service's copies (D2).
|
|
10
|
+
* day as the MCP's and paper-service's copies (D2). The timestamp's first digit is never 0, which
|
|
11
|
+
* keeps the zero address out.
|
|
11
12
|
*/
|
|
12
13
|
export declare const PAPER_ADDRESS_RE: RegExp;
|
|
13
14
|
/** `paper-<uuid v4>`, lowercase (SPEC §5). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paper.d.ts","sourceRoot":"","sources":["../../src/senpi/paper.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paper.d.ts","sourceRoot":"","sources":["../../src/senpi/paper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB,QAAqC,CAAC;AAQnE,8CAA8C;AAC9C,eAAO,MAAM,WAAW,QAAyE,CAAC;AAElG;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,+CAA+C,CAAC;AAEnF,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAIvD;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5C,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAEnD;AAED,oDAAoD;AACpD,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAExD"}
|
package/dist/senpi/paper.js
CHANGED
|
@@ -7,9 +7,15 @@
|
|
|
7
7
|
* The address format is a copy of what hypaper issues today: `0x`, 16 zeros, a 13-digit
|
|
8
8
|
* millisecond timestamp, then 11 lowercase hex (hypaper `src/engine/wallets.ts:44-45,342` at
|
|
9
9
|
* `c646d59`). When hypaper ships S12's `0x00000000deadbeef` + 24 hex, this regex changes on the same
|
|
10
|
-
* day as the MCP's and paper-service's copies (D2).
|
|
10
|
+
* day as the MCP's and paper-service's copies (D2). The timestamp's first digit is never 0, which
|
|
11
|
+
* keeps the zero address out.
|
|
11
12
|
*/
|
|
12
|
-
export const PAPER_ADDRESS_RE = /^0x0{16}\d{
|
|
13
|
+
export const PAPER_ADDRESS_RE = /^0x0{16}[1-9]\d{12}[0-9a-f]{11}$/;
|
|
14
|
+
/**
|
|
15
|
+
* The stand-in wallet for `validate` (`PLACEHOLDER_ADDRESS`) and the deploy preflight's facts render
|
|
16
|
+
* (`FACTS_STAND_IN_WALLET`), so it is always live.
|
|
17
|
+
*/
|
|
18
|
+
const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
13
19
|
/** `paper-<uuid v4>`, lowercase (SPEC §5). */
|
|
14
20
|
export const PAPER_ID_RE = /^paper-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
15
21
|
/**
|
|
@@ -20,7 +26,10 @@ export const PAPER_ID_RE = /^paper-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{
|
|
|
20
26
|
export const PAPER_ROUTING_PROBE_ID = "paper-00000000-0000-4000-8000-000000000000";
|
|
21
27
|
/** Matched after trim and lowercase, so a checksummed spelling is still paper. */
|
|
22
28
|
export function isPaperAddress(address) {
|
|
23
|
-
|
|
29
|
+
const normalized = address.trim().toLowerCase();
|
|
30
|
+
if (normalized === ZERO_ADDRESS)
|
|
31
|
+
return false;
|
|
32
|
+
return PAPER_ADDRESS_RE.test(normalized);
|
|
24
33
|
}
|
|
25
34
|
export function isPaperStrategyId(id) {
|
|
26
35
|
return PAPER_ID_RE.test(id.trim().toLowerCase());
|
package/dist/senpi/paper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paper.js","sourceRoot":"","sources":["../../src/senpi/paper.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paper.js","sourceRoot":"","sources":["../../src/senpi/paper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,kCAAkC,CAAC;AAEnE;;;GAGG;AACH,MAAM,YAAY,GAAG,4CAA4C,CAAC;AAElE,8CAA8C;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAG,sEAAsE,CAAC;AAElG;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,4CAA4C,CAAC;AAEnF,kFAAkF;AAClF,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAChD,IAAI,UAAU,KAAK,YAAY;QAAE,OAAO,KAAK,CAAC;IAC9C,OAAO,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,EAAU;IAC1C,OAAO,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;AACnD,CAAC;AAID,MAAM,UAAU,MAAM,CAAC,KAAc;IACnC,OAAO,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;AAClC,CAAC;AAED,oDAAoD;AACpD,MAAM,UAAU,UAAU,CAAC,OAAe;IACxC,OAAO,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;AACzC,CAAC"}
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "runtime",
|
|
3
3
|
"name": "Senpi Runtime",
|
|
4
4
|
"description": "Senpi runtime plugin for OpenClaw. Orchestrates scanners, LLM-based trade decisions, and a DSL trailing stop-loss exit engine.",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.191",
|
|
6
6
|
"commandAliases": [
|
|
7
7
|
{
|
|
8
8
|
"name": "senpi"
|