@newheap/platform-ai-chat 0.4.0 → 0.6.0
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/fesm2022/newheap-platform-ai-chat-admin.mjs +21 -21
- package/fesm2022/newheap-platform-ai-chat-testing.mjs +323 -18
- package/fesm2022/newheap-platform-ai-chat-testing.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat.mjs +1977 -364
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +92 -9
- package/i18n/nl.json +92 -9
- package/index.d.ts +547 -38
- package/package.json +5 -1
- package/push/nh-assistant-push-worker.js +70 -0
- package/testing/index.d.ts +102 -11
package/i18n/en.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"launcher": {
|
|
4
4
|
"open": "Open assistant",
|
|
5
5
|
"close": "Close assistant",
|
|
6
|
-
"pending-approval": "An action is waiting for your approval"
|
|
6
|
+
"pending-approval": "An action is waiting for your approval",
|
|
7
|
+
"unread": "{{count}} unread conversations",
|
|
8
|
+
"running": "{{count}} conversations working"
|
|
7
9
|
},
|
|
8
10
|
"panel": {
|
|
9
11
|
"title": "Assistant",
|
|
@@ -21,7 +23,9 @@
|
|
|
21
23
|
"dismiss-error": "Dismiss message",
|
|
22
24
|
"usage": "{{inputTokens}} input tokens, {{outputTokens}} output tokens, {{toolCalls}} tool calls",
|
|
23
25
|
"open-preferences": "Your assistant preferences",
|
|
24
|
-
"open-admin": "Assistant administration"
|
|
26
|
+
"open-admin": "Assistant administration",
|
|
27
|
+
"share": "Share conversation",
|
|
28
|
+
"members": "People in this conversation"
|
|
25
29
|
},
|
|
26
30
|
"agent-picker": {
|
|
27
31
|
"label": "Agent",
|
|
@@ -41,7 +45,11 @@
|
|
|
41
45
|
"waiting-for-approval": "Waiting for approval",
|
|
42
46
|
"failed": "Failed",
|
|
43
47
|
"archived": "Archived"
|
|
44
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"leave": "Leave conversation",
|
|
50
|
+
"unread": "Unread",
|
|
51
|
+
"shared": "Shared with {{count}} people",
|
|
52
|
+
"shared-with-you": "Shared with you"
|
|
45
53
|
},
|
|
46
54
|
"thread": {
|
|
47
55
|
"label": "Conversation",
|
|
@@ -49,7 +57,9 @@
|
|
|
49
57
|
"assistant": "Assistant",
|
|
50
58
|
"tool": "Tool",
|
|
51
59
|
"working": "The assistant is working",
|
|
52
|
-
"loading": "Loading conversation"
|
|
60
|
+
"loading": "Loading conversation",
|
|
61
|
+
"elapsed": "{{seconds}}s",
|
|
62
|
+
"participant": "Participant"
|
|
53
63
|
},
|
|
54
64
|
"composer": {
|
|
55
65
|
"label": "Message",
|
|
@@ -61,7 +71,9 @@
|
|
|
61
71
|
"too-long": "The message is too long.",
|
|
62
72
|
"status": {
|
|
63
73
|
"running": "You can keep typing while the assistant works. Sending is temporarily unavailable.",
|
|
64
|
-
"waiting-for-approval": "You can keep typing while an action waits for your approval. Sending is temporarily unavailable."
|
|
74
|
+
"waiting-for-approval": "You can keep typing while an action waits for your approval. Sending is temporarily unavailable.",
|
|
75
|
+
"running-by": "{{name}} is working with the assistant…",
|
|
76
|
+
"waiting-for-approval-by": "Waiting for {{name}} to decide…"
|
|
65
77
|
}
|
|
66
78
|
},
|
|
67
79
|
"tool-call": {
|
|
@@ -80,6 +92,16 @@
|
|
|
80
92
|
"rejected": "Rejected"
|
|
81
93
|
}
|
|
82
94
|
},
|
|
95
|
+
"tool-group": {
|
|
96
|
+
"running": "Calling {{name}}…",
|
|
97
|
+
"awaiting-approval": "Waiting for approval: {{name}}",
|
|
98
|
+
"used-one": "Used 1 tool",
|
|
99
|
+
"used-many": "Used {{count}} tools",
|
|
100
|
+
"progress": "{{finished}} of {{total}} done",
|
|
101
|
+
"failed": "{{count}} failed",
|
|
102
|
+
"show-calls": "Show tool calls",
|
|
103
|
+
"hide-calls": "Hide tool calls"
|
|
104
|
+
},
|
|
83
105
|
"approval": {
|
|
84
106
|
"title": "Approval required",
|
|
85
107
|
"fallback-summary": "Review this action before it runs.",
|
|
@@ -99,7 +121,9 @@
|
|
|
99
121
|
"approved": "Approved",
|
|
100
122
|
"rejected": "Rejected",
|
|
101
123
|
"expired": "Expired"
|
|
102
|
-
}
|
|
124
|
+
},
|
|
125
|
+
"waiting-for": "Waiting for {{name}} to decide. The action uses their permissions.",
|
|
126
|
+
"waiting-for-participant": "Waiting for the participant who started this task to decide."
|
|
103
127
|
},
|
|
104
128
|
"result-codes": {
|
|
105
129
|
"api-bridge-validation": "The request was not valid.",
|
|
@@ -157,10 +181,21 @@
|
|
|
157
181
|
"assistant-tool-call-limit-reached": "The assistant reached the maximum number of steps for one answer. Ask a narrower question.",
|
|
158
182
|
"assistant-tools-disabled": "No further actions were run in this answer because an action was rejected.",
|
|
159
183
|
"assistant-turn-failed": "The assistant could not finish the answer. Try again.",
|
|
160
|
-
"assistant-turn-timeout": "The answer took too long and was stopped. Try again or ask a narrower question."
|
|
184
|
+
"assistant-turn-timeout": "The answer took too long and was stopped. Try again or ask a narrower question.",
|
|
185
|
+
"assistant-owner-required": "Only the owner of this conversation can do this.",
|
|
186
|
+
"assistant-approval-forbidden": "Only the person who started this task can decide about it.",
|
|
187
|
+
"assistant-turn-forbidden": "Only the owner or the person who started this task can stop it.",
|
|
188
|
+
"assistant-share-link-invalid": "This invitation link is no longer valid. Ask the owner for a new one.",
|
|
189
|
+
"assistant-participant-not-found": "This person is not part of the conversation.",
|
|
190
|
+
"assistant-participant-limit-reached": "This conversation has the maximum number of participants.",
|
|
191
|
+
"assistant-directory-unavailable": "Inviting colleagues directly is not available.",
|
|
192
|
+
"assistant-push-unavailable": "Desktop notifications are not available.",
|
|
193
|
+
"assistant-push-subscription-invalid": "This browser could not be registered for notifications.",
|
|
194
|
+
"assistant-conversation-removed": "This conversation is no longer available to you."
|
|
161
195
|
},
|
|
162
196
|
"notices": {
|
|
163
|
-
"no-answer": "The assistant finished without an answer. Try again or rephrase your question."
|
|
197
|
+
"no-answer": "The assistant finished without an answer. Try again or rephrase your question.",
|
|
198
|
+
"conversation-removed": "This conversation is no longer available to you."
|
|
164
199
|
},
|
|
165
200
|
"preferences": {
|
|
166
201
|
"title": "Your preferences",
|
|
@@ -197,7 +232,16 @@
|
|
|
197
232
|
"back": "Back to the conversation",
|
|
198
233
|
"loading": "Loading your preferences",
|
|
199
234
|
"load-failed": "Your preferences could not be loaded.",
|
|
200
|
-
"retry": "Try again"
|
|
235
|
+
"retry": "Try again",
|
|
236
|
+
"notifications-label": "Notifications",
|
|
237
|
+
"notifications": "Desktop notifications",
|
|
238
|
+
"notifications-state": {
|
|
239
|
+
"on": "You get a notification when a longer task finishes or needs your approval while you are away.",
|
|
240
|
+
"prompt": "Your browser asks for permission the next time you send a message.",
|
|
241
|
+
"blocked": "Your browser blocks notifications for this site. Allow them in the browser settings.",
|
|
242
|
+
"off": "Notifications are off for all your devices.",
|
|
243
|
+
"unavailable": "Notifications are not available."
|
|
244
|
+
}
|
|
201
245
|
},
|
|
202
246
|
"admin": {
|
|
203
247
|
"title": "Assistant administration",
|
|
@@ -382,6 +426,45 @@
|
|
|
382
426
|
"excluded": "Not sent with this message: {{page}}",
|
|
383
427
|
"exclude": "Do not send {{page}} with this message",
|
|
384
428
|
"include": "Send {{page}} with this message again"
|
|
429
|
+
},
|
|
430
|
+
"activity": {
|
|
431
|
+
"label": "Other conversations",
|
|
432
|
+
"running": "Working",
|
|
433
|
+
"waiting": "Waiting for approval",
|
|
434
|
+
"unread": "Unread"
|
|
435
|
+
},
|
|
436
|
+
"share": {
|
|
437
|
+
"title": "Share conversation",
|
|
438
|
+
"members-title": "People in this conversation",
|
|
439
|
+
"back": "Back to the conversation",
|
|
440
|
+
"description": "People you share with read the whole conversation, including tool results, and can continue it with their own permissions.",
|
|
441
|
+
"link-title": "Invitation link",
|
|
442
|
+
"link-label": "Invitation link",
|
|
443
|
+
"link-hint": "Anyone in your organization who may use this assistant can join with the link. A new link replaces the old one; people who joined stay.",
|
|
444
|
+
"create": "Create invitation link",
|
|
445
|
+
"copy": "Copy link",
|
|
446
|
+
"copied": "Link copied.",
|
|
447
|
+
"renew": "New link",
|
|
448
|
+
"revoke": "Stop link",
|
|
449
|
+
"invite-title": "Invite a colleague",
|
|
450
|
+
"search-label": "Search colleagues",
|
|
451
|
+
"search-placeholder": "Search by name",
|
|
452
|
+
"searching": "Searching…",
|
|
453
|
+
"no-results": "No colleagues found.",
|
|
454
|
+
"invite": "Invite",
|
|
455
|
+
"invited": "{{name}} was invited.",
|
|
456
|
+
"members": "People",
|
|
457
|
+
"count": "{{count}} of {{max}} invited",
|
|
458
|
+
"not-shared": "Only you take part in this conversation.",
|
|
459
|
+
"unnamed": "Unnamed colleague",
|
|
460
|
+
"you": "(you)",
|
|
461
|
+
"role": {
|
|
462
|
+
"owner": "Owner",
|
|
463
|
+
"participant": "Participant"
|
|
464
|
+
},
|
|
465
|
+
"remove": "Remove {{name}}",
|
|
466
|
+
"leave": "Leave conversation",
|
|
467
|
+
"no-conversation": "Start or open a conversation to share it."
|
|
385
468
|
}
|
|
386
469
|
}
|
|
387
470
|
}
|
package/i18n/nl.json
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"launcher": {
|
|
4
4
|
"open": "Assistent openen",
|
|
5
5
|
"close": "Assistent sluiten",
|
|
6
|
-
"pending-approval": "Er wacht een actie op je goedkeuring"
|
|
6
|
+
"pending-approval": "Er wacht een actie op je goedkeuring",
|
|
7
|
+
"unread": "{{count}} ongelezen gesprekken",
|
|
8
|
+
"running": "{{count}} gesprekken bezig"
|
|
7
9
|
},
|
|
8
10
|
"panel": {
|
|
9
11
|
"title": "Assistent",
|
|
@@ -21,7 +23,9 @@
|
|
|
21
23
|
"dismiss-error": "Melding sluiten",
|
|
22
24
|
"usage": "{{inputTokens}} invoertokens, {{outputTokens}} uitvoertokens, {{toolCalls}} toolaanroepen",
|
|
23
25
|
"open-preferences": "Je assistentvoorkeuren",
|
|
24
|
-
"open-admin": "Beheer van de assistent"
|
|
26
|
+
"open-admin": "Beheer van de assistent",
|
|
27
|
+
"share": "Gesprek delen",
|
|
28
|
+
"members": "Mensen in dit gesprek"
|
|
25
29
|
},
|
|
26
30
|
"agent-picker": {
|
|
27
31
|
"label": "Agent",
|
|
@@ -41,7 +45,11 @@
|
|
|
41
45
|
"waiting-for-approval": "Wacht op goedkeuring",
|
|
42
46
|
"failed": "Mislukt",
|
|
43
47
|
"archived": "Gearchiveerd"
|
|
44
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"leave": "Gesprek verlaten",
|
|
50
|
+
"unread": "Ongelezen",
|
|
51
|
+
"shared": "Gedeeld met {{count}} mensen",
|
|
52
|
+
"shared-with-you": "Met jou gedeeld"
|
|
45
53
|
},
|
|
46
54
|
"thread": {
|
|
47
55
|
"label": "Gesprek",
|
|
@@ -49,7 +57,9 @@
|
|
|
49
57
|
"assistant": "Assistent",
|
|
50
58
|
"tool": "Tool",
|
|
51
59
|
"working": "De assistent is bezig",
|
|
52
|
-
"loading": "Gesprek laden"
|
|
60
|
+
"loading": "Gesprek laden",
|
|
61
|
+
"elapsed": "{{seconds}} s",
|
|
62
|
+
"participant": "Deelnemer"
|
|
53
63
|
},
|
|
54
64
|
"composer": {
|
|
55
65
|
"label": "Bericht",
|
|
@@ -61,7 +71,9 @@
|
|
|
61
71
|
"too-long": "Het bericht is te lang.",
|
|
62
72
|
"status": {
|
|
63
73
|
"running": "Je kunt verder typen terwijl de assistent bezig is. Versturen is tijdelijk niet mogelijk.",
|
|
64
|
-
"waiting-for-approval": "Je kunt verder typen terwijl een actie op je goedkeuring wacht. Versturen is tijdelijk niet mogelijk."
|
|
74
|
+
"waiting-for-approval": "Je kunt verder typen terwijl een actie op je goedkeuring wacht. Versturen is tijdelijk niet mogelijk.",
|
|
75
|
+
"running-by": "{{name}} werkt met de assistent…",
|
|
76
|
+
"waiting-for-approval-by": "Wacht op de beslissing van {{name}}…"
|
|
65
77
|
}
|
|
66
78
|
},
|
|
67
79
|
"tool-call": {
|
|
@@ -80,6 +92,16 @@
|
|
|
80
92
|
"rejected": "Afgewezen"
|
|
81
93
|
}
|
|
82
94
|
},
|
|
95
|
+
"tool-group": {
|
|
96
|
+
"running": "Roept {{name}} aan…",
|
|
97
|
+
"awaiting-approval": "Wacht op goedkeuring: {{name}}",
|
|
98
|
+
"used-one": "1 tool gebruikt",
|
|
99
|
+
"used-many": "{{count}} tools gebruikt",
|
|
100
|
+
"progress": "{{finished}} van {{total}} klaar",
|
|
101
|
+
"failed": "{{count}} mislukt",
|
|
102
|
+
"show-calls": "Tool-aanroepen tonen",
|
|
103
|
+
"hide-calls": "Tool-aanroepen verbergen"
|
|
104
|
+
},
|
|
83
105
|
"approval": {
|
|
84
106
|
"title": "Goedkeuring nodig",
|
|
85
107
|
"fallback-summary": "Controleer deze actie voordat ze wordt uitgevoerd.",
|
|
@@ -99,7 +121,9 @@
|
|
|
99
121
|
"approved": "Goedgekeurd",
|
|
100
122
|
"rejected": "Afgewezen",
|
|
101
123
|
"expired": "Verlopen"
|
|
102
|
-
}
|
|
124
|
+
},
|
|
125
|
+
"waiting-for": "Wacht op de beslissing van {{name}}. De actie gebruikt diens rechten.",
|
|
126
|
+
"waiting-for-participant": "Wacht op de beslissing van de deelnemer die deze taak startte."
|
|
103
127
|
},
|
|
104
128
|
"result-codes": {
|
|
105
129
|
"api-bridge-validation": "Het verzoek was niet geldig.",
|
|
@@ -157,10 +181,21 @@
|
|
|
157
181
|
"assistant-tool-call-limit-reached": "De assistent heeft het maximale aantal stappen voor één antwoord bereikt. Stel een gerichtere vraag.",
|
|
158
182
|
"assistant-tools-disabled": "In dit antwoord zijn geen verdere acties uitgevoerd omdat een actie is afgewezen.",
|
|
159
183
|
"assistant-turn-failed": "De assistent kon het antwoord niet afmaken. Probeer het opnieuw.",
|
|
160
|
-
"assistant-turn-timeout": "Het antwoord duurde te lang en is gestopt. Probeer het opnieuw of stel een gerichtere vraag."
|
|
184
|
+
"assistant-turn-timeout": "Het antwoord duurde te lang en is gestopt. Probeer het opnieuw of stel een gerichtere vraag.",
|
|
185
|
+
"assistant-owner-required": "Alleen de eigenaar van dit gesprek kan dit doen.",
|
|
186
|
+
"assistant-approval-forbidden": "Alleen degene die deze taak startte, kan erover beslissen.",
|
|
187
|
+
"assistant-turn-forbidden": "Alleen de eigenaar of degene die deze taak startte, kan haar stoppen.",
|
|
188
|
+
"assistant-share-link-invalid": "Deze uitnodigingslink is niet meer geldig. Vraag de eigenaar om een nieuwe.",
|
|
189
|
+
"assistant-participant-not-found": "Deze persoon doet niet mee aan het gesprek.",
|
|
190
|
+
"assistant-participant-limit-reached": "Dit gesprek heeft het maximale aantal deelnemers.",
|
|
191
|
+
"assistant-directory-unavailable": "Collega’s direct uitnodigen is niet beschikbaar.",
|
|
192
|
+
"assistant-push-unavailable": "Bureaubladmeldingen zijn niet beschikbaar.",
|
|
193
|
+
"assistant-push-subscription-invalid": "Deze browser kon niet worden aangemeld voor meldingen.",
|
|
194
|
+
"assistant-conversation-removed": "Dit gesprek is niet meer voor je beschikbaar."
|
|
161
195
|
},
|
|
162
196
|
"notices": {
|
|
163
|
-
"no-answer": "De assistent is klaar zonder antwoord. Probeer het opnieuw of stel je vraag anders."
|
|
197
|
+
"no-answer": "De assistent is klaar zonder antwoord. Probeer het opnieuw of stel je vraag anders.",
|
|
198
|
+
"conversation-removed": "Dit gesprek is niet meer voor je beschikbaar."
|
|
164
199
|
},
|
|
165
200
|
"preferences": {
|
|
166
201
|
"title": "Je voorkeuren",
|
|
@@ -197,7 +232,16 @@
|
|
|
197
232
|
"back": "Terug naar het gesprek",
|
|
198
233
|
"loading": "Je voorkeuren laden",
|
|
199
234
|
"load-failed": "Je voorkeuren konden niet worden geladen.",
|
|
200
|
-
"retry": "Opnieuw proberen"
|
|
235
|
+
"retry": "Opnieuw proberen",
|
|
236
|
+
"notifications-label": "Meldingen",
|
|
237
|
+
"notifications": "Bureaubladmeldingen",
|
|
238
|
+
"notifications-state": {
|
|
239
|
+
"on": "Je krijgt een melding als een langere taak klaar is of je goedkeuring nodig heeft terwijl je weg bent.",
|
|
240
|
+
"prompt": "Je browser vraagt om toestemming wanneer je het volgende bericht verstuurt.",
|
|
241
|
+
"blocked": "Je browser blokkeert meldingen voor deze site. Sta ze toe in de browserinstellingen.",
|
|
242
|
+
"off": "Meldingen staan uit op al je apparaten.",
|
|
243
|
+
"unavailable": "Meldingen zijn niet beschikbaar."
|
|
244
|
+
}
|
|
201
245
|
},
|
|
202
246
|
"admin": {
|
|
203
247
|
"title": "Beheer van de assistent",
|
|
@@ -382,6 +426,45 @@
|
|
|
382
426
|
"excluded": "Niet meegestuurd bij dit bericht: {{page}}",
|
|
383
427
|
"exclude": "{{page}} niet meesturen met dit bericht",
|
|
384
428
|
"include": "{{page}} toch meesturen met dit bericht"
|
|
429
|
+
},
|
|
430
|
+
"activity": {
|
|
431
|
+
"label": "Andere gesprekken",
|
|
432
|
+
"running": "Bezig",
|
|
433
|
+
"waiting": "Wacht op goedkeuring",
|
|
434
|
+
"unread": "Ongelezen"
|
|
435
|
+
},
|
|
436
|
+
"share": {
|
|
437
|
+
"title": "Gesprek delen",
|
|
438
|
+
"members-title": "Mensen in dit gesprek",
|
|
439
|
+
"back": "Terug naar het gesprek",
|
|
440
|
+
"description": "Mensen met wie je deelt lezen het hele gesprek, ook de resultaten van tools, en kunnen het voortzetten met hun eigen rechten.",
|
|
441
|
+
"link-title": "Uitnodigingslink",
|
|
442
|
+
"link-label": "Uitnodigingslink",
|
|
443
|
+
"link-hint": "Iedereen in je organisatie die deze assistent mag gebruiken, kan met de link meedoen. Een nieuwe link vervangt de oude; wie al meedoet, blijft.",
|
|
444
|
+
"create": "Uitnodigingslink maken",
|
|
445
|
+
"copy": "Link kopiëren",
|
|
446
|
+
"copied": "Link gekopieerd.",
|
|
447
|
+
"renew": "Nieuwe link",
|
|
448
|
+
"revoke": "Link stoppen",
|
|
449
|
+
"invite-title": "Collega uitnodigen",
|
|
450
|
+
"search-label": "Collega’s zoeken",
|
|
451
|
+
"search-placeholder": "Zoek op naam",
|
|
452
|
+
"searching": "Zoeken…",
|
|
453
|
+
"no-results": "Geen collega’s gevonden.",
|
|
454
|
+
"invite": "Uitnodigen",
|
|
455
|
+
"invited": "{{name}} is uitgenodigd.",
|
|
456
|
+
"members": "Mensen",
|
|
457
|
+
"count": "{{count}} van {{max}} uitgenodigd",
|
|
458
|
+
"not-shared": "Alleen jij doet mee aan dit gesprek.",
|
|
459
|
+
"unnamed": "Collega zonder naam",
|
|
460
|
+
"you": "(jij)",
|
|
461
|
+
"role": {
|
|
462
|
+
"owner": "Eigenaar",
|
|
463
|
+
"participant": "Deelnemer"
|
|
464
|
+
},
|
|
465
|
+
"remove": "{{name}} verwijderen",
|
|
466
|
+
"leave": "Gesprek verlaten",
|
|
467
|
+
"no-conversation": "Start of open een gesprek om het te delen."
|
|
385
468
|
}
|
|
386
469
|
}
|
|
387
470
|
}
|