@agent-native/core 0.167.4 → 0.168.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.
- package/corpus/README.md +1 -1
- package/corpus/templates/brain/actions/list-sources.ts +17 -7
- package/corpus/templates/brain/app/components/brain/Surface.tsx +4 -2
- package/corpus/templates/brain/app/lib/brain.ts +13 -3
- package/corpus/templates/brain/server/lib/brain-health.ts +5 -8
- package/corpus/templates/brain/server/lib/brain.ts +1 -0
- package/corpus/templates/brain/server/lib/capture-sanitization.ts +5 -0
- package/corpus/templates/brain/server/routes/api/brain/queue/run.post.ts +3 -2
- package/corpus/templates/clips/desktop/src/app.tsx +11 -10
- package/corpus/templates/clips/desktop/src/lib/desktop-oauth-window.ts +23 -0
- package/corpus/templates/clips/desktop/src-tauri/src/util.rs +32 -0
- package/dist/client/AboutAgentNativeDialog.d.ts +5 -0
- package/dist/client/AboutAgentNativeDialog.js +56 -0
- package/dist/client/AgentPanel.d.ts +3 -1
- package/dist/client/AgentPanel.js +2 -2
- package/dist/client/CommandMenu.d.ts +6 -1
- package/dist/client/CommandMenu.js +46 -3
- package/dist/client/EnvironmentBadge.js +4 -1
- package/dist/client/agent-native-version.d.ts +12 -0
- package/dist/client/agent-native-version.js +36 -0
- package/dist/client/agent-page/AgentTabsPage.d.ts +4 -1
- package/dist/client/agent-page/AgentTabsPage.js +2 -2
- package/dist/client/integrations/IntegrationConnectionChoice.d.ts +4 -1
- package/dist/client/integrations/IntegrationConnectionChoice.js +6 -2
- package/dist/client/onboarding/FirstRunOnboarding.js +9 -5
- package/dist/client/resources/McpIntegrationDialog.d.ts +3 -1
- package/dist/client/resources/McpIntegrationDialog.js +181 -112
- package/dist/client/resources/mcp-integration-catalog.d.ts +1 -0
- package/dist/client/resources/mcp-integration-catalog.js +5 -2
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.js +14 -9
- package/dist/localization/core-messages/ar-SA.js +6 -0
- package/dist/localization/core-messages/de-DE.js +6 -0
- package/dist/localization/core-messages/en-US.d.ts +6 -0
- package/dist/localization/core-messages/en-US.js +6 -0
- package/dist/localization/core-messages/es-ES.js +6 -0
- package/dist/localization/core-messages/fr-FR.js +6 -0
- package/dist/localization/core-messages/hi-IN.js +6 -0
- package/dist/localization/core-messages/ja-JP.js +6 -0
- package/dist/localization/core-messages/ko-KR.js +6 -0
- package/dist/localization/core-messages/pt-BR.js +6 -0
- package/dist/localization/core-messages/zh-CN.js +6 -0
- package/dist/localization/core-messages/zh-TW.js +6 -0
- package/dist/localization/core-messages.d.ts +6 -0
- package/dist/localization/default-messages.d.ts +9 -0
- package/dist/localization/default-messages.js +9 -0
- package/dist/observability/routes.d.ts +3 -3
- package/dist/provider-api/actions/custom-provider-registration.d.ts +4 -4
- package/dist/provider-api/actions/provider-api.d.ts +8 -8
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/vite/agent-native-config-loader.js +1 -1
- package/dist/vite/client.js +9 -8
- package/dist/vite/package-versions.d.ts +1 -0
- package/dist/vite/package-versions.js +97 -0
- package/docs/content/agent-native-config.mdx +55 -31
- package/docs/content/environment-variables.mdx +51 -14
- package/package.json +1 -1
|
@@ -71,6 +71,7 @@ export declare function buildMcpOAuthStartUrl({ name, url, description, scope, r
|
|
|
71
71
|
export declare function navigateToMcpOAuthStart(url: string): void;
|
|
72
72
|
export declare function resolveMcpIntegrationScope(defaultScope: "user" | "org", hasOrg: boolean, canCreateOrgMcp: boolean, supportsOrganizationScope?: boolean): "user" | "org";
|
|
73
73
|
export declare function shouldOfferMcpOrganizationScope(hasOrg: boolean, canCreateOrgMcp: boolean): boolean;
|
|
74
|
+
export declare function supportsMcpIntegrationOrganizationScope(integration: DefaultMcpIntegration): boolean;
|
|
74
75
|
export declare function shouldOfferMcpIntegrationOrganizationScope(integration: DefaultMcpIntegration, hasOrg: boolean, canCreateOrgMcp: boolean): boolean;
|
|
75
76
|
export declare function filterMcpIntegrations(query: string, integrations?: DefaultMcpIntegration[]): DefaultMcpIntegration[];
|
|
76
77
|
export declare function findMcpIntegrationForText(text: string, integrations?: DefaultMcpIntegration[]): DefaultMcpIntegration | null;
|
|
@@ -863,10 +863,13 @@ export function resolveMcpIntegrationScope(defaultScope, hasOrg, canCreateOrgMcp
|
|
|
863
863
|
export function shouldOfferMcpOrganizationScope(hasOrg, canCreateOrgMcp) {
|
|
864
864
|
return hasOrg && canCreateOrgMcp;
|
|
865
865
|
}
|
|
866
|
+
export function supportsMcpIntegrationOrganizationScope(integration) {
|
|
867
|
+
return (integration.supportsOrganizationScope === true &&
|
|
868
|
+
integration.managedOAuth !== true);
|
|
869
|
+
}
|
|
866
870
|
export function shouldOfferMcpIntegrationOrganizationScope(integration, hasOrg, canCreateOrgMcp) {
|
|
867
871
|
return (shouldOfferMcpOrganizationScope(hasOrg, canCreateOrgMcp) &&
|
|
868
|
-
integration
|
|
869
|
-
integration.managedOAuth !== true);
|
|
872
|
+
supportsMcpIntegrationOrganizationScope(integration));
|
|
870
873
|
}
|
|
871
874
|
export function filterMcpIntegrations(query, integrations = getDefaultMcpIntegrations()) {
|
|
872
875
|
const needle = query.trim().toLowerCase();
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* Body: { json: any, fieldName?: string, type?: "map"|"array", requestSource?: string }
|
|
14
14
|
*/
|
|
15
15
|
export declare const postCollabJson: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
16
|
-
ok?: undefined;
|
|
17
16
|
error: string;
|
|
17
|
+
ok?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
error?: undefined;
|
|
20
20
|
ok: boolean;
|
package/dist/config.d.ts
CHANGED
|
@@ -113,7 +113,9 @@ export declare function agentNativeConfigEnvName(path: readonly string[]): strin
|
|
|
113
113
|
*/
|
|
114
114
|
export declare function readAgentNativeConfigEnv(env: Record<string, string | undefined>): AgentNativeConfig;
|
|
115
115
|
export declare function normalizeAgentNativeConfig(input: unknown, source?: string): AgentNativeConfig;
|
|
116
|
-
export declare function mergeAgentNativeConfigs(base: AgentNativeConfig, override: AgentNativeConfig
|
|
116
|
+
export declare function mergeAgentNativeConfigs(base: AgentNativeConfig, override: AgentNativeConfig, options?: {
|
|
117
|
+
arrayStrategy?: "merge" | "replace";
|
|
118
|
+
}): AgentNativeConfig;
|
|
117
119
|
export declare function resolveAgentNativeConfig(input: AgentNativeConfigInput | undefined, context: AgentNativeConfigContext): AgentNativeConfig;
|
|
118
120
|
export declare function resolveFirstRunOnboardingMode(setting: AgentNativeFirstRunOnboardingSetting, context: AgentNativeConfigContext): AgentNativeFirstRunOnboardingMode;
|
|
119
121
|
export declare function isAgentNativeDeploymentEnvironment(value: unknown): value is AgentNativeDeploymentEnvironment;
|
package/dist/config.js
CHANGED
|
@@ -315,7 +315,8 @@ export function normalizeAgentNativeConfig(input, source = "agent-native config"
|
|
|
315
315
|
}
|
|
316
316
|
return normalized;
|
|
317
317
|
}
|
|
318
|
-
export function mergeAgentNativeConfigs(base, override) {
|
|
318
|
+
export function mergeAgentNativeConfigs(base, override, options = {}) {
|
|
319
|
+
const arrayStrategy = options.arrayStrategy ?? "merge";
|
|
319
320
|
return {
|
|
320
321
|
...(base.version === undefined && override.version === undefined
|
|
321
322
|
? {}
|
|
@@ -348,7 +349,7 @@ export function mergeAgentNativeConfigs(base, override) {
|
|
|
348
349
|
? {
|
|
349
350
|
...base.runtime?.environment,
|
|
350
351
|
...override.runtime?.environment,
|
|
351
|
-
required: mergeStringLists(base.runtime?.environment?.required, override.runtime?.environment?.required),
|
|
352
|
+
required: mergeStringLists(base.runtime?.environment?.required, override.runtime?.environment?.required, arrayStrategy),
|
|
352
353
|
}
|
|
353
354
|
: undefined,
|
|
354
355
|
}
|
|
@@ -390,7 +391,7 @@ export function mergeAgentNativeConfigs(base, override) {
|
|
|
390
391
|
...override.changelog,
|
|
391
392
|
}
|
|
392
393
|
: undefined,
|
|
393
|
-
harness: mergeHarnessSettings(base.harness, override.harness),
|
|
394
|
+
harness: mergeHarnessSettings(base.harness, override.harness, arrayStrategy),
|
|
394
395
|
};
|
|
395
396
|
}
|
|
396
397
|
export function resolveAgentNativeConfig(input, context) {
|
|
@@ -551,7 +552,7 @@ function normalizeHarnessConfig(value, source) {
|
|
|
551
552
|
: { runtimes: [...new Set(runtimes)] }),
|
|
552
553
|
};
|
|
553
554
|
}
|
|
554
|
-
function mergeHarnessSettings(base, override) {
|
|
555
|
+
function mergeHarnessSettings(base, override, arrayStrategy = "merge") {
|
|
555
556
|
if (override === undefined)
|
|
556
557
|
return base;
|
|
557
558
|
if (typeof override === "boolean")
|
|
@@ -563,10 +564,12 @@ function mergeHarnessSettings(base, override) {
|
|
|
563
564
|
}
|
|
564
565
|
return {
|
|
565
566
|
runtimes: [
|
|
566
|
-
...
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
567
|
+
...(arrayStrategy === "replace"
|
|
568
|
+
? (override.runtimes ?? base.runtimes ?? [])
|
|
569
|
+
: new Set([
|
|
570
|
+
...(base.runtimes ?? []),
|
|
571
|
+
...(override.runtimes ?? []),
|
|
572
|
+
])),
|
|
570
573
|
],
|
|
571
574
|
};
|
|
572
575
|
}
|
|
@@ -592,9 +595,11 @@ function normalizeRequiredEnvKeys(value, source) {
|
|
|
592
595
|
}
|
|
593
596
|
return [...new Set(keys)];
|
|
594
597
|
}
|
|
595
|
-
function mergeStringLists(base, override) {
|
|
598
|
+
function mergeStringLists(base, override, arrayStrategy = "merge") {
|
|
596
599
|
if (base === undefined && override === undefined)
|
|
597
600
|
return undefined;
|
|
601
|
+
if (arrayStrategy === "replace")
|
|
602
|
+
return override ?? base;
|
|
598
603
|
return [...new Set([...(base ?? []), ...(override ?? [])])];
|
|
599
604
|
}
|
|
600
605
|
function isFirstRunMode(value) {
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "الإشارة إلى ملفات أو وكلاء أو موارد",
|
|
25
25
|
"commands.new": "مثل /clear",
|
|
26
26
|
"commands.plan": "التبديل إلى التخطيط للقراءة فقط",
|
|
27
|
+
"aboutAgentNative.title": "حول Agent Native",
|
|
28
|
+
"aboutAgentNative.version": "الإصدار",
|
|
29
|
+
"aboutAgentNative.environment": "البيئة",
|
|
30
|
+
"aboutAgentNative.build": "البنية",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "نسخ بيانات التشخيص",
|
|
32
|
+
"aboutAgentNative.unknown": "غير معروف",
|
|
27
33
|
"common.agent": "الوكيل",
|
|
28
34
|
"common.cancel": "إلغاء",
|
|
29
35
|
"common.collapse": "طي",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "Dateien, Agenten oder Ressourcen erwähnen",
|
|
25
25
|
"commands.new": "Entspricht /clear",
|
|
26
26
|
"commands.plan": "Zum schreibgeschützten Planungsmodus wechseln",
|
|
27
|
+
"aboutAgentNative.title": "Über Agent Native",
|
|
28
|
+
"aboutAgentNative.version": "Version",
|
|
29
|
+
"aboutAgentNative.environment": "Umgebung",
|
|
30
|
+
"aboutAgentNative.build": "Build",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "Diagnosedaten kopieren",
|
|
32
|
+
"aboutAgentNative.unknown": "Unbekannt",
|
|
27
33
|
"common.agent": "Agent",
|
|
28
34
|
"common.cancel": "Abbrechen",
|
|
29
35
|
"common.collapse": "Einklappen",
|
|
@@ -24,6 +24,12 @@ declare const messages: {
|
|
|
24
24
|
readonly "commands.mention": "Mention files, agents, or resources";
|
|
25
25
|
readonly "commands.new": "Same as /clear";
|
|
26
26
|
readonly "commands.plan": "Switch to read-only planning";
|
|
27
|
+
readonly "aboutAgentNative.title": "About Agent Native";
|
|
28
|
+
readonly "aboutAgentNative.version": "Version";
|
|
29
|
+
readonly "aboutAgentNative.environment": "Environment";
|
|
30
|
+
readonly "aboutAgentNative.build": "Build";
|
|
31
|
+
readonly "aboutAgentNative.copyDiagnostics": "Copy diagnostics";
|
|
32
|
+
readonly "aboutAgentNative.unknown": "Unknown";
|
|
27
33
|
readonly "common.agent": "Agent";
|
|
28
34
|
readonly "common.cancel": "Cancel";
|
|
29
35
|
readonly "common.collapse": "Collapse";
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "Mention files, agents, or resources",
|
|
25
25
|
"commands.new": "Same as /clear",
|
|
26
26
|
"commands.plan": "Switch to read-only planning",
|
|
27
|
+
"aboutAgentNative.title": "About Agent Native",
|
|
28
|
+
"aboutAgentNative.version": "Version",
|
|
29
|
+
"aboutAgentNative.environment": "Environment",
|
|
30
|
+
"aboutAgentNative.build": "Build",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "Copy diagnostics",
|
|
32
|
+
"aboutAgentNative.unknown": "Unknown",
|
|
27
33
|
"common.agent": "Agent",
|
|
28
34
|
"common.cancel": "Cancel",
|
|
29
35
|
"common.collapse": "Collapse",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "Mencionar archivos, agentes o recursos",
|
|
25
25
|
"commands.new": "Igual que /clear",
|
|
26
26
|
"commands.plan": "Cambiar a la planificación de solo lectura",
|
|
27
|
+
"aboutAgentNative.title": "Acerca de Agent Native",
|
|
28
|
+
"aboutAgentNative.version": "Versión",
|
|
29
|
+
"aboutAgentNative.environment": "Entorno",
|
|
30
|
+
"aboutAgentNative.build": "Compilación",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "Copiar diagnóstico",
|
|
32
|
+
"aboutAgentNative.unknown": "Desconocida",
|
|
27
33
|
"common.agent": "Agente",
|
|
28
34
|
"common.cancel": "Cancelar",
|
|
29
35
|
"common.collapse": "Contraer",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "Mentionner des fichiers, des agents ou des ressources",
|
|
25
25
|
"commands.new": "Identique à /clear",
|
|
26
26
|
"commands.plan": "Passer à la planification en lecture seule",
|
|
27
|
+
"aboutAgentNative.title": "À propos d’Agent Native",
|
|
28
|
+
"aboutAgentNative.version": "Version",
|
|
29
|
+
"aboutAgentNative.environment": "Environnement",
|
|
30
|
+
"aboutAgentNative.build": "Build",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "Copier les diagnostics",
|
|
32
|
+
"aboutAgentNative.unknown": "Inconnue",
|
|
27
33
|
"common.agent": "Agent",
|
|
28
34
|
"common.cancel": "Annuler",
|
|
29
35
|
"common.collapse": "Réduire",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "फ़ाइलों, एजेंटों या संसाधनों का उल्लेख करें",
|
|
25
25
|
"commands.new": "/clear के समान",
|
|
26
26
|
"commands.plan": "केवल-पढ़ने योग्य योजना मोड पर जाएँ",
|
|
27
|
+
"aboutAgentNative.title": "Agent Native के बारे में",
|
|
28
|
+
"aboutAgentNative.version": "संस्करण",
|
|
29
|
+
"aboutAgentNative.environment": "पर्यावरण",
|
|
30
|
+
"aboutAgentNative.build": "बिल्ड",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "डायग्नोस्टिक कॉपी करें",
|
|
32
|
+
"aboutAgentNative.unknown": "अज्ञात",
|
|
27
33
|
"common.agent": "एजेंट",
|
|
28
34
|
"common.cancel": "रद्द करें",
|
|
29
35
|
"common.collapse": "समेटें",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "ファイル、エージェント、リソースをメンション",
|
|
25
25
|
"commands.new": "/clear と同じ",
|
|
26
26
|
"commands.plan": "読み取り専用の計画モードに切り替え",
|
|
27
|
+
"aboutAgentNative.title": "Agent Native について",
|
|
28
|
+
"aboutAgentNative.version": "バージョン",
|
|
29
|
+
"aboutAgentNative.environment": "環境",
|
|
30
|
+
"aboutAgentNative.build": "ビルド",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "診断情報をコピー",
|
|
32
|
+
"aboutAgentNative.unknown": "不明",
|
|
27
33
|
"common.agent": "エージェント",
|
|
28
34
|
"common.cancel": "キャンセル",
|
|
29
35
|
"common.collapse": "折りたたむ",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "파일, 에이전트 또는 리소스 멘션",
|
|
25
25
|
"commands.new": "/clear와 동일",
|
|
26
26
|
"commands.plan": "읽기 전용 계획 모드로 전환",
|
|
27
|
+
"aboutAgentNative.title": "Agent Native 정보",
|
|
28
|
+
"aboutAgentNative.version": "버전",
|
|
29
|
+
"aboutAgentNative.environment": "환경",
|
|
30
|
+
"aboutAgentNative.build": "빌드",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "진단 정보 복사",
|
|
32
|
+
"aboutAgentNative.unknown": "알 수 없음",
|
|
27
33
|
"common.agent": "에이전트",
|
|
28
34
|
"common.cancel": "취소",
|
|
29
35
|
"common.collapse": "접기",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "Mencionar arquivos, agentes ou recursos",
|
|
25
25
|
"commands.new": "O mesmo que /clear",
|
|
26
26
|
"commands.plan": "Mudar para o planejamento somente leitura",
|
|
27
|
+
"aboutAgentNative.title": "Sobre o Agent Native",
|
|
28
|
+
"aboutAgentNative.version": "Versão",
|
|
29
|
+
"aboutAgentNative.environment": "Ambiente",
|
|
30
|
+
"aboutAgentNative.build": "Build",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "Copiar diagnósticos",
|
|
32
|
+
"aboutAgentNative.unknown": "Desconhecida",
|
|
27
33
|
"common.agent": "Agente",
|
|
28
34
|
"common.cancel": "Cancelar",
|
|
29
35
|
"common.collapse": "Recolher",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "提及文件、智能体或资源",
|
|
25
25
|
"commands.new": "与 /clear 相同",
|
|
26
26
|
"commands.plan": "切换到只读规划模式",
|
|
27
|
+
"aboutAgentNative.title": "关于 Agent Native",
|
|
28
|
+
"aboutAgentNative.version": "版本",
|
|
29
|
+
"aboutAgentNative.environment": "环境",
|
|
30
|
+
"aboutAgentNative.build": "构建",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "复制诊断信息",
|
|
32
|
+
"aboutAgentNative.unknown": "未知",
|
|
27
33
|
"common.agent": "智能体",
|
|
28
34
|
"common.cancel": "取消",
|
|
29
35
|
"common.collapse": "收起",
|
|
@@ -24,6 +24,12 @@ const messages = {
|
|
|
24
24
|
"commands.mention": "提及檔案、代理或資源",
|
|
25
25
|
"commands.new": "與 /clear 相同",
|
|
26
26
|
"commands.plan": "切換到唯讀規劃模式",
|
|
27
|
+
"aboutAgentNative.title": "關於 Agent Native",
|
|
28
|
+
"aboutAgentNative.version": "版本",
|
|
29
|
+
"aboutAgentNative.environment": "環境",
|
|
30
|
+
"aboutAgentNative.build": "建置",
|
|
31
|
+
"aboutAgentNative.copyDiagnostics": "複製診斷資訊",
|
|
32
|
+
"aboutAgentNative.unknown": "未知",
|
|
27
33
|
"common.agent": "代理",
|
|
28
34
|
"common.cancel": "取消",
|
|
29
35
|
"common.collapse": "收合",
|
|
@@ -26,6 +26,12 @@ export declare const englishAgentChatMessages: {
|
|
|
26
26
|
readonly "commands.mention": "Mention files, agents, or resources";
|
|
27
27
|
readonly "commands.new": "Same as /clear";
|
|
28
28
|
readonly "commands.plan": "Switch to read-only planning";
|
|
29
|
+
readonly "aboutAgentNative.title": "About Agent Native";
|
|
30
|
+
readonly "aboutAgentNative.version": "Version";
|
|
31
|
+
readonly "aboutAgentNative.environment": "Environment";
|
|
32
|
+
readonly "aboutAgentNative.build": "Build";
|
|
33
|
+
readonly "aboutAgentNative.copyDiagnostics": "Copy diagnostics";
|
|
34
|
+
readonly "aboutAgentNative.unknown": "Unknown";
|
|
29
35
|
readonly "common.agent": "Agent";
|
|
30
36
|
readonly "common.cancel": "Cancel";
|
|
31
37
|
readonly "common.collapse": "Collapse";
|
|
@@ -1014,6 +1014,15 @@ declare const messages: {
|
|
|
1014
1014
|
personal: string;
|
|
1015
1015
|
organization: string;
|
|
1016
1016
|
scopeQuestion: string;
|
|
1017
|
+
scopeChoiceTitle: string;
|
|
1018
|
+
scopeChoiceDescription: string;
|
|
1019
|
+
connectForMe: string;
|
|
1020
|
+
setUpForWorkspace: string;
|
|
1021
|
+
workspaceAdminRequired: string;
|
|
1022
|
+
personalOnlyDescription: string;
|
|
1023
|
+
loadingScopeMetadata: string;
|
|
1024
|
+
retry: string;
|
|
1025
|
+
retrying: string;
|
|
1017
1026
|
personalDescription: string;
|
|
1018
1027
|
sharedWithWorkspace: string;
|
|
1019
1028
|
organizationDescription: string;
|
|
@@ -1020,6 +1020,15 @@ const messages = {
|
|
|
1020
1020
|
personal: "Personal",
|
|
1021
1021
|
organization: "Organization",
|
|
1022
1022
|
scopeQuestion: "Who should be able to use this connection?",
|
|
1023
|
+
scopeChoiceTitle: "Who should use this?",
|
|
1024
|
+
scopeChoiceDescription: "Choose where this connection is available.",
|
|
1025
|
+
connectForMe: "Connect for me",
|
|
1026
|
+
setUpForWorkspace: "Set up for workspace",
|
|
1027
|
+
workspaceAdminRequired: "Workspace owner or admin required.",
|
|
1028
|
+
personalOnlyDescription: "Only personal connections are supported for this integration.",
|
|
1029
|
+
loadingScopeMetadata: "Loading connection scope…",
|
|
1030
|
+
retry: "Retry",
|
|
1031
|
+
retrying: "Retrying…",
|
|
1023
1032
|
personalDescription: "Only you can use this connection.",
|
|
1024
1033
|
sharedWithWorkspace: "Shared with workspace",
|
|
1025
1034
|
organizationDescription: "Permitted workspace members can use this connection. Provider permissions still apply.",
|
|
@@ -41,23 +41,23 @@ export declare function createObservabilityHandler(): import("h3").EventHandlerW
|
|
|
41
41
|
thumbsUpRate: number;
|
|
42
42
|
avgEvalScore: number;
|
|
43
43
|
} | {
|
|
44
|
-
ok?: undefined;
|
|
45
44
|
error?: undefined;
|
|
46
45
|
summary: import("./types.js").TraceSummary;
|
|
47
46
|
spans: import("./types.js").TraceSpan[];
|
|
48
47
|
id?: undefined;
|
|
49
|
-
} | {
|
|
50
48
|
ok?: undefined;
|
|
49
|
+
} | {
|
|
51
50
|
error?: undefined;
|
|
52
51
|
summary?: undefined;
|
|
53
52
|
spans?: undefined;
|
|
54
53
|
id: string;
|
|
55
|
-
} | {
|
|
56
54
|
ok?: undefined;
|
|
55
|
+
} | {
|
|
57
56
|
summary?: undefined;
|
|
58
57
|
spans?: undefined;
|
|
59
58
|
id?: undefined;
|
|
60
59
|
error: any;
|
|
60
|
+
ok?: undefined;
|
|
61
61
|
} | {
|
|
62
62
|
error?: undefined;
|
|
63
63
|
summary?: undefined;
|
|
@@ -93,29 +93,29 @@ export declare function createCustomProviderRegistrationAction<TSchema extends Z
|
|
|
93
93
|
label?: undefined;
|
|
94
94
|
message?: undefined;
|
|
95
95
|
} | {
|
|
96
|
+
count?: undefined;
|
|
96
97
|
id?: undefined;
|
|
97
98
|
deleted?: undefined;
|
|
98
99
|
providers?: undefined;
|
|
99
|
-
count?: undefined;
|
|
100
100
|
found: boolean;
|
|
101
101
|
provider: import("../custom-registry.js").CustomProviderConfig;
|
|
102
102
|
registered?: undefined;
|
|
103
103
|
label?: undefined;
|
|
104
104
|
message?: undefined;
|
|
105
105
|
} | {
|
|
106
|
+
count?: undefined;
|
|
106
107
|
provider?: undefined;
|
|
107
108
|
deleted?: undefined;
|
|
108
109
|
providers?: undefined;
|
|
109
|
-
count?: undefined;
|
|
110
110
|
found: boolean;
|
|
111
111
|
id: string;
|
|
112
112
|
registered?: undefined;
|
|
113
113
|
label?: undefined;
|
|
114
114
|
message?: undefined;
|
|
115
115
|
} | {
|
|
116
|
+
count?: undefined;
|
|
116
117
|
provider?: undefined;
|
|
117
118
|
providers?: undefined;
|
|
118
|
-
count?: undefined;
|
|
119
119
|
found?: undefined;
|
|
120
120
|
deleted: boolean;
|
|
121
121
|
id: string;
|
|
@@ -123,10 +123,10 @@ export declare function createCustomProviderRegistrationAction<TSchema extends Z
|
|
|
123
123
|
label?: undefined;
|
|
124
124
|
message?: undefined;
|
|
125
125
|
} | {
|
|
126
|
+
count?: undefined;
|
|
126
127
|
provider?: undefined;
|
|
127
128
|
deleted?: undefined;
|
|
128
129
|
providers?: undefined;
|
|
129
|
-
count?: undefined;
|
|
130
130
|
found?: undefined;
|
|
131
131
|
registered: boolean;
|
|
132
132
|
id: string;
|
|
@@ -313,7 +313,6 @@ export declare function createProviderApiActions(runtime: Pick<ProviderApiRuntim
|
|
|
313
313
|
}, {
|
|
314
314
|
id?: undefined;
|
|
315
315
|
provider?: undefined;
|
|
316
|
-
deleted?: undefined;
|
|
317
316
|
providers: {
|
|
318
317
|
id: string;
|
|
319
318
|
label: string;
|
|
@@ -325,33 +324,34 @@ export declare function createProviderApiActions(runtime: Pick<ProviderApiRuntim
|
|
|
325
324
|
}[];
|
|
326
325
|
count: number;
|
|
327
326
|
found?: undefined;
|
|
327
|
+
deleted?: undefined;
|
|
328
328
|
registered?: undefined;
|
|
329
329
|
label?: undefined;
|
|
330
330
|
message?: undefined;
|
|
331
331
|
} | {
|
|
332
|
-
count?: undefined;
|
|
333
332
|
id?: undefined;
|
|
334
|
-
deleted?: undefined;
|
|
335
333
|
providers?: undefined;
|
|
334
|
+
count?: undefined;
|
|
336
335
|
found: boolean;
|
|
337
336
|
provider: import("../custom-registry.js").CustomProviderConfig;
|
|
337
|
+
deleted?: undefined;
|
|
338
338
|
registered?: undefined;
|
|
339
339
|
label?: undefined;
|
|
340
340
|
message?: undefined;
|
|
341
341
|
} | {
|
|
342
|
-
count?: undefined;
|
|
343
342
|
provider?: undefined;
|
|
344
|
-
deleted?: undefined;
|
|
345
343
|
providers?: undefined;
|
|
344
|
+
count?: undefined;
|
|
346
345
|
found: boolean;
|
|
347
346
|
id: string;
|
|
347
|
+
deleted?: undefined;
|
|
348
348
|
registered?: undefined;
|
|
349
349
|
label?: undefined;
|
|
350
350
|
message?: undefined;
|
|
351
351
|
} | {
|
|
352
|
-
count?: undefined;
|
|
353
352
|
provider?: undefined;
|
|
354
353
|
providers?: undefined;
|
|
354
|
+
count?: undefined;
|
|
355
355
|
found?: undefined;
|
|
356
356
|
deleted: boolean;
|
|
357
357
|
id: string;
|
|
@@ -359,11 +359,11 @@ export declare function createProviderApiActions(runtime: Pick<ProviderApiRuntim
|
|
|
359
359
|
label?: undefined;
|
|
360
360
|
message?: undefined;
|
|
361
361
|
} | {
|
|
362
|
-
count?: undefined;
|
|
363
362
|
provider?: undefined;
|
|
364
|
-
deleted?: undefined;
|
|
365
363
|
providers?: undefined;
|
|
364
|
+
count?: undefined;
|
|
366
365
|
found?: 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;
|
|
@@ -81,7 +81,7 @@ export async function loadResolvedAgentNativeConfig(cwd, context, options = {})
|
|
|
81
81
|
: await loadAgentNativeConfigFile(cwd));
|
|
82
82
|
return resolveAgentNativeConfig(mergeAgentNativeConfigs(mergeAgentNativeConfigs(mergeAgentNativeConfigs(workspaceConfig
|
|
83
83
|
? resolveAgentNativeConfig(workspaceConfig, context)
|
|
84
|
-
: {}, readAgentNativeJsonConfig(cwd)), readAgentNativeConfigEnv(options.environment ?? process.env)
|
|
84
|
+
: {}, readAgentNativeJsonConfig(cwd)), projectConfig ? resolveAgentNativeConfig(projectConfig, context) : {}), readAgentNativeConfigEnv(options.environment ?? process.env), { arrayStrategy: "replace" }), context);
|
|
85
85
|
}
|
|
86
86
|
function findConfigPath(cwd) {
|
|
87
87
|
return AGENT_NATIVE_CONFIG_FILE_CANDIDATES.map((filename) => path.join(cwd, filename)).find((candidate) => fs.existsSync(candidate));
|
package/dist/vite/client.js
CHANGED
|
@@ -20,6 +20,7 @@ import { formatRuntimeConfigReport, getRuntimeConfigReport, isTruthyRuntimeValue
|
|
|
20
20
|
import { actionTypesPlugin } from "./action-types-plugin.js";
|
|
21
21
|
import { createAgentNativeConfigContext, loadAgentNativeConfigFile, loadWorkspaceAgentNativeConfigFile, readAgentNativeJsonConfig, } from "./agent-native-config-loader.js";
|
|
22
22
|
import { agentsBundlePlugin } from "./agents-bundle-plugin.js";
|
|
23
|
+
import { resolveAgentNativePackageVersions } from "./package-versions.js";
|
|
23
24
|
const require = createRequire(import.meta.url);
|
|
24
25
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
25
26
|
let nitroFsWatchGuardInstalled = false;
|
|
@@ -2806,7 +2807,7 @@ function reportRuntimeConfigDiagnostics(appConfig, context, mode, env = process.
|
|
|
2806
2807
|
}
|
|
2807
2808
|
console.warn(message);
|
|
2808
2809
|
}
|
|
2809
|
-
function createAgentNativeConfig(options = {}, command, userConfig = {}, mode = process.env.NODE_ENV === "production" ? "production" : "development", projectConfig) {
|
|
2810
|
+
function createAgentNativeConfig(options = {}, command, userConfig = {}, mode = process.env.NODE_ENV === "production" ? "production" : "development", projectConfig, workspaceConfig) {
|
|
2810
2811
|
const cwd = process.cwd();
|
|
2811
2812
|
const configContext = createAgentNativeConfigContext(command, mode);
|
|
2812
2813
|
const projectConfigInput = projectConfig ?? options.agentNativeConfig;
|
|
@@ -2822,9 +2823,11 @@ function createAgentNativeConfig(options = {}, command, userConfig = {}, mode =
|
|
|
2822
2823
|
...loadEnv(mode, cwd, ""),
|
|
2823
2824
|
...process.env,
|
|
2824
2825
|
};
|
|
2825
|
-
const appConfig = resolveAgentNativeConfig(mergeAgentNativeConfigs(mergeAgentNativeConfigs(
|
|
2826
|
+
const appConfig = resolveAgentNativeConfig(mergeAgentNativeConfigs(mergeAgentNativeConfigs(mergeAgentNativeConfigs(workspaceConfig
|
|
2827
|
+
? resolveAgentNativeConfig(workspaceConfig, configContext)
|
|
2828
|
+
: {}, readAgentNativeJsonConfig(cwd)), projectConfigInput
|
|
2826
2829
|
? resolveAgentNativeConfig(projectConfigInput, configContext)
|
|
2827
|
-
: {}), configContext);
|
|
2830
|
+
: {}), readAgentNativeConfigEnv(runtimeEnv), { arrayStrategy: "replace" }), configContext);
|
|
2828
2831
|
const inferredDeploymentEnvironment = appConfig.deployment?.environment ??
|
|
2829
2832
|
inferAgentNativeDeploymentEnvironment(process.env, mode);
|
|
2830
2833
|
const resolvedAppConfig = appConfig.deployment?.environment === undefined &&
|
|
@@ -2840,6 +2843,7 @@ function createAgentNativeConfig(options = {}, command, userConfig = {}, mode =
|
|
|
2840
2843
|
process.env.CF_PAGES_COMMIT_SHA?.trim() ||
|
|
2841
2844
|
process.env.AGENT_NATIVE_BUILD_SHA?.trim() ||
|
|
2842
2845
|
"development";
|
|
2846
|
+
const packageVersions = resolveAgentNativePackageVersions(cwd);
|
|
2843
2847
|
// Preload workspace-root .env into process.env so Nitro server code sees
|
|
2844
2848
|
// shared keys during dev (Nitro reads process.env, not vite's envDir).
|
|
2845
2849
|
if (workspaceRoot && workspaceRoot !== cwd) {
|
|
@@ -2910,6 +2914,7 @@ function createAgentNativeConfig(options = {}, command, userConfig = {}, mode =
|
|
|
2910
2914
|
...(userConfig.define ?? {}),
|
|
2911
2915
|
...(options.define ?? {}),
|
|
2912
2916
|
__AGENT_NATIVE_BUILD_ID__: JSON.stringify(buildId),
|
|
2917
|
+
__AGENT_NATIVE_PACKAGE_VERSIONS__: JSON.stringify(packageVersions),
|
|
2913
2918
|
__AGENT_NATIVE_CLIENT_COMPATIBILITY_VERSION__: JSON.stringify(options.clientCompatibilityVersion?.trim() || ""),
|
|
2914
2919
|
__AGENT_NATIVE_APP_CONFIG__: JSON.stringify(resolvedAppConfig),
|
|
2915
2920
|
__AGENT_NATIVE_BUILD_GA_MEASUREMENT_ID__: JSON.stringify(process.env.GA_MEASUREMENT_ID?.trim() || ""),
|
|
@@ -3139,14 +3144,10 @@ function createAgentNativeConfigPlugin(options) {
|
|
|
3139
3144
|
name: "agent-native-config",
|
|
3140
3145
|
enforce: "pre",
|
|
3141
3146
|
async config(config, env) {
|
|
3142
|
-
const context = createAgentNativeConfigContext(env.command, env.mode);
|
|
3143
3147
|
const workspaceConfig = await loadWorkspaceAgentNativeConfigFile(process.cwd());
|
|
3144
3148
|
const projectConfig = options.agentNativeConfig ??
|
|
3145
3149
|
(await loadAgentNativeConfigFile(process.cwd()));
|
|
3146
|
-
|
|
3147
|
-
? resolveAgentNativeConfig(workspaceConfig, context)
|
|
3148
|
-
: {}, projectConfig ? resolveAgentNativeConfig(projectConfig, context) : {});
|
|
3149
|
-
return createAgentNativeConfig(options, env.command, config, env.mode, resolvedConfig);
|
|
3150
|
+
return createAgentNativeConfig(options, env.command, config, env.mode, projectConfig, workspaceConfig);
|
|
3150
3151
|
},
|
|
3151
3152
|
};
|
|
3152
3153
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveAgentNativePackageVersions(cwd: string): Record<string, string>;
|