@nimiplatform/app-tools 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +198 -6
- package/README.md +83 -27
- package/bin/nimi-app.mjs +328 -45
- package/lib/app-access-declaration.mjs +49 -0
- package/lib/app-doctor-update.mjs +411 -149
- package/lib/app-pack.mjs +401 -0
- package/lib/app-project-lifecycle.mjs +1141 -0
- package/lib/app-scaffold-capabilities.mjs +769 -0
- package/lib/app-scaffold-default-source.mjs +21 -0
- package/lib/app-scaffold-profiles.mjs +1093 -0
- package/lib/app-scaffold.mjs +1266 -813
- package/lib/index.mjs +194 -42
- package/lib/simulator-conformance-ast.mjs +498 -0
- package/lib/simulator-conformance-css.mjs +116 -0
- package/lib/simulator-conformance-graph.mjs +757 -0
- package/lib/simulator-conformance.d.mts +14 -0
- package/lib/simulator-conformance.mjs +203 -0
- package/lib/simulator-css-profile.d.mts +27 -0
- package/lib/simulator-css-profile.mjs +531 -0
- package/lib/simulator-kit-export-resolution.mjs +70 -0
- package/lib/simulator-manifest.mjs +334 -0
- package/package.json +66 -3
- package/scripts/dev-shell.mjs +465 -0
- package/scripts/sync-app-source.mjs +300 -0
- package/scripts/sync-scaffold-versions.mjs +91 -0
- package/templates/app-source/LICENSE +21 -0
- package/templates/app-source/src/ai-studio-core/ai-config.ts +100 -0
- package/templates/app-source/src/ai-studio-core/ai-studio-core.css +338 -0
- package/templates/app-source/src/ai-studio-core/contexts.tsx +61 -0
- package/templates/app-source/src/ai-studio-core/history-policy.ts +447 -0
- package/templates/app-source/src/ai-studio-core/history.ts +824 -0
- package/templates/app-source/src/ai-studio-core/host-context.tsx +79 -0
- package/templates/app-source/src/ai-studio-core/index.ts +214 -0
- package/templates/app-source/src/ai-studio-core/messages/en.json +310 -0
- package/templates/app-source/src/ai-studio-core/messages/index.ts +47 -0
- package/templates/app-source/src/ai-studio-core/messages/zh.json +310 -0
- package/templates/app-source/src/ai-studio-core/module-registration.ts +109 -0
- package/templates/app-source/src/ai-studio-core/non-success-presentation.ts +65 -0
- package/templates/app-source/src/ai-studio-core/parameter-fields.tsx +247 -0
- package/templates/app-source/src/ai-studio-core/parameters.ts +110 -0
- package/templates/app-source/src/ai-studio-core/prompt-drafts.ts +69 -0
- package/templates/app-source/src/ai-studio-core/run-target.ts +123 -0
- package/templates/app-source/src/ai-studio-core/runtime-dispatcher.ts +35 -0
- package/templates/app-source/src/ai-studio-core/runtime-types.ts +86 -0
- package/templates/app-source/src/ai-studio-core/runtime.ts +306 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-admission.ts +38 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-ai-config.tsx +30 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-artifact-preview.ts +40 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-composer.tsx +257 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-history.tsx +676 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-input.ts +19 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-output.tsx +291 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-result.tsx +413 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-run.ts +174 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-studio-result.tsx +449 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-surface.tsx +45 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing.tsx +494 -0
- package/templates/app-source/src/ai-studio-core/studio-directives.ts +33 -0
- package/templates/app-source/src/ai-studio-core/workspace.tsx +381 -0
- package/templates/app-source/src/product-modules/agent-center/index.tsx +27 -0
- package/templates/app-source/src/product-modules/agent-conversation/index.tsx +19 -0
- package/templates/app-source/src/product-modules/agent-realtime/index.tsx +29 -0
- package/templates/app-source/src/product-modules/kit-recipes/gallery.tsx +142 -0
- package/templates/app-source/src/product-modules/kit-recipes/index.tsx +19 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-data-recipes.tsx +336 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-demos.tsx +165 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-recipes.tsx +682 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-surface.tsx +341 -0
- package/templates/app-source/src/studio-modules/studio-create/descriptors.ts +26 -0
- package/templates/app-source/src/studio-modules/studio-create/index.ts +14 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/en.json +67 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/zh.json +67 -0
- package/templates/app-source/src/studio-modules/studio-create/parameter-panel.tsx +153 -0
- package/templates/app-source/src/studio-modules/studio-create/parameters.ts +70 -0
- package/templates/app-source/src/studio-modules/studio-create/registration.ts +46 -0
- package/templates/app-source/src/studio-modules/studio-create/runtime.ts +339 -0
- package/templates/app-source/src/studio-modules/studio-media/descriptors.ts +22 -0
- package/templates/app-source/src/studio-modules/studio-media/index.ts +12 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/en.json +82 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/zh.json +82 -0
- package/templates/app-source/src/studio-modules/studio-media/parameter-panel.tsx +283 -0
- package/templates/app-source/src/studio-modules/studio-media/parameters.ts +94 -0
- package/templates/app-source/src/studio-modules/studio-media/registration.ts +44 -0
- package/templates/app-source/src/studio-modules/studio-media/runtime.ts +113 -0
- package/templates/app-source/src/studio-modules/studio-voice/descriptors.ts +28 -0
- package/templates/app-source/src/studio-modules/studio-voice/index.ts +16 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/en.json +99 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/zh.json +99 -0
- package/templates/app-source/src/studio-modules/studio-voice/parameter-panel.tsx +284 -0
- package/templates/app-source/src/studio-modules/studio-voice/parameters.ts +116 -0
- package/templates/app-source/src/studio-modules/studio-voice/registration.ts +59 -0
- package/templates/app-source/src/studio-modules/studio-voice/runtime.ts +347 -0
- package/templates/app-source/src/workbench-core/empty-state.tsx +31 -0
- package/templates/app-source/src/workbench-core/index.ts +17 -0
- package/templates/app-source/src/workbench-core/runtime-gate.tsx +131 -0
- package/templates/app-source/src/workbench-core/workbench-core.css +255 -0
- package/templates/app-source/src/workbench-core/workbench-core.tsx +140 -0
- package/templates/app-source.manifest.json +333 -0
- package/templates/default-starter/AGENTS.md +33 -0
- package/templates/default-starter/LICENSE +21 -0
- package/templates/default-starter/README.md +41 -0
- package/templates/default-starter/SECURITY.md +5 -0
- package/templates/default-starter/index.html +12 -0
- package/templates/default-starter/scripts/validate.mjs +26 -0
- package/templates/default-starter/src/shell/App.tsx +27 -0
- package/templates/default-starter/src/shell/auth/app-identity.ts +3 -0
- package/templates/default-starter/src/shell/auth/local-app-client.ts +18 -0
- package/templates/default-starter/src/shell/auth/runtime-platform.ts +110 -0
- package/templates/default-starter/src/shell/authenticated-shell.tsx +20 -0
- package/templates/default-starter/src/shell/workbench-target-adapter.ts +40 -0
- package/templates/default-starter/src/styles.css +26 -0
- package/templates/default-starter/src-tauri/Cargo.toml +17 -0
- package/templates/default-starter/src-tauri/build.rs +5 -0
- package/templates/default-starter/src-tauri/capabilities/default.json +7 -0
- package/templates/default-starter/src-tauri/tauri.conf.json +26 -0
- package/templates/default-starter/tsconfig.json +18 -0
- package/templates/default-starter.manifest.json +99 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createContext, useContext, type ReactNode } from 'react';
|
|
2
|
+
import type { NimiPortableAppAIConfig } from '@nimiplatform/sdk/ai';
|
|
3
|
+
import type { NimiLocalAppArtifactImageMime } from '@nimiplatform/sdk/app';
|
|
4
|
+
import type { StudioCapabilityRunInput, StudioCapabilityRunResult } from './runtime-types.js';
|
|
5
|
+
import type { StudioCapabilityDescriptor } from './module-registration.js';
|
|
6
|
+
import type { StudioRunTargetSummary } from './history.js';
|
|
7
|
+
import type { StudioPromptDraftKey } from './prompt-drafts.js';
|
|
8
|
+
|
|
9
|
+
export type StudioHostCommandResult<TValue extends object = Record<string, never>> =
|
|
10
|
+
| { readonly ok: true; readonly value?: TValue }
|
|
11
|
+
| { readonly ok: false; readonly error?: unknown };
|
|
12
|
+
|
|
13
|
+
export type AIStudioHostPort = {
|
|
14
|
+
readonly appTitle: string;
|
|
15
|
+
readonly translate: (key: string, values?: Readonly<Record<string, unknown>>) => string;
|
|
16
|
+
readonly locale: string;
|
|
17
|
+
readonly clock: {
|
|
18
|
+
readonly now: () => number;
|
|
19
|
+
};
|
|
20
|
+
readonly app: {
|
|
21
|
+
readonly projection: {
|
|
22
|
+
readonly promptDraft: (key: StudioPromptDraftKey, enabled: boolean) => { readonly prompt: string | null };
|
|
23
|
+
readonly projectRunTarget: (input: {
|
|
24
|
+
readonly capability: StudioCapabilityDescriptor;
|
|
25
|
+
readonly runtime: import('./runtime-types.js').StudioRuntimeInspection | null;
|
|
26
|
+
readonly config: NimiPortableAppAIConfig | null;
|
|
27
|
+
readonly configState: 'loading' | 'loaded' | 'failed';
|
|
28
|
+
readonly configError: string | null;
|
|
29
|
+
}) => StudioRunTargetSummary;
|
|
30
|
+
readonly runStatusLabel: (status: string) => string;
|
|
31
|
+
};
|
|
32
|
+
readonly events: {
|
|
33
|
+
readonly subscribeAIConfigRefresh: (listener: () => void) => () => void;
|
|
34
|
+
};
|
|
35
|
+
readonly commands: {
|
|
36
|
+
readonly savePromptDraft: (key: StudioPromptDraftKey, prompt: string, enabled: boolean) => Promise<unknown>;
|
|
37
|
+
readonly copyText: (text: string) => Promise<StudioHostCommandResult<{ readonly copied: boolean }>>;
|
|
38
|
+
readonly exportText: (input: { readonly filename: string; readonly body: string }) => Promise<unknown>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly sdk: {
|
|
42
|
+
readonly runCapability: (input: StudioCapabilityRunInput) => Promise<StudioCapabilityRunResult>;
|
|
43
|
+
readonly listLocalAppVoiceAssets: () => Promise<readonly {
|
|
44
|
+
readonly voiceAssetId: string;
|
|
45
|
+
readonly creationSource: string;
|
|
46
|
+
readonly status: string;
|
|
47
|
+
}[]>;
|
|
48
|
+
readonly uploadLocalAppArtifact: (input: {
|
|
49
|
+
readonly bytes: Uint8Array;
|
|
50
|
+
readonly mimeType: NimiLocalAppArtifactImageMime;
|
|
51
|
+
}) => Promise<{
|
|
52
|
+
readonly artifactId: string;
|
|
53
|
+
readonly sizeBytes: number;
|
|
54
|
+
readonly mimeType: NimiLocalAppArtifactImageMime;
|
|
55
|
+
}>;
|
|
56
|
+
readonly aiConfig: {
|
|
57
|
+
readonly get: () => Promise<NimiPortableAppAIConfig | null>;
|
|
58
|
+
};
|
|
59
|
+
readonly revealLocalAppAsset: (relativePath: string) => Promise<{ readonly revealed: true }>;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const AIStudioHostContext = createContext<AIStudioHostPort | null>(null);
|
|
64
|
+
|
|
65
|
+
export function AIStudioHostProvider({
|
|
66
|
+
value,
|
|
67
|
+
children,
|
|
68
|
+
}: {
|
|
69
|
+
readonly value: AIStudioHostPort;
|
|
70
|
+
readonly children: ReactNode;
|
|
71
|
+
}) {
|
|
72
|
+
return <AIStudioHostContext.Provider value={value}>{children}</AIStudioHostContext.Provider>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function useAIStudioHost(): AIStudioHostPort {
|
|
76
|
+
const host = useContext(AIStudioHostContext);
|
|
77
|
+
if (!host) throw new Error('AI_STUDIO_HOST_UNAVAILABLE');
|
|
78
|
+
return host;
|
|
79
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
export {
|
|
2
|
+
composeAIStudioModules,
|
|
3
|
+
type AIStudioModuleRegistration,
|
|
4
|
+
type CapabilityStudioProfile,
|
|
5
|
+
type ScenarioPreset,
|
|
6
|
+
type StudioCapabilityDescriptor,
|
|
7
|
+
type StudioCapabilityRegistration,
|
|
8
|
+
type StudioControlId,
|
|
9
|
+
type StudioInputKind,
|
|
10
|
+
type StudioResultKind,
|
|
11
|
+
} from './module-registration.js';
|
|
12
|
+
export {
|
|
13
|
+
DEFAULT_LENGTH_VALUE,
|
|
14
|
+
DEFAULT_TONE_VALUE,
|
|
15
|
+
LENGTH_OPTIONS,
|
|
16
|
+
TONE_OPTIONS,
|
|
17
|
+
composeStudioDirective,
|
|
18
|
+
countStudioWords,
|
|
19
|
+
type StudioDirectiveOption,
|
|
20
|
+
} from './studio-directives.js';
|
|
21
|
+
export {
|
|
22
|
+
CLOUD_ONLY_STUDIO_PARAMETER,
|
|
23
|
+
EMPTY_STUDIO_PARAMETERS,
|
|
24
|
+
LOCAL_AND_CLOUD_STUDIO_PARAMETER,
|
|
25
|
+
LOCAL_ONLY_STUDIO_PARAMETER,
|
|
26
|
+
SUPPORTED_STUDIO_PARAMETER,
|
|
27
|
+
UNSUPPORTED_STUDIO_PARAMETER,
|
|
28
|
+
defineStudioParameters,
|
|
29
|
+
type StudioParameterContract,
|
|
30
|
+
type StudioParameterPresentation,
|
|
31
|
+
type StudioParameterRouteMatrix,
|
|
32
|
+
type StudioParameterRouteState,
|
|
33
|
+
type StudioParameterState,
|
|
34
|
+
type StudioParameterValue,
|
|
35
|
+
type StudioRunTargetSource,
|
|
36
|
+
type TypedStudioParameterContract,
|
|
37
|
+
} from './parameters.js';
|
|
38
|
+
export {
|
|
39
|
+
StudioBooleanParameter,
|
|
40
|
+
StudioNumberParameter,
|
|
41
|
+
StudioParameterField,
|
|
42
|
+
StudioParameterPanelFrame,
|
|
43
|
+
StudioRouteAwareParameterFields,
|
|
44
|
+
StudioTextParameter,
|
|
45
|
+
optionalStudioNumber,
|
|
46
|
+
optionalStudioText,
|
|
47
|
+
type StudioParameterFieldDefinition,
|
|
48
|
+
type StudioParameterPanelProps,
|
|
49
|
+
type StudioParameterTranslate,
|
|
50
|
+
} from './parameter-fields.js';
|
|
51
|
+
export {
|
|
52
|
+
findStudioCapabilityIntent,
|
|
53
|
+
loadStudioAIConfig,
|
|
54
|
+
requireStudioAIConfigOwner,
|
|
55
|
+
studioCloudIntentHasExactTarget,
|
|
56
|
+
subscribeStudioAIConfigRefresh,
|
|
57
|
+
type StudioAIConfigClient,
|
|
58
|
+
type StudioAIConfigRefreshEventTarget,
|
|
59
|
+
type StudioAIConfigVisibilityTarget,
|
|
60
|
+
} from './ai-config.js';
|
|
61
|
+
export {
|
|
62
|
+
createStudioRunTargetSummary,
|
|
63
|
+
} from './run-target.js';
|
|
64
|
+
export {
|
|
65
|
+
DEFAULT_AI_STUDIO_HISTORY_PANEL_PREFERENCES,
|
|
66
|
+
STUDIO_HISTORY_LIMIT_BYTES,
|
|
67
|
+
STUDIO_HISTORY_LIMIT_PER_CAPABILITY,
|
|
68
|
+
STUDIO_HISTORY_LIMIT_TOTAL_RECORDS,
|
|
69
|
+
boundStudioRunHistoryWithRecord,
|
|
70
|
+
cleanupStudioHistoryArtifacts,
|
|
71
|
+
clearStudioRunHistory,
|
|
72
|
+
clearStudioHistoryWithPolicy,
|
|
73
|
+
flattenStudioHistoryRecords,
|
|
74
|
+
parseAIStudioHistoryPanelPreferences,
|
|
75
|
+
parseStudioRunHistory,
|
|
76
|
+
removeStudioHistoryWithPolicy,
|
|
77
|
+
removeStudioRunHistoryRecord,
|
|
78
|
+
studioHistoryClearOutcomeTone,
|
|
79
|
+
studioHistoryArtifactPaths,
|
|
80
|
+
studioHistoryFromRecords,
|
|
81
|
+
type StudioHistoryPolicyMutationIssue,
|
|
82
|
+
type StudioHistoryPolicyMutationOutcome,
|
|
83
|
+
type StudioHistoryMutationSubject,
|
|
84
|
+
} from './history-policy.js';
|
|
85
|
+
export {
|
|
86
|
+
createStudioRunHistoryRecord,
|
|
87
|
+
createStudioRunHistoryResultSnapshot,
|
|
88
|
+
flattenStudioRunHistory,
|
|
89
|
+
formatStudioRunHistoryTimestamp,
|
|
90
|
+
formatStudioRunTimestamp,
|
|
91
|
+
getStudioRunConfigParamRows,
|
|
92
|
+
getStudioRunIntentLabel,
|
|
93
|
+
getStudioRunIntentSource,
|
|
94
|
+
getStudioRunMetricSummary,
|
|
95
|
+
getStudioRunPromptControlFacts,
|
|
96
|
+
getStudioRunPromptSummary,
|
|
97
|
+
getStudioRunResultSummary,
|
|
98
|
+
getStudioRunResultTags,
|
|
99
|
+
getStudioRunStatusLabel,
|
|
100
|
+
getStudioRunStatusTone,
|
|
101
|
+
projectStudioManagedHistory,
|
|
102
|
+
restoreStudioCapabilityRunResult,
|
|
103
|
+
studioCapabilityResultHasTrace,
|
|
104
|
+
studioCapabilityResultTraceId,
|
|
105
|
+
studioRunHistoryStatus,
|
|
106
|
+
type StudioCapabilityLabelResolver,
|
|
107
|
+
type StudioFlatRunRecord,
|
|
108
|
+
type StudioRunConfigParamRow,
|
|
109
|
+
type StudioRunConfigSnapshot,
|
|
110
|
+
type StudioRunHistory,
|
|
111
|
+
type StudioRunHistoryRecord,
|
|
112
|
+
type StudioRunHistoryResultSnapshot,
|
|
113
|
+
type StudioRunIntentSource,
|
|
114
|
+
type StudioRunPromptControlFact,
|
|
115
|
+
type StudioRunStatusTone,
|
|
116
|
+
type StudioRunTargetSnapshot,
|
|
117
|
+
type StudioRunTargetStatus,
|
|
118
|
+
type StudioRunTargetSummary,
|
|
119
|
+
} from './history.js';
|
|
120
|
+
export {
|
|
121
|
+
StudioCapabilityParameterContext,
|
|
122
|
+
StudioHistoryActionsContext,
|
|
123
|
+
StudioHistoryLoadContext,
|
|
124
|
+
StudioHistoryPanelContext,
|
|
125
|
+
type StudioCapabilityParameterStore,
|
|
126
|
+
type StudioHistoryActions,
|
|
127
|
+
type StudioHistoryLoadState,
|
|
128
|
+
type StudioHistoryPanelScope,
|
|
129
|
+
type StudioHistoryPanelState,
|
|
130
|
+
type StudioMediaHistoryRecord,
|
|
131
|
+
} from './contexts.js';
|
|
132
|
+
export {
|
|
133
|
+
createStudioNonSuccess,
|
|
134
|
+
studioNonSuccessActionHint,
|
|
135
|
+
studioNonSuccessReasonTitle,
|
|
136
|
+
studioNonSuccessReasonUserAction,
|
|
137
|
+
studioNonSuccessReasonUserMessage,
|
|
138
|
+
type StudioTranslate,
|
|
139
|
+
} from './non-success-presentation.js';
|
|
140
|
+
export type {
|
|
141
|
+
StudioCapabilityRunInput,
|
|
142
|
+
StudioCapabilityRunResult,
|
|
143
|
+
StudioManagedArtifact,
|
|
144
|
+
StudioNonSuccess,
|
|
145
|
+
StudioNonSuccessDiagnostics,
|
|
146
|
+
StudioNonSuccessReason,
|
|
147
|
+
StudioRuntimeCapabilityDescriptor,
|
|
148
|
+
StudioRuntimeInspection,
|
|
149
|
+
StudioTrace,
|
|
150
|
+
StudioTypedOutput,
|
|
151
|
+
StudioTypedSuccess,
|
|
152
|
+
} from './runtime-types.js';
|
|
153
|
+
export {
|
|
154
|
+
composeStudioCapabilityRuntimeHandlers,
|
|
155
|
+
dispatchStudioCapabilityRuntime,
|
|
156
|
+
type StudioCapabilityRuntimeHandler,
|
|
157
|
+
type StudioCapabilityRuntimeHandlers,
|
|
158
|
+
} from './runtime-dispatcher.js';
|
|
159
|
+
export {
|
|
160
|
+
DEFAULT_STUDIO_RUNTIME_RUNNERS,
|
|
161
|
+
createStudioRuntimeRunnerSet,
|
|
162
|
+
createStudioScenarioJobClient,
|
|
163
|
+
projectStudioArtifactRunnerResult,
|
|
164
|
+
projectStudioRunnerNonSuccess,
|
|
165
|
+
projectStudioRuntimeError,
|
|
166
|
+
runStudioCapability,
|
|
167
|
+
studioAbortError,
|
|
168
|
+
studioNonSuccessDiagnostics,
|
|
169
|
+
studioNonSuccessReason,
|
|
170
|
+
studioRuntimeErrorMessage,
|
|
171
|
+
type StudioCapabilityNonSuccessFactory,
|
|
172
|
+
type StudioCapabilityRuntimeContext,
|
|
173
|
+
type StudioCapabilityRuntimeOrchestrator,
|
|
174
|
+
type StudioRuntimeHost,
|
|
175
|
+
type StudioRuntimeRunnerSet,
|
|
176
|
+
} from './runtime.js';
|
|
177
|
+
export {
|
|
178
|
+
STUDIO_PROMPT_DRAFTS_SCHEMA_VERSION,
|
|
179
|
+
createEmptyStudioPromptDraftStore,
|
|
180
|
+
parseStudioPromptDraftStore,
|
|
181
|
+
readStudioPromptDraft,
|
|
182
|
+
studioPromptDraftId,
|
|
183
|
+
updateStudioPromptDraftStore,
|
|
184
|
+
type StudioPromptDraftKey,
|
|
185
|
+
type StudioPromptDraftStore,
|
|
186
|
+
} from './prompt-drafts.js';
|
|
187
|
+
export {
|
|
188
|
+
AIStudioHostProvider,
|
|
189
|
+
useAIStudioHost,
|
|
190
|
+
type AIStudioHostPort,
|
|
191
|
+
type StudioHostCommandResult,
|
|
192
|
+
} from './host-context.js';
|
|
193
|
+
export { SectionAITesting } from './section-ai-testing.js';
|
|
194
|
+
export type { SectionAITestingProps, StudioAIConfigPanelRenderInput } from './section-ai-testing-surface.js';
|
|
195
|
+
export {
|
|
196
|
+
AIStudioWorkspace,
|
|
197
|
+
useAIStudioWorkspaceController,
|
|
198
|
+
type AIStudioArtifactCleanupOutcome,
|
|
199
|
+
type AIStudioHistoryMutationIssue,
|
|
200
|
+
type AIStudioHistoryMutationOutcome,
|
|
201
|
+
type AIStudioHistoryPanelPreferences,
|
|
202
|
+
type AIStudioHistoryPersistOutcome,
|
|
203
|
+
type AIStudioHistoryProjection,
|
|
204
|
+
type AIStudioHistoryRepository,
|
|
205
|
+
type AIStudioWorkspaceController,
|
|
206
|
+
type AIStudioWorkspaceControllerOptions,
|
|
207
|
+
type AIStudioWorkspaceProps,
|
|
208
|
+
} from './workspace.js';
|
|
209
|
+
export {
|
|
210
|
+
aiStudioCoreMessageBundles,
|
|
211
|
+
mergeAIStudioMessageBundles,
|
|
212
|
+
type AIStudioMessageBundle,
|
|
213
|
+
type AIStudioMessageBundles,
|
|
214
|
+
} from './messages/index.js';
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Common": {
|
|
3
|
+
"retry": "Retry",
|
|
4
|
+
"close": "Close",
|
|
5
|
+
"copy": "Copy",
|
|
6
|
+
"copied": "Copied",
|
|
7
|
+
"copyFailed": "Copy failed"
|
|
8
|
+
},
|
|
9
|
+
"History": {
|
|
10
|
+
"title": "History",
|
|
11
|
+
"panelAriaLabel": "Runtime test History",
|
|
12
|
+
"filterAriaLabel": "Filter history",
|
|
13
|
+
"filtersAriaLabel": "History filters",
|
|
14
|
+
"menus": {
|
|
15
|
+
"status": "Status",
|
|
16
|
+
"capability": "Capability",
|
|
17
|
+
"environment": "Environment",
|
|
18
|
+
"activity": "Last activity",
|
|
19
|
+
"group": "Group by",
|
|
20
|
+
"sort": "Sort by"
|
|
21
|
+
},
|
|
22
|
+
"filters": {
|
|
23
|
+
"status": {
|
|
24
|
+
"all": "All statuses",
|
|
25
|
+
"ready": "Runtime ready",
|
|
26
|
+
"failed": "Failed",
|
|
27
|
+
"canceled": "Canceled",
|
|
28
|
+
"timedOut": "Timed out",
|
|
29
|
+
"unavailable": "SDK unavailable"
|
|
30
|
+
},
|
|
31
|
+
"environment": {
|
|
32
|
+
"all": "All",
|
|
33
|
+
"local": "Local",
|
|
34
|
+
"cloud": "Cloud",
|
|
35
|
+
"remoteControl": "Remote Control"
|
|
36
|
+
},
|
|
37
|
+
"activity": {
|
|
38
|
+
"all": "All",
|
|
39
|
+
"today": "Today",
|
|
40
|
+
"last7Days": "Last 7 days",
|
|
41
|
+
"last30Days": "Last 30 days"
|
|
42
|
+
},
|
|
43
|
+
"group": {
|
|
44
|
+
"none": "None",
|
|
45
|
+
"date": "Date",
|
|
46
|
+
"capability": "Capability"
|
|
47
|
+
},
|
|
48
|
+
"sort": {
|
|
49
|
+
"recency": "Recency",
|
|
50
|
+
"oldest": "Oldest"
|
|
51
|
+
},
|
|
52
|
+
"capability": {
|
|
53
|
+
"all": "All",
|
|
54
|
+
"allCapabilities": "All capabilities"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"clearFilters": "Clear all filters",
|
|
58
|
+
"scopeAriaLabel": "History scope",
|
|
59
|
+
"scope": {
|
|
60
|
+
"capability": "This capability",
|
|
61
|
+
"all": "All",
|
|
62
|
+
"media": "Media"
|
|
63
|
+
},
|
|
64
|
+
"hideFailures": "Hide failed",
|
|
65
|
+
"showFailures": "Show failed",
|
|
66
|
+
"unsupportedCapability": "This record's capability cannot be opened here",
|
|
67
|
+
"searchPlaceholder": "Search prompts or results",
|
|
68
|
+
"deleteRun": "Delete this record",
|
|
69
|
+
"deleteRecordOnly": "Delete record and keep managed asset",
|
|
70
|
+
"deleteRecordAndAsset": "Delete record and managed asset",
|
|
71
|
+
"deletedRecordOnly": "Record deleted; managed asset retained",
|
|
72
|
+
"deletedRecordAndAsset": "Record and managed asset deleted",
|
|
73
|
+
"deleteAssetFailed": "Managed asset deletion failed; history was retained",
|
|
74
|
+
"deleteFailed": "Delete failed, please retry",
|
|
75
|
+
"clearScope": "Clear current scope",
|
|
76
|
+
"clearScopeConfirm": "Click again to confirm",
|
|
77
|
+
"cleared": "History cleared",
|
|
78
|
+
"clearChoiceAriaLabel": "Choose whether clearing history also deletes managed assets",
|
|
79
|
+
"clearRecordsOnly": "Records only",
|
|
80
|
+
"clearRecordsAndAssets": "Records + assets",
|
|
81
|
+
"clearedRecordsOnly": "History cleared; managed assets retained",
|
|
82
|
+
"clearOutcome": "Clear result: {{completed}} completed; {{skipped}} skipped; {{failed}} failed",
|
|
83
|
+
"clearFailed": "Clear failed, please retry",
|
|
84
|
+
"linkedRunMissing": "The linked run record is no longer retained",
|
|
85
|
+
"emptyMedia": "No media records yet",
|
|
86
|
+
"source": {
|
|
87
|
+
"local": "Local",
|
|
88
|
+
"cloud": "Cloud",
|
|
89
|
+
"unknown": "Unknown"
|
|
90
|
+
},
|
|
91
|
+
"canceled": "Canceled",
|
|
92
|
+
"stoppedWaiting": "Cancellation pending",
|
|
93
|
+
"timedOut": "Timed out",
|
|
94
|
+
"failed": "Failed",
|
|
95
|
+
"today": "Today",
|
|
96
|
+
"yesterday": "Yesterday",
|
|
97
|
+
"unknownDate": "Unknown date",
|
|
98
|
+
"runAriaIntent": "{{source}} intent: {{intent}}",
|
|
99
|
+
"runAriaPrompt": "Prompt: {{prompt}}",
|
|
100
|
+
"groupRunsAriaLabel": "{{group}} runs",
|
|
101
|
+
"recentRuns": "Recent runs",
|
|
102
|
+
"emptyNone": "No runs yet",
|
|
103
|
+
"emptyFiltered": "No runs match these filters",
|
|
104
|
+
"loadFailedTitle": "History failed to load",
|
|
105
|
+
"saveFailedTitle": "History failed to save"
|
|
106
|
+
},
|
|
107
|
+
"NonSuccess": {
|
|
108
|
+
"title": {
|
|
109
|
+
"runtimeUnavailable": "Local AI is unavailable",
|
|
110
|
+
"inputInvalid": "Check your input",
|
|
111
|
+
"sdkMethodUnavailable": "Not supported in this version",
|
|
112
|
+
"principalUnauthorized": "Reconnect this app",
|
|
113
|
+
"operationAborted": "Cancellation pending",
|
|
114
|
+
"runtimeCanceled": "Task canceled",
|
|
115
|
+
"runtimeTimeout": "Task timed out",
|
|
116
|
+
"streamInterrupted": "Result stream interrupted",
|
|
117
|
+
"runtimeCallFailed": "Generation failed"
|
|
118
|
+
},
|
|
119
|
+
"message": {
|
|
120
|
+
"runtimeUnavailable": "Runtime is unavailable for this request.",
|
|
121
|
+
"inputInvalid": "The request needs a valid prompt or required input before it can run.",
|
|
122
|
+
"sdkMethodUnavailable": "This capability is not available in the current app build.",
|
|
123
|
+
"principalUnauthorized": "Runtime rejected the protected owner for this request.",
|
|
124
|
+
"operationAborted": "A cancellation was requested, but Runtime has not confirmed the task's final state yet.",
|
|
125
|
+
"runtimeCanceled": "This task was canceled.",
|
|
126
|
+
"runtimeTimeout": "This task timed out.",
|
|
127
|
+
"streamInterrupted": "The live result connection ended before Runtime confirmed a final state.",
|
|
128
|
+
"runtimeCallFailed": "This generation could not be completed.",
|
|
129
|
+
"fallback": "The generation did not complete."
|
|
130
|
+
},
|
|
131
|
+
"action": {
|
|
132
|
+
"runtimeUnavailable": "Return to Desktop, confirm Local AI is connected, then try again.",
|
|
133
|
+
"inputInvalid": "Review the prompt and required fields, then run it again.",
|
|
134
|
+
"sdkMethodUnavailable": "Update the app, then try again.",
|
|
135
|
+
"principalUnauthorized": "Return to Desktop, reopen this app, then try again.",
|
|
136
|
+
"operationAborted": "Check the task status before starting another run.",
|
|
137
|
+
"runtimeCanceled": "Run the request again when you are ready.",
|
|
138
|
+
"runtimeTimeout": "Try again later. If it still times out, open Runtime details to find the cause.",
|
|
139
|
+
"streamInterrupted": "Check the task status; retry only after confirming it did not complete.",
|
|
140
|
+
"runtimeCallFailed": "Try again once. If it still fails, open Runtime details to find the cause.",
|
|
141
|
+
"fallback": "Try again. If it still fails, open Runtime details to find the cause."
|
|
142
|
+
},
|
|
143
|
+
"hint": {
|
|
144
|
+
"runtimeUnavailable": "Restore the protected Runtime connection, then retry the same request.",
|
|
145
|
+
"inputInvalid": "Supply a valid request body for this capability, then retry.",
|
|
146
|
+
"sdkMethodUnavailable": "Add an admitted SDK Nimi App execution method. Do not bypass Runtime with app-local REST.",
|
|
147
|
+
"principalUnauthorized": "Runtime rejected the protected owner identity. Restore the admitted App session before retrying.",
|
|
148
|
+
"operationAborted": "The SDK requested cancellation, but Runtime did not return a terminal state during the bounded follow-up lookup.",
|
|
149
|
+
"runtimeCanceled": "Runtime durably canceled this ScenarioJob. Submit a new request only when another run is wanted.",
|
|
150
|
+
"runtimeTimeout": "Runtime durably timed out this ScenarioJob. Inspect its typed reason and trace before retrying.",
|
|
151
|
+
"streamInterrupted": "The event stream ended without a terminal event and the bounded Runtime Job lookup remained non-terminal or unavailable.",
|
|
152
|
+
"runtimeCallFailed": "Runtime returned a typed contract failure. Inspect the verbatim Runtime error without inferring success."
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"StudioShell": {
|
|
156
|
+
"showHistory": "Show history",
|
|
157
|
+
"hideHistory": "Hide history",
|
|
158
|
+
"statusConfigured": "Configured",
|
|
159
|
+
"statusBlocked": "Blocked",
|
|
160
|
+
"statusNotAdmitted": "Not admitted",
|
|
161
|
+
"statusSdkGap": "SDK gap",
|
|
162
|
+
"statusChecking": "Checking",
|
|
163
|
+
"copyRuntimeDetails": "Copy Runtime details",
|
|
164
|
+
"downloadRuntimeDetails": "Download Runtime details",
|
|
165
|
+
"expandImage": "Expand image",
|
|
166
|
+
"expandGeneratedImage": "Expand generated image",
|
|
167
|
+
"imagePreview": "Image preview",
|
|
168
|
+
"closeImagePreview": "Close image preview",
|
|
169
|
+
"emptyBody": "(empty body)",
|
|
170
|
+
"emptyTranscript": "(empty transcript)",
|
|
171
|
+
"contextLabel": "Context",
|
|
172
|
+
"requestSettings": "Request settings",
|
|
173
|
+
"showRequestSettings": "Show request settings",
|
|
174
|
+
"hideRequestSettings": "Hide request settings",
|
|
175
|
+
"legacyRecordHint": "This older persisted run record contains only status metadata. Run it again to persist the typed result snapshot.",
|
|
176
|
+
"generationFailed": "Generation could not be completed",
|
|
177
|
+
"generationCanceled": "Generation canceled",
|
|
178
|
+
"cancelGeneration": "Cancel task",
|
|
179
|
+
"cancelRequested": "Requesting cancellation…",
|
|
180
|
+
"runtimeDetails": "Runtime details",
|
|
181
|
+
"runLabel": "Run",
|
|
182
|
+
"download": "Download",
|
|
183
|
+
"copyGeneration": "Copy generation",
|
|
184
|
+
"downloadGeneration": "Download generation",
|
|
185
|
+
"revealAsset": "Show in folder",
|
|
186
|
+
"revealGeneration": "Show generated file in folder",
|
|
187
|
+
"regenerate": "Regenerate",
|
|
188
|
+
"newRun": "New run",
|
|
189
|
+
"useAsDraft": "Use as draft",
|
|
190
|
+
"intentLabel": "Intent",
|
|
191
|
+
"embeddingSuccess": "Embedding generated successfully.",
|
|
192
|
+
"voiceAssetSuccess": "The new voice is ready to use for speech generation.",
|
|
193
|
+
"mediaSuccess": "Media generated successfully.",
|
|
194
|
+
"mediaPreviewMetadataOnly": "Media generated, but Runtime returned metadata only and no preview bytes are available.",
|
|
195
|
+
"mediaPreviewUnsupported": "Media generated, but this artifact type cannot be previewed here.",
|
|
196
|
+
"mediaMetadataDownloadHint": "Use Download to save the generated artifact or, when bytes are unavailable, its details.",
|
|
197
|
+
"noVoices": "No voices returned.",
|
|
198
|
+
"runStoppedEarly": "The run stopped before a typed Runtime result was returned.",
|
|
199
|
+
"noResultProduced": "No result was produced. Resolve the typed Runtime failure before retrying.",
|
|
200
|
+
"resultAriaLabel": "{{capability}} result",
|
|
201
|
+
"promptLabel": "Prompt",
|
|
202
|
+
"generationLabel": "Generation",
|
|
203
|
+
"runStatusReady": "runtime ready",
|
|
204
|
+
"runStatusUnavailable": "sdk unavailable",
|
|
205
|
+
"runStatusFailed": "failed",
|
|
206
|
+
"runStatusCanceled": "canceled",
|
|
207
|
+
"runStatusTimedOut": "timed out"
|
|
208
|
+
},
|
|
209
|
+
"StudioModelConfig": {
|
|
210
|
+
"drawerTitle": "App AI configuration",
|
|
211
|
+
"drawerDescription": "Configure {{appTitle}} AI capabilities"
|
|
212
|
+
},
|
|
213
|
+
"Studio": {
|
|
214
|
+
"admission": {
|
|
215
|
+
"sdkGapDetail": "No admitted typed SDK method is available for this capability."
|
|
216
|
+
},
|
|
217
|
+
"composer": {
|
|
218
|
+
"runtimeOwnedIntent": "Runtime-owned capability intent",
|
|
219
|
+
"openIntentConfig": "Open AI intent configuration",
|
|
220
|
+
"configureIntent": "Configure capability intent",
|
|
221
|
+
"context": "Context",
|
|
222
|
+
"contextAttached": "Context attached",
|
|
223
|
+
"attachContext": "Attach context",
|
|
224
|
+
"removeAttachment": "Remove {{name}}",
|
|
225
|
+
"requestAriaLabel": "{{capability}} request",
|
|
226
|
+
"startAriaLabel": "{{capability}} start",
|
|
227
|
+
"contextPlaceholder": "Optional context, audience, source notes, or constraints",
|
|
228
|
+
"intentSummary": "Intent: {{intent}}"
|
|
229
|
+
},
|
|
230
|
+
"parameters": {
|
|
231
|
+
"title": "Parameters",
|
|
232
|
+
"reset": "Reset",
|
|
233
|
+
"presenceHint": "Untouched controls are omitted from the request.",
|
|
234
|
+
"runtimeDefault": "Runtime default",
|
|
235
|
+
"cloudOnlyGroup": "Cloud-only parameters",
|
|
236
|
+
"localOnlyGroup": "Local-only parameters",
|
|
237
|
+
"switchToCloudHint": "Available after switching to Cloud intent.",
|
|
238
|
+
"switchToLocalHint": "Available after switching to Local intent.",
|
|
239
|
+
"localAppUnavailableGroup": "Unavailable to Local Apps",
|
|
240
|
+
"localAppUnavailableHint": "This protected App surface does not carry these private scheduling fields.",
|
|
241
|
+
"fixedValue": "Fixed {{value}}",
|
|
242
|
+
"fields": {
|
|
243
|
+
"seed": "Seed"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"run": {
|
|
247
|
+
"aiConfigLoadFailed": "App AIConfig load failed."
|
|
248
|
+
},
|
|
249
|
+
"drawerError": {
|
|
250
|
+
"title": "Model Config unavailable",
|
|
251
|
+
"fallback": "The shared Model Config surface failed to load."
|
|
252
|
+
},
|
|
253
|
+
"result": {
|
|
254
|
+
"methodLabel": "Method",
|
|
255
|
+
"admissionLabel": "Admission",
|
|
256
|
+
"reasonLabel": "Reason",
|
|
257
|
+
"traceLabel": "Trace",
|
|
258
|
+
"verboseConsoleNote": "Verbose console: capability {{capability}}; {{state}}.",
|
|
259
|
+
"verboseTypedSuccess": "typed success",
|
|
260
|
+
"verboseFailClosed": "fail-closed {{reason}}",
|
|
261
|
+
"verboseNoResult": "no current-session result",
|
|
262
|
+
"sdkUnavailable": "SDK unavailable",
|
|
263
|
+
"statRunning": "Running",
|
|
264
|
+
"statStopping": "Requesting cancellation",
|
|
265
|
+
"notRecorded": "Not recorded",
|
|
266
|
+
"status": {
|
|
267
|
+
"stopping": "Requesting cancellation",
|
|
268
|
+
"runtimeRunning": "Generating",
|
|
269
|
+
"operationAborted": "Cancellation pending",
|
|
270
|
+
"runtimeCanceled": "Task canceled",
|
|
271
|
+
"runtimeTimedOut": "Task timed out",
|
|
272
|
+
"runtimeBlocked": "Generation blocked",
|
|
273
|
+
"runtimeResult": "Completed",
|
|
274
|
+
"runtimeWaiting": "Ready to start"
|
|
275
|
+
},
|
|
276
|
+
"tokensNotCaptured": "not captured",
|
|
277
|
+
"statStatus": "Status",
|
|
278
|
+
"statWaiting": "Waiting",
|
|
279
|
+
"statBlocked": "Blocked",
|
|
280
|
+
"statStopped": "Cancellation pending",
|
|
281
|
+
"statCanceled": "Canceled",
|
|
282
|
+
"statTimedOut": "Timed out",
|
|
283
|
+
"statTokens": "Tokens",
|
|
284
|
+
"statCharacters": "Characters",
|
|
285
|
+
"statArtifacts": "Artifacts",
|
|
286
|
+
"statResult": "Result",
|
|
287
|
+
"statCreated": "Created",
|
|
288
|
+
"statCompleted": "Completed",
|
|
289
|
+
"statAvailable": "Ready",
|
|
290
|
+
"statState": "State",
|
|
291
|
+
"stateUnknown": "unknown",
|
|
292
|
+
"statVoices": "Voices",
|
|
293
|
+
"metricWords_one": "{{count}} word",
|
|
294
|
+
"metricWords_other": "{{count}} words",
|
|
295
|
+
"metricArtifacts_one": "{{count}} artifact",
|
|
296
|
+
"metricArtifacts_other": "{{count}} artifacts",
|
|
297
|
+
"metricCreated": "created",
|
|
298
|
+
"metricVoices_one": "{{count}} voice",
|
|
299
|
+
"metricVoices_other": "{{count}} voices",
|
|
300
|
+
"pendingStreaming": "Generating a response...",
|
|
301
|
+
"pendingRuntime": "Preparing and generating...",
|
|
302
|
+
"pendingCancel": "Requesting cancellation from Runtime…",
|
|
303
|
+
"runTimeLabel": "Run / {{time}}",
|
|
304
|
+
"runtimeChip": "AI generation",
|
|
305
|
+
"createdFromDescription": "Text description",
|
|
306
|
+
"createdFromAudio": "Reference audio",
|
|
307
|
+
"generationMetrics": "Generation metrics"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import en from './en.json' with { type: 'json' };
|
|
2
|
+
import zh from './zh.json' with { type: 'json' };
|
|
3
|
+
|
|
4
|
+
export type AIStudioMessageBundle = Readonly<Record<string, unknown>>;
|
|
5
|
+
export type AIStudioMessageBundles = Readonly<Record<'en' | 'zh', AIStudioMessageBundle>>;
|
|
6
|
+
|
|
7
|
+
export const aiStudioCoreMessageBundles = Object.freeze({ en, zh }) satisfies AIStudioMessageBundles;
|
|
8
|
+
|
|
9
|
+
function cloneMessageValue(value: unknown): unknown {
|
|
10
|
+
if (Array.isArray(value)) return value.map(cloneMessageValue);
|
|
11
|
+
if (value && typeof value === 'object') {
|
|
12
|
+
return Object.fromEntries(
|
|
13
|
+
Object.entries(value).map(([key, child]) => [key, cloneMessageValue(child)]),
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function mergeMessageObject(
|
|
20
|
+
target: Record<string, unknown>,
|
|
21
|
+
source: AIStudioMessageBundle,
|
|
22
|
+
prefix = '',
|
|
23
|
+
): void {
|
|
24
|
+
for (const [key, value] of Object.entries(source)) {
|
|
25
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
26
|
+
const current = target[key];
|
|
27
|
+
if (
|
|
28
|
+
current && typeof current === 'object' && !Array.isArray(current)
|
|
29
|
+
&& value && typeof value === 'object' && !Array.isArray(value)
|
|
30
|
+
) {
|
|
31
|
+
mergeMessageObject(current as Record<string, unknown>, value as AIStudioMessageBundle, path);
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
if (Object.hasOwn(target, key)) {
|
|
35
|
+
throw new Error(`Duplicate i18n message owner: ${path}`);
|
|
36
|
+
}
|
|
37
|
+
target[key] = cloneMessageValue(value);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function mergeAIStudioMessageBundles(
|
|
42
|
+
bundles: readonly AIStudioMessageBundle[],
|
|
43
|
+
): Record<string, unknown> {
|
|
44
|
+
const merged: Record<string, unknown> = {};
|
|
45
|
+
for (const bundle of bundles) mergeMessageObject(merged, bundle);
|
|
46
|
+
return merged;
|
|
47
|
+
}
|