dsclaw 0.1.0 → 0.1.1

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.
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>DropClaw</title>
6
+ <title>DSClaw</title>
7
7
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🤖</text></svg>">
8
8
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.11.1/build/styles/github-dark.min.css">
9
9
  <style>
@@ -147,18 +147,23 @@ body{display:flex;flex-direction:column}
147
147
  <body>
148
148
  <div class="header">
149
149
  <span style="font-size:22px">🤖</span>
150
- <span class="header-logo">DropClaw</span>
150
+ <span class="header-logo">DSClaw</span>
151
151
  <span class="header-dot" id="statusDot"></span>
152
152
  <span class="header-sub" id="statusText">Connecting...</span>
153
153
  </div>
154
154
 
155
155
  <div class="messages" id="messages">
156
- <div class="msg-wrap" id="msgWrap"></div>
156
+ <div class="msg-wrap" id="msgWrap">
157
+ <div id="emptyState" style="text-align:center;padding:80px 20px;color:var(--text3)">
158
+ <div style="font-size:40px;margin-bottom:16px">🤖</div>
159
+ <div style="font-size:15px">Connecting to DSClaw...</div>
160
+ </div>
161
+ </div>
157
162
  </div>
158
163
 
159
164
  <div class="input-area">
160
165
  <div class="input-wrap">
161
- <input id="input" type="text" placeholder="Message DropClaw..." autocomplete="off" autofocus>
166
+ <input id="input" type="text" placeholder="Message DSClaw..." autocomplete="off" autofocus>
162
167
  <button class="send-btn" id="sendBtn" title="Send">
163
168
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>
164
169
  </button>
@@ -260,7 +265,7 @@ body{display:flex;flex-direction:column}
260
265
  inputMode = d.inputType;
261
266
  input.type = d.inputType;
262
267
  input.placeholder = d.inputType === 'password'
263
- ? 'Type securely (hidden)...' : 'Message DropClaw...';
268
+ ? 'Type securely (hidden)...' : 'Message DSClaw...';
264
269
  break;
265
270
  }
266
271
  }
@@ -290,6 +295,7 @@ body{display:flex;flex-direction:column}
290
295
  }
291
296
 
292
297
  function addBot(text) {
298
+ clearEmptyState();
293
299
  const el = botEl();
294
300
  el.querySelector('.msg-body').innerHTML = md(text);
295
301
  msgWrap.appendChild(el);
@@ -298,6 +304,7 @@ body{display:flex;flex-direction:column}
298
304
  }
299
305
 
300
306
  function startStream() {
307
+ clearEmptyState();
301
308
  streaming = true;
302
309
  streamBuf = '';
303
310
  const el = botEl();
@@ -330,6 +337,7 @@ body{display:flex;flex-direction:column}
330
337
  }
331
338
 
332
339
  function addCard(d) {
340
+ clearEmptyState();
333
341
  const el = botEl();
334
342
  let h = '';
335
343
  if (d.title) h += `<p><strong>${esc(d.title)}</strong></p>`;
@@ -363,6 +371,11 @@ body{display:flex;flex-direction:column}
363
371
  if (el) el.remove();
364
372
  }
365
373
 
374
+ function clearEmptyState() {
375
+ const el = document.getElementById('emptyState');
376
+ if (el) el.remove();
377
+ }
378
+
366
379
  /* ─── Helpers ─── */
367
380
  function botEl() {
368
381
  const el = document.createElement('div');
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "dsclaw",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "AI-powered dropshipping agent system built on OpenClaw. Two agents (Navigator + Claw-Ops) automate DSers workflows via Telegram, WhatsApp, and Feishu.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "bin": {
9
- "dsclaw": "./dist/cli/index.js"
9
+ "dsclaw": "dist/cli/index.js"
10
10
  },
11
11
  "scripts": {
12
12
  "build": "tsup && mkdir -p dist/web && cp src/web/chat.html dist/web/chat.html",