@seasonkoh/webaz 0.1.26 → 0.1.28
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/LICENSE +2 -2
- package/NOTICE +24 -3
- package/README.md +74 -330
- package/README.zh-CN.md +419 -0
- package/dist/layer0-foundation/L0-2-state-machine/genuine-sale.js +21 -0
- package/dist/layer0-foundation/L0-5-manifest/manifest.js +8 -3
- package/dist/layer1-agent/L1-1-mcp-server/auth.js +13 -1
- package/dist/layer1-agent/L1-1-mcp-server/network-mode.js +69 -0
- package/dist/layer1-agent/L1-1-mcp-server/server.js +270 -82
- package/dist/layer2-business/L2-9-contribution/admin-coordination-ingestion-engine.js +181 -0
- package/dist/layer2-business/L2-9-contribution/admin-coordination-resolver.js +114 -0
- package/dist/layer2-business/L2-9-contribution/admin-coordination-store.js +251 -0
- package/dist/layer2-business/L2-9-contribution/admin-operator-claim-workflow.js +390 -0
- package/dist/layer2-business/L2-9-contribution/build-task-agent-metadata-store.js +24 -0
- package/dist/layer2-business/L2-9-contribution/build-task-participation.js +6 -2
- package/dist/layer2-business/L2-9-contribution/build-task-quota.js +337 -0
- package/dist/layer2-business/L2-9-contribution/build-task-read.js +25 -2
- package/dist/layer2-business/L2-9-contribution/build-tasks-engine.js +57 -7
- package/dist/layer2-business/L2-9-contribution/canonical-contribution-target.js +1 -1
- package/dist/layer2-business/L2-9-contribution/contribution-facts-read.js +66 -0
- package/dist/layer2-business/L2-9-contribution/task-proposal-draft.js +187 -18
- package/dist/layer2-business/L2-9-contribution/task-proposal-store.js +29 -4
- package/dist/ledger.js +1 -1
- package/dist/pwa/admin-audit.js +38 -0
- package/dist/pwa/anti-abuse-thresholds.js +135 -0
- package/dist/pwa/cf-origin-guard.js +33 -0
- package/dist/pwa/contract-fingerprint.js +1 -0
- package/dist/pwa/data/onboarding-cases.js +2 -2
- package/dist/pwa/data/onboarding-quiz.js +1 -1
- package/dist/pwa/economic-participation.js +2 -2
- package/dist/pwa/integration-contract.js +46 -4
- package/dist/pwa/internal/pv-settlement.js +12 -0
- package/dist/pwa/internal/wallet-signer.js +26 -0
- package/dist/pwa/public/app-account.js +977 -0
- package/dist/pwa/public/app-admin.js +608 -0
- package/dist/pwa/public/app-agents.js +63 -0
- package/dist/pwa/public/app-ai.js +2162 -0
- package/dist/pwa/public/app-contribution.js +836 -0
- package/dist/pwa/public/app-discover.js +1296 -0
- package/dist/pwa/public/app-listings.js +226 -0
- package/dist/pwa/public/app-profile.js +1692 -0
- package/dist/pwa/public/app-seller.js +199 -0
- package/dist/pwa/public/app-shop.js +1145 -0
- package/dist/pwa/public/app.js +15075 -23960
- package/dist/pwa/public/i18n.js +31 -28
- package/dist/pwa/public/index.html +11 -1
- package/dist/pwa/public/openapi.json +4851 -2776
- package/dist/pwa/pv-kill-switch.js +31 -0
- package/dist/pwa/routes/admin-admins.js +48 -1
- package/dist/pwa/routes/admin-analytics.js +1 -10
- package/dist/pwa/routes/admin-atomic.js +4 -17
- package/dist/pwa/routes/admin-operator-claims.js +280 -0
- package/dist/pwa/routes/admin-reports.js +4 -26
- package/dist/pwa/routes/admin-tokenomics.js +2 -76
- package/dist/pwa/routes/admin-users-lifecycle.js +1 -14
- package/dist/pwa/routes/admin-users-query.js +23 -1
- package/dist/pwa/routes/admin-wallet-ops.js +1 -1
- package/dist/pwa/routes/agent-grants.js +255 -0
- package/dist/pwa/routes/auth-read.js +1 -5
- package/dist/pwa/routes/auth-register.js +3 -13
- package/dist/pwa/routes/build-task-quota.js +113 -0
- package/dist/pwa/routes/claim-verify.js +15 -11
- package/dist/pwa/routes/contribution-facts.js +18 -0
- package/dist/pwa/routes/dispute-cases.js +5 -4
- package/dist/pwa/routes/growth.js +3 -3
- package/dist/pwa/routes/orders-action.js +27 -10
- package/dist/pwa/routes/orders-create.js +1 -1
- package/dist/pwa/routes/products-meta.js +19 -6
- package/dist/pwa/routes/profile-placement.js +1 -1
- package/dist/pwa/routes/promoter.js +10 -29
- package/dist/pwa/routes/public-build-tasks.js +5 -1
- package/dist/pwa/routes/public-utils.js +9 -12
- package/dist/pwa/routes/referral.js +5 -26
- package/dist/pwa/routes/rewards-apply.js +3 -2
- package/dist/pwa/routes/share-redirects.js +1 -1
- package/dist/pwa/routes/shareables-interactions.js +2 -1
- package/dist/pwa/routes/task-proposals.js +85 -9
- package/dist/pwa/routes/users-public.js +1 -4
- package/dist/pwa/routes/wallet-read.js +2 -14
- package/dist/pwa/routes/webauthn.js +7 -2
- package/dist/pwa/server-schema.js +9 -0
- package/dist/pwa/server.js +319 -2034
- package/dist/runtime/agent-grant-scopes.js +128 -0
- package/dist/runtime/agent-grant-verifier.js +67 -0
- package/dist/runtime/agent-pairing.js +60 -0
- package/dist/runtime/apply-webaz-runtime-schema.js +15 -0
- package/dist/runtime/webaz-schema-helpers.js +1848 -0
- package/dist/settlement-math.js +3 -3
- package/dist/version.js +6 -4
- package/package.json +43 -8
- package/dist/index.js +0 -182
- package/dist/pwa/public/docs/ECONOMIC-MODEL.md +0 -287
- package/dist/pwa/public/docs/INTEGRATOR.md +0 -67
- package/dist/pwa/public/docs/META-RULES-FULL.md +0 -543
- package/dist/test-dispute.js +0 -153
- package/dist/test-manifest.js +0 -61
- package/dist/test-mcp-tools.js +0 -135
- package/dist/test-reputation.js +0 -116
- package/dist/test-skill-market.js +0 -101
package/dist/pwa/public/i18n.js
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
window._lang = localStorage.getItem('webaz_lang') || 'zh'
|
|
5
5
|
|
|
6
6
|
const _EN = {
|
|
7
|
+
// ── RFC-020 Connected agents (app-agents.js) ─────────────────
|
|
8
|
+
'🔌 已连接的 Agent': '🔌 Connected agents',
|
|
9
|
+
'尚无已连接的 Agent': 'No connected agents yet',
|
|
10
|
+
'AI agent 通过 webaz_pair 配对、经你 Passkey 批准后出现在这里': 'Agents appear here after pairing via webaz_pair and your Passkey approval',
|
|
11
|
+
'这些是你授权给 AI agent 的委托凭证(作用域受限、短期、可随时撤销)。它们不是你的账号或密钥,永远无法动用资金、投票或改密钥。': 'These are scoped, short-lived, revocable delegation grants you authorized for AI agents. They are not your account or keys, and can never move funds, vote, or change keys.',
|
|
12
|
+
'有效': 'Active',
|
|
13
|
+
'最近使用': 'Last used',
|
|
14
|
+
'次调用': 'calls',
|
|
15
|
+
'从未使用': 'Never used',
|
|
16
|
+
'有效期至': 'Expires',
|
|
17
|
+
'未命名 Agent': 'Unnamed agent',
|
|
18
|
+
'仅安全只读权限': 'Safe read-only scopes',
|
|
19
|
+
'撤销访问': 'Revoke access',
|
|
20
|
+
'确认撤销此 Agent 的访问权限?该凭证将立即失效。': "Revoke this agent's access? The credential is invalidated immediately.",
|
|
21
|
+
'已撤销该 Agent 的访问': 'Agent access revoked',
|
|
22
|
+
'已连接的 Agent': 'Connected agents',
|
|
7
23
|
// ── General ──────────────────────────────────────────────────
|
|
8
24
|
'← 返回': '← Back',
|
|
9
25
|
'登录': 'Login',
|
|
@@ -341,6 +357,10 @@ const _EN = {
|
|
|
341
357
|
'所在地区': 'Region',
|
|
342
358
|
'我的团队': 'My team',
|
|
343
359
|
'直推': 'Direct',
|
|
360
|
+
'参与记录': 'Participation record',
|
|
361
|
+
'累计参与积分(PV)': 'Total participation points (PV)',
|
|
362
|
+
'参与积分': 'Participation pts',
|
|
363
|
+
'PV 是参与 / 贡献的记录,不是收益、不可兑付、不构成任何奖励权益。匹配奖励当前未启用。': 'PV is a record of participation / contribution — not income, not redeemable, and confers no reward entitlement. Matching rewards are currently not enabled.',
|
|
344
364
|
'二级': 'L2',
|
|
345
365
|
'累计佣金': 'Total earnings',
|
|
346
366
|
'最近佣金流水': 'Recent commissions',
|
|
@@ -359,7 +379,6 @@ const _EN = {
|
|
|
359
379
|
'新人通过你的推荐码注册后,系统自动安排积分树位置(无需选择左右)。': 'When someone registers via your referral code, the system places them in the points tree automatically (no left/right choice).',
|
|
360
380
|
'我挂靠位置': 'My placement',
|
|
361
381
|
'直挂': 'Direct',
|
|
362
|
-
'弱侧匹配量': 'Matching volume',
|
|
363
382
|
'门槛': 'threshold',
|
|
364
383
|
'门槛 PV': 'Threshold PV',
|
|
365
384
|
'最近匹配': 'Recent matches',
|
|
@@ -383,7 +402,6 @@ const _EN = {
|
|
|
383
402
|
'待累积 PV': 'PV to accumulate',
|
|
384
403
|
'Tier 配置': 'Tier config',
|
|
385
404
|
'(admin 可调)': '(admin adjustable)',
|
|
386
|
-
'调整:POST /api/admin/tokenomics/tier with body {tier, pv_threshold, score_per_hit, active}': 'Adjust via POST /api/admin/tokenomics/tier',
|
|
387
405
|
'Top 分享佣金': 'Top commission earners',
|
|
388
406
|
'Top 匹配收益': 'Top matching earners',
|
|
389
407
|
'已处理流水': 'Processed',
|
|
@@ -411,11 +429,6 @@ const _EN = {
|
|
|
411
429
|
'资格用户': 'Eligible users',
|
|
412
430
|
'暂无资格用户': 'No eligible users',
|
|
413
431
|
'在用户详情页可授予/撤销该资格': 'Grant/revoke from user detail page',
|
|
414
|
-
'确认开启管理津贴?': 'Enable management bonus?',
|
|
415
|
-
'确认关闭管理津贴?(已发放的不回收)': 'Disable management bonus? (already-paid not clawed back)',
|
|
416
|
-
'授予该用户管理津贴资格?': 'Grant management bonus eligibility to this user?',
|
|
417
|
-
'撤销该用户管理津贴资格?': 'Revoke management bonus eligibility from this user?',
|
|
418
|
-
'管理津贴资格': 'Mgmt bonus eligibility',
|
|
419
432
|
'已授予': 'Granted',
|
|
420
433
|
'未授予': 'Not granted',
|
|
421
434
|
'授予': 'Grant',
|
|
@@ -1102,7 +1115,6 @@ const _EN = {
|
|
|
1102
1115
|
'拿到第一笔分享佣金': 'Earn first share commission',
|
|
1103
1116
|
'创作首个原生内容': 'Create first native content',
|
|
1104
1117
|
'团队达到 5 人': 'Team reaches 5',
|
|
1105
|
-
'弱侧匹配 tier 1': 'weak-side tier 1 match',
|
|
1106
1118
|
'月度收益 100 WAZ': 'Monthly income 100 WAZ',
|
|
1107
1119
|
'激活动态推荐': 'Activate dynamic L1',
|
|
1108
1120
|
'团队达到 50 人': 'Team reaches 50',
|
|
@@ -1129,7 +1141,6 @@ const _EN = {
|
|
|
1129
1141
|
'挂靠': 'Placed at',
|
|
1130
1142
|
'团队分享': 'Team Sharing',
|
|
1131
1143
|
'积分匹配': 'Matching',
|
|
1132
|
-
'弱侧': 'Weak side',
|
|
1133
1144
|
'累计': 'Total',
|
|
1134
1145
|
'近 7 日': 'Last 7d',
|
|
1135
1146
|
'笔': 'records',
|
|
@@ -1167,10 +1178,10 @@ const _EN = {
|
|
|
1167
1178
|
// Profile / Social
|
|
1168
1179
|
'社交资料': 'Social Profile',
|
|
1169
1180
|
'≤ 120 字': '≤ 120 chars',
|
|
1170
|
-
'
|
|
1181
|
+
'例如:一句话介绍你自己': 'e.g. one line about yourself',
|
|
1171
1182
|
'流量口令': 'Search anchor',
|
|
1172
1183
|
'≤ 40 字,字母/数字/汉字/-_.': '≤ 40 chars, alphanumeric/CJK/-_.',
|
|
1173
|
-
'
|
|
1184
|
+
'例如:好记的字母或数字组合': 'e.g. a memorable letters/numbers combo',
|
|
1174
1185
|
'在 TikTok / 小红书 口播这个口令,粉丝在 WebAZ 搜它就能找到你': 'Mention this anchor on TikTok/Xiaohongshu — fans can search it on WebAZ to find you',
|
|
1175
1186
|
'在公开动态流显示我的活动': 'Show my activity in public feed',
|
|
1176
1187
|
'关闭后,你的购买/匹配/分润事件不会出现在 发现好物 > 动态': 'When off, your buy/match/commission events won\'t appear in Discover > Feed',
|
|
@@ -1600,7 +1611,7 @@ const _EN = {
|
|
|
1600
1611
|
'试试问:': 'Try asking:',
|
|
1601
1612
|
'"帮我找适合送 60 岁妈妈的礼物 ≤ 500 元"': '"Find a gift for my 60-yr-old mom under 500"',
|
|
1602
1613
|
'"附近最近有人买什么?"': '"What are people nearby buying lately?"',
|
|
1603
|
-
'"
|
|
1614
|
+
'"某个口令的创作者发了啥?"': '"What has the creator behind a given anchor posted?"',
|
|
1604
1615
|
'调用': 'calls',
|
|
1605
1616
|
'配置你的 Claude API key': 'Configure your Claude API key',
|
|
1606
1617
|
'AI 推荐 = 你的私有 agent。key 存在你浏览器本地,永不发给 WebAZ 服务器。': 'AI Picks = your private agent. Key stays in your browser, never sent to WebAZ servers.',
|
|
@@ -2521,18 +2532,7 @@ const _EN = {
|
|
|
2521
2532
|
// ── M7.4 conditional order ─────────────────────────────────
|
|
2522
2533
|
'验证中': 'Pending verification',
|
|
2523
2534
|
|
|
2524
|
-
// ── 邀请码轮询 ───────────────────────────────────────────────
|
|
2525
|
-
'获取邀请码': 'Get invite code',
|
|
2526
|
-
'该功能默认关闭,由管理员开启后可用': 'Disabled by default; admin can enable',
|
|
2527
|
-
'点击向系统申领一个邀请码': 'Click to request an invite code',
|
|
2528
2535
|
'邀请人': 'Inviter',
|
|
2529
|
-
'邀请码轮询': 'Invite-code rotation',
|
|
2530
|
-
'🟢 已开启 — 按钮可用': '🟢 Enabled — button active',
|
|
2531
|
-
'🔒 已关闭 — 按钮置灰': '🔒 Disabled — button greyed',
|
|
2532
|
-
'开启后:注册页"获取邀请码"按钮可用,依次轮询 xiaohua / mian / holden / jiayi / qingliang 5 位用户的 permanent_code':
|
|
2533
|
-
'When ON: register page "Get invite code" button becomes active; rotates through 5 fixed users (xiaohua / mian / holden / jiayi / qingliang) returning their permanent_code.',
|
|
2534
|
-
'确认开启邀请码轮询?访客在注册页点按钮可申领下一个 sponsor 邀请码': 'Enable invite-code rotation? Visitors can request the next sponsor code from the register page.',
|
|
2535
|
-
'确认关闭邀请码轮询?按钮将置灰': 'Disable invite-code rotation? Button will be greyed out.',
|
|
2536
2536
|
|
|
2537
2537
|
// ── #ai-recommend 重塑 ─────────────────────────────────────
|
|
2538
2538
|
'找礼物': 'Find a gift',
|
|
@@ -3437,7 +3437,6 @@ const _EN = {
|
|
|
3437
3437
|
'Tokenomics / 协议金库 / 慈善基金 / 审计': 'Tokenomics / Treasury / Charity Fund / Audit',
|
|
3438
3438
|
'协议金库摘要': 'Treasury Summary',
|
|
3439
3439
|
'全球基金池': 'Global Pool',
|
|
3440
|
-
'管理津贴池': 'Mgmt Bonus Pool',
|
|
3441
3440
|
'慈善基金': 'Charity Fund',
|
|
3442
3441
|
'慈善基金拨款': 'Charity Fund Disburse',
|
|
3443
3442
|
'从基金池拨款给指定用户': 'Disburse from pool to user',
|
|
@@ -4354,6 +4353,14 @@ const _EN = {
|
|
|
4354
4353
|
'邀请码为 6-7 位永久码;没有就联系老用户拿邀请链接': 'The invite code is a 6-7 char permanent code; if you have none, ask an existing user for an invite link',
|
|
4355
4354
|
'任务建议收件箱': 'Task proposal inbox',
|
|
4356
4355
|
'陌生人 / agent 提交的共建任务建议;审阅 → 转正式任务': 'Task suggestions from strangers / agents; review → convert to a formal task',
|
|
4356
|
+
'建任务额度审核': 'Build-task quota review',
|
|
4357
|
+
'非根管理员的建任务扩容申请;批准 = 限时计数授权(仅 root)': 'Non-root admins’ build-task quota requests; approve = time-boxed counted grant (root only)',
|
|
4358
|
+
'关联个人贡献账号': 'Link a personal contributor account',
|
|
4359
|
+
'把本管理席位的协调贡献归属到你的真实个人账号(需对方确认 + root 审批)': 'Attribute this admin seat’s coordination work to your real personal account (needs the contributor to accept + root approval)',
|
|
4360
|
+
'操作席位关联审批': 'Operator-claim review',
|
|
4361
|
+
'贡献归属': 'Contribution attribution',
|
|
4362
|
+
'待确认的 admin 关联 / 关联记录': 'Pending admin links / your claim history',
|
|
4363
|
+
'管理席位→个人贡献账号的关联申请;确认 + 审批 / 撤销(仅 root)': 'Admin seat → personal contributor account links; confirm + approve / revoke (root only)',
|
|
4357
4364
|
'通过邀请进入会记录归因;分享分润需登录后单独申请。': 'Joining via an invite records attribution; share-commission requires a separate application after login.',
|
|
4358
4365
|
'完成首笔购买后,可申请分享分润。': 'After your first purchase, you can apply for share-commission.',
|
|
4359
4366
|
'仅在私密设备打开;不要截图、转发或发送给任何人。': 'Open only on a private device; never screenshot, forward, or send it to anyone.',
|
|
@@ -4665,8 +4672,6 @@ const _EN = {
|
|
|
4665
4672
|
'🔍 开始分析': '🔍 Start analyzing',
|
|
4666
4673
|
|
|
4667
4674
|
// ─── 设置 / Onboarding 文案 ─────
|
|
4668
|
-
'已开启 — 按钮可用': 'Enabled — button active',
|
|
4669
|
-
'已关闭 — 按钮置灰': 'Disabled — button greyed out',
|
|
4670
4675
|
'新用户期': 'New user period',
|
|
4671
4676
|
'已自动加入「我的分享」': 'Auto added to "My Shares"',
|
|
4672
4677
|
'完成该商品的购买后再分享': 'Share after completing the purchase of this item',
|
|
@@ -5323,7 +5328,6 @@ const _EN = {
|
|
|
5323
5328
|
'销售': 'sales',
|
|
5324
5329
|
'评论区规则': 'Comment rules',
|
|
5325
5330
|
'仲裁率': 'Dispute rate',
|
|
5326
|
-
'WebAZ 发展奖': 'WebAZ Growth Award',
|
|
5327
5331
|
'协议级荣誉': 'Protocol-level recognition',
|
|
5328
5332
|
'累计推广用户': 'users recruited',
|
|
5329
5333
|
'你所在地区的协议规则下,推广奖励以荣誉记录形式展示': 'In your region, recruitment rewards display as honor records (per local rules)',
|
|
@@ -5335,7 +5339,6 @@ const _EN = {
|
|
|
5335
5339
|
'按时间线展示': 'timeline view',
|
|
5336
5340
|
'还没有奖励记录': 'No rewards yet',
|
|
5337
5341
|
'佣金': 'commission',
|
|
5338
|
-
'发展奖': 'growth award',
|
|
5339
5342
|
'马来西亚': 'Malaysia',
|
|
5340
5343
|
'泰国': 'Thailand',
|
|
5341
5344
|
'巴西': 'Brazil',
|
|
@@ -38,11 +38,21 @@
|
|
|
38
38
|
<p><strong>Status:</strong> pre-launch — WAZ is a simulated test currency; no real money settles yet.</p>
|
|
39
39
|
<p><strong>Browse now — no account needed:</strong> <a href="/#discover">/#discover</a> · <strong>Want in?</strong> Pre-launch is invite-gated; request an invite (leave your email) at <a href="/#welcome">/#welcome</a>.</p>
|
|
40
40
|
<p><strong>Follow the launch:</strong> live protocol pulse (real counts + milestones) at <a href="/.well-known/webaz-launch-pulse.json">/.well-known/webaz-launch-pulse.json</a> — watch it wake up.</p>
|
|
41
|
-
<p style="color:#6b7280;font-size:14px">Source
|
|
41
|
+
<p style="color:#6b7280;font-size:14px">Source code: <a href="https://github.com/webaz-protocol/webaz">github.com/webaz-protocol/webaz</a> (open source). Machine-readable spec: <a href="/.well-known/webaz-integration.json">/.well-known/webaz-integration.json</a>.</p>
|
|
42
42
|
<p style="color:#6b7280;font-size:14px">This page is an interactive app and needs JavaScript for full functionality.</p>
|
|
43
43
|
</main>
|
|
44
44
|
</noscript>
|
|
45
45
|
<script src="/i18n.js"></script>
|
|
46
|
+
<script src="/app-admin.js"></script>
|
|
47
|
+
<script src="/app-contribution.js"></script>
|
|
48
|
+
<script src="/app-ai.js"></script>
|
|
49
|
+
<script src="/app-discover.js"></script>
|
|
50
|
+
<script src="/app-profile.js"></script>
|
|
51
|
+
<script src="/app-account.js"></script>
|
|
52
|
+
<script src="/app-shop.js"></script>
|
|
53
|
+
<script src="/app-listings.js"></script>
|
|
54
|
+
<script src="/app-seller.js"></script>
|
|
55
|
+
<script src="/app-agents.js"></script>
|
|
46
56
|
<script src="/app.js"></script>
|
|
47
57
|
</body>
|
|
48
58
|
</html>
|