@agentjam/sdk 0.12.0 → 0.12.1

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 (50) hide show
  1. package/dist/anyOf.d.ts +2 -0
  2. package/dist/anyOf.d.ts.map +1 -1
  3. package/dist/anyOf.js +2 -1
  4. package/dist/anyOf.js.map +1 -1
  5. package/dist/chooser.js +22 -17
  6. package/dist/chooser.js.map +1 -1
  7. package/dist/connections.d.ts +7 -0
  8. package/dist/connections.d.ts.map +1 -1
  9. package/dist/connections.js +10 -4
  10. package/dist/connections.js.map +1 -1
  11. package/dist/oauthCallbacks.js +7 -5
  12. package/dist/oauthCallbacks.js.map +1 -1
  13. package/dist/pages.d.ts +26 -3
  14. package/dist/pages.d.ts.map +1 -1
  15. package/dist/pages.js +42 -10
  16. package/dist/pages.js.map +1 -1
  17. package/dist/platforms/atlassian.d.ts.map +1 -1
  18. package/dist/platforms/atlassian.js +8 -1
  19. package/dist/platforms/atlassian.js.map +1 -1
  20. package/dist/platforms/discord.d.ts.map +1 -1
  21. package/dist/platforms/discord.js +3 -0
  22. package/dist/platforms/discord.js.map +1 -1
  23. package/dist/platforms/github.d.ts.map +1 -1
  24. package/dist/platforms/github.js +10 -1
  25. package/dist/platforms/github.js.map +1 -1
  26. package/dist/platforms/google.d.ts.map +1 -1
  27. package/dist/platforms/google.js +8 -1
  28. package/dist/platforms/google.js.map +1 -1
  29. package/dist/platforms/microsoft.d.ts.map +1 -1
  30. package/dist/platforms/microsoft.js +3 -0
  31. package/dist/platforms/microsoft.js.map +1 -1
  32. package/dist/platforms/pagerduty.d.ts.map +1 -1
  33. package/dist/platforms/pagerduty.js +8 -1
  34. package/dist/platforms/pagerduty.js.map +1 -1
  35. package/dist/platforms/presets.d.ts +6 -2
  36. package/dist/platforms/presets.d.ts.map +1 -1
  37. package/dist/platforms/presets.js +4 -2
  38. package/dist/platforms/presets.js.map +1 -1
  39. package/dist/platforms/sentry.d.ts.map +1 -1
  40. package/dist/platforms/sentry.js +8 -1
  41. package/dist/platforms/sentry.js.map +1 -1
  42. package/dist/platforms/slack.d.ts.map +1 -1
  43. package/dist/platforms/slack.js +8 -1
  44. package/dist/platforms/slack.js.map +1 -1
  45. package/dist/theme.d.ts +3 -0
  46. package/dist/theme.d.ts.map +1 -0
  47. package/dist/theme.js +210 -0
  48. package/dist/theme.js.map +1 -0
  49. package/dist/tools/shared.d.ts +3 -3
  50. package/package.json +1 -1
