vibe-coding-master 0.4.32 → 0.4.34
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/README.md +10 -9
- package/dist/backend/api/gateway-routes.js +6 -0
- package/dist/backend/gateway/channels/lark-channel.js +7 -5
- package/dist/backend/gateway/channels/lark-registration.js +220 -0
- package/dist/backend/gateway/gateway-service.js +117 -4
- package/dist/backend/gateway/gateway-settings-service.js +24 -5
- package/dist-frontend/assets/index-B0hNcYoB.js +96 -0
- package/dist-frontend/index.html +1 -1
- package/docs/gateway-design.md +12 -7
- package/docs/product-design.md +4 -3
- package/package.json +1 -1
- package/dist-frontend/assets/index-CKX3RbCz.js +0 -96
package/dist-frontend/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>VibeCodingMaster</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-B0hNcYoB.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-CuNHDIFw.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/docs/gateway-design.md
CHANGED
|
@@ -12,7 +12,7 @@ first channel was based on the local Tencent iLink smoke test at:
|
|
|
12
12
|
Supported gateway channels:
|
|
13
13
|
|
|
14
14
|
- Tencent iLink Bot API / Weixin DM
|
|
15
|
-
- Lark bot
|
|
15
|
+
- Lark QR setup plus bot WebSocket event delivery
|
|
16
16
|
|
|
17
17
|
## Product Definition
|
|
18
18
|
|
|
@@ -73,8 +73,10 @@ Weixin DM or Lark identity
|
|
|
73
73
|
|
|
74
74
|
The gateway stores channel credentials and the bound mobile user identity in
|
|
75
75
|
app-local state. Weixin stores the iLink bot account token from QR login. Lark
|
|
76
|
-
|
|
77
|
-
short-lived `/bind CODE`
|
|
76
|
+
QR setup creates/configures the bot app, stores App ID/App Secret locally, and
|
|
77
|
+
binds a user only after that user sends a valid short-lived `/bind CODE`
|
|
78
|
+
generated by desktop VCM. VCM does not support manual Lark App ID/App Secret
|
|
79
|
+
configuration.
|
|
78
80
|
|
|
79
81
|
Messages from the bound identity are accepted. Messages from any other identity
|
|
80
82
|
are ignored or receive a minimal "not bound" reply. They are not treated as
|
|
@@ -563,6 +565,7 @@ src/backend/gateway/
|
|
|
563
565
|
gateway-audit-log.ts
|
|
564
566
|
channels/
|
|
565
567
|
lark-channel.ts
|
|
568
|
+
lark-registration.ts
|
|
566
569
|
weixin-ilink-channel.ts
|
|
567
570
|
|
|
568
571
|
src/backend/api/gateway-routes.ts
|
|
@@ -577,6 +580,8 @@ Responsibilities:
|
|
|
577
580
|
- `lark-channel`: implement the generic adapter with Lark WebSocket event
|
|
578
581
|
delivery, text send, chat id routing, mention filtering for groups, and
|
|
579
582
|
pairing-code binding.
|
|
583
|
+
- `lark-registration`: implement QR setup (`init`, `begin`, `poll`) against
|
|
584
|
+
Lark account registration, then save the returned App ID/App Secret locally.
|
|
580
585
|
- `gateway-command-parser`: parse `/help`, `/status`, `/projects`,
|
|
581
586
|
`/use-project`, `/pull-current`, `/tasks`, `/use-task`, `/create-task`,
|
|
582
587
|
`/close-task`, and `/translate`.
|
|
@@ -584,8 +589,8 @@ Responsibilities:
|
|
|
584
589
|
- `gateway-service`: lifecycle, poll loop, command dispatch, PM terminal
|
|
585
590
|
submission, PM Stop reply push, and error backoff. It must depend on the
|
|
586
591
|
channel registry and generic adapter types, not Weixin/iLink-specific types.
|
|
587
|
-
- `gateway-routes`: desktop UI settings, QR login start/status, Lark
|
|
588
|
-
code creation, enable/disable, rebind, and gateway status.
|
|
592
|
+
- `gateway-routes`: desktop UI settings, QR login start/status, Lark QR setup,
|
|
593
|
+
Lark pairing code creation, enable/disable, rebind, and gateway status.
|
|
589
594
|
|
|
590
595
|
Service dependencies:
|
|
591
596
|
|
|
@@ -617,7 +622,7 @@ Binding: not bound / bound
|
|
|
617
622
|
Translation: off / on
|
|
618
623
|
Current project
|
|
619
624
|
Current task
|
|
620
|
-
QR login / Lark pairing code / Rebind
|
|
625
|
+
QR login / Lark QR setup / Lark pairing code / Rebind
|
|
621
626
|
Last poll status
|
|
622
627
|
Last message status
|
|
623
628
|
```
|
|
@@ -627,7 +632,7 @@ The user should be able to:
|
|
|
627
632
|
- enable or disable gateway
|
|
628
633
|
- select the gateway channel
|
|
629
634
|
- start Weixin QR login
|
|
630
|
-
-
|
|
635
|
+
- start Lark QR setup
|
|
631
636
|
- generate a short-lived Lark pairing code
|
|
632
637
|
- see whether the phone is bound
|
|
633
638
|
- reset binding
|
package/docs/product-design.md
CHANGED
|
@@ -767,9 +767,10 @@ Gateway product rules:
|
|
|
767
767
|
identity.
|
|
768
768
|
|
|
769
769
|
The Weixin channel uses Tencent iLink QR login, `getupdates` long polling, and
|
|
770
|
-
`sendmessage` text replies. The Lark channel uses
|
|
771
|
-
|
|
772
|
-
|
|
770
|
+
`sendmessage` text replies. The Lark channel uses QR setup to create/configure a
|
|
771
|
+
bot app, stores the resulting App ID/App Secret locally, then uses WebSocket
|
|
772
|
+
event delivery and a short-lived `/bind CODE` pairing flow. Gateway details and
|
|
773
|
+
implementation plan live in `docs/gateway-design.md`.
|
|
773
774
|
|
|
774
775
|
## 15. Local State
|
|
775
776
|
|