@grafana/assistant 0.1.35 → 0.1.36

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 (64) hide show
  1. package/README.md +110 -0
  2. package/dist/analyticsEvents.d.ts +33 -0
  3. package/dist/analyticsEvents.d.ts.map +1 -0
  4. package/dist/components/button/OpenAssistantButton.d.ts +6 -1
  5. package/dist/components/button/OpenAssistantButton.d.ts.map +1 -1
  6. package/dist/components/grots/GrotAvatar.d.ts +31 -0
  7. package/dist/components/grots/GrotAvatar.d.ts.map +1 -0
  8. package/dist/components/grots/GrotTopicView.d.ts +19 -0
  9. package/dist/components/grots/GrotTopicView.d.ts.map +1 -0
  10. package/dist/components/grots/OpenGrotButton.d.ts +23 -0
  11. package/dist/components/grots/OpenGrotButton.d.ts.map +1 -0
  12. package/dist/components/index.d.ts +3 -0
  13. package/dist/components/index.d.ts.map +1 -1
  14. package/dist/esm/analyticsEvents.js +31 -0
  15. package/dist/esm/analyticsEvents.js.map +1 -0
  16. package/dist/esm/components/button/OpenAssistantButton.js +11 -10
  17. package/dist/esm/components/button/OpenAssistantButton.js.map +1 -1
  18. package/dist/esm/components/button/OpenAssistantSplitButton.js +2 -2
  19. package/dist/esm/components/button/OpenAssistantSplitButton.js.map +1 -1
  20. package/dist/esm/components/grots/GrotAvatar.js +37 -0
  21. package/dist/esm/components/grots/GrotAvatar.js.map +1 -0
  22. package/dist/esm/components/grots/GrotTopicView.js +25 -0
  23. package/dist/esm/components/grots/GrotTopicView.js.map +1 -0
  24. package/dist/esm/components/grots/OpenGrotButton.js +36 -0
  25. package/dist/esm/components/grots/OpenGrotButton.js.map +1 -0
  26. package/dist/esm/components/index.js +3 -0
  27. package/dist/esm/components/index.js.map +1 -1
  28. package/dist/esm/components/prompt-card/AssistantPromptCard.js +2 -2
  29. package/dist/esm/components/prompt-card/AssistantPromptCard.js.map +1 -1
  30. package/dist/esm/grots/avatar/appearance.js +303 -0
  31. package/dist/esm/grots/avatar/appearance.js.map +1 -0
  32. package/dist/esm/grots/avatar/sprite.js +481 -0
  33. package/dist/esm/grots/avatar/sprite.js.map +1 -0
  34. package/dist/esm/grots/client.js +377 -0
  35. package/dist/esm/grots/client.js.map +1 -0
  36. package/dist/esm/grots/index.js +2 -0
  37. package/dist/esm/grots/index.js.map +1 -0
  38. package/dist/esm/grots/retry.js +67 -0
  39. package/dist/esm/grots/retry.js.map +1 -0
  40. package/dist/esm/grots/types.js +2 -0
  41. package/dist/esm/grots/types.js.map +1 -0
  42. package/dist/esm/index.js +1 -0
  43. package/dist/esm/index.js.map +1 -1
  44. package/dist/esm/sidebar.js +4 -3
  45. package/dist/esm/sidebar.js.map +1 -1
  46. package/dist/grots/avatar/appearance.d.ts +82 -0
  47. package/dist/grots/avatar/appearance.d.ts.map +1 -0
  48. package/dist/grots/avatar/sprite.d.ts +84 -0
  49. package/dist/grots/avatar/sprite.d.ts.map +1 -0
  50. package/dist/grots/client.d.ts +130 -0
  51. package/dist/grots/client.d.ts.map +1 -0
  52. package/dist/grots/index.d.ts +3 -0
  53. package/dist/grots/index.d.ts.map +1 -0
  54. package/dist/grots/retry.d.ts +7 -0
  55. package/dist/grots/retry.d.ts.map +1 -0
  56. package/dist/grots/types.d.ts +331 -0
  57. package/dist/grots/types.d.ts.map +1 -0
  58. package/dist/index.d.ts +1 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/index.js.map +1 -1
  62. package/dist/investigations/api.gen.d.ts +3 -3
  63. package/dist/sidebar.d.ts.map +1 -1
  64. package/package.json +1 -1