package/dist/theme.js ADDED
@@ -0,0 +1,210 @@
1
+ // Invariant: these styles mirror the AgentJam web app's Tempo theme and its sign-in layout, light and dark.
2
+ export const pageStyles = `
3
+ :root {
4
+ color-scheme: light dark;
5
+ --background: #f7f7f8;
6
+ --foreground: #131215;
7
+ --muted-foreground: #5f5d66;
8
+ --surface: #ffffff;
9
+ --primary: #d03a0c;
10
+ --primary-foreground: #ffffff;
11
+ --shadow-color: #131215;
12
+ --card: color-mix(in srgb, var(--surface) 82%, transparent);
13
+ --accent: color-mix(in srgb, var(--foreground) 6%, transparent);
14
+ --border: color-mix(in srgb, var(--foreground) 10%, transparent);
15
+ --border-hover: color-mix(in srgb, var(--foreground) 15%, transparent);
16
+ --elevation-lg: 0 4px 8px color-mix(in srgb, var(--shadow-color) 4%, transparent),
17
+ 0 32px 64px -28px color-mix(in srgb, var(--shadow-color) 32%, transparent);
18
+ --primary-hover: color-mix(in srgb, var(--primary) 86%, var(--foreground));
19
+ --radius-md: 6px;
20
+ --radius-xl: 14px;
21
+ --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
22
+ --font-sans: "Suisse Intl", ui-sans-serif, system-ui, sans-serif;
23
+ }
24
+
25
+ @media (prefers-color-scheme: dark) {
26
+ :root {
27
+ --background: #0b0b0c;
28
+ --foreground: #f6f5f4;
29
+ --muted-foreground: #a19f9c;
30
+ --surface: #161617;
31
+ --primary: #ff7a36;
32
+ --primary-foreground: #170a03;
33
+ --shadow-color: #000000;
34
+ --card: color-mix(in srgb, var(--surface) 72%, transparent);
35
+ --accent: color-mix(in srgb, var(--foreground) 7%, transparent);
36
+ --elevation-lg: inset 0 1px 0 hsl(0 0% 100% / 0.07),
37
+ 0 32px 64px -28px color-mix(in srgb, var(--shadow-color) 95%, transparent);
38
+ }
39
+ }
40
+
41
+ @media (prefers-reduced-transparency: reduce) {
42
+ :root { --card: var(--surface); }
43
+ }
44
+
45
+ *, ::before, ::after { box-sizing: border-box; }
46
+
47
+ html { height: 100%; text-rendering: optimizeLegibility; }
48
+
49
+ body {
50
+ display: flex;
51
+ flex-direction: column;
52
+ min-height: 100dvh;
53
+ margin: 0;
54
+ background: var(--background);
55
+ color: var(--foreground);
56
+ font: 400 13px/20px var(--font-sans);
57
+ -webkit-font-smoothing: antialiased;
58
+ }
59
+
60
+ ::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); }
61
+
62
+ h1, p, ul { margin: 0; }
63
+
64
+ header {
65
+ display: flex;
66
+ align-items: center;
67
+ height: 56px;
68
+ padding: 0 20px;
69
+ }
70
+
71
+ .wordmark {
72
+ display: inline-flex;
73
+ align-items: center;
74
+ gap: 6px;
75
+ font-weight: 500;
76
+ letter-spacing: -0.01em;
77
+ }
78
+
79
+ .wordmark svg { width: 16px; height: 16px; flex-shrink: 0; }
80
+
81
+ .logo-agent { fill: var(--foreground); }
82
+
83
+ .logo-jam, .wordmark .jam { fill: var(--primary); color: var(--primary); }
84
+
85
+ main {
86
+ display: flex;
87
+ flex: 1;
88
+ flex-direction: column;
89
+ align-items: center;
90
+ justify-content: center;
91
+ padding: 16px 16px 80px;
92
+ }
93
+
94
+ .card {
95
+ width: 100%;
96
+ max-width: 400px;
97
+ padding: 8px;
98
+ }
99
+
100
+ .card > * + * { margin-top: 28px; }
101
+
102
+ h1 {
103
+ font-size: 22px;
104
+ font-weight: 500;
105
+ line-height: 28px;
106
+ letter-spacing: -0.015em;
107
+ text-wrap: balance;
108
+ overflow-wrap: anywhere;
109
+ }
110
+
111
+ .heading p {
112
+ margin-top: 6px;
113
+ color: var(--muted-foreground);
114
+ text-wrap: pretty;
115
+ overflow-wrap: anywhere;
116
+ }
117
+
118
+ .options {
119
+ display: flex;
120
+ flex-direction: column;
121
+ gap: 8px;
122
+ padding: 0;
123
+ list-style: none;
124
+ }
125
+
126
+ .option, .button {
127
+ display: flex;
128
+ align-items: center;
129
+ gap: 12px;
130
+ width: 100%;
131
+ min-height: 40px;
132
+ padding: 10px 14px;
133
+ border-radius: var(--radius-md);
134
+ font-size: 14px;
135
+ font-weight: 500;
136
+ line-height: 20px;
137
+ text-decoration: none;
138
+ cursor: pointer;
139
+ user-select: none;
140
+ touch-action: manipulation;
141
+ -webkit-tap-highlight-color: transparent;
142
+ transition: color 200ms var(--ease-out-quart), background-color 200ms var(--ease-out-quart),
143
+ border-color 200ms var(--ease-out-quart), transform 200ms var(--ease-out-quart);
144
+ }
145
+
146
+ .option:focus-visible, .button:focus-visible {
147
+ outline: none;
148
+ box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--primary);
149
+ }
150
+
151
+ .option:active, .button:active { transform: scale(0.98); }
152
+
153
+ .option {
154
+ border: 1px solid var(--border);
155
+ background: var(--card);
156
+ color: var(--foreground);
157
+ text-align: left;
158
+ }
159
+
160
+ .option:hover { border-color: var(--border-hover); background: var(--accent); }
161
+
162
+ .icon { display: flex; flex-shrink: 0; width: 16px; height: 16px; }
163
+
164
+ .icon svg { width: 100%; height: 100%; }
165
+
166
+ .option-text {
167
+ display: flex;
168
+ flex-direction: column;
169
+ gap: 2px;
170
+ min-width: 0;
171
+ overflow-wrap: anywhere;
172
+ }
173
+
174
+ .caption {
175
+ color: var(--muted-foreground);
176
+ font-size: 12px;
177
+ font-weight: 400;
178
+ line-height: 16px;
179
+ }
180
+
181
+ .button {
182
+ justify-content: center;
183
+ background: var(--primary);
184
+ color: var(--primary-foreground);
185
+ box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14);
186
+ }
187
+
188
+ .button:hover { background: var(--primary-hover); }
189
+
190
+ @media (min-width: 640px) {
191
+ header { padding: 0 28px; }
192
+
193
+ .card {
194
+ padding: 32px;
195
+ border: 1px solid var(--border);
196
+ border-radius: var(--radius-xl);
197
+ background: var(--card);
198
+ box-shadow: var(--elevation-lg);
199
+ -webkit-backdrop-filter: blur(16px);
200
+ backdrop-filter: blur(16px);
201
+ }
202
+ }
203
+
204
+ @media (prefers-reduced-motion: reduce) {
205
+ *, ::before, ::after { transition-duration: 0.01ms !important; }
206
+ }
207
+ `;
208
+ const logo = `<svg viewBox="0 0 224 224" aria-hidden="true"><path class="logo-agent" d="M0,168V80A80,80 0 0 1 160,80V128H128V80A48,48 0 0 0 32,80V168Z"/><path class="logo-jam" d="M224,56V144A80,80 0 0 1 64,144V96H96V144A48,48 0 0 0 192,144V56Z"/></svg>`;
209
+ export const wordmark = `<span class="wordmark" translate="no">${logo}<span>Agent<span class="jam">Jam</span></span></span>`;
210
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,MAAM,CAAC,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6MzB,CAAC;AAEF,MAAM,IAAI,GAAG,gPAAgP,CAAC;AAE9P,MAAM,CAAC,MAAM,QAAQ,GAAG,yCAAyC,IAAI,uDAAuD,CAAC"}
@@ -75,12 +75,12 @@ export declare const irreversibleHint = "A task of a skill marked irreversible c
75
75
  export declare const followUpHint = "To change or build on an ended task's result, delegate to the same agent again with follows set to its taskId, describing only what to change: the agent sees what that task asked for and produced, and the same skill reuses its input when you omit input. A skill that lists revisions runs that many follow-ups of a completed task for free.";
