@seasonkoh/webaz 0.1.26 → 0.1.27

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.
Files changed (81) hide show
  1. package/LICENSE +2 -2
  2. package/NOTICE +24 -3
  3. package/README.md +74 -330
  4. package/README.zh-CN.md +419 -0
  5. package/dist/layer0-foundation/L0-2-state-machine/genuine-sale.js +21 -0
  6. package/dist/layer0-foundation/L0-5-manifest/manifest.js +8 -3
  7. package/dist/layer1-agent/L1-1-mcp-server/auth.js +13 -1
  8. package/dist/layer1-agent/L1-1-mcp-server/server.js +36 -28
  9. package/dist/layer2-business/L2-9-contribution/admin-coordination-ingestion-engine.js +181 -0
  10. package/dist/layer2-business/L2-9-contribution/admin-coordination-resolver.js +114 -0
  11. package/dist/layer2-business/L2-9-contribution/admin-coordination-store.js +251 -0
  12. package/dist/layer2-business/L2-9-contribution/admin-operator-claim-workflow.js +390 -0
  13. package/dist/layer2-business/L2-9-contribution/build-task-agent-metadata-store.js +24 -0
  14. package/dist/layer2-business/L2-9-contribution/build-task-participation.js +6 -2
  15. package/dist/layer2-business/L2-9-contribution/build-task-quota.js +337 -0
  16. package/dist/layer2-business/L2-9-contribution/build-task-read.js +25 -2
  17. package/dist/layer2-business/L2-9-contribution/build-tasks-engine.js +57 -7
  18. package/dist/layer2-business/L2-9-contribution/canonical-contribution-target.js +1 -1
  19. package/dist/layer2-business/L2-9-contribution/contribution-facts-read.js +66 -0
  20. package/dist/layer2-business/L2-9-contribution/task-proposal-draft.js +187 -18
  21. package/dist/layer2-business/L2-9-contribution/task-proposal-store.js +29 -4
  22. package/dist/ledger.js +1 -1
  23. package/dist/pwa/admin-audit.js +38 -0
  24. package/dist/pwa/anti-abuse-thresholds.js +135 -0
  25. package/dist/pwa/cf-origin-guard.js +33 -0
  26. package/dist/pwa/contract-fingerprint.js +1 -0
  27. package/dist/pwa/data/onboarding-cases.js +2 -2
  28. package/dist/pwa/data/onboarding-quiz.js +1 -1
  29. package/dist/pwa/economic-participation.js +2 -2
  30. package/dist/pwa/integration-contract.js +46 -4
  31. package/dist/pwa/internal/pv-settlement.js +12 -0
  32. package/dist/pwa/internal/wallet-signer.js +26 -0
  33. package/dist/pwa/public/app.js +679 -679
  34. package/dist/pwa/public/i18n.js +15 -28
  35. package/dist/pwa/public/index.html +1 -1
  36. package/dist/pwa/public/openapi.json +4760 -2769
  37. package/dist/pwa/pv-kill-switch.js +31 -0
  38. package/dist/pwa/routes/admin-admins.js +48 -1
  39. package/dist/pwa/routes/admin-analytics.js +1 -10
  40. package/dist/pwa/routes/admin-atomic.js +4 -17
  41. package/dist/pwa/routes/admin-operator-claims.js +280 -0
  42. package/dist/pwa/routes/admin-reports.js +4 -26
  43. package/dist/pwa/routes/admin-tokenomics.js +2 -76
  44. package/dist/pwa/routes/admin-users-lifecycle.js +1 -14
  45. package/dist/pwa/routes/admin-users-query.js +23 -1
  46. package/dist/pwa/routes/admin-wallet-ops.js +1 -1
  47. package/dist/pwa/routes/auth-read.js +1 -5
  48. package/dist/pwa/routes/auth-register.js +3 -13
  49. package/dist/pwa/routes/build-task-quota.js +113 -0
  50. package/dist/pwa/routes/claim-verify.js +15 -11
  51. package/dist/pwa/routes/contribution-facts.js +18 -0
  52. package/dist/pwa/routes/dispute-cases.js +5 -4
  53. package/dist/pwa/routes/growth.js +3 -3
  54. package/dist/pwa/routes/orders-action.js +27 -10
  55. package/dist/pwa/routes/orders-create.js +1 -1
  56. package/dist/pwa/routes/products-meta.js +19 -6
  57. package/dist/pwa/routes/profile-placement.js +1 -1
  58. package/dist/pwa/routes/promoter.js +10 -29
  59. package/dist/pwa/routes/public-build-tasks.js +5 -1
  60. package/dist/pwa/routes/public-utils.js +9 -12
  61. package/dist/pwa/routes/referral.js +5 -26
  62. package/dist/pwa/routes/rewards-apply.js +3 -2
  63. package/dist/pwa/routes/share-redirects.js +1 -1
  64. package/dist/pwa/routes/shareables-interactions.js +2 -1
  65. package/dist/pwa/routes/task-proposals.js +85 -9
  66. package/dist/pwa/routes/users-public.js +1 -4
  67. package/dist/pwa/routes/wallet-read.js +2 -14
  68. package/dist/pwa/routes/webauthn.js +1 -1
  69. package/dist/pwa/server.js +156 -469
  70. package/dist/settlement-math.js +3 -3
  71. package/dist/version.js +6 -4
  72. package/package.json +33 -7
  73. package/dist/index.js +0 -182
  74. package/dist/pwa/public/docs/ECONOMIC-MODEL.md +0 -287
  75. package/dist/pwa/public/docs/INTEGRATOR.md +0 -67
  76. package/dist/pwa/public/docs/META-RULES-FULL.md +0 -543
  77. package/dist/test-dispute.js +0 -153
  78. package/dist/test-manifest.js +0 -61
  79. package/dist/test-mcp-tools.js +0 -135
  80. package/dist/test-reputation.js +0 -116
  81. package/dist/test-skill-market.js +0 -101
