zilmate 1.7.2 → 1.7.5

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 (178) hide show
  1. package/.env.example +36 -36
  2. package/README.md +503 -503
  3. package/SDK.md +320 -320
  4. package/agent-docs.md +276 -276
  5. package/dist/agents/automation-planner.agent.d.ts.map +1 -1
  6. package/dist/agents/coding.agent.d.ts +18 -0
  7. package/dist/agents/coding.agent.d.ts.map +1 -1
  8. package/dist/agents/finance.agent.d.ts +60 -0
  9. package/dist/agents/finance.agent.d.ts.map +1 -0
  10. package/dist/agents/finance.agent.js +30 -0
  11. package/dist/agents/finance.agent.js.map +1 -0
  12. package/dist/agents/manager.d.ts +94 -1
  13. package/dist/agents/manager.d.ts.map +1 -1
  14. package/dist/agents/manager.js +102 -36
  15. package/dist/agents/manager.js.map +1 -1
  16. package/dist/agents/swarm/engineering/qa.d.ts +3 -0
  17. package/dist/agents/swarm/engineering/qa.d.ts.map +1 -0
  18. package/dist/agents/swarm/engineering/qa.js +19 -0
  19. package/dist/agents/swarm/engineering/qa.js.map +1 -0
  20. package/dist/agents/swarm/growth/seo.d.ts +3 -0
  21. package/dist/agents/swarm/growth/seo.d.ts.map +1 -0
  22. package/dist/agents/swarm/growth/seo.js +19 -0
  23. package/dist/agents/swarm/growth/seo.js.map +1 -0
  24. package/dist/agents/swarm/main.d.ts +22 -0
  25. package/dist/agents/swarm/main.d.ts.map +1 -0
  26. package/dist/agents/swarm/main.js +65 -0
  27. package/dist/agents/swarm/main.js.map +1 -0
  28. package/dist/agents/swarm/operations/finance.d.ts +3 -0
  29. package/dist/agents/swarm/operations/finance.d.ts.map +1 -0
  30. package/dist/agents/swarm/operations/finance.js +19 -0
  31. package/dist/agents/swarm/operations/finance.js.map +1 -0
  32. package/dist/agents/swarm/registry.d.ts +4 -0
  33. package/dist/agents/swarm/registry.d.ts.map +1 -0
  34. package/dist/agents/swarm/registry.js +361 -0
  35. package/dist/agents/swarm/registry.js.map +1 -0
  36. package/dist/cli/composer.d.ts.map +1 -1
  37. package/dist/cli/composer.js +54 -4
  38. package/dist/cli/composer.js.map +1 -1
  39. package/dist/cli/doctor.d.ts.map +1 -1
  40. package/dist/cli/doctor.js +13 -0
  41. package/dist/cli/doctor.js.map +1 -1
  42. package/dist/cli/format.d.ts.map +1 -1
  43. package/dist/cli/format.js +46 -24
  44. package/dist/cli/format.js.map +1 -1
  45. package/dist/cli/interactive.d.ts.map +1 -1
  46. package/dist/cli/interactive.js +47 -3
  47. package/dist/cli/interactive.js.map +1 -1
  48. package/dist/cli/render.d.ts.map +1 -1
  49. package/dist/cli/render.js +18 -9
  50. package/dist/cli/render.js.map +1 -1
  51. package/dist/cli/setup.d.ts +1 -0
  52. package/dist/cli/setup.d.ts.map +1 -1
  53. package/dist/cli/setup.js +74 -2
  54. package/dist/cli/setup.js.map +1 -1
  55. package/dist/cli/swarm.d.ts +4 -0
  56. package/dist/cli/swarm.d.ts.map +1 -0
  57. package/dist/cli/swarm.js +21 -0
  58. package/dist/cli/swarm.js.map +1 -0
  59. package/dist/cli/theme.d.ts +9 -0
  60. package/dist/cli/theme.d.ts.map +1 -1
  61. package/dist/cli/theme.js +36 -0
  62. package/dist/cli/theme.js.map +1 -1
  63. package/dist/cli/tunnel.d.ts.map +1 -1
  64. package/dist/cli/tunnel.js +2 -1
  65. package/dist/cli/tunnel.js.map +1 -1
  66. package/dist/cli/voice.js +11 -11
  67. package/dist/cli/welcome.d.ts.map +1 -1
  68. package/dist/cli/welcome.js +2 -0
  69. package/dist/cli/welcome.js.map +1 -1
  70. package/dist/index.js +19 -1
  71. package/dist/index.js.map +1 -1
  72. package/dist/jobs/anomaly.js +5 -5
  73. package/dist/memory/heal.js +43 -43
  74. package/dist/observability/doctor.d.ts +3 -0
  75. package/dist/observability/doctor.d.ts.map +1 -0
  76. package/dist/observability/doctor.js +33 -0
  77. package/dist/observability/doctor.js.map +1 -0
  78. package/dist/observability/usage.d.ts +13 -0
  79. package/dist/observability/usage.d.ts.map +1 -0
  80. package/dist/observability/usage.js +34 -0
  81. package/dist/observability/usage.js.map +1 -0
  82. package/dist/runtime/confirm.d.ts.map +1 -1
  83. package/dist/runtime/confirm.js +12 -2
  84. package/dist/runtime/confirm.js.map +1 -1
  85. package/dist/runtime/prompts/builder.d.ts +11 -0
  86. package/dist/runtime/prompts/builder.d.ts.map +1 -0
  87. package/dist/runtime/prompts/builder.js +29 -0
  88. package/dist/runtime/prompts/builder.js.map +1 -0
  89. package/dist/runtime/registry.d.ts +14 -0
  90. package/dist/runtime/registry.d.ts.map +1 -0
  91. package/dist/runtime/registry.js +39 -0
  92. package/dist/runtime/registry.js.map +1 -0
  93. package/dist/runtime/storage/interface.d.ts +16 -0
  94. package/dist/runtime/storage/interface.d.ts.map +1 -0
  95. package/dist/runtime/storage/interface.js +19 -0
  96. package/dist/runtime/storage/interface.js.map +1 -0
  97. package/dist/runtime/storage/local.d.ts +12 -0
  98. package/dist/runtime/storage/local.d.ts.map +1 -0
  99. package/dist/runtime/storage/local.js +48 -0
  100. package/dist/runtime/storage/local.js.map +1 -0
  101. package/dist/runtime/storage/redis.d.ts +11 -0
  102. package/dist/runtime/storage/redis.d.ts.map +1 -0
  103. package/dist/runtime/storage/redis.js +21 -0
  104. package/dist/runtime/storage/redis.js.map +1 -0
  105. package/dist/runtime/swarm/reports.d.ts +9 -0
  106. package/dist/runtime/swarm/reports.d.ts.map +1 -0
  107. package/dist/runtime/swarm/reports.js +43 -0
  108. package/dist/runtime/swarm/reports.js.map +1 -0
  109. package/dist/runtime/swarm.d.ts +37 -0
  110. package/dist/runtime/swarm.d.ts.map +1 -0
  111. package/dist/runtime/swarm.js +90 -0
  112. package/dist/runtime/swarm.js.map +1 -0
  113. package/dist/runtime/telemetry.d.ts +15 -0
  114. package/dist/runtime/telemetry.d.ts.map +1 -0
  115. package/dist/runtime/telemetry.js +25 -0
  116. package/dist/runtime/telemetry.js.map +1 -0
  117. package/dist/runtime/tool-utils.d.ts +12 -0
  118. package/dist/runtime/tool-utils.d.ts.map +1 -0
  119. package/dist/runtime/tool-utils.js +31 -0
  120. package/dist/runtime/tool-utils.js.map +1 -0
  121. package/dist/tools/browser.tool.d.ts +54 -0
  122. package/dist/tools/browser.tool.d.ts.map +1 -0
  123. package/dist/tools/browser.tool.js +193 -0
  124. package/dist/tools/browser.tool.js.map +1 -0
  125. package/dist/tools/business-apps.tool.d.ts +18 -0
  126. package/dist/tools/business-apps.tool.d.ts.map +1 -0
  127. package/dist/tools/business-apps.tool.js +43 -0
  128. package/dist/tools/business-apps.tool.js.map +1 -0
  129. package/dist/tools/computer-use.tool.js +66 -66
  130. package/dist/tools/cross-app-ledger.tool.d.ts +7 -0
  131. package/dist/tools/cross-app-ledger.tool.d.ts.map +1 -0
  132. package/dist/tools/cross-app-ledger.tool.js +70 -0
  133. package/dist/tools/cross-app-ledger.tool.js.map +1 -0
  134. package/dist/tools/desktop.tool.js +10 -10
  135. package/dist/tools/documents.tool.js +5 -5
  136. package/dist/tools/finance.tool.d.ts +18 -0
  137. package/dist/tools/finance.tool.d.ts.map +1 -0
  138. package/dist/tools/finance.tool.js +88 -0
  139. package/dist/tools/finance.tool.js.map +1 -0
  140. package/dist/tools/image-intelligence.tool.d.ts +12 -0
  141. package/dist/tools/image-intelligence.tool.d.ts.map +1 -0
  142. package/dist/tools/image-intelligence.tool.js +62 -0
  143. package/dist/tools/image-intelligence.tool.js.map +1 -0
  144. package/dist/tools/notify.tool.js +8 -8
  145. package/dist/tools/osint-install.tool.js +8 -8
  146. package/dist/tools/pentest-install.tool.js +6 -6
  147. package/dist/tools/setup-assistant.tool.d.ts +1 -1
  148. package/dist/tools/shell.tool.d.ts +18 -0
  149. package/dist/tools/shell.tool.d.ts.map +1 -1
  150. package/dist/tools/shell.tool.js +34 -0
  151. package/dist/tools/shell.tool.js.map +1 -1
  152. package/dist/tools/triggers.tool.d.ts.map +1 -1
  153. package/dist/tools/web-intelligence.tool.d.ts +12 -0
  154. package/dist/tools/web-intelligence.tool.d.ts.map +1 -0
  155. package/dist/tools/web-intelligence.tool.js +27 -0
  156. package/dist/tools/web-intelligence.tool.js.map +1 -0
  157. package/dist/workspace/init.js +18 -18
  158. package/dist/workspace/output-paths.d.ts +1 -1
  159. package/dist/workspace/output-paths.d.ts.map +1 -1
  160. package/dist/workspace/output-paths.js +1 -0
  161. package/dist/workspace/output-paths.js.map +1 -1
  162. package/dist/workspace/paths.d.ts +1 -0
  163. package/dist/workspace/paths.d.ts.map +1 -1
  164. package/dist/workspace/paths.js +1 -0
  165. package/dist/workspace/paths.js.map +1 -1
  166. package/install.ps1 +62 -62
  167. package/package.json +106 -103
  168. package/scripts/postinstall.mjs +42 -42
  169. package/scripts/release-github.mjs +91 -91
  170. package/src/doc/README.md +49 -49
  171. package/src/doc/admin-tools-and-sms-campaigns.md +99 -99
  172. package/src/doc/escalation-checklist.md +97 -97
  173. package/src/doc/payments-and-payouts.md +82 -82
  174. package/src/doc/shift-lifecycle-and-disputes.md +95 -95
  175. package/src/doc/support-macros.md +40 -40
  176. package/src/doc/venue-support-playbook.md +145 -145
  177. package/src/doc/verification-and-trust.md +88 -88
  178. package/src/doc/worker-support-playbook.md +159 -159