@@ -0,0 +1,84 @@
1
+ import { type Appearance, type GrotPalette } from './appearance';
2
+ /**
3
+ * A Grot is a 32×32 pixel sprite put together from parts, back to front.
4
+ * Each part is rows of pixels from (x, y); `.` is empty and every other
5
+ * character names a colour. A part gets a one-pixel dark outline unless it is
6
+ * bare, so parts in front draw a clean edge over the ones behind.
7
+ */
8
+ export interface Part {
9
+ x: number;
10
+ y: number;
11
+ rows: readonly string[];
12
+ bare?: boolean;
13
+ }
14
+ export declare const SPRITE_SIZE = 32;
15
+ /** The classic Grot side on, facing right: a round body, a dorsal crest, a wraparound visor and amber arms. */
16
+ export declare const body: Part;
17
+ export declare const feet: {
18
+ back: {
19
+ x: number;
20
+ y: number;
21
+ rows: string[];
22
+ };
23
+ front: {
24
+ x: number;
25
+ y: number;
26
+ rows: string[];
27
+ };
28
+ };
29
+ /** The near arm, which holds things and waves. */
30
+ export declare const arms: {
31
+ rest: {
32
+ x: number;
33
+ y: number;
34
+ rows: string[];
35
+ };
36
+ up: {
37
+ x: number;
38
+ y: number;
39
+ rows: string[];
40
+ };
41
+ };
42
+ export declare const crests: Record<Appearance['crest'], Part | undefined>;
43
+ /** Visors: `n` is the screen the eyes and status glyphs show on. They wrap the front of the face. */
44
+ export declare const visors: Record<Appearance['visor'], Part>;
45
+ /** Where each visor's two eyes sit: their centre columns and row. */
46
+ export declare const eyesAt: Record<Appearance['visor'], {
47
+ x: [number, number];
48
+ y: number;
49
+ }>;
50
+ /** The mouths people pick, plus the open "o" an alarmed Grot makes. The classic one is a smirk. */
51
+ export declare const mouths: Record<Appearance['mouth'] | 'o', Part>;
52
+ export declare const hats: Record<Appearance['hat'], Part | undefined>;
53
+ /** Hats tall enough to cover most of a crest: the crest is not drawn under them. */
54
+ export declare const crestHidingHats: ReadonlySet<Appearance['hat']>;
55
+ /** What a Grot holds in its near hand, in front of its belly. */
56
+ export declare const heldItems: Record<Appearance['held'], Part | undefined>;
57
+ /** Tails trail behind, at the bottom left. */
58
+ export declare const tails: Record<Appearance['tail'], Part | undefined>;
59
+ /**
60
+ * What a visor's screen can show, built once per visor: the screen itself to
61
+ * clip to, the eyes in each style, and the glyphs that replace them by mood.
62
+ */
63
+ export declare const screens: (key: "band" | "goggles" | "shades" | "slim") => {
64
+ screen: Part;
65
+ eyes: {
66
+ bars: Part;
67
+ dots: Part;
68
+ tall: Part;
69
+ big: Part;
70
+ love: Part;
71
+ plus: Part;
72
+ dizzy: Part;
73
+ wink: Part;
74
+ };
75
+ };
76
+ export interface Paint {
77
+ fill: string;
78
+ d: string;
79
+ }
80
+ /** A part as one path per colour, on its outline unless it is bare. */
81
+ export declare function paint(part: Part | undefined, palette: GrotPalette): Paint[];
82
+ /** An idle Grot sprite as a transparent SVG data URL for surfaces that take an image src (e.g. `@` menu items). */
83
+ export declare function spriteSvgDataUrl(look: Appearance): string;
84
+ //# sourceMappingURL=sprite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sprite.d.ts","sourceRoot":"","sources":["../../../src/grots/avatar/sprite.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,WAAW,KAAK,CAAC;AA2C9B,+GAA+G;AAC/G,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAEF,eAAO,MAAM,IAAI;;QACP,CAAC;QAAM,CAAC;QAAM,IAAI;;;QACjB,CAAC;QAAM,CAAC;QAAM,IAAI;;CACG,CAAC;AAEjC,kDAAkD;AAClD,eAAO,MAAM,IAAI;;QACP,CAAC;QAAM,CAAC;QAAM,IAAI;;;QACpB,CAAC;QAAM,CAAC;QAAM,IAAI;;CACM,CAAC;AAEjC,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAuDhE,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,CAiBpD,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;IAAE,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAKlF,CAAC;AAuDF,mGAAmG;AACnG,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,GAAG,EAAE,IAAI,CAQ1D,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,SAAS,CAsC5D,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAUzD,CAAC;AAEH,iEAAiE;AACjE,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAsDlE,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAO9D,CAAC;AA0BF;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;CAyClB,CAAC;AAEH,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;CACX;AA2BD,uEAAuE;AACvE,wBAAgB,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,WAAW,GAAG,KAAK,EAAE,CA+B3E;AAID,mHAAmH;AACnH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAiCzD"}
@@ -0,0 +1,130 @@
1
+ import type { BindGrotInput, CreateGrotInput, CreateGrotTopicInput, Grot, GrotEvent, GrotLane, GrotLaneClosed, GrotMessage, GrotMessagesPage, GrotRequestOptions, GrotTopic, GrotTopicAccepted, GrotTopicList, GrotTopicMessageInput, GrotWork, ListGrotsOptions, ListGrotTopicMessagesOptions, ListGrotTopicsOptions, ParsedGrotMessage, ReadGrotLaneOptions, UpdateGrotInput, UpdateGrotTopicInput } from './types';
2
+ /**
3
+ * List the Grots the signed-in user may use (newest 100, newest first).
4
+ * Needs `durable-agents.<scope>:read` for each scope listed.
5
+ * @experimental This API is under active development and may change in future releases.
6
+ */
7
+ export declare function listGrots(options?: ListGrotsOptions): Promise<Grot[]>;
8
+ /**
9
+ * Read one Grot. Another user's private Grot returns 404.
10
+ *
11
+ * @experimental This API is under active development and may change in future releases.
12
+ */
13
+ export declare function getGrot(grotId: string, options?: GrotRequestOptions): Promise<Grot>;
14
+ /**
15
+ * Create a Grot. Needs `durable-agents.<scope>:create` for the new Grot's scope. Never retried, even with
16
+ * `retry` set: retrying creation can create duplicates.
17
+ *
18
+ * The call sends exactly the fields of {@link CreateGrotInput} and nothing else. A private Grot (the default scope)
19
+ * needs `ownerDelegation: true`, the creator's explicit consent for background work with their own Grafana
20
+ * permissions. On a `team` Grot the backend refuses it, so it is dropped from the request.
21
+ *
22
+ * Without `executionBinding` and `grant` the Grot is created as a `draft` and cannot run: a run, such as
23
+ * `createGrotTopic`, fails with 400 until you call {@link bindGrot}. Pass both to create a Grot that can run at
24
+ * once. That turns on its background work and gives it tool access, so it also needs `durable-agents:configure`
25
+ * and `durable-agents.<scope>:execute`. `grant: { allowAllTools: true }` lets the Grot call every tool. Set these
26
+ * only when the person using your code has explicitly agreed; they are never defaulted.
27
+ * @experimental This API is under active development and may change in future releases.
28
+ */
29
+ export declare function createGrot(input: CreateGrotInput, options?: GrotRequestOptions): Promise<Grot>;
30
+ /**
31
+ * Give an existing Grot access so it can run (`PUT /durable-agents/{id}/binding`; the Go SDK has no such call). On
32
+ * a `draft` Grot this also activates it and turns on its background work; on an active one it replaces the tool
33
+ * grant. Needs `durable-agents:configure` and `durable-agents.<scope>:write`, plus `:execute` for a draft. A stale
34
+ * `expectedRevision` returns 409, as does a Grot with a run in progress; wait for it to finish, re-read the Grot
35
+ * and call again. Never retried, even with `retry` set. Returns the updated Grot.
36
+ *
37
+ * `grant: { allowAllTools: true }` lets the Grot call every tool. Only call this when the person using your code
38
+ * has explicitly agreed to give the Grot that access.
39
+ * @experimental This API is under active development and may change in future releases.
40
+ */
41
+ export declare function bindGrot(grotId: string, input: BindGrotInput, options?: GrotRequestOptions): Promise<Grot>;
42
+ /**
43
+ * Wake a Grot with a workflow event in its own conversation. Needs `durable-agents.<scope>:execute`.
44
+ * Retry only with the same workflow, laneKey, dedupeKey and body. The API limits `workflow` to 253 characters,
45
+ * `title`, `dedupeKey`, `runId` and `stepId` to 256, and `content` to 16000. Unlike direct-topic keys, a workflow
46
+ * `dedupeKey` may contain ":".
47
+ * @experimental This API is under active development and may change in future releases.
48
+ */
49
+ export declare function wakeGrot(grotId: string, event: GrotEvent, options?: GrotRequestOptions): Promise<GrotWork>;
50
+ /** Close a lane to free one of the Grot's 50 open lanes. An unknown lane returns `closed: false`. Never retried, even
51
+ * with `retry`: a repeat after a lost response would report `closed: false` for a lane the first call closed.
52
+ *
53
+ * @experimental This API is under active development and may change in future releases.
54
+ */
55
+ export declare function closeGrotLane(grotId: string, laneKey: string, options?: GrotRequestOptions): Promise<GrotLaneClosed>;
56
+ /**
57
+ * Read a lane you opened with `wakeGrot`. Needs `durable-agents.<scope>:execute` and `:read`, plus
58
+ * `conversations.tenant:read`. A key you never sent returns 404.
59
+ * @experimental This API is under active development and may change in future releases.
60
+ */
61
+ export declare function readGrotLane(grotId: string, laneKey: string, options?: ReadGrotLaneOptions): Promise<GrotLane>;
62
+ /**
63
+ * Open a topic in the signed-in user's direct conversation with a Grot and send its first message.
64
+ * Needs `durable-agents.<scope>:execute`, plus `conversations.user:create` for the first topic and
65
+ * `conversations.user:write` for later topics and for retries. Retries only with `retry`
66
+ * (the `dedupeKey` makes that safe); otherwise retry by hand with the same `dedupeKey`.
67
+ * @experimental This API is under active development and may change in future releases.
68
+ */
69
+ export declare function createGrotTopic(grotId: string, input: CreateGrotTopicInput, options?: GrotRequestOptions): Promise<GrotTopicAccepted>;
70
+ /**
71
+ * Send a follow-up message in an existing topic. Posting to an archived topic restores it.
72
+ * Needs `durable-agents.<scope>:execute` and `conversations.user:write`.
73
+ * @experimental This API is under active development and may change in future releases.
74
+ */
75
+ export declare function postGrotTopicMessage(grotId: string, topicId: string, message: GrotTopicMessageInput, options?: GrotRequestOptions): Promise<GrotTopicAccepted>;
76
+ /**
77
+ * List the topics in the signed-in user's direct conversation with a Grot. 404 before the first topic.
78
+ * Needs `durable-agents.<scope>:read` and `conversations.user:read`.
79
+ * @experimental This API is under active development and may change in future releases.
80
+ */
81
+ export declare function listGrotTopics(grotId: string, options?: ListGrotTopicsOptions): Promise<GrotTopicList>;
82
+ /**
83
+ * Read a topic's messages, oldest first. Pass the topic's `chatId`, not its `id`.
84
+ * Needs `durable-agents.<scope>:read` and read access on that chat (`conversations.user:read` for your direct
85
+ * topics).
86
+ * @experimental This API is under active development and may change in future releases.
87
+ */
88
+ export declare function listGrotTopicMessages(grotId: string, chatId: string, options?: ListGrotTopicMessagesOptions): Promise<GrotMessagesPage>;
89
+ /**
90
+ * Thrown by `updateGrot` when you sent `labels` and the response has no `labels` key: a backend that predates
91
+ * labels (grafana-assistant-app #17893) applied the other fields and ignored the labels, so even `{}` did not clear
92
+ * them. Mirrors the Go SDK's `ErrLabelsNotSupported`. `grot` is the updated Grot.
93
+ * @experimental This API is under active development and may change in future releases.
94
+ */
95
+ export declare class GrotLabelsNotSupportedError extends Error {
96
+ readonly grot: Grot;
97
+ constructor(grot: Grot);
98
+ }
99
+ /**
100
+ * Change a Grot's name, purpose, role or labels (Go: `UpdateGrot`, `PUT /durable-agents/{id}`). A stale
101
+ * `expectedRevision` returns 409. Needs `durable-agents.<scope>:write`. Never retried. Throws {@link GrotLabelsNotSupportedError} (carrying the updated Grot)
102
+ * when `labels` was sent and the backend did not return labels.
103
+ *
104
+ * The body is built from `expectedRevision`, `name`, `purpose`, `role` and `labels` only. The backend's update body
105
+ * also accepts avatar, budget, parallel runs and memory mode, which the Go SDK leaves out and so does this client;
106
+ * the tool grant and execution binding have their own route, {@link bindGrot}, and cannot be sent from here.
107
+ * @experimental This API is under active development and may change in future releases.
108
+ */
109
+ export declare function updateGrot(grotId: string, input: UpdateGrotInput, options?: GrotRequestOptions): Promise<Grot>;
110
+ /**
111
+ * Rename, archive, restore, pin or unpin a topic (Go: `UpdateTopic`,
112
+ * `PUT /durable-agents/{id}/direct/topics/{topicId}`). A stale `expectedRevision` returns 409. Needs
113
+ * `durable-agents.<scope>:execute` and `conversations.user:write`. Never retried.
114
+ * @experimental This API is under active development and may change in future releases.
115
+ */
116
+ export declare function updateGrotTopic(grotId: string, topicId: string, input: UpdateGrotTopicInput, options?: GrotRequestOptions): Promise<GrotTopic>;
117
+ /**
118
+ * Archive a topic (Go: `ArchiveTopic`). Same route and RBAC as {@link updateGrotTopic}; post a message to restore it.
119
+ *
120
+ * @experimental This API is under active development and may change in future releases.
121
+ */
122
+ export declare function archiveGrotTopic(grotId: string, topicId: string, expectedRevision: number, options?: GrotRequestOptions): Promise<GrotTopic>;
123
+ /**
124
+ * Decode a raw message from `listGrotTopicMessages` or `readGrotLane` (Go: `ParseTopicMessage`). Like Go it throws
125
+ * when the value is not an object or `id` / `role` is not a string. Unlike Go it keeps unknown roles and part types
126
+ * readable (`kind: 'unknown'`) instead of failing. `GrotMessage` itself is unchanged.
127
+ * @experimental This API is under active development and may change in future releases.
128
+ */
129
+ export declare function parseGrotTopicMessage(raw: GrotMessage): ParsedGrotMessage;
130
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/grots/client.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,IAAI,EAEJ,SAAS,EACT,QAAQ,EACR,cAAc,EACd,WAAW,EAEX,gBAAgB,E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CAsBzE"}
@@ -0,0 +1,3 @@
1
+ export { archiveGrotTopic, bindGrot, closeGrotLane, createGrot, createGrotTopic, getGrot, GrotLabelsNotSupportedError, listGrotTopicMessages, listGrotTopics, listGrots, parseGrotTopicMessage, postGrotTopicMessage, readGrotLane, updateGrot, updateGrotTopic, wakeGrot, } from './client';
2
+ export type { BindGrotInput, CreateGrotInput, CreateGrotTopicInput, Grot, GrotDirectTopic, GrotEvent, GrotExecutionBinding, GrotGrant, GrotLane, GrotLaneClosed, GrotMessage, GrotMessagePart, GrotMessagesPage, GrotRequestOptions, GrotRetryOptions, GrotTopic, GrotTopicAccepted, GrotTopicList, GrotTopicMessageInput, GrotWork, ListGrotsOptions, ListGrotTopicMessagesOptions, ListGrotTopicsOptions, ParsedGrotMessage, ReadGrotLaneOptions, UpdateGrotInput, UpdateGrotTopicInput, } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/grots/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,eAAe,EACf,OAAO,EACP,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,qBAAqB,EACrB,oBAAoB,EACpB,YAAY,EACZ,UAAU,EACV,eAAe,EACf,QAAQ,GACT,MAAM,UAAU,CAAC;AAClB,YAAY,EACV,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,IAAI,EACJ,eAAe,EACf,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,QAAQ,EACR,gBAAgB,EAChB,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { GrotRetryOptions } from './types';
2
+ export declare function isRetryableStatus(error: unknown): boolean;
3
+ /** Wait before retry number `attempt` (1 is the wait after the first failure). `random` is injectable for tests. */
4
+ export declare function backoffMs(attempt: number, options?: GrotRetryOptions, random?: () => number): number;
5
+ /** Run `attempt`, repeating it on a retryable status when `retry` is enabled. Aborting stops the wait. */
6
+ export declare function withRetry<T>(attempt: () => Promise<T>, retry: boolean | GrotRetryOptions | undefined, signal?: AbortSignal): Promise<T>;
7
+ //# sourceMappingURL=retry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../src/grots/retry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAsBhD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAGzD;AAED,oHAAoH;AACpH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,EAAE,MAAM,eAAc,GAAG,MAAM,CAOvG;AAoBD,0GAA0G;AAC1G,wBAAsB,SAAS,CAAC,CAAC,EAC/B,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,KAAK,EAAE,OAAO,GAAG,gBAAgB,GAAG,SAAS,EAC7C,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,CAAC,CAAC,CAgBZ"}
@@ -0,0 +1,331 @@
1
+ /**
2
+ * Options accepted by every Grots call.
3
+ *
4
+ * @experimental This API is under active development and may change in future releases.
5
+ */
6
+ export interface GrotRequestOptions {
7
+ signal?: AbortSignal;
8
+ /**
9
+ * Retry transient failures. Off by default, like the Go SDK's Grots methods, which never retry. Pass `true` for
10
+ * the defaults of the Go SDK's `Chat` policy (3 attempts in total, 500 ms doubling to at most 10 s, plus or minus
11
+ * 10% jitter, on 429, 502, 503 and 504) or a {@link GrotRetryOptions} to tune it. `false` is the same as leaving it
12
+ * out. Only calls that are safe to repeat honor it: reads and the calls that carry a `dedupeKey`
13
+ * (`wakeGrot`, `createGrotTopic`, `postGrotTopicMessage`). `createGrot`, `bindGrot`, `closeGrotLane`, `updateGrot`,
14
+ * `updateGrotTopic` and `archiveGrotTopic` never retry.
15
+ */
16
+ retry?: boolean | GrotRetryOptions;
17
+ }
18
+ /** @experimental This API is under active development and may change in future releases. */
19
+ export interface GrotRetryOptions {
20
+ /** Total attempts including the first, a whole number of at least 1. Default 3, also used for any other value. */
21
+ maxAttempts?: number;
22
+ /** Wait before the second attempt, in ms. Default 500, also used for NaN, Infinity or a negative value. */
23
+ initialBackoffMs?: number;
24
+ /** Upper bound of the wait, in ms. Default 10000, also used for NaN, Infinity or a negative value. */
25
+ maxBackoffMs?: number;
26
+ }
27
+ /**
28
+ * A Grot (durable agent) as the Grots API returns it. Unknown fields are dropped.
29
+ *
30
+ * @experimental This API is under active development and may change in future releases.
31
+ */
32
+ export interface Grot {
33
+ id: string;
34
+ name: string;
35
+ purpose?: string;
36
+ role?: string;
37
+ /** `user` (private to its creator), `team` or `tenant`. Kept an open string so newer scopes survive. */
38
+ scope?: string;
39
+ teamId?: string;
40
+ status?: string;
41
+ /** The Grot's look: its sprite parts in order, such as `mint.fin.band.bars.smile.cap.empty.curl`. Pass it to `GrotAvatar`. */
42
+ avatar?: string;
43
+ revision: number;
44
+ /** Kubernetes-style metadata. Absent on backends that predate labels. */
45
+ labels?: Record<string, string>;
46
+ }
47
+ /** @experimental This API is under active development and may change in future releases. */
48
+ export interface ListGrotsOptions extends GrotRequestOptions {
49
+ /**
50
+ * Keep the Grots whose labels match a Kubernetes label selector, such as `team=payments,!legacy`.
51
+ * The server returns at most the newest 100 Grots. A backend that predates labels ignores the selector.
52
+ */
53
+ labelSelector?: string;
54
+ }
55
+ /**
56
+ * The execution binding the backend accepts today, for both scopes. Whose access the Grot runs with depends on its
57
+ * scope, not on this value:
58
+ *
59
+ * - A private (`user`) Grot runs with its owner's current Grafana permissions. It can do what the owner can do at the
60
+ * time it runs, so it loses access when the owner does. That is what `ownerDelegation: true` consents to.
61
+ * - A team Grot runs as a service account scoped to its team, not as the person who created or bound it.
62
+ *
63
+ * Explain this to your users before you bind a Grot for them: on a private Grot they are granting their own access.
64
+ *
65
+ * @experimental This API is under active development and may change in future releases.
66
+ */
67
+ export type GrotExecutionBinding = 'assistant-tenant-service';
68
+ /**
69
+ * The tools a bound Grot may call, as the backend validates them (Go: the `grant` of `AgentCreate` and
70
+ * `BindingUpdate`). The backend refuses any other property, an empty `allowedTools` with `allowAllTools: false`,
71
+ * a blank tool name, a name over 256 characters and a grant over 16000 bytes.
72
+ *
73
+ * Either `allowAllTools: true`, which lets the Grot call every tool the Assistant has, including ones added later,
74
+ * or `allowAllTools: false` with the names of the tools it may call.
75
+ *
76
+ * @experimental This API is under active development and may change in future releases.
77
+ */
78
+ export type GrotGrant = {
79
+ allowAllTools: true;
80
+ } | {
81
+ allowAllTools: false;
82
+ allowedTools: [string, ...string[]];
83
+ };
84
+ /**
85
+ * Body of `createGrot`. These are the fields the Go SDK's `CreateGrot` sends, plus the optional `executionBinding`
86
+ * and `grant` the Go SDK does not expose. Without those two the Grot stays a `draft` that cannot run: creating a
87
+ * topic fails with 400 "configure an execution identity before running the agent". Nothing is added for you.
88
+ * @experimental This API is under active development and may change in future releases.
89
+ */
90
+ export interface CreateGrotInput {
91
+ /** 1 to 256 characters. */
92
+ name: string;
93
+ purpose?: string;
94
+ /** A few words shown beside the name, at most 40 characters. */
95
+ role?: string;
96
+ /**
97
+ * `user` (the backend default) makes a private Grot only you can use; `team` needs `teamId`.
98
+ * Shared (`tenant`) Grots can't be created any more; `Grot.scope` stays an open string for reading them.
99
+ */
100
+ scope?: 'user' | 'team';
101
+ /** Grafana team ID. Required with `scope: 'team'`, refused otherwise. */
102
+ teamId?: string;
103
+ /**
104
+ * Consent for a private (`user` scope) Grot to run unattended using YOUR Grafana permissions, the permissions
105
+ * you hold when you call this, for background work. The backend rejects a private Grot (the default scope)
106
+ * without it, and rejects it on any other scope. Only set it when the person using your code has agreed.
107
+ */
108
+ ownerDelegation?: boolean;
109
+ /**
110
+ * Gives the Grot access at creation: it becomes `active` and its background work starts, so it can run. Send it
111
+ * together with `grant`; the backend refuses either one alone. Needs `durable-agents:configure` and
112
+ * `durable-agents.<scope>:execute`, besides the create permission. Only set it when the person using your code
113
+ * has explicitly agreed to give the Grot access. Never defaulted. A private Grot then runs with its owner's current
114
+ * Grafana permissions, a team Grot with its team's scoped service account; see {@link GrotExecutionBinding}. To
115
+ * bind a Grot you already created, use {@link bindGrot}.
116
+ */
117
+ executionBinding?: GrotExecutionBinding;
118
+ /**
119
+ * The tools the bound Grot may call. `{ allowAllTools: true }` grants every tool, so reserve it for a Grot whose
120
+ * user knowingly accepts that; otherwise list the tools in `allowedTools`. Send it together with
121
+ * `executionBinding`. Never defaulted.
122
+ */
123
+ grant?: GrotGrant;
124
+ /** Free-form Kubernetes-style labels. The server enforces the limits and reserves `assistant.grafana.com/`. */
125
+ labels?: Record<string, string>;
126
+ }
127
+ /**
128
+ * Body of `bindGrot`: the Grot's access, replacing any it had. Unlike on `createGrot` both fields are required.
129
+ * @experimental This API is under active development and may change in future releases.
130
+ */
131
+ export interface BindGrotInput {
132
+ /** The Grot's `revision` as you last read it. A stale value returns 409. */
133
+ expectedRevision: number;
134
+ executionBinding: GrotExecutionBinding;
135
+ grant: GrotGrant;
136
+ }
137
+ /**
138
+ * Body of `updateGrot`, the fields the Go SDK's `GrotUpdate` sends. A field you leave out stays unchanged. The call
139
+ * cannot change tool grants, permissions or the execution binding (use {@link bindGrot}), and drops any such
140
+ * property you pass.
141
+ * @experimental This API is under active development and may change in future releases.
142
+ */
143
+ export interface UpdateGrotInput {
144
+ /** The Grot's `revision` as you last read it. A stale value returns 409. */
145
+ expectedRevision: number;
146
+ name?: string;
147
+ purpose?: string;
148
+ role?: string;
149
+ /** Replaces the whole label set; an empty object clears it. */
150
+ labels?: Record<string, string>;
151
+ }
152
+ /**
153
+ * Body of `updateGrotTopic`. A field you leave out stays unchanged.
154
+ *
155
+ * @experimental This API is under active development and may change in future releases.
156
+ */
157
+ export interface UpdateGrotTopicInput {
158
+ /** The topic's `revision` as you last read it. A stale value returns 409. */
159
+ expectedRevision: number;
160
+ /** 1 to 120 characters. */
161
+ title?: string;
162
+ /** True archives the topic, false restores it. */
163
+ archived?: boolean;
164
+ /** True pins the topic, false unpins it. */
165
+ pinned?: boolean;
166
+ }
167
+ /** @experimental This API is under active development and may change in future releases. */
168
+ export interface GrotEvent {
169
+ /** The workflow definition's `metadata.name`. */
170
+ workflow: string;
171
+ /** Optional display name used as the topic title. */
172
+ title?: string;
173
+ /** Identifies the event, for example run ID plus step ID. Same key and body returns the same work; a changed body returns 409. */
174
+ dedupeKey: string;
175
+ content: string;
176
+ runId?: string;
177
+ stepId?: string;
178
+ /** Names an outside object, such as an incident ID. 1 to 128 printable ASCII characters without spaces. */
179
+ laneKey?: string;
180
+ }
181
+ /** @experimental This API is under active development and may change in future releases. */
182
+ export interface GrotWork {
183
+ id: string;
184
+ state: string;
185
+ }
186
+ /** @experimental This API is under active development and may change in future releases. */
187
+ export interface GrotLaneClosed {
188
+ laneKey: string;
189
+ /** False when the lane was unknown or already closed. */
190
+ closed: boolean;
191
+ cancelledFollowUps: number;
192
+ }
193
+ /**
194
+ * A raw chat message in AI SDK UIMessage format; read its `id` as the `after` cursor.
195
+ *
196
+ * @experimental This API is under active development and may change in future releases.
197
+ */
198
+ export type GrotMessage = Record<string, unknown>;
199
+ /** @experimental This API is under active development and may change in future releases. */
200
+ export interface GrotMessagesPage {
201
+ messages: GrotMessage[];
202
+ total?: number;
203
+ from?: number;
204
+ /** True when `messages` is the whole chat rather than the tail after `after`. */
205
+ reset?: boolean;
206
+ }
207
+ /** @experimental This API is under active development and may change in future releases. */
208
+ export interface GrotLane extends GrotMessagesPage {
209
+ laneKey: string;
210
+ topicId: string;
211
+ chatId: string;
212
+ title: string;
213
+ settled: boolean;
214
+ runningWorkId?: string;
215
+ pendingWork: number;
216
+ busy: boolean;
217
+ }
218
+ /** @experimental This API is under active development and may change in future releases. */
219
+ export interface ReadGrotLaneOptions extends GrotRequestOptions {
220
+ /** ID of the last message you hold. */
221
+ after?: string;
222
+ }
223
+ /** @experimental This API is under active development and may change in future releases. */
224
+ export interface CreateGrotTopicInput {
225
+ /** Up to 512 bytes (the server checks UTF-8 bytes, so multibyte text fits fewer characters). */
226
+ title?: string;
227
+ /** The first message: non-blank text, up to 32000 bytes. */
228
+ content: string;
229
+ /** 1 to 128 bytes, without ":". Shared across the whole Grot. */
230
+ dedupeKey: string;
231
+ }
232
+ /** @experimental This API is under active development and may change in future releases. */
233
+ export interface GrotTopicMessageInput {
234
+ /** Non-blank text, up to 32000 bytes. */
235
+ content: string;
236
+ /** 1 to 128 bytes, without ":". Shared across the whole Grot. */
237
+ dedupeKey: string;
238
+ }
239
+ /** @experimental This API is under active development and may change in future releases. */
240
+ export interface GrotTopic {
241
+ id: string;
242
+ agentId: string;
243
+ threadId: string;
244
+ number: number;
245
+ title: string;
246
+ /** Pass to `listGrotTopicMessages`. */
247
+ chatId: string;
248
+ revision: number;
249
+ createdBy: string;
250
+ archivedAt?: string;
251
+ pinnedAt?: string;
252
+ }
253
+ /** @experimental This API is under active development and may change in future releases. */
254
+ export interface GrotTopicAccepted {
255
+ topic: GrotTopic;
256
+ work: GrotWork;
257
+ }
258
+ /** @experimental This API is under active development and may change in future releases. */
259
+ export interface GrotDirectTopic extends GrotTopic {
260
+ runningWorkId?: string;
261
+ helpersWorking?: boolean;
262
+ }
263
+ /** @experimental This API is under active development and may change in future releases. */
264
+ export interface GrotTopicList {
265
+ thread?: {
266
+ id: string;
267
+ agentId: string;
268
+ title: string;
269
+ };
270
+ topics: GrotDirectTopic[];
271
+ settledCount?: number;
272
+ }
273
+ /** @experimental This API is under active development and may change in future releases. */
274
+ export interface ListGrotTopicsOptions extends GrotRequestOptions {
275
+ /** Leave archived topics out and count them in `settledCount`. */
276
+ excludeSettled?: boolean;
277
+ }
278
+ /** @experimental This API is under active development and may change in future releases. */
279
+ export interface ListGrotTopicMessagesOptions extends GrotRequestOptions {
280
+ /** ID of the last message you hold. */
281
+ after?: string;
282
+ }
283
+ /**
284
+ * One part of a parsed message. Part types this client does not know stay readable as `unknown`.
285
+ *
286
+ * @experimental This API is under active development and may change in future releases.
287
+ */
288
+ export type GrotMessagePart = {
289
+ kind: 'text';
290
+ text: string;
291
+ } | {
292
+ kind: 'reasoning';
293
+ text: string;
294
+ } | {
295
+ kind: 'tool';
296
+ type: string;
297
+ toolName?: string;
298
+ state?: string;
299
+ } | {
300
+ kind: 'unknown';
301
+ type: string;
302
+ raw: Record<string, unknown>;
303
+ };
304
+ interface ParsedGrotMessageBase {
305
+ id: string;
306
+ parts: GrotMessagePart[];
307
+ /** The `created` timestamp as the server sent it, when present. */
308
+ created?: string;
309
+ metadata?: unknown;
310
+ /** The message as received, for tool inputs and outputs or provider fields. */
311
+ raw: GrotMessage;
312
+ /** The text parts joined by newlines, without reasoning, tools or empty parts. */
313
+ text: string;
314
+ }
315
+ /**
316
+ * A topic message, discriminated by `kind`. A role this client does not know parses as `unknown`; it does not throw. Unknown part types stay readable too. A value that is not an object, or whose `id` or `role` is not a string, throws.
317
+ *
318
+ * @experimental This API is under active development and may change in future releases.
319
+ */
320
+ export type ParsedGrotMessage = (ParsedGrotMessageBase & {
321
+ kind: 'user';
322
+ }) | (ParsedGrotMessageBase & {
323
+ kind: 'assistant';
324
+ }) | (ParsedGrotMessageBase & {
325
+ kind: 'system';
326
+ }) | (ParsedGrotMessageBase & {
327
+ kind: 'unknown';
328
+ role: string;
329
+ });
330
+ export {};
331
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/grots/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;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CAAE,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './components';
7
7
  export * from './inline';
8
8
  export * from './lens';
9
9
  export * from './investigations';
10
+ export * from './grots';
10
11
  export * from './terms';
11
12
  export * from './tools';
12
13
  export * from './limits';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,QAAQ,EACR,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,oBAAoB,EAEpB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC;AACrB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,cAA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