@@ -341,6 +341,10 @@ const _EN = {
341
341
  '所在地区': 'Region',
342
342
  '我的团队': 'My team',
343
343
  '直推': 'Direct',
344
+ '参与记录': 'Participation record',
345
+ '累计参与积分(PV)': 'Total participation points (PV)',
346
+ '参与积分': 'Participation pts',
347
+ 'PV 是参与 / 贡献的记录,不是收益、不可兑付、不构成任何奖励权益。匹配奖励当前未启用。': 'PV is a record of participation / contribution — not income, not redeemable, and confers no reward entitlement. Matching rewards are currently not enabled.',
344
348
  '二级': 'L2',
345
349
  '累计佣金': 'Total earnings',
346
350
  '最近佣金流水': 'Recent commissions',
@@ -359,7 +363,6 @@ const _EN = {
359
363
  '新人通过你的推荐码注册后,系统自动安排积分树位置(无需选择左右)。': 'When someone registers via your referral code, the system places them in the points tree automatically (no left/right choice).',
360
364
  '我挂靠位置': 'My placement',
361
365
  '直挂': 'Direct',
362
- '弱侧匹配量': 'Matching volume',
363
366
  '门槛': 'threshold',
364
367
  '门槛 PV': 'Threshold PV',
365
368
  '最近匹配': 'Recent matches',
@@ -383,7 +386,6 @@ const _EN = {
383
386
  '待累积 PV': 'PV to accumulate',
384
387
  'Tier 配置': 'Tier config',
385
388
  '(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
389
  'Top 分享佣金': 'Top commission earners',
388
390
  'Top 匹配收益': 'Top matching earners',
389
391
  '已处理流水': 'Processed',
@@ -411,11 +413,6 @@ const _EN = {
411
413
  '资格用户': 'Eligible users',
412
414
  '暂无资格用户': 'No eligible users',
413
415
  '在用户详情页可授予/撤销该资格': '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
416
  '已授予': 'Granted',
420
417
  '未授予': 'Not granted',
421
418
  '授予': 'Grant',
@@ -1102,7 +1099,6 @@ const _EN = {
1102
1099
  '拿到第一笔分享佣金': 'Earn first share commission',
1103
1100
  '创作首个原生内容': 'Create first native content',
1104
1101
  '团队达到 5 人': 'Team reaches 5',
1105
- '弱侧匹配 tier 1': 'weak-side tier 1 match',
1106
1102
  '月度收益 100 WAZ': 'Monthly income 100 WAZ',
1107
1103
  '激活动态推荐': 'Activate dynamic L1',
1108
1104
  '团队达到 50 人': 'Team reaches 50',
@@ -1129,7 +1125,6 @@ const _EN = {
1129
1125
  '挂靠': 'Placed at',
1130
1126
  '团队分享': 'Team Sharing',
1131
1127
  '积分匹配': 'Matching',
1132
- '弱侧': 'Weak side',
1133
1128
  '累计': 'Total',
1134
1129
  '近 7 日': 'Last 7d',
1135
1130
  '笔': 'records',
@@ -1167,10 +1162,10 @@ const _EN = {
1167
1162
  // Profile / Social
1168
1163
  '社交资料': 'Social Profile',
1169
1164
  '≤ 120 字': '≤ 120 chars',
1170
- '例如:新加坡教育认证专家,分享真实测评': 'e.g. Singapore education expert sharing honest reviews',
1165
+ '例如:一句话介绍你自己': 'e.g. one line about yourself',
1171
1166
  '流量口令': 'Search anchor',
1172
1167
  '≤ 40 字,字母/数字/汉字/-_.': '≤ 40 chars, alphanumeric/CJK/-_.',
1173
- '例如:思翔教育007': 'e.g. SeasonEducation007',
1168
+ '例如:好记的字母或数字组合': 'e.g. a memorable letters/numbers combo',
1174
1169
  '在 TikTok / 小红书 口播这个口令,粉丝在 WebAZ 搜它就能找到你': 'Mention this anchor on TikTok/Xiaohongshu — fans can search it on WebAZ to find you',
1175
1170
  '在公开动态流显示我的活动': 'Show my activity in public feed',
1176
1171
  '关闭后,你的购买/匹配/分润事件不会出现在 发现好物 > 动态': 'When off, your buy/match/commission events won\'t appear in Discover > Feed',
@@ -1600,7 +1595,7 @@ const _EN = {
1600
1595
  '试试问:': 'Try asking:',
1601
1596
  '"帮我找适合送 60 岁妈妈的礼物 ≤ 500 元"': '"Find a gift for my 60-yr-old mom under 500"',
1602
1597
  '"附近最近有人买什么?"': '"What are people nearby buying lately?"',
1603
- '"思翔教育007 这个口令的创作者发了啥?"': '"What has the creator behind SeasonEducation007 posted?"',
1598
+ '"某个口令的创作者发了啥?"': '"What has the creator behind a given anchor posted?"',
1604
1599
  '调用': 'calls',
1605
1600
  '配置你的 Claude API key': 'Configure your Claude API key',
1606
1601
  'AI 推荐 = 你的私有 agent。key 存在你浏览器本地,永不发给 WebAZ 服务器。': 'AI Picks = your private agent. Key stays in your browser, never sent to WebAZ servers.',
@@ -2521,18 +2516,7 @@ const _EN = {
2521
2516
  // ── M7.4 conditional order ─────────────────────────────────
2522
2517
  '验证中': 'Pending verification',
2523
2518
 
2524
- // ── 邀请码轮询 ───────────────────────────────────────────────
2525
- '获取邀请码': 'Get invite code',
2526
- '该功能默认关闭,由管理员开启后可用': 'Disabled by default; admin can enable',
2527
- '点击向系统申领一个邀请码': 'Click to request an invite code',
2528
2519
  '邀请人': '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
2520
 
2537
2521
  // ── #ai-recommend 重塑 ─────────────────────────────────────
2538
2522
  '找礼物': 'Find a gift',
@@ -3437,7 +3421,6 @@ const _EN = {
3437
3421
  'Tokenomics / 协议金库 / 慈善基金 / 审计': 'Tokenomics / Treasury / Charity Fund / Audit',
3438
3422
  '协议金库摘要': 'Treasury Summary',
3439
3423
  '全球基金池': 'Global Pool',
3440
- '管理津贴池': 'Mgmt Bonus Pool',
3441
3424
  '慈善基金': 'Charity Fund',
3442
3425
  '慈善基金拨款': 'Charity Fund Disburse',
3443
3426
  '从基金池拨款给指定用户': 'Disburse from pool to user',
@@ -4354,6 +4337,14 @@ const _EN = {
4354
4337
  '邀请码为 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
4338
  '任务建议收件箱': 'Task proposal inbox',
4356
4339
  '陌生人 / agent 提交的共建任务建议;审阅 → 转正式任务': 'Task suggestions from strangers / agents; review → convert to a formal task',
4340
+ '建任务额度审核': 'Build-task quota review',
4341
+ '非根管理员的建任务扩容申请;批准 = 限时计数授权(仅 root)': 'Non-root admins’ build-task quota requests; approve = time-boxed counted grant (root only)',
4342
+ '关联个人贡献账号': 'Link a personal contributor account',
4343
+ '把本管理席位的协调贡献归属到你的真实个人账号(需对方确认 + root 审批)': 'Attribute this admin seat’s coordination work to your real personal account (needs the contributor to accept + root approval)',
4344
+ '操作席位关联审批': 'Operator-claim review',
4345
+ '贡献归属': 'Contribution attribution',
4346
+ '待确认的 admin 关联 / 关联记录': 'Pending admin links / your claim history',
4347
+ '管理席位→个人贡献账号的关联申请;确认 + 审批 / 撤销(仅 root)': 'Admin seat → personal contributor account links; confirm + approve / revoke (root only)',
4357
4348
  '通过邀请进入会记录归因;分享分润需登录后单独申请。': 'Joining via an invite records attribution; share-commission requires a separate application after login.',
4358
4349
  '完成首笔购买后,可申请分享分润。': 'After your first purchase, you can apply for share-commission.',
4359
4350
  '仅在私密设备打开;不要截图、转发或发送给任何人。': 'Open only on a private device; never screenshot, forward, or send it to anyone.',
@@ -4665,8 +4656,6 @@ const _EN = {
4665
4656
  '🔍 开始分析': '🔍 Start analyzing',
4666
4657
 
4667
4658
  // ─── 设置 / Onboarding 文案 ─────
4668
- '已开启 — 按钮可用': 'Enabled — button active',
4669
- '已关闭 — 按钮置灰': 'Disabled — button greyed out',
4670
4659
  '新用户期': 'New user period',
4671
4660
  '已自动加入「我的分享」': 'Auto added to "My Shares"',
4672
4661
  '完成该商品的购买后再分享': 'Share after completing the purchase of this item',
@@ -5323,7 +5312,6 @@ const _EN = {
5323
5312
  '销售': 'sales',
5324
5313
  '评论区规则': 'Comment rules',
5325
5314
  '仲裁率': 'Dispute rate',
5326
- 'WebAZ 发展奖': 'WebAZ Growth Award',
5327
5315
  '协议级荣誉': 'Protocol-level recognition',
5328
5316
  '累计推广用户': 'users recruited',
5329
5317
  '你所在地区的协议规则下,推广奖励以荣誉记录形式展示': 'In your region, recruitment rewards display as honor records (per local rules)',
@@ -5335,7 +5323,6 @@ const _EN = {
5335
5323
  '按时间线展示': 'timeline view',
5336
5324
  '还没有奖励记录': 'No rewards yet',
5337
5325
  '佣金': 'commission',
5338
- '发展奖': 'growth award',
5339
5326
  '马来西亚': 'Malaysia',
5340
5327
  '泰国': 'Thailand',
5341
5328
  '巴西': 'Brazil',
@@ -38,7 +38,7 @@
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 repo opens at public launch — <a href="https://github.com/seasonsagents-art/webaz">github.com/seasonsagents-art/webaz</a> may 404 until then; the full machine-readable spec is already public at <a href="/.well-known/webaz-integration.json">/.well-known/webaz-integration.json</a>.</p>
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>