@tokenbuddy/tokenbuddy 1.0.21 → 1.0.23
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/src/cli.d.ts +2 -0
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/cli.js +12 -0
- package/dist/src/cli.js.map +1 -1
- package/package.json +1 -1
- package/src/cli.ts +15 -0
- package/static/ui/assets/index-1uuyCCzj.css +1 -0
- package/static/ui/assets/index-B0QvB9by.js +236 -0
- package/static/ui/assets/index-B0QvB9by.js.map +1 -0
- package/static/ui/index.html +2 -2
- package/tests/tokenbuddy.test.ts +6 -0
- package/static/ui/assets/index-BBuXE99D.js +0 -216
- package/static/ui/assets/index-BBuXE99D.js.map +0 -1
- package/static/ui/assets/index-yD_hcuW8.css +0 -1
package/static/ui/index.html
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<link rel="icon" type="image/png" sizes="192x192" href="/icons/tokenbuddy-192.png" />
|
|
13
13
|
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
|
14
14
|
<title>TokenBuddy · Local Control</title>
|
|
15
|
-
<script type="module" crossorigin src="/assets/index-
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
15
|
+
<script type="module" crossorigin src="/assets/index-B0QvB9by.js"></script>
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/assets/index-1uuyCCzj.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
19
|
<div id="root"></div>
|
package/tests/tokenbuddy.test.ts
CHANGED
|
@@ -136,6 +136,7 @@ describe("TokenBuddy CLI command surface", () => {
|
|
|
136
136
|
controlPort: 17820,
|
|
137
137
|
proxyPort: 17821,
|
|
138
138
|
sellerRegistryUrl: "https://tb-wallet-bootstrap.fly.dev/registry/sellers",
|
|
139
|
+
pathEnv: "/usr/bin:/bin",
|
|
139
140
|
});
|
|
140
141
|
|
|
141
142
|
expect(plist).toContain("<key>EnvironmentVariables</key>");
|
|
@@ -145,6 +146,8 @@ describe("TokenBuddy CLI command surface", () => {
|
|
|
145
146
|
expect(plist).toContain("<string>17821</string>");
|
|
146
147
|
expect(plist).toContain("<key>TB_PROXYD_SELLER_REGISTRY_URL</key>");
|
|
147
148
|
expect(plist).toContain("<string>https://tb-wallet-bootstrap.fly.dev/registry/sellers</string>");
|
|
149
|
+
expect(plist).toContain("<key>PATH</key>");
|
|
150
|
+
expect(plist).toContain("<string>/opt/homebrew/bin:/usr/bin:/bin</string>");
|
|
148
151
|
});
|
|
149
152
|
|
|
150
153
|
test("launchd plist can inject the ClawTip proof provider without embedding proofs", () => {
|
|
@@ -240,6 +243,7 @@ describe("TokenBuddy CLI command surface", () => {
|
|
|
240
243
|
homeDir: "/Users/example",
|
|
241
244
|
nodePath: "/opt/node",
|
|
242
245
|
scriptPath: "/opt/tb-proxyd.js",
|
|
246
|
+
pathEnv: "/usr/bin:/bin",
|
|
243
247
|
mkdirSync: (dirPath) => {
|
|
244
248
|
createdDirs.push(dirPath);
|
|
245
249
|
},
|
|
@@ -280,6 +284,8 @@ describe("TokenBuddy CLI command surface", () => {
|
|
|
280
284
|
expect(writtenFiles[0].content).toContain("<string>3210</string>");
|
|
281
285
|
expect(writtenFiles[0].content).toContain("<string>3211</string>");
|
|
282
286
|
expect(writtenFiles[0].content).toContain("https://registry.example.test/sellers");
|
|
287
|
+
expect(writtenFiles[0].content).toContain("<key>PATH</key>");
|
|
288
|
+
expect(writtenFiles[0].content).toContain("<string>/opt:/usr/bin:/bin</string>");
|
|
283
289
|
expect(opened).toEqual([{ controlPort: 3210, pathname: "/init" }]);
|
|
284
290
|
});
|
|
285
291
|
|