@@ -1,160 +1,160 @@
1
- # Worker Support Playbook
2
-
3
- Use this guide when helping workers sign up, verify identity, find shifts, apply, clock in/out, message venues, update profile details, or get paid.
4
-
5
- ## Worker Journey
6
-
7
- 1. Sign up as a worker.
8
- 2. Complete worker setup: country, city, town, roles, experience, certifications, availability, phone.
9
- 3. Verify identity.
10
- 4. Add payout details.
11
- 5. Browse eligible shifts in their city.
12
- 6. Apply for shifts matching their roles and location.
13
- 7. If accepted, coordinate with the venue in Messages.
14
- 8. Clock in when the shift starts.
15
- 9. Clock out when the shift ends.
16
- 10. Wait for completion processing and payout.
17
-
18
- ## Common Worker Issues
19
-
20
- ### Worker Cannot See Shifts
21
-
22
- Check:
23
-
24
- - Worker country, city, and town are saved.
25
- - Shift is in the same city as the worker.
26
- - Worker has selected roles matching available shifts.
27
- - Shift status is open.
28
- - Shift is not standby-only unless needed.
29
- - Worker profile setup is completed.
30
-
31
- Explain:
32
-
33
- > ZiloShift shows workers shifts in their own city so they do not travel too far or apply for work they cannot realistically attend. Anyone in the same city should see shifts across towns in that city.
34
-
35
- Escalate if:
36
-
37
- - Same-city open shifts exist but do not show.
38
- - Role filters are wrong after profile updates.
39
- - The worker sees corrupted text or missing company names.
40
-
41
- ### Worker Wants To Verify Identity
42
-
43
- Ghanaian workers use the Ghana Card verification flow. Other countries use Didit verification.
44
-
45
- Check:
46
-
47
- - Worker country is correct.
48
- - Ghanaian workers should see Verify Now and be routed to Ghana verification.
49
- - Non-Ghanaian workers should be routed through Didit.
50
-
51
- Do not:
52
-
53
- - Ask for full ID numbers over chat.
54
- - Upload documents for the user.
55
- - Mark identity verified manually without admin review.
56
-
57
- ### Worker Is Ghanaian And Verification Fails
58
-
59
- Ask:
60
-
61
- - Did they scan the front and back of the Ghana Card?
62
- - Did the liveness camera show their face?
63
- - Does the name on the account match the name on the card?
64
- - Did they use a clear, well-lit card image?
65
-
66
- Explain:
67
-
68
- > Ghana verification checks the card data and compares it against the worker profile details. If the profile name does not match the card, verification may stop before sending details for Hubtel verification.
69
-
70
- Escalate if:
71
-
72
- - Camera is blank.
73
- - Front/back scan captures but verification never proceeds.
74
- - Hubtel returns a provider error.
75
- - User was verified but still sees pending.
76
-
77
- ### Worker Cannot Clock In
78
-
79
- Check:
80
-
81
- - Worker has been accepted for the shift.
82
- - Shift date/time has started or is close enough to start.
83
- - QR code clock-in is available from venue, or worker manual clock-in is enabled.
84
- - There is no existing active time entry.
85
-
86
- Explain:
87
-
88
- > Once clocked in, the shift should move to Active and remain active even if the worker leaves and returns to the page.
89
-
90
- Escalate if:
91
-
92
- - Worker clocked in successfully but the page later asks them to clock in again.
93
- - Duplicate time entries exist.
94
- - Clock-in works for QR but not manual, or vice versa.
95
-
96
- ### Worker Was Accepted But Did Not Receive SMS
97
-
98
- For Ghana workers, acceptance SMS should be sent through Hubtel.
99
-
100
- Check:
101
-
102
- - Worker country is GH.
103
- - Profile phone number is present and valid.
104
- - Phone can normalize to Ghana MSISDN format, for example `23324xxxxxxx`.
105
- - Shift acceptance event happened.
106
-
107
- Escalate if:
108
-
109
- - Phone is valid but no SMS log/campaign result exists.
110
- - Hubtel gateway returns 400, 401, 402, or 500.
111
-
112
- ### Worker Payout Issues
113
-
114
- Check:
115
-
116
- - Country and payout provider:
117
- - Ghana: Hubtel mobile money or bank.
118
- - Nigeria/Kenya/South Africa: Paystack.
119
- - India: Razorpay.
120
- - Other markets: Stripe.
121
- - Worker completed the shift.
122
- - Shift was processed by completion function.
123
- - Worker payout details are saved.
124
-
125
- Do not promise exact payout timing unless the payment status is confirmed.
126
-
127
- Escalate if:
128
-
129
- - Payment captured but payout not created.
130
- - Payout provider rejected account details.
131
- - Worker was paid the wrong amount.
132
- - Any fraud or duplicate-account concern exists.
133
-
134
- ## Worker Profile Support
135
-
136
- Workers can update:
137
-
138
- - Phone.
139
- - City/town.
140
- - Roles.
141
- - Experience.
142
- - Certifications and certificate uploads.
143
- - Availability.
144
- - Payout details.
145
-
146
- Workers should not be able to update legal first/last name after signup without controlled support review, because name changes can weaken identity checks.
147
-
148
- ## Worker Tone Guide
149
-
150
- Use clear, supportive language:
151
-
152
- > I can help with that. First I’ll check your account country, city, and role settings, because those decide which shifts appear for you.
153
-
154
- Avoid:
155
-
156
- > It should work.
157
-
158
- Better:
159
-
1
+ # Worker Support Playbook
2
+
3
+ Use this guide when helping workers sign up, verify identity, find shifts, apply, clock in/out, message venues, update profile details, or get paid.
4
+
5
+ ## Worker Journey
6
+
7
+ 1. Sign up as a worker.
8
+ 2. Complete worker setup: country, city, town, roles, experience, certifications, availability, phone.
9
+ 3. Verify identity.
10
+ 4. Add payout details.
11
+ 5. Browse eligible shifts in their city.
12
+ 6. Apply for shifts matching their roles and location.
13
+ 7. If accepted, coordinate with the venue in Messages.
14
+ 8. Clock in when the shift starts.
15
+ 9. Clock out when the shift ends.
16
+ 10. Wait for completion processing and payout.
17
+
18
+ ## Common Worker Issues
19
+
20
+ ### Worker Cannot See Shifts
21
+
22
+ Check:
23
+
24
+ - Worker country, city, and town are saved.
25
+ - Shift is in the same city as the worker.
26
+ - Worker has selected roles matching available shifts.
27
+ - Shift status is open.
28
+ - Shift is not standby-only unless needed.
29
+ - Worker profile setup is completed.
30
+
31
+ Explain:
32
+
33
+ > ZiloShift shows workers shifts in their own city so they do not travel too far or apply for work they cannot realistically attend. Anyone in the same city should see shifts across towns in that city.
34
+
35
+ Escalate if:
36
+
37
+ - Same-city open shifts exist but do not show.
38
+ - Role filters are wrong after profile updates.
39
+ - The worker sees corrupted text or missing company names.
40
+
41
+ ### Worker Wants To Verify Identity
42
+
43
+ Ghanaian workers use the Ghana Card verification flow. Other countries use Didit verification.
44
+
45
+ Check:
46
+
47
+ - Worker country is correct.
48
+ - Ghanaian workers should see Verify Now and be routed to Ghana verification.
49
+ - Non-Ghanaian workers should be routed through Didit.
50
+
51
+ Do not:
52
+
53
+ - Ask for full ID numbers over chat.
54
+ - Upload documents for the user.
55
+ - Mark identity verified manually without admin review.
56
+
57
+ ### Worker Is Ghanaian And Verification Fails
58
+
59
+ Ask:
60
+
61
+ - Did they scan the front and back of the Ghana Card?
62
+ - Did the liveness camera show their face?
63
+ - Does the name on the account match the name on the card?
64
+ - Did they use a clear, well-lit card image?
65
+
66
+ Explain:
67
+
68
+ > Ghana verification checks the card data and compares it against the worker profile details. If the profile name does not match the card, verification may stop before sending details for Hubtel verification.
69
+
70
+ Escalate if:
71
+
72
+ - Camera is blank.
73
+ - Front/back scan captures but verification never proceeds.
74
+ - Hubtel returns a provider error.
75
+ - User was verified but still sees pending.
76
+
77
+ ### Worker Cannot Clock In
78
+
79
+ Check:
80
+
81
+ - Worker has been accepted for the shift.
82
+ - Shift date/time has started or is close enough to start.
83
+ - QR code clock-in is available from venue, or worker manual clock-in is enabled.
84
+ - There is no existing active time entry.
85
+
86
+ Explain:
87
+
88
+ > Once clocked in, the shift should move to Active and remain active even if the worker leaves and returns to the page.
89
+
90
+ Escalate if:
91
+
92
+ - Worker clocked in successfully but the page later asks them to clock in again.
93
+ - Duplicate time entries exist.
94
+ - Clock-in works for QR but not manual, or vice versa.
95
+
96
+ ### Worker Was Accepted But Did Not Receive SMS
97
+
98
+ For Ghana workers, acceptance SMS should be sent through Hubtel.
99
+
100
+ Check:
101
+
102
+ - Worker country is GH.
103
+ - Profile phone number is present and valid.
104
+ - Phone can normalize to Ghana MSISDN format, for example `23324xxxxxxx`.
105
+ - Shift acceptance event happened.
106
+
107
+ Escalate if:
108
+
109
+ - Phone is valid but no SMS log/campaign result exists.
110
+ - Hubtel gateway returns 400, 401, 402, or 500.
111
+
112
+ ### Worker Payout Issues
113
+
114
+ Check:
115
+
116
+ - Country and payout provider:
117
+ - Ghana: Hubtel mobile money or bank.
118
+ - Nigeria/Kenya/South Africa: Paystack.
119
+ - India: Razorpay.
120
+ - Other markets: Stripe.
121
+ - Worker completed the shift.
122
+ - Shift was processed by completion function.
123
+ - Worker payout details are saved.
124
+
125
+ Do not promise exact payout timing unless the payment status is confirmed.
126
+
127
+ Escalate if:
128
+
129
+ - Payment captured but payout not created.
130
+ - Payout provider rejected account details.
131
+ - Worker was paid the wrong amount.
132
+ - Any fraud or duplicate-account concern exists.
133
+
134
+ ## Worker Profile Support
135
+
136
+ Workers can update:
137
+
138
+ - Phone.
139
+ - City/town.
140
+ - Roles.
141
+ - Experience.
142
+ - Certifications and certificate uploads.
143
+ - Availability.
144
+ - Payout details.
145
+
146
+ Workers should not be able to update legal first/last name after signup without controlled support review, because name changes can weaken identity checks.
147
+
148
+ ## Worker Tone Guide
149
+
150
+ Use clear, supportive language:
151
+
152
+ > I can help with that. First I’ll check your account country, city, and role settings, because those decide which shifts appear for you.
153
+
154
+ Avoid:
155
+
156
+ > It should work.
157
+
158
+ Better:
159
+
160
160
  > If your city and roles are saved correctly, same-city shifts should appear. If they do not, I’ll escalate it as a visibility bug.