@newheap/platform-ai-chat 0.5.0 → 0.7.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/README.md +20 -2
- 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 +1863 -374
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +84 -9
- package/i18n/nl.json +84 -9
- package/index.d.ts +522 -37
- 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,12 @@
|
|
|
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
|
+
"add-members": "Add people to the conversation",
|
|
29
|
+
"notifications-on": "Turn notifications on",
|
|
30
|
+
"notifications-off": "Turn notifications off",
|
|
31
|
+
"members": "People in this conversation"
|
|
25
32
|
},
|
|
26
33
|
"agent-picker": {
|
|
27
34
|
"label": "Agent",
|
|
@@ -41,7 +48,11 @@
|
|
|
41
48
|
"waiting-for-approval": "Waiting for approval",
|
|
42
49
|
"failed": "Failed",
|
|
43
50
|
"archived": "Archived"
|
|
44
|
-
}
|
|
51
|
+
},
|
|
52
|
+
"leave": "Leave conversation",
|
|
53
|
+
"unread": "Unread",
|
|
54
|
+
"shared": "Shared with {{count}} people",
|
|
55
|
+
"shared-with-you": "Shared with you"
|
|
45
56
|
},
|
|
46
57
|
"thread": {
|
|
47
58
|
"label": "Conversation",
|
|
@@ -50,7 +61,8 @@
|
|
|
50
61
|
"tool": "Tool",
|
|
51
62
|
"working": "The assistant is working",
|
|
52
63
|
"loading": "Loading conversation",
|
|
53
|
-
"elapsed": "{{seconds}}s"
|
|
64
|
+
"elapsed": "{{seconds}}s",
|
|
65
|
+
"participant": "Participant"
|
|
54
66
|
},
|
|
55
67
|
"composer": {
|
|
56
68
|
"label": "Message",
|
|
@@ -62,7 +74,9 @@
|
|
|
62
74
|
"too-long": "The message is too long.",
|
|
63
75
|
"status": {
|
|
64
76
|
"running": "You can keep typing while the assistant works. Sending is temporarily unavailable.",
|
|
65
|
-
"waiting-for-approval": "You can keep typing while an action waits for your approval. Sending is temporarily unavailable."
|
|
77
|
+
"waiting-for-approval": "You can keep typing while an action waits for your approval. Sending is temporarily unavailable.",
|
|
78
|
+
"running-by": "{{name}} is working with the assistant…",
|
|
79
|
+
"waiting-for-approval-by": "Waiting for {{name}} to decide…"
|
|
66
80
|
}
|
|
67
81
|
},
|
|
68
82
|
"tool-call": {
|
|
@@ -110,7 +124,9 @@
|
|
|
110
124
|
"approved": "Approved",
|
|
111
125
|
"rejected": "Rejected",
|
|
112
126
|
"expired": "Expired"
|
|
113
|
-
}
|
|
127
|
+
},
|
|
128
|
+
"waiting-for": "Waiting for {{name}} to decide. The action uses their permissions.",
|
|
129
|
+
"waiting-for-participant": "Waiting for the participant who started this task to decide."
|
|
114
130
|
},
|
|
115
131
|
"result-codes": {
|
|
116
132
|
"api-bridge-validation": "The request was not valid.",
|
|
@@ -168,10 +184,21 @@
|
|
|
168
184
|
"assistant-tool-call-limit-reached": "The assistant reached the maximum number of steps for one answer. Ask a narrower question.",
|
|
169
185
|
"assistant-tools-disabled": "No further actions were run in this answer because an action was rejected.",
|
|
170
186
|
"assistant-turn-failed": "The assistant could not finish the answer. Try again.",
|
|
171
|
-
"assistant-turn-timeout": "The answer took too long and was stopped. Try again or ask a narrower question."
|
|
187
|
+
"assistant-turn-timeout": "The answer took too long and was stopped. Try again or ask a narrower question.",
|
|
188
|
+
"assistant-owner-required": "Only the owner of this conversation can do this.",
|
|
189
|
+
"assistant-approval-forbidden": "Only the person who started this task can decide about it.",
|
|
190
|
+
"assistant-turn-forbidden": "Only the owner or the person who started this task can stop it.",
|
|
191
|
+
"assistant-share-link-invalid": "This invitation link is no longer valid. Ask the owner for a new one.",
|
|
192
|
+
"assistant-participant-not-found": "This person is not part of the conversation.",
|
|
193
|
+
"assistant-participant-limit-reached": "This conversation has the maximum number of participants.",
|
|
194
|
+
"assistant-directory-unavailable": "Inviting colleagues directly is not available.",
|
|
195
|
+
"assistant-push-unavailable": "Desktop notifications are not available.",
|
|
196
|
+
"assistant-push-subscription-invalid": "This browser could not be registered for notifications.",
|
|
197
|
+
"assistant-conversation-removed": "This conversation is no longer available to you."
|
|
172
198
|
},
|
|
173
199
|
"notices": {
|
|
174
|
-
"no-answer": "The assistant finished without an answer. Try again or rephrase your question."
|
|
200
|
+
"no-answer": "The assistant finished without an answer. Try again or rephrase your question.",
|
|
201
|
+
"conversation-removed": "This conversation is no longer available to you."
|
|
175
202
|
},
|
|
176
203
|
"preferences": {
|
|
177
204
|
"title": "Your preferences",
|
|
@@ -208,7 +235,16 @@
|
|
|
208
235
|
"back": "Back to the conversation",
|
|
209
236
|
"loading": "Loading your preferences",
|
|
210
237
|
"load-failed": "Your preferences could not be loaded.",
|
|
211
|
-
"retry": "Try again"
|
|
238
|
+
"retry": "Try again",
|
|
239
|
+
"notifications-label": "Notifications",
|
|
240
|
+
"notifications": "Desktop notifications",
|
|
241
|
+
"notifications-state": {
|
|
242
|
+
"on": "You get a notification when a longer task finishes or needs your approval while you are away.",
|
|
243
|
+
"prompt": "Your browser asks for permission the next time you send a message.",
|
|
244
|
+
"blocked": "Your browser blocks notifications for this site. Allow them in the browser settings.",
|
|
245
|
+
"off": "Notifications are off for all your devices.",
|
|
246
|
+
"unavailable": "Notifications are not available."
|
|
247
|
+
}
|
|
212
248
|
},
|
|
213
249
|
"admin": {
|
|
214
250
|
"title": "Assistant administration",
|
|
@@ -393,6 +429,45 @@
|
|
|
393
429
|
"excluded": "Not sent with this message: {{page}}",
|
|
394
430
|
"exclude": "Do not send {{page}} with this message",
|
|
395
431
|
"include": "Send {{page}} with this message again"
|
|
432
|
+
},
|
|
433
|
+
"activity": {
|
|
434
|
+
"label": "Other conversations",
|
|
435
|
+
"running": "Working",
|
|
436
|
+
"waiting": "Waiting for approval",
|
|
437
|
+
"unread": "Unread"
|
|
438
|
+
},
|
|
439
|
+
"share": {
|
|
440
|
+
"title": "Share conversation",
|
|
441
|
+
"members-title": "People in this conversation",
|
|
442
|
+
"back": "Back to the conversation",
|
|
443
|
+
"description": "People you share with read the whole conversation, including tool results, and can continue it with their own permissions.",
|
|
444
|
+
"link-title": "Invitation link",
|
|
445
|
+
"link-label": "Invitation link",
|
|
446
|
+
"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.",
|
|
447
|
+
"create": "Create invitation link",
|
|
448
|
+
"copy": "Copy link",
|
|
449
|
+
"copied": "Link copied.",
|
|
450
|
+
"renew": "New link",
|
|
451
|
+
"revoke": "Stop link",
|
|
452
|
+
"invite-title": "Invite a colleague",
|
|
453
|
+
"search-label": "Search colleagues",
|
|
454
|
+
"search-placeholder": "Search by name",
|
|
455
|
+
"searching": "Searching…",
|
|
456
|
+
"no-results": "No colleagues found.",
|
|
457
|
+
"invite": "Invite",
|
|
458
|
+
"invited": "{{name}} was invited.",
|
|
459
|
+
"members": "People",
|
|
460
|
+
"count": "{{count}} of {{max}} invited",
|
|
461
|
+
"not-shared": "Only you take part in this conversation.",
|
|
462
|
+
"unnamed": "Unnamed colleague",
|
|
463
|
+
"you": "(you)",
|
|
464
|
+
"role": {
|
|
465
|
+
"owner": "Owner",
|
|
466
|
+
"participant": "Participant"
|
|
467
|
+
},
|
|
468
|
+
"remove": "Remove {{name}}",
|
|
469
|
+
"leave": "Leave conversation",
|
|
470
|
+
"no-conversation": "Start or open a conversation to share it."
|
|
396
471
|
}
|
|
397
472
|
}
|
|
398
473
|
}
|
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,12 @@
|
|
|
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
|
+
"add-members": "Mensen toevoegen aan het gesprek",
|
|
29
|
+
"notifications-on": "Notificaties aanzetten",
|
|
30
|
+
"notifications-off": "Notificaties uitzetten",
|
|
31
|
+
"members": "Mensen in dit gesprek"
|
|
25
32
|
},
|
|
26
33
|
"agent-picker": {
|
|
27
34
|
"label": "Agent",
|
|
@@ -41,7 +48,11 @@
|
|
|
41
48
|
"waiting-for-approval": "Wacht op goedkeuring",
|
|
42
49
|
"failed": "Mislukt",
|
|
43
50
|
"archived": "Gearchiveerd"
|
|
44
|
-
}
|
|
51
|
+
},
|
|
52
|
+
"leave": "Gesprek verlaten",
|
|
53
|
+
"unread": "Ongelezen",
|
|
54
|
+
"shared": "Gedeeld met {{count}} mensen",
|
|
55
|
+
"shared-with-you": "Met jou gedeeld"
|
|
45
56
|
},
|
|
46
57
|
"thread": {
|
|
47
58
|
"label": "Gesprek",
|
|
@@ -50,7 +61,8 @@
|
|
|
50
61
|
"tool": "Tool",
|
|
51
62
|
"working": "De assistent is bezig",
|
|
52
63
|
"loading": "Gesprek laden",
|
|
53
|
-
"elapsed": "{{seconds}} s"
|
|
64
|
+
"elapsed": "{{seconds}} s",
|
|
65
|
+
"participant": "Deelnemer"
|
|
54
66
|
},
|
|
55
67
|
"composer": {
|
|
56
68
|
"label": "Bericht",
|
|
@@ -62,7 +74,9 @@
|
|
|
62
74
|
"too-long": "Het bericht is te lang.",
|
|
63
75
|
"status": {
|
|
64
76
|
"running": "Je kunt verder typen terwijl de assistent bezig is. Versturen is tijdelijk niet mogelijk.",
|
|
65
|
-
"waiting-for-approval": "Je kunt verder typen terwijl een actie op je goedkeuring wacht. Versturen is tijdelijk niet mogelijk."
|
|
77
|
+
"waiting-for-approval": "Je kunt verder typen terwijl een actie op je goedkeuring wacht. Versturen is tijdelijk niet mogelijk.",
|
|
78
|
+
"running-by": "{{name}} werkt met de assistent…",
|
|
79
|
+
"waiting-for-approval-by": "Wacht op de beslissing van {{name}}…"
|
|
66
80
|
}
|
|
67
81
|
},
|
|
68
82
|
"tool-call": {
|
|
@@ -110,7 +124,9 @@
|
|
|
110
124
|
"approved": "Goedgekeurd",
|
|
111
125
|
"rejected": "Afgewezen",
|
|
112
126
|
"expired": "Verlopen"
|
|
113
|
-
}
|
|
127
|
+
},
|
|
128
|
+
"waiting-for": "Wacht op de beslissing van {{name}}. De actie gebruikt diens rechten.",
|
|
129
|
+
"waiting-for-participant": "Wacht op de beslissing van de deelnemer die deze taak startte."
|
|
114
130
|
},
|
|
115
131
|
"result-codes": {
|
|
116
132
|
"api-bridge-validation": "Het verzoek was niet geldig.",
|
|
@@ -168,10 +184,21 @@
|
|
|
168
184
|
"assistant-tool-call-limit-reached": "De assistent heeft het maximale aantal stappen voor één antwoord bereikt. Stel een gerichtere vraag.",
|
|
169
185
|
"assistant-tools-disabled": "In dit antwoord zijn geen verdere acties uitgevoerd omdat een actie is afgewezen.",
|
|
170
186
|
"assistant-turn-failed": "De assistent kon het antwoord niet afmaken. Probeer het opnieuw.",
|
|
171
|
-
"assistant-turn-timeout": "Het antwoord duurde te lang en is gestopt. Probeer het opnieuw of stel een gerichtere vraag."
|
|
187
|
+
"assistant-turn-timeout": "Het antwoord duurde te lang en is gestopt. Probeer het opnieuw of stel een gerichtere vraag.",
|
|
188
|
+
"assistant-owner-required": "Alleen de eigenaar van dit gesprek kan dit doen.",
|
|
189
|
+
"assistant-approval-forbidden": "Alleen degene die deze taak startte, kan erover beslissen.",
|
|
190
|
+
"assistant-turn-forbidden": "Alleen de eigenaar of degene die deze taak startte, kan haar stoppen.",
|
|
191
|
+
"assistant-share-link-invalid": "Deze uitnodigingslink is niet meer geldig. Vraag de eigenaar om een nieuwe.",
|
|
192
|
+
"assistant-participant-not-found": "Deze persoon doet niet mee aan het gesprek.",
|
|
193
|
+
"assistant-participant-limit-reached": "Dit gesprek heeft het maximale aantal deelnemers.",
|
|
194
|
+
"assistant-directory-unavailable": "Collega’s direct uitnodigen is niet beschikbaar.",
|
|
195
|
+
"assistant-push-unavailable": "Bureaubladmeldingen zijn niet beschikbaar.",
|
|
196
|
+
"assistant-push-subscription-invalid": "Deze browser kon niet worden aangemeld voor meldingen.",
|
|
197
|
+
"assistant-conversation-removed": "Dit gesprek is niet meer voor je beschikbaar."
|
|
172
198
|
},
|
|
173
199
|
"notices": {
|
|
174
|
-
"no-answer": "De assistent is klaar zonder antwoord. Probeer het opnieuw of stel je vraag anders."
|
|
200
|
+
"no-answer": "De assistent is klaar zonder antwoord. Probeer het opnieuw of stel je vraag anders.",
|
|
201
|
+
"conversation-removed": "Dit gesprek is niet meer voor je beschikbaar."
|
|
175
202
|
},
|
|
176
203
|
"preferences": {
|
|
177
204
|
"title": "Je voorkeuren",
|
|
@@ -208,7 +235,16 @@
|
|
|
208
235
|
"back": "Terug naar het gesprek",
|
|
209
236
|
"loading": "Je voorkeuren laden",
|
|
210
237
|
"load-failed": "Je voorkeuren konden niet worden geladen.",
|
|
211
|
-
"retry": "Opnieuw proberen"
|
|
238
|
+
"retry": "Opnieuw proberen",
|
|
239
|
+
"notifications-label": "Meldingen",
|
|
240
|
+
"notifications": "Bureaubladmeldingen",
|
|
241
|
+
"notifications-state": {
|
|
242
|
+
"on": "Je krijgt een melding als een langere taak klaar is of je goedkeuring nodig heeft terwijl je weg bent.",
|
|
243
|
+
"prompt": "Je browser vraagt om toestemming wanneer je het volgende bericht verstuurt.",
|
|
244
|
+
"blocked": "Je browser blokkeert meldingen voor deze site. Sta ze toe in de browserinstellingen.",
|
|
245
|
+
"off": "Meldingen staan uit op al je apparaten.",
|
|
246
|
+
"unavailable": "Meldingen zijn niet beschikbaar."
|
|
247
|
+
}
|
|
212
248
|
},
|
|
213
249
|
"admin": {
|
|
214
250
|
"title": "Beheer van de assistent",
|
|
@@ -393,6 +429,45 @@
|
|
|
393
429
|
"excluded": "Niet meegestuurd bij dit bericht: {{page}}",
|
|
394
430
|
"exclude": "{{page}} niet meesturen met dit bericht",
|
|
395
431
|
"include": "{{page}} toch meesturen met dit bericht"
|
|
432
|
+
},
|
|
433
|
+
"activity": {
|
|
434
|
+
"label": "Andere gesprekken",
|
|
435
|
+
"running": "Bezig",
|
|
436
|
+
"waiting": "Wacht op goedkeuring",
|
|
437
|
+
"unread": "Ongelezen"
|
|
438
|
+
},
|
|
439
|
+
"share": {
|
|
440
|
+
"title": "Gesprek delen",
|
|
441
|
+
"members-title": "Mensen in dit gesprek",
|
|
442
|
+
"back": "Terug naar het gesprek",
|
|
443
|
+
"description": "Mensen met wie je deelt lezen het hele gesprek, ook de resultaten van tools, en kunnen het voortzetten met hun eigen rechten.",
|
|
444
|
+
"link-title": "Uitnodigingslink",
|
|
445
|
+
"link-label": "Uitnodigingslink",
|
|
446
|
+
"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.",
|
|
447
|
+
"create": "Uitnodigingslink maken",
|
|
448
|
+
"copy": "Link kopiëren",
|
|
449
|
+
"copied": "Link gekopieerd.",
|
|
450
|
+
"renew": "Nieuwe link",
|
|
451
|
+
"revoke": "Link stoppen",
|
|
452
|
+
"invite-title": "Collega uitnodigen",
|
|
453
|
+
"search-label": "Collega’s zoeken",
|
|
454
|
+
"search-placeholder": "Zoek op naam",
|
|
455
|
+
"searching": "Zoeken…",
|
|
456
|
+
"no-results": "Geen collega’s gevonden.",
|
|
457
|
+
"invite": "Uitnodigen",
|
|
458
|
+
"invited": "{{name}} is uitgenodigd.",
|
|
459
|
+
"members": "Mensen",
|
|
460
|
+
"count": "{{count}} van {{max}} uitgenodigd",
|
|
461
|
+
"not-shared": "Alleen jij doet mee aan dit gesprek.",
|
|
462
|
+
"unnamed": "Collega zonder naam",
|
|
463
|
+
"you": "(jij)",
|
|
464
|
+
"role": {
|
|
465
|
+
"owner": "Eigenaar",
|
|
466
|
+
"participant": "Deelnemer"
|
|
467
|
+
},
|
|
468
|
+
"remove": "{{name}} verwijderen",
|
|
469
|
+
"leave": "Gesprek verlaten",
|
|
470
|
+
"no-conversation": "Start of open een gesprek om het te delen."
|
|
396
471
|
}
|
|
397
472
|
}
|
|
398
473
|
}
|