76
76
  export declare const prepareHint = "Before long work, pass the agents you'll delegate to whose skills list connections to prepare_delegates, so your human connects their accounts at the start rather than partway through.";
77
77
  export declare const summarize: (received: Artifact) => {
78
+ size?: never;
78
79
  id: string;
79
80
  type: string;
80
81
  name: string | undefined;
81
82
  mimeType: string | undefined;
82
83
  text: string;
83
- size?: never;
84
84
  } | {
85
85
  text?: never;
86
86
  id: string;
@@ -106,12 +106,12 @@ export declare class ArtifactShelf {
106
106
  private readonly received;
107
107
  /** Summarizes the files a task returned or a reply about it carried for the model, keeping them for the current task. */
108
108
  summarize(taskId: string | undefined, artifacts: Artifact[]): ({
109
+ size?: never;
109
110
  id: string;
110
111
  type: string;
111
112
  name: string | undefined;
112
113
  mimeType: string | undefined;
113
114
  text: string;
114
- size?: never;
115
115
  } | {
116
116
  text?: never;
117
117
  id: string;
@@ -129,12 +129,12 @@ export declare const settleTask: (task: OutgoingTask, shelf: ArtifactShelf) => P
129
129
  status: string;
130
130
  output?: import("../types.js").JsonObject;
131
131
  artifacts: ({
132
+ size?: never;
132
133
  id: string;
133
134
  type: string;
134
135
  name: string | undefined;
135
136
  mimeType: string | undefined;
136
137
  text: string;
137
- size?: never;
138
138
  } | {
139
139
  text?: never;
140
140
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentjam/sdk",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Allow your agents to discover, message, and delegate tasks to any other agent over AgentJam.",
5
5
  "homepage": "https://agentjam.com",
6
6
  "keywords": [