@newheap/platform-ai-chat 0.16.0 → 0.17.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.
@@ -575,6 +575,7 @@ var en = {
575
575
  "assistant-service-account-not-found": "No account that may sign in exists with this id.",
576
576
  "assistant-skill-in-code": "This skill is part of the code and cannot change here.",
577
577
  "assistant-trigger-in-code": "This trigger is part of the code and cannot change here.",
578
+ "assistant-trigger-filter-not-found": "The event has no filter with this name. Choose from the filters the event offers.",
578
579
  "assistant-skill-in-use": "A trigger still starts this skill. Change or remove the trigger first.",
579
580
  "assistant-configuration-limit": "This agent already has as many skills or triggers as allowed.",
580
581
  "assistant-run-settings-in-code": "This agent is part of the code; its runs are configured there.",
@@ -1319,6 +1320,7 @@ var en = {
1319
1320
  "unknown-policy": "the approval policy no longer exists.",
1320
1321
  "unknown-rule-handler": "the rules no longer exist.",
1321
1322
  "unknown-event": "the event no longer exists.",
1323
+ "unknown-filter": "a filter of the event no longer exists, so the trigger starts nothing until you remove it.",
1322
1324
  "unknown-subject-set": "the set of subjects no longer exists.",
1323
1325
  "unknown-skill": "the skill no longer exists.",
1324
1326
  "invalid-schedule": "the schedule or its time zone is not valid.",
@@ -1551,6 +1553,13 @@ var en = {
1551
1553
  "source-schedule-hint": "At fixed times, for every subject in a set.",
1552
1554
  "source-schedule-application-hint": "At fixed times, for the whole application or for every object in a set.",
1553
1555
  "debounce-hint": "Waits this long for more events about the same subject and handles them in one run.",
1556
+ filters: {
1557
+ title: "Filters",
1558
+ hint: "Skip events this trigger should not start the agent on, such as changes the agent made itself. Every filter you select must let an event through.",
1559
+ empty: "This event offers no filters.",
1560
+ missing: "The event no longer offers this filter, so the trigger starts nothing. Clear it to save.",
1561
+ applied: "Filters: {{filters}}"
1562
+ },
1554
1563
  "subject-set-hint": "The projects or customers the schedule handles each time.",
1555
1564
  "message-hint": "What the agent reads as its task each time.",
1556
1565
  examples: "Examples",
@@ -1941,7 +1950,18 @@ var en = {
1941
1950
  previous: "Previous",
1942
1951
  next: "Next",
1943
1952
  page: "Page {{page}} of {{pages}}",
1944
- pages: "Pages"
1953
+ pages: "Pages",
1954
+ "new": "New",
1955
+ "new-label": "New since your last visit",
1956
+ "last-visit": "You last looked here on {{date}}. What came since is marked new.",
1957
+ "first-visit": "Everything here is new for you.",
1958
+ "group-loaded": "{{loaded}} of {{total}} shown",
1959
+ "select-group": "Select the {{count}} shown",
1960
+ "select-group-label": "Select the {{count}} proposals of {{name}} shown on this page",
1961
+ "group-continued": "Continued from the previous page.",
1962
+ "group-continues": "More proposals of this group are on the next page.",
1963
+ run: "One run of {{agent}}, {{date}}",
1964
+ "no-run": "Proposed in a conversation"
1945
1965
  },
1946
1966
  proposal: {
1947
1967
  approve: "Approve",
@@ -2593,6 +2613,7 @@ var nl = {
2593
2613
  "assistant-service-account-not-found": "Er bestaat geen account met deze id dat mag inloggen.",
2594
2614
  "assistant-skill-in-code": "Deze vaardigheid staat in de code en kan hier niet veranderen.",
2595
2615
  "assistant-trigger-in-code": "Deze trigger staat in de code en kan hier niet veranderen.",
2616
+ "assistant-trigger-filter-not-found": "De gebeurtenis heeft geen filter met deze naam. Kies uit de filters die de gebeurtenis biedt.",
2596
2617
  "assistant-skill-in-use": "Een trigger start deze vaardigheid nog. Pas de trigger eerst aan of verwijder hem.",
2597
2618
  "assistant-configuration-limit": "Deze agent heeft al zoveel vaardigheden of triggers als is toegestaan.",
2598
2619
  "assistant-run-settings-in-code": "Deze agent staat in de code; daar is ingesteld hoe hij werkt.",
@@ -3337,6 +3358,7 @@ var nl = {
3337
3358
  "unknown-policy": "het goedkeuringsbeleid bestaat niet meer.",
3338
3359
  "unknown-rule-handler": "de regels bestaan niet meer.",
3339
3360
  "unknown-event": "de gebeurtenis bestaat niet meer.",
3361
+ "unknown-filter": "een filter van de gebeurtenis bestaat niet meer, dus de trigger start niets totdat je het verwijdert.",
3340
3362
  "unknown-subject-set": "de set onderwerpen bestaat niet meer.",
3341
3363
  "unknown-skill": "de vaardigheid bestaat niet meer.",
3342
3364
  "invalid-schedule": "het schema of de tijdzone is niet geldig.",
@@ -3569,6 +3591,13 @@ var nl = {
3569
3591
  "source-schedule-hint": "Op vaste momenten, voor elk onderwerp in een verzameling.",
3570
3592
  "source-schedule-application-hint": "Op vaste momenten, voor de hele applicatie of voor elk object in een verzameling.",
3571
3593
  "debounce-hint": "Wacht zo lang op meer gebeurtenissen over hetzelfde onderwerp en behandelt ze in één run.",
3594
+ filters: {
3595
+ title: "Filters",
3596
+ hint: "Sla gebeurtenissen over waarop deze trigger de agent niet moet starten, zoals wijzigingen die de agent zelf deed. Elk filter dat je kiest moet een gebeurtenis doorlaten.",
3597
+ empty: "Deze gebeurtenis biedt geen filters.",
3598
+ missing: "De gebeurtenis biedt dit filter niet meer, dus de trigger start niets. Haal het weg om op te slaan.",
3599
+ applied: "Filters: {{filters}}"
3600
+ },
3572
3601
  "subject-set-hint": "De projecten of klanten die het schema telkens behandelt.",
3573
3602
  "message-hint": "Wat de agent telkens als opdracht leest.",
3574
3603
  examples: "Voorbeelden",
@@ -3959,7 +3988,18 @@ var nl = {
3959
3988
  previous: "Vorige",
3960
3989
  next: "Volgende",
3961
3990
  page: "Pagina {{page}} van {{pages}}",
3962
- pages: "Pagina's"
3991
+ pages: "Pagina's",
3992
+ "new": "Nieuw",
3993
+ "new-label": "Nieuw sinds je laatste bezoek",
3994
+ "last-visit": "Je keek hier voor het laatst op {{date}}. Wat sindsdien kwam, staat als nieuw gemarkeerd.",
3995
+ "first-visit": "Alles hier is nieuw voor je.",
3996
+ "group-loaded": "{{loaded}} van {{total}} getoond",
3997
+ "select-group": "De {{count}} getoonde selecteren",
3998
+ "select-group-label": "De {{count}} voorstellen van {{name}} op deze pagina selecteren",
3999
+ "group-continued": "Vervolg van de vorige pagina.",
4000
+ "group-continues": "Meer voorstellen van deze groep staan op de volgende pagina.",
4001
+ run: "Eén run van {{agent}}, {{date}}",
4002
+ "no-run": "Voorgesteld in een gesprek"
3963
4003
  },
3964
4004
  proposal: {
3965
4005
  approve: "Goedkeuren",
@@ -5399,7 +5439,10 @@ class NhAssistantAgentRunApiService {
5399
5439
  retryRun(runId, mode) {
5400
5440
  return this.transport.json('POST', `runs/${encodeURIComponent(runId)}/retry`, { mode });
5401
5441
  }
5402
- /** Pending proposals the caller may decide, sorted by expiry. */
5442
+ /**
5443
+ * Pending proposals the caller may decide, sorted by expiry, or with `grouped` by parent and subject,
5444
+ * with what is new since the caller's last visit (`visitInbox`).
5445
+ */
5403
5446
  getInbox(filter = {}) {
5404
5447
  const query = new URLSearchParams();
5405
5448
  for (const [key, value] of Object.entries(filter)) {
@@ -5410,6 +5453,15 @@ class NhAssistantAgentRunApiService {
5410
5453
  const suffix = query.toString();
5411
5454
  return this.transport.json('GET', suffix ? `approvals/inbox?${suffix}` : 'approvals/inbox');
5412
5455
  }
5456
+ /**
5457
+ * Records that the caller looked at the inbox now, so it marks the proposals made after this visit
5458
+ * as new. `divisionId` records the visit of the inbox of one division the caller may work in;
5459
+ * otherwise of the whole inbox. Fails with `assistant-subject-not-found` for a division the caller
5460
+ * may not work in.
5461
+ */
5462
+ visitInbox(divisionId) {
5463
+ return this.transport.json('POST', withQuery('approvals/inbox/visit', { divisionId }));
5464
+ }
5413
5465
  /**
5414
5466
  * Decides one proposal, bound to the proposal hash the person saw; the server checks the approval
5415
5467
  * policy and the tool's approve policy again. Accepts an inbox proposal or the approval part of an
@@ -9132,6 +9184,7 @@ const NH_ASSISTANT_SERVER_ERROR_CODES = [
9132
9184
  'assistant-service-account-not-found',
9133
9185
  'assistant-skill-in-code',
9134
9186
  'assistant-trigger-in-code',
9187
+ 'assistant-trigger-filter-not-found',
9135
9188
  'assistant-skill-in-use',
9136
9189
  'assistant-configuration-limit',
9137
9190
  'assistant-run-settings-in-code',