@agent-native/core 0.202.0 → 0.202.1-nightly-20261007011022
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/dist/agent/actions/list-model-providers.d.ts +2 -0
- package/dist/agent/actions/list-model-providers.js +32 -5
- package/dist/agent/actions/manage-provider-models.d.ts +1 -0
- package/dist/agent/engine/builder-engine.d.ts +1 -1
- package/dist/agent/engine/builtin.js +1 -1
- package/dist/agent/engine/index.d.ts +1 -1
- package/dist/agent/engine/index.js +1 -1
- package/dist/agent/engine/registry.d.ts +2 -0
- package/dist/agent/engine/registry.js +63 -47
- package/dist/agent/model-config.d.ts +6 -6
- package/dist/agent/model-config.js +7 -11
- package/dist/agent/model-version.d.ts +3 -0
- package/dist/agent/model-version.js +67 -0
- package/dist/agent/provider-model-selection.d.ts +6 -1
- package/dist/agent/provider-model-selection.js +131 -13
- package/dist/automation/index.d.ts +1 -1
- package/dist/cli/create.d.ts +2 -1
- package/dist/cli/create.js +17 -4
- package/dist/cli/template-sync.js +2 -1
- package/dist/cli/workspacify.d.ts +1 -0
- package/dist/cli/workspacify.js +4 -0
- package/dist/client/app-config.d.ts +1 -0
- package/dist/client/app-config.js +19 -0
- package/dist/client/chat/agentkit-protocol.js +122 -16
- package/dist/client/chat/runtime.js +943 -50
- package/dist/client/chat-model-groups.d.ts +1 -0
- package/dist/client/chat-model-groups.js +1 -0
- package/dist/client/use-chat-models.js +47 -6
- package/dist/deploy/build.js +23 -9
- package/dist/email-catalog/redact-body.js +1 -1
- package/dist/jobs/actions/manage-recurring-job.d.ts +1 -1
- package/dist/jobs/background-automation-runner.d.ts +3 -1
- package/dist/jobs/background-automation-runner.js +15 -8
- package/dist/jobs/scheduler.js +1 -1
- package/dist/mcp/build-server.d.ts +0 -1
- package/dist/mcp/build-server.js +10 -59
- package/dist/observability/routes.d.ts +6 -6
- package/dist/onboarding/app-profile-data.d.ts +10 -0
- package/dist/onboarding/app-profile-data.js +423 -0
- package/dist/onboarding/app-profile.d.ts +1 -7
- package/dist/onboarding/app-profile.js +5 -422
- package/dist/onboarding/index.d.ts +1 -0
- package/dist/onboarding/index.js +1 -0
- package/dist/org/handlers.d.ts +1 -1
- package/dist/org/index.d.ts +1 -1
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +2 -2
- package/dist/provider-api/actions/provider-api.d.ts +10 -10
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/scripts/agent-engines/manage-agent-engine.js +1 -1
- package/dist/scripts/agent-engines/set-agent-engine.js +1 -1
- package/dist/secrets/routes.d.ts +11 -11
- package/dist/server/action-routes.js +1 -0
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/app-origin-config.d.ts +2 -0
- package/dist/server/app-origin-config.js +4 -0
- package/dist/server/auth.js +43 -1
- package/dist/server/better-auth-instance.js +7 -12
- package/dist/server/email-auth-links.d.ts +11 -0
- package/dist/server/email-auth-links.js +126 -0
- package/dist/server/fusion-app.js +11 -1
- package/dist/shared/agent-chat-context.d.ts +3 -3
- package/dist/shared/agent-chat-context.js +2 -2
- package/dist/shared/auth-copy.d.ts +3 -0
- package/dist/shared/auth-copy.js +33 -0
- package/dist/shared/design-system-agent-context.d.ts +5 -0
- package/dist/shared/design-system-agent-context.js +37 -8
- package/dist/shared/index.d.ts +1 -1
- package/dist/triggers/actions/manage-automation.d.ts +7 -7
- package/dist/triggers/condition-evaluator.d.ts +21 -5
- package/dist/triggers/condition-evaluator.js +113 -59
- package/dist/triggers/dispatcher.js +39 -21
- package/dist/vite/client.js +10 -0
- package/docs/content/durable-resume.mdx +9 -3
- package/package.json +5 -3
|
@@ -1,427 +1,10 @@
|
|
|
1
1
|
import { getAppConfig } from "../app-config/index.js";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
id: "system-one",
|
|
5
|
-
label: "Decision model (Jev)",
|
|
6
|
-
required: false,
|
|
7
|
-
suggested: true,
|
|
8
|
-
builderIncluded: true,
|
|
9
|
-
keySummary: "Jev decision model key",
|
|
10
|
-
whyKey: "agentChat.onboarding.capability.systemOne.why",
|
|
11
|
-
why: "Jev is an optional decision model that helps choose relevant tools and skills before the agent's first model request.",
|
|
12
|
-
};
|
|
13
|
-
const PROFILES = {
|
|
14
|
-
analytics: {
|
|
15
|
-
appId: "analytics",
|
|
16
|
-
appName: "Analytics",
|
|
17
|
-
capabilities: [
|
|
18
|
-
LLM_CAPABILITY,
|
|
19
|
-
{
|
|
20
|
-
id: "data-sources",
|
|
21
|
-
label: "Data sources",
|
|
22
|
-
required: false,
|
|
23
|
-
builderIncluded: false,
|
|
24
|
-
keySummary: "Connectors are added individually in Settings",
|
|
25
|
-
why: "Only needed for the services you want to query, such as GA4, Stripe, or HubSpot.",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "replay-storage",
|
|
29
|
-
label: "Replay storage",
|
|
30
|
-
required: false,
|
|
31
|
-
builderIncluded: true,
|
|
32
|
-
keySummary: "S3-compatible bucket, access key, and secret",
|
|
33
|
-
why: "Only needed when session replay is enabled so recordings can be stored.",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
assets: {
|
|
38
|
-
appId: "assets",
|
|
39
|
-
appName: "Assets",
|
|
40
|
-
capabilities: [
|
|
41
|
-
{
|
|
42
|
-
id: "media-generation",
|
|
43
|
-
label: "Image generation",
|
|
44
|
-
required: true,
|
|
45
|
-
builderIncluded: true,
|
|
46
|
-
keySummary: "Image generation",
|
|
47
|
-
labelKey: "agentChat.onboarding.capability.assetsImageGeneration.label",
|
|
48
|
-
keySummaryKey: "agentChat.onboarding.capability.assetsImageGeneration.label",
|
|
49
|
-
whyKey: "agentChat.onboarding.capability.assetsImageGeneration.why",
|
|
50
|
-
why: "Image generation is the core workflow for creating on-brand assets.",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: "video-generation",
|
|
54
|
-
label: "Video generation",
|
|
55
|
-
required: false,
|
|
56
|
-
suggested: true,
|
|
57
|
-
builderIncluded: true,
|
|
58
|
-
keySummary: "Gemini API key",
|
|
59
|
-
labelKey: "agentChat.onboarding.capability.assetsVideoGeneration.label",
|
|
60
|
-
keySummaryKey: "agentChat.onboarding.capability.assetsVideoGeneration.keySummary",
|
|
61
|
-
whyKey: "agentChat.onboarding.capability.assetsVideoGeneration.why",
|
|
62
|
-
why: "Video generation is optional; the core Assets workflow is image generation.",
|
|
63
|
-
},
|
|
64
|
-
DESIGN_SYSTEM_INTELLIGENCE_CAPABILITY,
|
|
65
|
-
{
|
|
66
|
-
id: "file-storage",
|
|
67
|
-
label: "Media storage",
|
|
68
|
-
required: false,
|
|
69
|
-
suggested: true,
|
|
70
|
-
builderIncluded: true,
|
|
71
|
-
keySummary: "Media storage",
|
|
72
|
-
why: "Generated files need a durable place to live before they can be shared.",
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
brain: {
|
|
77
|
-
appId: "brain",
|
|
78
|
-
appName: "Brain",
|
|
79
|
-
capabilities: [
|
|
80
|
-
LLM_CAPABILITY,
|
|
81
|
-
EMBEDDINGS_CAPABILITY,
|
|
82
|
-
{
|
|
83
|
-
id: "source-connections",
|
|
84
|
-
label: "Source connections",
|
|
85
|
-
required: false,
|
|
86
|
-
builderIncluded: false,
|
|
87
|
-
keySummary: "Slack, Granola, or GitHub connection",
|
|
88
|
-
why: "Only needed for the sources you want to ingest into your knowledge base.",
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
calendar: {
|
|
93
|
-
appId: "calendar",
|
|
94
|
-
appName: "Calendar",
|
|
95
|
-
capabilities: [
|
|
96
|
-
LLM_CAPABILITY,
|
|
97
|
-
{
|
|
98
|
-
id: "google-calendar",
|
|
99
|
-
label: "Google Calendar",
|
|
100
|
-
required: false,
|
|
101
|
-
builderIncluded: false,
|
|
102
|
-
keySummary: "Connect Google Calendar with OAuth",
|
|
103
|
-
why: "Calendar access is an OAuth connection, not an API key to paste.",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: "calendar-connectors",
|
|
107
|
-
label: "Other calendar connections",
|
|
108
|
-
required: false,
|
|
109
|
-
builderIncluded: false,
|
|
110
|
-
keySummary: "Zoom, CRM, or enrichment connection",
|
|
111
|
-
why: "Only needed for the provider features you turn on.",
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
},
|
|
115
|
-
chat: {
|
|
116
|
-
appId: "chat",
|
|
117
|
-
appName: "Chat",
|
|
118
|
-
capabilities: [LLM_CAPABILITY],
|
|
119
|
-
},
|
|
120
|
-
clips: {
|
|
121
|
-
appId: "clips",
|
|
122
|
-
appName: "Clips",
|
|
123
|
-
capabilities: [
|
|
124
|
-
LLM_CAPABILITY,
|
|
125
|
-
{
|
|
126
|
-
id: "video-storage",
|
|
127
|
-
label: "Object storage",
|
|
128
|
-
required: true,
|
|
129
|
-
builderIncluded: true,
|
|
130
|
-
keySummary: "Object storage",
|
|
131
|
-
labelKey: "agentChat.onboarding.capability.clipsObjectStorage.label",
|
|
132
|
-
keySummaryKey: "agentChat.onboarding.capability.clipsObjectStorage.label",
|
|
133
|
-
whyKey: "agentChat.onboarding.capability.clipsObjectStorage.why",
|
|
134
|
-
why: "Recorded videos need durable object storage before they can be played back or shared.",
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
id: "transcription",
|
|
138
|
-
label: "Transcription",
|
|
139
|
-
required: false,
|
|
140
|
-
builderIncluded: true,
|
|
141
|
-
keySummary: "Speech-to-text provider key",
|
|
142
|
-
keySummaryKey: "agentChat.onboarding.capability.clipsTranscription.keySummary",
|
|
143
|
-
why: "Transcription powers captions, titles, summaries, and searchable chapters. Native capture still works without it.",
|
|
144
|
-
},
|
|
145
|
-
],
|
|
146
|
-
},
|
|
147
|
-
content: {
|
|
148
|
-
appId: "content",
|
|
149
|
-
appName: "Content",
|
|
150
|
-
capabilities: [
|
|
151
|
-
LLM_CAPABILITY,
|
|
152
|
-
{
|
|
153
|
-
id: "media-storage",
|
|
154
|
-
label: "Media storage",
|
|
155
|
-
required: false,
|
|
156
|
-
builderIncluded: true,
|
|
157
|
-
keySummary: "Builder file storage or S3-compatible storage",
|
|
158
|
-
why: "Only needed for documents that contain uploaded images, video, or audio.",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
id: "notion",
|
|
162
|
-
label: "Notion",
|
|
163
|
-
required: false,
|
|
164
|
-
builderIncluded: false,
|
|
165
|
-
keySummary: "Connect Notion with OAuth",
|
|
166
|
-
why: "Only needed if you want to import or sync workspace content from Notion.",
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
},
|
|
170
|
-
crm: {
|
|
171
|
-
appId: "crm",
|
|
172
|
-
appName: "CRM",
|
|
173
|
-
capabilities: [
|
|
174
|
-
LLM_CAPABILITY,
|
|
175
|
-
{
|
|
176
|
-
id: "crm-connection",
|
|
177
|
-
label: "CRM connection",
|
|
178
|
-
required: false,
|
|
179
|
-
builderIncluded: false,
|
|
180
|
-
keySummary: "Connect HubSpot or Salesforce",
|
|
181
|
-
why: "Connections are shared securely with CRM; no provider token needs to be pasted here.",
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
},
|
|
185
|
-
design: {
|
|
186
|
-
appId: "design",
|
|
187
|
-
appName: "Design",
|
|
188
|
-
capabilities: [
|
|
189
|
-
LLM_CAPABILITY,
|
|
190
|
-
DESIGN_SYSTEM_INTELLIGENCE_CAPABILITY,
|
|
191
|
-
{
|
|
192
|
-
id: "image-generation",
|
|
193
|
-
label: "Image generation",
|
|
194
|
-
required: false,
|
|
195
|
-
suggested: true,
|
|
196
|
-
builderIncluded: true,
|
|
197
|
-
keySummary: "Image generation",
|
|
198
|
-
labelKey: "agentChat.onboarding.capability.assetsImageGeneration.label",
|
|
199
|
-
keySummaryKey: "agentChat.onboarding.capability.assetsImageGeneration.label",
|
|
200
|
-
whyKey: "agentChat.onboarding.capability.assetsImageGeneration.why",
|
|
201
|
-
why: "Image generation is the core workflow for creating on-brand assets.",
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
id: "assets-library",
|
|
205
|
-
label: "Assets library",
|
|
206
|
-
required: false,
|
|
207
|
-
builderIncluded: true,
|
|
208
|
-
keySummary: "Connect the Assets app",
|
|
209
|
-
why: "Only needed when designs use managed images or other media assets.",
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
id: "figma",
|
|
213
|
-
label: "Figma",
|
|
214
|
-
required: false,
|
|
215
|
-
builderIncluded: false,
|
|
216
|
-
keySummary: "Figma personal access token",
|
|
217
|
-
why: "Only needed to read or update files in Figma.",
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
id: "github",
|
|
221
|
-
label: "GitHub",
|
|
222
|
-
required: false,
|
|
223
|
-
builderIncluded: false,
|
|
224
|
-
keySummary: "GitHub token",
|
|
225
|
-
why: "Only needed when designs are connected to a repository.",
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
},
|
|
229
|
-
dispatch: {
|
|
230
|
-
appId: "dispatch",
|
|
231
|
-
appName: "Dispatch",
|
|
232
|
-
capabilities: [
|
|
233
|
-
LLM_CAPABILITY,
|
|
234
|
-
{
|
|
235
|
-
id: "workspace-connections",
|
|
236
|
-
label: "Workspace connections",
|
|
237
|
-
required: false,
|
|
238
|
-
builderIncluded: false,
|
|
239
|
-
keySummary: "Connect providers from the workspace registry",
|
|
240
|
-
why: "Dispatch uses shared connections so provider tokens never need to be pasted into this app.",
|
|
241
|
-
},
|
|
242
|
-
],
|
|
243
|
-
},
|
|
244
|
-
factory: {
|
|
245
|
-
appId: "factory",
|
|
246
|
-
appName: "Factory",
|
|
247
|
-
capabilities: [
|
|
248
|
-
LLM_CAPABILITY,
|
|
249
|
-
{
|
|
250
|
-
id: "builder-executor",
|
|
251
|
-
label: "Builder executor",
|
|
252
|
-
required: true,
|
|
253
|
-
builderIncluded: true,
|
|
254
|
-
keySummary: "Use Builder.io for managed agent runs",
|
|
255
|
-
why: "The executor runs approved code and review workflows for Factory items.",
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
id: "triage-connections",
|
|
259
|
-
label: "Triage connections",
|
|
260
|
-
required: false,
|
|
261
|
-
builderIncluded: false,
|
|
262
|
-
keySummary: "GitHub, Slack, or Sentry connection",
|
|
263
|
-
why: "Only needed for the feedback source you want Factory to monitor.",
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
},
|
|
267
|
-
forms: {
|
|
268
|
-
appId: "forms",
|
|
269
|
-
appName: "Forms",
|
|
270
|
-
capabilities: [
|
|
271
|
-
LLM_CAPABILITY,
|
|
272
|
-
{
|
|
273
|
-
id: "file-storage",
|
|
274
|
-
label: "File storage",
|
|
275
|
-
required: false,
|
|
276
|
-
builderIncluded: true,
|
|
277
|
-
keySummary: "Builder file storage or S3-compatible storage",
|
|
278
|
-
why: "Text-only forms work without storage. Add it when a form accepts file uploads.",
|
|
279
|
-
},
|
|
280
|
-
],
|
|
281
|
-
},
|
|
282
|
-
mail: {
|
|
283
|
-
appId: "mail",
|
|
284
|
-
appName: "Mail",
|
|
285
|
-
capabilities: [
|
|
286
|
-
LLM_CAPABILITY,
|
|
287
|
-
{
|
|
288
|
-
id: "gmail",
|
|
289
|
-
label: "Gmail",
|
|
290
|
-
required: true,
|
|
291
|
-
builderIncluded: false,
|
|
292
|
-
satisfiedBySignIn: true,
|
|
293
|
-
keySummary: "Connect Gmail with OAuth",
|
|
294
|
-
why: "Mail uses the workspace's managed Google connection; no key is pasted here.",
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
id: "attachment-storage",
|
|
298
|
-
label: "Attachment storage",
|
|
299
|
-
required: false,
|
|
300
|
-
builderIncluded: true,
|
|
301
|
-
keySummary: "Builder file storage or S3-compatible storage",
|
|
302
|
-
why: "Only needed when attachments need to be retained outside Gmail.",
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
},
|
|
306
|
-
plan: {
|
|
307
|
-
appId: "plan",
|
|
308
|
-
appName: "Plan",
|
|
309
|
-
capabilities: [
|
|
310
|
-
LLM_CAPABILITY,
|
|
311
|
-
{
|
|
312
|
-
id: "plan-assets",
|
|
313
|
-
label: "Plan asset storage",
|
|
314
|
-
required: false,
|
|
315
|
-
builderIncluded: true,
|
|
316
|
-
keySummary: "Builder file storage or S3-compatible storage",
|
|
317
|
-
why: "Only needed for screenshots and other visual plan assets.",
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
id: "google-sign-in",
|
|
321
|
-
label: "Google sign-in",
|
|
322
|
-
required: false,
|
|
323
|
-
builderIncluded: false,
|
|
324
|
-
keySummary: "Google OAuth client ID and secret",
|
|
325
|
-
why: "Only needed when Google sign-in is enabled for the deployment.",
|
|
326
|
-
},
|
|
327
|
-
],
|
|
328
|
-
},
|
|
329
|
-
slides: {
|
|
330
|
-
appId: "slides",
|
|
331
|
-
appName: "Slides",
|
|
332
|
-
capabilities: [
|
|
333
|
-
LLM_CAPABILITY,
|
|
334
|
-
DESIGN_SYSTEM_INTELLIGENCE_CAPABILITY,
|
|
335
|
-
{
|
|
336
|
-
id: "image-generation",
|
|
337
|
-
label: "Image generation",
|
|
338
|
-
required: false,
|
|
339
|
-
suggested: true,
|
|
340
|
-
builderIncluded: true,
|
|
341
|
-
keySummary: "Image generation",
|
|
342
|
-
labelKey: "agentChat.onboarding.capability.assetsImageGeneration.label",
|
|
343
|
-
keySummaryKey: "agentChat.onboarding.capability.assetsImageGeneration.label",
|
|
344
|
-
why: "Only needed when slides generate images instead of using uploaded assets.",
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
id: "reference-storage",
|
|
348
|
-
label: "Reference file storage",
|
|
349
|
-
required: false,
|
|
350
|
-
builderIncluded: true,
|
|
351
|
-
keySummary: "Builder file storage or S3-compatible storage",
|
|
352
|
-
why: "Only needed for uploaded reference files and presentation assets.",
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
id: "google-docs",
|
|
356
|
-
label: "Google Docs",
|
|
357
|
-
required: false,
|
|
358
|
-
builderIncluded: false,
|
|
359
|
-
keySummary: "Connect Google Docs with OAuth",
|
|
360
|
-
why: "Only needed to import source material from Google Drive or Docs.",
|
|
361
|
-
},
|
|
362
|
-
],
|
|
363
|
-
},
|
|
364
|
-
tasks: {
|
|
365
|
-
appId: "tasks",
|
|
366
|
-
appName: "Tasks",
|
|
367
|
-
capabilities: [LLM_CAPABILITY],
|
|
368
|
-
},
|
|
369
|
-
};
|
|
370
|
-
const FALLBACK_PROFILE = {
|
|
371
|
-
appId: "app",
|
|
372
|
-
appName: "Your app",
|
|
373
|
-
capabilities: [LLM_CAPABILITY],
|
|
374
|
-
};
|
|
375
|
-
function normalizeAppId(value) {
|
|
376
|
-
const normalized = value?.trim().toLowerCase() ?? "";
|
|
377
|
-
if (!normalized)
|
|
378
|
-
return "app";
|
|
379
|
-
return (normalized
|
|
380
|
-
.replace(/^@[^/]+\//, "")
|
|
381
|
-
.replace(/^agent-native-/, "")
|
|
382
|
-
.replace(/[^a-z0-9-]/g, "-")
|
|
383
|
-
.replace(/-+/g, "-")
|
|
384
|
-
.replace(/^-|-$/g, "") || "app");
|
|
385
|
-
}
|
|
2
|
+
import { getOnboardingAppProfileForId, normalizeOnboardingAppId, } from "./app-profile-data.js";
|
|
3
|
+
export { getOnboardingAppProfileForId } from "./app-profile-data.js";
|
|
386
4
|
export function resolveOnboardingAppId(explicit) {
|
|
387
|
-
|
|
5
|
+
const config = getAppConfig();
|
|
6
|
+
return normalizeOnboardingAppId(explicit ?? config.app.id ?? config.app.packageName);
|
|
388
7
|
}
|
|
389
|
-
/**
|
|
390
|
-
* The app's setup profile: the shared workspace services first (see
|
|
391
|
-
* `WORKSPACE_SERVICES`), each tagged with its `service` id, then the app's
|
|
392
|
-
* own capabilities. A profile that declares a
|
|
393
|
-
* service's capability tailors its copy and can raise it to required or
|
|
394
|
-
* recommended, never lower it.
|
|
395
|
-
*/
|
|
396
8
|
export function getOnboardingAppProfile(appId) {
|
|
397
|
-
|
|
398
|
-
const profile = PROFILES[resolvedId] ?? FALLBACK_PROFILE;
|
|
399
|
-
const services = WORKSPACE_SERVICES.flatMap((service) => {
|
|
400
|
-
const declared = profile.capabilities.find((capability) => service.capabilityIds.includes(capability.id));
|
|
401
|
-
if (!declared && !service.everyApp)
|
|
402
|
-
return [];
|
|
403
|
-
const base = declared ?? service.capability;
|
|
404
|
-
const required = Boolean(declared?.required || service.capability.required);
|
|
405
|
-
const suggested = !required && Boolean(declared?.suggested || service.capability.suggested);
|
|
406
|
-
return [
|
|
407
|
-
{
|
|
408
|
-
...base,
|
|
409
|
-
required,
|
|
410
|
-
suggested,
|
|
411
|
-
service: service.id,
|
|
412
|
-
...(service.kind === "builder-only" ? { builderOnly: true } : {}),
|
|
413
|
-
},
|
|
414
|
-
];
|
|
415
|
-
});
|
|
416
|
-
const appCapabilities = profile.capabilities.filter((capability) => !workspaceServiceForCapability(capability.id));
|
|
417
|
-
return {
|
|
418
|
-
...profile,
|
|
419
|
-
capabilities: [
|
|
420
|
-
// Jev is part of the model setup, so it follows the AI model.
|
|
421
|
-
...services.flatMap((capability) => capability.service === "model"
|
|
422
|
-
? [capability, { ...SYSTEM_ONE_CAPABILITY }]
|
|
423
|
-
: [capability]),
|
|
424
|
-
...appCapabilities.map((capability) => ({ ...capability })),
|
|
425
|
-
],
|
|
426
|
-
};
|
|
9
|
+
return getOnboardingAppProfileForId(resolveOnboardingAppId(appId));
|
|
427
10
|
}
|
|
@@ -2,6 +2,7 @@ export { registerOnboardingStep, listOnboardingSteps } from "./registry.js";
|
|
|
2
2
|
export type { OnboardingStep, OnboardingMethod, OnboardingMethodBadge, OnboardingFormField, OnboardingStepStatus, OnboardingCapability, OnboardingAppProfile, WorkspaceBuilderOnlyServiceId, WorkspaceProviderServiceId, WorkspaceServiceId, } from "./types.js";
|
|
3
3
|
export { WORKSPACE_SERVICES, workspaceServiceForCapability, type WorkspaceService, type WorkspaceServiceKind, } from "./workspace-services.js";
|
|
4
4
|
export { getOnboardingAppProfile, resolveOnboardingAppId, } from "./app-profile.js";
|
|
5
|
+
export { getOnboardingAppProfileForId } from "./app-profile-data.js";
|
|
5
6
|
export type { OnboardingPluginOptions } from "./plugin.js";
|
|
6
7
|
export declare const createOnboardingPlugin: (typeof import("./plugin.js"))["createOnboardingPlugin"];
|
|
7
8
|
export declare const defaultOnboardingPlugin: (nitroApp: any) => void | Promise<void>;
|
package/dist/onboarding/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { registerOnboardingStep, listOnboardingSteps } from "./registry.js";
|
|
2
2
|
export { WORKSPACE_SERVICES, workspaceServiceForCapability, } from "./workspace-services.js";
|
|
3
3
|
export { getOnboardingAppProfile, resolveOnboardingAppId, } from "./app-profile.js";
|
|
4
|
+
export { getOnboardingAppProfileForId } from "./app-profile-data.js";
|
|
4
5
|
const loadOnboardingPlugin = () => import("./plugin.js");
|
|
5
6
|
export const createOnboardingPlugin = ((...args) => (...nitroArgs) => loadOnboardingPlugin().then(({ createOnboardingPlugin }) => {
|
|
6
7
|
const factory = Reflect.apply(createOnboardingPlugin, undefined, args);
|
package/dist/org/handlers.d.ts
CHANGED
|
@@ -73,8 +73,8 @@ export declare const setWorkspaceAppDefaultVisibilityHandler: import("h3").Event
|
|
|
73
73
|
export declare const createOrgHandler: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
74
74
|
name?: undefined;
|
|
75
75
|
success: boolean;
|
|
76
|
-
id?: undefined;
|
|
77
76
|
role?: undefined;
|
|
77
|
+
id?: undefined;
|
|
78
78
|
} | {
|
|
79
79
|
success?: undefined;
|
|
80
80
|
id: string;
|
package/dist/org/index.d.ts
CHANGED
|
@@ -177,9 +177,9 @@ export declare const getMyOrgHandler: import("h3").EventHandlerWithFetch<import(
|
|
|
177
177
|
soloDeploymentAdmin: boolean | undefined;
|
|
178
178
|
}>>;
|
|
179
179
|
export declare const createOrgHandler: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
180
|
+
id?: undefined;
|
|
180
181
|
name?: undefined;
|
|
181
182
|
success: boolean;
|
|
182
|
-
id?: undefined;
|
|
183
183
|
role?: undefined;
|
|
184
184
|
} | {
|
|
185
185
|
success?: undefined;
|
|
@@ -77,8 +77,8 @@ export declare function createCustomProviderRegistrationAction<TSchema extends Z
|
|
|
77
77
|
}, z.core.$strip>>, {
|
|
78
78
|
id?: undefined;
|
|
79
79
|
message?: undefined;
|
|
80
|
-
found?: undefined;
|
|
81
80
|
deleted?: undefined;
|
|
81
|
+
found?: undefined;
|
|
82
82
|
providers: {
|
|
83
83
|
id: string;
|
|
84
84
|
label: string;
|
|
@@ -124,8 +124,8 @@ export declare function createCustomProviderRegistrationAction<TSchema extends Z
|
|
|
124
124
|
label?: undefined;
|
|
125
125
|
} | {
|
|
126
126
|
count?: undefined;
|
|
127
|
-
found?: undefined;
|
|
128
127
|
deleted?: undefined;
|
|
128
|
+
found?: undefined;
|
|
129
129
|
providers?: undefined;
|
|
130
130
|
provider?: undefined;
|
|
131
131
|
registered: boolean;
|
|
@@ -311,8 +311,7 @@ export declare function createProviderApiActions(runtime: Pick<ProviderApiRuntim
|
|
|
311
311
|
notes?: string | undefined;
|
|
312
312
|
scope?: "org" | "user" | undefined;
|
|
313
313
|
}, {
|
|
314
|
-
|
|
315
|
-
message?: undefined;
|
|
314
|
+
deleted?: undefined;
|
|
316
315
|
found?: undefined;
|
|
317
316
|
providers: {
|
|
318
317
|
id: string;
|
|
@@ -325,32 +324,32 @@ export declare function createProviderApiActions(runtime: Pick<ProviderApiRuntim
|
|
|
325
324
|
}[];
|
|
326
325
|
count: number;
|
|
327
326
|
provider?: undefined;
|
|
328
|
-
deleted?: undefined;
|
|
329
327
|
registered?: undefined;
|
|
328
|
+
id?: undefined;
|
|
330
329
|
label?: undefined;
|
|
330
|
+
message?: undefined;
|
|
331
331
|
} | {
|
|
332
|
-
|
|
332
|
+
deleted?: undefined;
|
|
333
333
|
count?: undefined;
|
|
334
|
-
message?: undefined;
|
|
335
334
|
providers?: undefined;
|
|
336
335
|
found: boolean;
|
|
337
336
|
provider: import("../custom-registry.js").CustomProviderConfig;
|
|
338
|
-
deleted?: undefined;
|
|
339
337
|
registered?: undefined;
|
|
338
|
+
id?: undefined;
|
|
340
339
|
label?: undefined;
|
|
340
|
+
message?: undefined;
|
|
341
341
|
} | {
|
|
342
|
+
deleted?: undefined;
|
|
342
343
|
count?: undefined;
|
|
343
|
-
message?: undefined;
|
|
344
344
|
providers?: undefined;
|
|
345
345
|
provider?: undefined;
|
|
346
346
|
found: boolean;
|
|
347
347
|
id: string;
|
|
348
|
-
deleted?: undefined;
|
|
349
348
|
registered?: undefined;
|
|
350
349
|
label?: undefined;
|
|
350
|
+
message?: undefined;
|
|
351
351
|
} | {
|
|
352
352
|
count?: undefined;
|
|
353
|
-
message?: undefined;
|
|
354
353
|
found?: undefined;
|
|
355
354
|
providers?: undefined;
|
|
356
355
|
provider?: undefined;
|
|
@@ -358,12 +357,13 @@ export declare function createProviderApiActions(runtime: Pick<ProviderApiRuntim
|
|
|
358
357
|
id: string;
|
|
359
358
|
registered?: undefined;
|
|
360
359
|
label?: undefined;
|
|
360
|
+
message?: undefined;
|
|
361
361
|
} | {
|
|
362
|
+
deleted?: undefined;
|
|
362
363
|
count?: undefined;
|
|
363
364
|
found?: undefined;
|
|
364
365
|
providers?: undefined;
|
|
365
366
|
provider?: undefined;
|
|
366
|
-
deleted?: undefined;
|
|
367
367
|
registered: boolean;
|
|
368
368
|
id: string;
|
|
369
369
|
label: string;
|
|
@@ -73,6 +73,7 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
73
73
|
offset?: unknown;
|
|
74
74
|
limit?: unknown;
|
|
75
75
|
}, {
|
|
76
|
+
deleted?: undefined;
|
|
76
77
|
jobs: {
|
|
77
78
|
id: string;
|
|
78
79
|
name: string;
|
|
@@ -83,7 +84,6 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
83
84
|
updatedAt: string;
|
|
84
85
|
}[];
|
|
85
86
|
total: number;
|
|
86
|
-
deleted?: undefined;
|
|
87
87
|
jobId?: undefined;
|
|
88
88
|
} | {
|
|
89
89
|
jobs?: undefined;
|
|
@@ -91,9 +91,9 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
91
91
|
deleted: boolean;
|
|
92
92
|
jobId: string;
|
|
93
93
|
} | {
|
|
94
|
+
deleted?: undefined;
|
|
94
95
|
jobs?: undefined;
|
|
95
96
|
total?: undefined;
|
|
96
|
-
deleted?: undefined;
|
|
97
97
|
jobId?: undefined;
|
|
98
98
|
hits: Record<string, unknown>[];
|
|
99
99
|
offset: number;
|
|
@@ -29,7 +29,7 @@ export const tool = {
|
|
|
29
29
|
},
|
|
30
30
|
model: {
|
|
31
31
|
type: "string",
|
|
32
|
-
description: "Model ID (e.g. 'gpt-
|
|
32
|
+
description: "Model ID (e.g. 'gpt-6.1-sol', 'claude-sonnet-5-5', 'gemini-3-1-pro'). Required for \"set-app-default\"; optional for \"set\" and \"test\" where it defaults to the engine's default model.",
|
|
33
33
|
},
|
|
34
34
|
baseUrl: {
|
|
35
35
|
type: "string",
|
|
@@ -21,7 +21,7 @@ export const tool = {
|
|
|
21
21
|
},
|
|
22
22
|
model: {
|
|
23
23
|
type: "string",
|
|
24
|
-
description: "Model ID to use with this engine (e.g. 'gpt-
|
|
24
|
+
description: "Model ID to use with this engine (e.g. 'gpt-6.1-sol', 'claude-sonnet-5-5'). Defaults to the engine's default model if omitted.",
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
required: ["engine"],
|
package/dist/secrets/routes.d.ts
CHANGED
|
@@ -58,47 +58,47 @@ export declare function createWriteSecretHandler(): import("h3").EventHandlerWit
|
|
|
58
58
|
error: string;
|
|
59
59
|
errorCode?: undefined;
|
|
60
60
|
retryable?: undefined;
|
|
61
|
-
ok?: undefined;
|
|
62
61
|
status?: undefined;
|
|
62
|
+
ok?: undefined;
|
|
63
63
|
} | {
|
|
64
64
|
error: string;
|
|
65
65
|
errorCode: string;
|
|
66
66
|
retryable?: undefined;
|
|
67
|
-
ok?: undefined;
|
|
68
67
|
status?: undefined;
|
|
68
|
+
ok?: undefined;
|
|
69
69
|
} | {
|
|
70
70
|
error: string;
|
|
71
71
|
errorCode: string;
|
|
72
72
|
retryable: boolean;
|
|
73
|
-
ok?: undefined;
|
|
74
73
|
status?: undefined;
|
|
74
|
+
ok?: undefined;
|
|
75
75
|
} | {
|
|
76
|
-
error?: undefined;
|
|
77
76
|
errorCode?: undefined;
|
|
78
77
|
retryable?: undefined;
|
|
79
78
|
ok: boolean;
|
|
80
79
|
status: string;
|
|
80
|
+
error?: undefined;
|
|
81
81
|
} | {
|
|
82
|
-
ok?: undefined;
|
|
83
82
|
error: string;
|
|
84
83
|
removed?: undefined;
|
|
84
|
+
ok?: undefined;
|
|
85
85
|
} | {
|
|
86
|
-
error?: undefined;
|
|
87
86
|
ok: boolean;
|
|
88
87
|
removed: boolean;
|
|
88
|
+
error?: undefined;
|
|
89
89
|
}>>;
|
|
90
90
|
export declare function createTestSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
91
|
-
ok?: undefined;
|
|
92
91
|
error: string;
|
|
93
92
|
note?: undefined;
|
|
93
|
+
ok?: undefined;
|
|
94
94
|
} | {
|
|
95
|
-
error?: undefined;
|
|
96
95
|
ok: boolean;
|
|
97
96
|
note?: undefined;
|
|
98
|
-
} | {
|
|
99
97
|
error?: undefined;
|
|
98
|
+
} | {
|
|
100
99
|
ok: boolean;
|
|
101
100
|
note: string;
|
|
101
|
+
error?: undefined;
|
|
102
102
|
} | {
|
|
103
103
|
note?: undefined;
|
|
104
104
|
ok: boolean;
|
|
@@ -126,11 +126,11 @@ export declare function createAdHocSecretHandler(): import("h3").EventHandlerWit
|
|
|
126
126
|
} | {
|
|
127
127
|
error: string;
|
|
128
128
|
} | {
|
|
129
|
-
error?: undefined;
|
|
130
129
|
ok: boolean;
|
|
131
130
|
key: string;
|
|
132
|
-
} | {
|
|
133
131
|
error?: undefined;
|
|
132
|
+
} | {
|
|
134
133
|
ok: boolean;
|
|
135
134
|
removed: boolean;
|
|
135
|
+
error?: undefined;
|
|
136
136
|
}>>;
|