arcane-os 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +86 -117
  3. package/bin/arcane-test.mjs +170 -46
  4. package/browser-runtime/ai/browser-speech-artifacts.mjs +887 -909
  5. package/browser-runtime/ai/browser-speech-providers.mjs +96 -152
  6. package/browser-runtime/ai/browser-wasm-llm-provider.mjs +627 -819
  7. package/browser-runtime/ai/browser-wasm.mjs +24 -35
  8. package/browser-runtime/ai/browser-wllama-runtime.mjs +64 -316
  9. package/browser-runtime/ai/model-controller.mjs +584 -181
  10. package/browser-runtime/ai/speech-worker-client.mjs +8 -146
  11. package/browser-runtime/ai/speech-worker-runtime.mjs +643 -363
  12. package/browser-runtime/dom-event-instrumentation.mjs +55 -147
  13. package/browser-runtime/event-manager.mjs +239 -624
  14. package/package.json +5 -6
  15. package/runtime/arcane/components/app-bar.html +3 -15
  16. package/runtime/arcane/components/assistant-panel.html +10 -10
  17. package/runtime/arcane/components/calculator.html +1 -1
  18. package/runtime/arcane/components/chat.html +1359 -135
  19. package/runtime/arcane/components/conversation-view.html +2 -2
  20. package/runtime/arcane/components/document-inspector.html +11 -17
  21. package/runtime/arcane/components/file-manager.html +13 -56
  22. package/runtime/arcane/components/markdown-document.html +82 -281
  23. package/runtime/arcane/components/markdown-editor.html +7 -10
  24. package/runtime/arcane/components/media-embed.html +6 -6
  25. package/runtime/arcane/components/screen-capture.html +4 -4
  26. package/runtime/arcane/components/source-explanation.html +2 -2
  27. package/runtime/arcane/components/speech.html +112 -68
  28. package/runtime/arcane/components/terminal-workspace.html +4 -4
  29. package/runtime/arcane/components/theme-editor.html +1 -1
  30. package/runtime/arcane/components/unified-inbox.html +2 -2
  31. package/runtime/arcane/components/voice-transcription.html +31 -21
  32. package/runtime/arcane/entities/Calculation.js +2 -3
  33. package/runtime/arcane/entities/Chat.js +228 -43
  34. package/runtime/arcane/entities/Preference.js +3 -5
  35. package/runtime/arcane/entities/Weather.js +5 -5
  36. package/runtime/arcane/modules/AI.js +1050 -427
  37. package/runtime/arcane/modules/AIProviderRuntime.js +658 -363
  38. package/runtime/arcane/modules/AIResponseLength.js +9 -19
  39. package/runtime/arcane/modules/AIRuntimeState.js +109 -72
  40. package/runtime/arcane/modules/ArcaneNavigationPolicy.js +45 -32
  41. package/runtime/arcane/modules/BrowserTestSuite.js +78 -122
  42. package/runtime/arcane/modules/CalculatorEngine.js +9 -9
  43. package/runtime/arcane/modules/CommunicationAppController.js +3 -7
  44. package/runtime/arcane/modules/ComponentContracts.js +30 -32
  45. package/runtime/arcane/modules/ConfiguredAIChatSession.js +281 -230
  46. package/runtime/arcane/modules/ConversationActionItems.js +26 -59
  47. package/runtime/arcane/modules/ConversationClosingReport.js +34 -61
  48. package/runtime/arcane/modules/ConversationTimebox.js +27 -15
  49. package/runtime/arcane/modules/DBOPFSDocumentLibrary.js +152 -344
  50. package/runtime/arcane/modules/DocumentLexicalSearch.js +25 -91
  51. package/runtime/arcane/modules/HTMLImport.js +54 -1
  52. package/runtime/arcane/modules/IsolatedModelQuestionRunner.js +40 -203
  53. package/runtime/arcane/modules/LocalAIReadiness.js +40 -60
  54. package/runtime/arcane/modules/LocalAIReadinessController.js +15 -13
  55. package/runtime/arcane/modules/MD.js +1 -45
  56. package/runtime/arcane/modules/Mail.js +51 -103
  57. package/runtime/arcane/modules/MailOutbox.mjs +95 -193
  58. package/runtime/arcane/modules/MailTransport.mjs +36 -57
  59. package/runtime/arcane/modules/ModelDefinition.js +22 -106
  60. package/runtime/arcane/modules/OpenMeteoWeatherProvider.js +39 -101
  61. package/runtime/arcane/modules/PersistentAIChatSession.js +281 -18
  62. package/runtime/arcane/modules/PreferenceStore.js +102 -30
  63. package/runtime/arcane/modules/RiskSignalAnalyzer.js +8 -9
  64. package/runtime/arcane/modules/ScopedOPFSCache.js +7 -42
  65. package/runtime/arcane/modules/ScreenCapture.js +175 -128
  66. package/runtime/arcane/modules/SpeechPlayback.js +46 -149
  67. package/runtime/arcane/modules/StaticDocumentCatalog.js +173 -407
  68. package/runtime/arcane/modules/ToolCallRouter.js +25 -12
  69. package/runtime/arcane/modules/YouTubeMedia.js +6 -5
  70. package/schemas/arcane-app-bundle.schema.json +13 -78
  71. package/schemas/arcane-app.schema.json +9 -25
  72. package/schemas/arcane-lock.schema.json +18 -151
  73. package/schemas/arcane-package.schema.json +2 -16
  74. package/schemas/native-build-plan.schema.json +119 -122
  75. package/src/app-descriptor.mjs +75 -132
  76. package/src/application-tests.mjs +200 -0
  77. package/src/cli/main.mjs +27 -46
  78. package/src/constants.mjs +3 -4
  79. package/src/dev-server.mjs +30 -324
  80. package/src/doctor.mjs +92 -154
  81. package/src/dom-event-instrumentation.mjs +55 -147
  82. package/src/errors.mjs +2 -3
  83. package/src/event-manager.mjs +239 -624
  84. package/src/event-queue.mjs +3 -3
  85. package/src/import-map.mjs +273 -1028
  86. package/src/index.mjs +14 -16
  87. package/src/installed-sdk-runtime.mjs +40 -62
  88. package/src/integrated-provider-loader.mjs +53 -382
  89. package/src/mail-api.mjs +0 -2
  90. package/src/mail-server.mjs +224 -580
  91. package/src/mail.mjs +4 -10
  92. package/src/native-plan.mjs +163 -598
  93. package/src/native-provider-loader.mjs +104 -1063
  94. package/src/packager/core.mjs +485 -3229
  95. package/src/process.mjs +5 -10
  96. package/src/release-bundle.mjs +292 -2405
  97. package/src/runtime.mjs +76 -396
  98. package/src/scaffold.mjs +30 -80
  99. package/src/sdk-browser-runtime.mjs +70 -626
  100. package/src/source-server.mjs +588 -0
  101. package/src/targets/index.mjs +78 -188
  102. package/src/templates/workspace-template.mjs +19 -135
  103. package/src/testing-loader.mjs +164 -0
  104. package/src/testing.mjs +1 -1
  105. package/src/toolchain.mjs +131 -544
  106. package/src/update-check.mjs +26 -64
  107. package/src/workspace-operation-lock.mjs +139 -430
  108. package/src/workspace-runtime.mjs +112 -779
  109. package/src/workspace.mjs +40 -302
  110. package/browser-runtime/ARCANE_SDK_BROWSER_RELEASE.json +0 -218
  111. package/browser-runtime/ai/ARCANE_AI_BROWSER_SPEECH_COMPONENTS.json +0 -203
  112. package/browser-runtime/ai/ARCANE_AI_BROWSER_WASM_COMPONENTS.json +0 -80
  113. package/browser-runtime/ai/internal/sha256.mjs +0 -166
  114. package/docs/architecture.md +0 -344
  115. package/docs/compatibility.md +0 -36
  116. package/docs/event-manager.md +0 -294
  117. package/docs/platform-targets.md +0 -108
  118. package/docs/publishing.md +0 -201
  119. package/docs/reference/README.md +0 -187
  120. package/docs/reference/ai/browser-speech-package-authority.json +0 -835
  121. package/docs/reference/ai/browser-speech.md +0 -1252
  122. package/docs/reference/ai/browser-wasm.md +0 -530
  123. package/docs/reference/arcane-ollama.md +0 -288
  124. package/docs/reference/availability-and-normalization.md +0 -183
  125. package/docs/reference/behavioral-testing.md +0 -133
  126. package/docs/reference/cli.md +0 -779
  127. package/docs/reference/core/README.md +0 -62
  128. package/docs/reference/core/arcane-ai-contracts.md +0 -907
  129. package/docs/reference/core/arcane-api.md +0 -601
  130. package/docs/reference/core/arcane-entities.md +0 -65
  131. package/docs/reference/core/arcane-events.md +0 -134
  132. package/docs/reference/core/ollama-module.md +0 -181
  133. package/docs/reference/core/reference/arcane-api/ai-and-ollama.md +0 -1909
  134. package/docs/reference/core/reference/arcane-api/applications-terminal-capabilities.md +0 -1057
  135. package/docs/reference/core/reference/arcane-api/core-and-events.md +0 -320
  136. package/docs/reference/core/reference/arcane-api/filesystem-storage-preferences-appearance.md +0 -610
  137. package/docs/reference/core/reference/arcane-api/namespaces.md +0 -1157
  138. package/docs/reference/core/reference/arcane-api/platform-installation-users-system.md +0 -1423
  139. package/docs/reference/core/reference/arcane-api/session-provisioning-diagnostics-development.md +0 -315
  140. package/docs/reference/event-manager.md +0 -1511
  141. package/docs/reference/inventory/package-api.json +0 -3284
  142. package/docs/reference/inventory/runtime-components.json +0 -1011
  143. package/docs/reference/inventory/runtime-entities.json +0 -26
  144. package/docs/reference/inventory/runtime-modules.json +0 -1431
  145. package/docs/reference/mail.md +0 -316
  146. package/docs/reference/protocols.md +0 -677
  147. package/docs/reference/runtime-components.md +0 -1366
  148. package/docs/reference/runtime-entities.md +0 -303
  149. package/docs/reference/runtime-modules.md +0 -2960
  150. package/docs/reference/sdk-api.md +0 -6694
  151. package/docs/roadmap.md +0 -79
  152. package/docs/work-amplification.md +0 -129
  153. package/runtime/ARCANE_RUNTIME_RELEASE.json +0 -826
@@ -1,1431 +0,0 @@
1
- {
2
- "schemaVersion": 1,
3
- "source": {
4
- "authority": "sdk-canonical",
5
- "repository": "https://github.com/TheWizardNexus/arcane-os-sdk.git",
6
- "commit": "9c4ec2213af98cbc53fca073a799435a89c6650f",
7
- "path": "runtime/arcane",
8
- "sdkVersion": "0.3.0",
9
- "legacyProjection": {
10
- "repository": "https://github.com/TheWizardNexus/ARCANE-OS.git",
11
- "commit": "c540014afe69f14cf5ae60493b7295f36dbcec64",
12
- "bundleVersion": "0.8.12"
13
- },
14
- "protocol": "arcane/1"
15
- },
16
- "artifactCount": 86,
17
- "javascriptArtifactCount": 84,
18
- "esmExportCount": 384,
19
- "artifacts": [
20
- {
21
- "file": "runtime/arcane/modules/AI.js",
22
- "name": "AI.js",
23
- "kind": "esm",
24
- "exports": [
25
- "AI_BROWSER_SPEECH_CONFIGURATION_PROTOCOL",
26
- "AI_BROWSER_SPEECH_ERROR_CODES",
27
- "AI_BROWSER_SPEECH_EVENT_TYPES",
28
- "AI_BROWSER_SPEECH_REASONS",
29
- "AI_INITIALIZATION_ERROR_CODES",
30
- "AI_INITIALIZATION_REASONS",
31
- "AI_READY_EVENT",
32
- "default"
33
- ],
34
- "summary": "Owns provider-selectable chat and the one-time caller-authority browser STT/TTS configuration, lifecycle, synthesis, transcription, and playback boundary.",
35
- "availability": "Browser + native bridge + cloud",
36
- "protocol": "arcane-ai-browser-speech-configuration/1, AIProviderRuntime arcane-ai-provider/2 routes, globalThis.arcaneEvents, OpenAI HTTPS, Arcane.ollama, Arcane.speech, Android WebView bridge",
37
- "normalization": "Frozen caller-owned browser speech authority, SDK-owned provider registration/replacement/disposal, explicit STT/TTS activation, sticky readiness, Blob/File transcription, playable audio, mute, cancellation, and supersession are normalized; provider/model/runtime/voice policy remains caller-owned.",
38
- "surface": "Browser-speech protocol/event/error/reason constants; default `AI`; read-only `providerRuntime`, `browserSpeechConfiguration`, and `browserSpeechDescriptor`; `configureBrowserSpeech(configuration,{signal})`, `disposeBrowserSpeech({signal})`, route configuration/transition/start/mute methods, chat methods, `streamTTS(text,end)`, `finishTTS()`, `fetchTTS({model,voice,input,responseFormat,speed},signal)`, `fetchSTT(audioFile,responseHandler,signal)`, and playback controls; installs `window.ai` and projects `ai-ready`."
39
- },
40
- {
41
- "file": "runtime/arcane/modules/AIPreferenceRuntime.js",
42
- "name": "AIPreferenceRuntime.js",
43
- "kind": "esm",
44
- "exports": [
45
- "getAIPreferencesForRuntime",
46
- "setAIPreferenceRuntimeOverride"
47
- ],
48
- "summary": "Applies and reads non-persistent per-user AI preference overrides.",
49
- "availability": "Cross-host",
50
- "protocol": "In-process only",
51
- "normalization": "Normalized six-slot preference state.",
52
- "surface": "`setAIPreferenceRuntimeOverride()`, `getAIPreferencesForRuntime()`."
53
- },
54
- {
55
- "file": "runtime/arcane/modules/AIPreferenceTuple.js",
56
- "name": "AIPreferenceTuple.js",
57
- "kind": "esm",
58
- "exports": [
59
- "AI_PREFERENCE_SLOT_KEYS",
60
- "aiPreferenceTuplesEqual",
61
- "normalizeAIPreferenceTuple"
62
- ],
63
- "summary": "Normalizes and compares the six provider/model preference slots.",
64
- "availability": "Cross-host",
65
- "protocol": "In-process only",
66
- "normalization": "Fully normalized frozen tuple.",
67
- "surface": "`AI_PREFERENCE_SLOT_KEYS`, `normalizeAIPreferenceTuple()`, `aiPreferenceTuplesEqual()`."
68
- },
69
- {
70
- "file": "runtime/arcane/modules/AIProviderRuntime.js",
71
- "name": "AIProviderRuntime.js",
72
- "kind": "esm",
73
- "exports": [
74
- "AI_MODEL_AUTHORITY_PROTOCOL",
75
- "AI_PROVIDER_PROTOCOL",
76
- "AI_PROVIDER_RUNTIME_PROTOCOL",
77
- "AIProviderRuntime",
78
- "aiProviderRuntime",
79
- "getAIProviderRuntime"
80
- ],
81
- "summary": "Provider-neutral selection, lifecycle, routing, startup, request, streaming, cancellation, and independent LLM/STT/TTS state.",
82
- "availability": "Cross-host in-process runtime; registered providers remain browser, native, or cloud specific",
83
- "protocol": "arcane-ai-runtime/2, arcane-ai-provider/2, arcane-ai-model-authority/1",
84
- "normalization": "Normalizes immutable per-role routes, lifecycle/status, cancellation, streaming cleanup, and local-only selection without creating a fallback.",
85
- "surface": "Protocol constants; singleton-only `AIProviderRuntime`; `aiProviderRuntime`; `getAIProviderRuntime()`; provider registration/identity/selection, closed three-role and STT/TTS-only validation/configuration/replacement, status/catalog/inspection, startup, per-role load/unload/dispose/cancel, dispose-all, request/stream/speech aliases, and mute controls."
86
- },
87
- {
88
- "file": "runtime/arcane/modules/AIResponseLength.js",
89
- "name": "AIResponseLength.js",
90
- "kind": "esm",
91
- "exports": [
92
- "AI_RESPONSE_LENGTH_DEFAULT",
93
- "AI_RESPONSE_LENGTH_OPTIONS",
94
- "aiResponseLengthInstruction",
95
- "applyAIResponseLength",
96
- "normalizeAIResponseLength"
97
- ],
98
- "summary": "Normalizes concise/short/medium/long response preferences and applies the matching system instruction.",
99
- "availability": "Cross-host",
100
- "protocol": "In-process only",
101
- "normalization": "Fully normalized string/instruction contract.",
102
- "surface": "Response-length constants plus `normalizeAIResponseLength()`, `aiResponseLengthInstruction()`, and `applyAIResponseLength()`."
103
- },
104
- {
105
- "file": "runtime/arcane/modules/AIResponseURLPolicy.js",
106
- "name": "AIResponseURLPolicy.js",
107
- "kind": "esm",
108
- "exports": [
109
- "auditAIResponseLinks",
110
- "decodeHTMLCharacterReferences",
111
- "extractAIResponseLinks",
112
- "normalizeAIResponseLink"
113
- ],
114
- "summary": "Extracts and audits links from AI Markdown, rendered HTML, CSS, srcset, bare URLs, and email text.",
115
- "availability": "Cross-host",
116
- "protocol": "In-process; bundled Marked parser",
117
- "normalization": "Normalized frozen allowlist audit.",
118
- "surface": "`auditAIResponseLinks()`, `extractAIResponseLinks()`, `normalizeAIResponseLink()`, `decodeHTMLCharacterReferences()`."
119
- },
120
- {
121
- "file": "runtime/arcane/modules/AIRuntimeState.js",
122
- "name": "AIRuntimeState.js",
123
- "kind": "esm",
124
- "exports": [
125
- "AI_RUNTIME_INTENT_EVENT",
126
- "AI_RUNTIME_PROTOCOL",
127
- "AI_RUNTIME_ROLES",
128
- "AI_RUNTIME_STARTUP_EVENT",
129
- "AI_RUNTIME_STATES",
130
- "AI_RUNTIME_STATE_EVENT",
131
- "aiRuntimeEvents",
132
- "getAIRuntimeState",
133
- "publishAIRuntimeRoleState",
134
- "publishAIRuntimeRolesState",
135
- "requestAIRuntimeIntent",
136
- "startAIRuntime",
137
- "subscribeAIRuntimeIntents",
138
- "subscribeAIRuntimeState"
139
- ],
140
- "summary": "Sticky immutable LLM, speech-to-text, and text-to-speech lifecycle snapshots, intents, subscriptions, and startup-settlement barriers.",
141
- "availability": "Cross-host in-process state contract; actual role readiness remains provider specific",
142
- "protocol": "arcane-ai-runtime-state/1 over the per-realm globalThis.arcaneEvents authority; deprecated state-free EventTarget compatibility view",
143
- "normalization": "Closed monotonic sticky role snapshots, transient lifecycle intents, synchronous current-state replay, AbortSignal cleanup, and startup settlement are normalized; events report state but grant no authority.",
144
- "surface": "Protocol/event/role/state constants; deprecated `aiRuntimeEvents` compatibility view; snapshot, state subscribe/publish, intent request/subscribe, and `startAIRuntime({startMuted,startTranscription,signal})` returning `{barrier,settled,cancel}`."
145
- },
146
- {
147
- "file": "runtime/arcane/modules/AnsiText.js",
148
- "name": "AnsiText.js",
149
- "kind": "esm",
150
- "exports": [
151
- "parseAnsi",
152
- "stripAnsi"
153
- ],
154
- "summary": "Parses terminal ANSI sequences into display spans or strips them to plain text.",
155
- "availability": "Cross-host",
156
- "protocol": "In-process only",
157
- "normalization": "Normalized text/span output.",
158
- "surface": "`parseAnsi()`, `stripAnsi()`."
159
- },
160
- {
161
- "file": "runtime/arcane/modules/ApiModelDatabase.js",
162
- "name": "ApiModelDatabase.js",
163
- "kind": "esm",
164
- "exports": [
165
- "API_MODEL_ERRORS",
166
- "API_MODEL_EVENTS",
167
- "appendParameters",
168
- "default",
169
- "publicEndpoint"
170
- ],
171
- "summary": "Fetches an injectable HTTP JSON model with parser, cache, redacted public endpoint records, and request lifecycle events.",
172
- "availability": "Browser / native WebView / server with fetch",
173
- "protocol": "HTTP(S) fetch + per-realm globalThis.arcaneEvents authority",
174
- "normalization": "Request records are normalized; fetch/provider failures remain mixed.",
175
- "surface": "`API_MODEL_EVENTS`, `API_MODEL_ERRORS`, default `ApiModelDatabase`; `setEndpoint()`, `fetch()`, `cached()`, and `dispose()`; state-free EventTarget/on compatibility for request, success, and error occurrences."
176
- },
177
- {
178
- "file": "runtime/arcane/modules/AppDataScope.js",
179
- "name": "AppDataScope.js",
180
- "kind": "esm",
181
- "exports": [
182
- "APPLICATION_ID_MAX_LENGTH",
183
- "APPLICATION_ID_PATTERN",
184
- "APP_DATA_DIRECTORY",
185
- "APP_LOCAL_STORAGE_PREFIX",
186
- "canonicalApplicationId",
187
- "declaredApplicationId",
188
- "openApplicationDataDirectory",
189
- "resolveApplicationId",
190
- "resolveApplicationLocalStorageKey",
191
- "resolveBrowserApplicationId"
192
- ],
193
- "summary": "Reconciles declared and native application identity and scopes OPFS/localStorage ownership fail-closed.",
194
- "availability": "Browser / native WebView hybrid",
195
- "protocol": "Arcane.app.current, DOM declaration, OPFS",
196
- "normalization": "Strict normalized identifiers and coded mismatch failures.",
197
- "surface": "Identity constants and `canonicalApplicationId()`, `resolveApplicationId()`, `resolveApplicationLocalStorageKey()`, `openApplicationDataDirectory()`."
198
- },
199
- {
200
- "file": "runtime/arcane/modules/AppearancePreferences.js",
201
- "name": "AppearancePreferences.js",
202
- "kind": "esm",
203
- "exports": [
204
- "appearancePreferenceSchema",
205
- "applyAppearancePreferences",
206
- "createAppearancePreferenceStore",
207
- "loadAndApplyAppearancePreferences"
208
- ],
209
- "summary": "Defines, stores, and applies color scheme, density, reduced motion, and large-text preferences.",
210
- "availability": "Browser / native WebView hybrid",
211
- "protocol": "PreferenceStore, DOM, optional Arcane preferences",
212
- "normalization": "Normalized values; storage/host failures remain mixed.",
213
- "surface": "`appearancePreferenceSchema`, `createAppearancePreferenceStore()`, `applyAppearancePreferences()`, `loadAndApplyAppearancePreferences()`."
214
- },
215
- {
216
- "file": "runtime/arcane/modules/ArcaneCommunicationBridge.js",
217
- "name": "ArcaneCommunicationBridge.js",
218
- "kind": "esm",
219
- "exports": [
220
- "default"
221
- ],
222
- "summary": "Maps provider HTTP threads/messages/connect/disconnect endpoints to normalized communication entities.",
223
- "availability": "Browser / native WebView / server with fetch",
224
- "protocol": "JSON HTTP(S), default loopback 127.0.0.1:8020",
225
- "normalization": "Entity results are normalized; provider/transport failures remain mixed.",
226
- "surface": "default `ArcaneCommunicationBridge`; `request()`, `listThreads()`, `getMessages()`, `send()`, `connect()`, `disconnect()`."
227
- },
228
- {
229
- "file": "runtime/arcane/modules/ArcaneNavigationPolicy.js",
230
- "name": "ArcaneNavigationPolicy.js",
231
- "kind": "esm",
232
- "exports": [
233
- "createArcaneNavigationGuard"
234
- ],
235
- "summary": "Creates a fail-closed HTTP(S) navigation guard with domain and CIDR policy decisions.",
236
- "availability": "Cross-host",
237
- "protocol": "Arcane network-policy document",
238
- "normalization": "Normalized frozen allow/block decision.",
239
- "surface": "`createArcaneNavigationGuard()`."
240
- },
241
- {
242
- "file": "runtime/arcane/modules/ArcaneNetworkPolicy.js",
243
- "name": "ArcaneNetworkPolicy.js",
244
- "kind": "esm",
245
- "exports": [
246
- "ARCANE_NETWORK_POLICY_SCHEMA_VERSION",
247
- "ARCANE_NETWORK_POLICY_URL",
248
- "canonicalNetworkHostname",
249
- "emptyArcaneNetworkPolicy",
250
- "findDeniedDomainRule",
251
- "findDeniedNetworkRule",
252
- "invalidateArcaneNetworkPolicyCache",
253
- "loadArcaneNetworkPolicy",
254
- "validateArcaneNetworkPolicy"
255
- ],
256
- "summary": "Validates the Arcane domain/network deny policy and matches domain, IPv4/IPv6 CIDR, protocol, and port rules.",
257
- "availability": "Cross-host",
258
- "protocol": "Same-origin policy fetch",
259
- "normalization": "Strict coded normalization.",
260
- "surface": "Policy constants plus validate/load/cache/match helpers."
261
- },
262
- {
263
- "file": "runtime/arcane/modules/AsyncBoundary.js",
264
- "name": "AsyncBoundary.js",
265
- "kind": "esm",
266
- "exports": [
267
- "AsyncBoundaryAbortError",
268
- "AsyncBoundaryTimeoutError",
269
- "asyncBoundaryDefaults",
270
- "default",
271
- "runAsyncBoundary"
272
- ],
273
- "summary": "Runs one asynchronous operation with timeout, abort, result validation, and stable boundary errors.",
274
- "availability": "Cross-host",
275
- "protocol": "AbortController and timers",
276
- "normalization": "Fully normalized timeout/abort errors.",
277
- "surface": "`AsyncBoundaryTimeoutError`, `AsyncBoundaryAbortError`, defaults, `runAsyncBoundary()`, and default alias."
278
- },
279
- {
280
- "file": "runtime/arcane/modules/BrowserTestSuite.js",
281
- "name": "BrowserTestSuite.js",
282
- "kind": "esm",
283
- "exports": [
284
- "BROWSER_TEST_SUITE_ERROR_CODES",
285
- "BROWSER_TEST_SUITE_EVENT_TYPES",
286
- "BROWSER_TEST_SUITE_REASONS",
287
- "assertionError",
288
- "default",
289
- "skipError"
290
- ],
291
- "summary": "Runs a fixed sequential browser test list with cooperative abort, per-test timeout, and lifecycle events.",
292
- "availability": "Browser / standard Web APIs",
293
- "protocol": "Timers + per-realm globalThis.arcaneEvents authority",
294
- "normalization": "Normalized result and skip/assertion errors.",
295
- "surface": "Event/error/reason constants; default `BrowserTestSuite`; `list()`, `run()`, and `dispose()`; state-free EventTarget/on compatibility for suite/test lifecycle occurrences."
296
- },
297
- {
298
- "file": "runtime/arcane/modules/CalculatorEngine.js",
299
- "name": "CalculatorEngine.js",
300
- "kind": "esm",
301
- "exports": [
302
- "CALCULATOR_ENGINE_ERROR_CODES",
303
- "default",
304
- "evaluateExpression"
305
- ],
306
- "summary": "Evaluates bounded arithmetic, powers, constants, and common functions without `eval`.",
307
- "availability": "Cross-host",
308
- "protocol": "arcane-event-source/1 on the per-realm globalThis.arcaneEvents authority",
309
- "normalization": "Frozen canonical result/error details, source-instance operation IDs, exact parser/evaluation error codes, and state-free EventTarget compatibility.",
310
- "surface": "CALCULATOR_ENGINE_ERROR_CODES; default CalculatorEngine with calculate(), EventTarget/on compatibility, dispose()/destroy(); evaluateExpression()."
311
- },
312
- {
313
- "file": "runtime/arcane/modules/CaseEvidenceIndexer.js",
314
- "name": "CaseEvidenceIndexer.js",
315
- "kind": "esm",
316
- "exports": [
317
- "indexPairedRecord",
318
- "nearestPageMarker",
319
- "parseStructuredRecordName",
320
- "renderedPageBlocks",
321
- "resolveEvidenceSourcePage",
322
- "safeName",
323
- "sha256",
324
- "stem"
325
- ],
326
- "summary": "Pairs and indexes structured evidence records with rendered-page provenance and SHA-256 identity.",
327
- "availability": "Node only",
328
- "protocol": "node:fs/promises, node:path, node:crypto",
329
- "normalization": "Normalized naming/page helpers; filesystem errors preserved.",
330
- "surface": "Eight exported indexing, page, naming, stem, and digest helpers."
331
- },
332
- {
333
- "file": "runtime/arcane/modules/ChartLibrary.js",
334
- "name": "ChartLibrary.js",
335
- "kind": "esm",
336
- "exports": [
337
- "default"
338
- ],
339
- "summary": "Loads the bundled uPlot classic script once and returns its global constructor.",
340
- "availability": "Browser / native WebView",
341
- "protocol": "DOM script injection",
342
- "normalization": "Load state/errors normalized; uPlot result is vendor-native.",
343
- "surface": "default `loadChartLibrary()`."
344
- },
345
- {
346
- "file": "runtime/arcane/modules/ChatRecords.js",
347
- "name": "ChatRecords.js",
348
- "kind": "esm",
349
- "exports": [
350
- "hasUserEntry"
351
- ],
352
- "summary": "Detects whether a chat record contains a meaningful user entry.",
353
- "availability": "Cross-host",
354
- "protocol": "In-process only",
355
- "normalization": "Boolean normalized result.",
356
- "surface": "`hasUserEntry()`."
357
- },
358
- {
359
- "file": "runtime/arcane/modules/CommunicationAppController.js",
360
- "name": "CommunicationAppController.js",
361
- "kind": "esm",
362
- "exports": [
363
- "COMMUNICATION_APP_CONTROLLER_ERROR_CODES",
364
- "default"
365
- ],
366
- "summary": "Binds shared inbox, conversation, settings, theme, and provider workflows into one UI controller.",
367
- "availability": "Browser / native WebView hybrid",
368
- "protocol": "DOM plus communication providers",
369
- "normalization": "Controller state normalized; provider/DOM failures mixed.",
370
- "surface": "default controller with `start()`, `bind()`, `configure()`, `refresh()`, `select()`, `send()`, and settings actions."
371
- },
372
- {
373
- "file": "runtime/arcane/modules/CommunicationHub.js",
374
- "name": "CommunicationHub.js",
375
- "kind": "esm",
376
- "exports": [
377
- "COMMUNICATION_HUB_ERROR_CODES",
378
- "COMMUNICATION_HUB_EVENTS",
379
- "COMMUNICATION_HUB_REFRESH_REASONS",
380
- "COMMUNICATION_HUB_REFRESH_STATES",
381
- "default"
382
- ],
383
- "summary": "Fans out provider refresh/send operations and aggregates normalized threads/messages.",
384
- "availability": "Cross-host with injected providers",
385
- "protocol": "Injected provider contract + per-realm globalThis.arcaneEvents authority",
386
- "normalization": "Normalized aggregates; refresh contains per-provider failures.",
387
- "surface": "Event/state/reason/error constants; default `CommunicationHub`; provider enablement, `refresh()`, `messages()`, `send()`, state-free EventTarget/on compatibility, and `dispose()`."
388
- },
389
- {
390
- "file": "runtime/arcane/modules/CommunicationPreferences.js",
391
- "name": "CommunicationPreferences.js",
392
- "kind": "esm",
393
- "exports": [
394
- "default"
395
- ],
396
- "summary": "Stores app-scoped, non-secret communication provider preferences.",
397
- "availability": "Browser / native WebView hybrid",
398
- "protocol": "Arcane.preferences or localStorage",
399
- "normalization": "Normalized preference record; storage failures mixed.",
400
- "surface": "default `CommunicationPreferences`; `load()`, `save()`."
401
- },
402
- {
403
- "file": "runtime/arcane/modules/CommunicationProviderRegistry.js",
404
- "name": "CommunicationProviderRegistry.js",
405
- "kind": "esm",
406
- "exports": [
407
- "default"
408
- ],
409
- "summary": "Registers and queries validated provider definitions, channels, and required methods.",
410
- "availability": "Cross-host",
411
- "protocol": "In-process only",
412
- "normalization": "Strict normalized registry.",
413
- "surface": "default registry with `register()`, `get()`, `has()`, `list()`."
414
- },
415
- {
416
- "file": "runtime/arcane/modules/ComponentContracts.js",
417
- "name": "ComponentContracts.js",
418
- "kind": "esm",
419
- "exports": [
420
- "CHART_LABELS",
421
- "DASHBOARD_LABELS",
422
- "MARKDOWN_FORMATS",
423
- "MARKDOWN_LABELS",
424
- "STT_ACTIVATION_ERROR_CODES",
425
- "STT_ACTIVATION_EVENT_TYPES",
426
- "STT_ACTIVATION_REASONS",
427
- "VOICE_LABELS",
428
- "VOICE_MESSAGES",
429
- "appendTranscription",
430
- "applyMarkdownFormat",
431
- "createSTTActivationController",
432
- "effectiveDashboardVisibility",
433
- "normalizeChartOptions",
434
- "normalizeChartRows",
435
- "normalizeDashboardDefinitions",
436
- "normalizeDashboardOptions",
437
- "normalizeDashboardVisibility",
438
- "normalizeMarkdownFormats",
439
- "normalizeMarkdownOptions",
440
- "normalizeVoiceOptions"
441
- ],
442
- "summary": "Owns normalized configuration/value contracts and shared explicit STT activation behavior for chart, dashboard, Markdown, and voice components.",
443
- "availability": "Cross-host with an injected event constructor outside DOM hosts",
444
- "protocol": "In-process only",
445
- "normalization": "Fully normalized labels, rows, definitions, visibility, formats, editor and voice options, plus capability-neutral STT activation intent and presentation state.",
446
- "surface": "Constant sets plus normalization, formatting, and explicit STT activation helpers."
447
- },
448
- {
449
- "file": "runtime/arcane/modules/ConfiguredAIChatSession.js",
450
- "name": "ConfiguredAIChatSession.js",
451
- "kind": "esm",
452
- "exports": [
453
- "default"
454
- ],
455
- "summary": "Owns bounded in-memory AI turns, context construction, response-length instruction, and atomic history commit.",
456
- "availability": "Native bridge by default; cross-host with injected chat",
457
- "protocol": "Arcane.ai.chat or injected provider",
458
- "normalization": "Normalized session/result; provider rejection preserved.",
459
- "surface": "default `ConfiguredAIChatSession`; constructor accepts bounded coherent `initialMessages` plus configuration; `history()`, `clear()`, `prepare()`, `send()`; prior normalized and exactly-one-choice OpenAI-compatible responses normalize to one frozen session result."
460
- },
461
- {
462
- "file": "runtime/arcane/modules/ConversationActionItems.js",
463
- "name": "ConversationActionItems.js",
464
- "kind": "esm",
465
- "exports": [
466
- "CONVERSATION_ACTION_ITEM_BASES",
467
- "CONVERSATION_ACTION_ITEM_PRESENTATION_COOLDOWN_MS",
468
- "CONVERSATION_ACTION_ITEM_STATUSES",
469
- "MAX_CONVERSATION_ACTION_ITEMS",
470
- "MAX_CONVERSATION_ACTION_ITEM_CHARACTERS",
471
- "MAX_CONVERSATION_REMEMBERED_ACTIONS",
472
- "conversationActionItemsInstruction",
473
- "createConversationActionItem",
474
- "formatConversationActionItemCheckIn",
475
- "markConversationActionItemsPresented",
476
- "normalizeConversationActionItem",
477
- "normalizeConversationActionItems",
478
- "normalizeRememberedConversationActions",
479
- "outstandingConversationActionItems",
480
- "rememberConversationActionItems",
481
- "removeConversationActionItem",
482
- "selectConversationActionItemsForPresentation",
483
- "updateConversationActionItem"
484
- ],
485
- "summary": "Normalizes, creates, updates, remembers, selects, and formats bounded conversation action items.",
486
- "availability": "Cross-host",
487
- "protocol": "In-process only",
488
- "normalization": "Fully normalized status/base/presentation contract.",
489
- "surface": "Action-item constants and lifecycle/formatting helpers."
490
- },
491
- {
492
- "file": "runtime/arcane/modules/ConversationClosingReport.js",
493
- "name": "ConversationClosingReport.js",
494
- "kind": "esm",
495
- "exports": [
496
- "CONVERSATION_CLOSING_REPORT_TOOL_NAME",
497
- "classifyConversationClosingReportCalls",
498
- "conversationClosingReportInstruction",
499
- "createConversationClosingReportTool",
500
- "formatConversationClosingReport",
501
- "normalizeConversationClosingReport"
502
- ],
503
- "summary": "Defines the closing-report tool, instruction, result normalizer, call classifier, and formatter.",
504
- "availability": "Cross-host",
505
- "protocol": "In-process only",
506
- "normalization": "Fully normalized report contract.",
507
- "surface": "Six constants/helpers for closing reports."
508
- },
509
- {
510
- "file": "runtime/arcane/modules/ConversationTimebox.js",
511
- "name": "ConversationTimebox.js",
512
- "kind": "esm",
513
- "exports": [
514
- "CONVERSATION_TIMEBOX_ERROR_CODES",
515
- "CONVERSATION_TIMEBOX_EVENT_TYPES",
516
- "CONVERSATION_TIMEBOX_LIMIT_MESSAGE",
517
- "CONVERSATION_TIMEBOX_OPENING_INSTRUCTION",
518
- "CONVERSATION_TIMEBOX_REASONS",
519
- "CONVERSATION_TIMEBOX_TOOL_NAME",
520
- "ConversationSubmissionBarrier",
521
- "appendConversationTimeboxOpeningInstruction",
522
- "consumeConversationTimeboxCall",
523
- "conversationTimeboxSubmissionKey",
524
- "conversationTimeboxTool",
525
- "createConversationTimeboxControlMessage",
526
- "default",
527
- "formatConversationElapsed",
528
- "normalizeConversationTimeboxCommand",
529
- "requireConversationTimeboxDelivery"
530
- ],
531
- "summary": "Owns conversation limits, control messages, submission barriers, elapsed formatting, and delivery proof.",
532
- "availability": "Cross-host",
533
- "protocol": "Clock/timers, callbacks, and per-realm globalThis.arcaneEvents authority",
534
- "normalization": "Fully normalized state/command/delivery errors.",
535
- "surface": "Event/error/reason constants; default `ConversationTimebox`, `ConversationSubmissionBarrier`, control constants/helpers, state-free on/addEventListener compatibility, and `dispose()`."
536
- },
537
- {
538
- "file": "runtime/arcane/modules/CoreLocalModelCatalog.js",
539
- "name": "CoreLocalModelCatalog.js",
540
- "kind": "esm",
541
- "exports": [
542
- "USER_MANAGED_LOOPBACK_PROVIDER_MODE",
543
- "getCoreLocalModelCatalog",
544
- "getCoreLocalModelCatalogWithAdmissionFailures",
545
- "getCoreLocalSpeechAvailability",
546
- "isUserManagedLoopbackLocalAIStatus"
547
- ],
548
- "summary": "Projects Core local-AI status into UI-safe admitted model and speech availability catalogs.",
549
- "availability": "Cross-host",
550
- "protocol": "In-process projection of Core status",
551
- "normalization": "Fully normalized descriptors and stable admission labels.",
552
- "surface": "Provider-mode constant and four catalog/availability helpers."
553
- },
554
- {
555
- "file": "runtime/arcane/modules/DataMaintenance.js",
556
- "name": "DataMaintenance.js",
557
- "kind": "esm",
558
- "exports": [
559
- "clearEmptyChatsAndMemories",
560
- "hasMemoryContent",
561
- "hasUserEntry"
562
- ],
563
- "summary": "Deletes empty chats and associated/empty memory records inside the current app data scope.",
564
- "availability": "Browser / native WebView",
565
- "protocol": "Global DBOPFS",
566
- "normalization": "Normalized counts; destructive storage failures preserved.",
567
- "surface": "`clearEmptyChatsAndMemories()` plus content predicates."
568
- },
569
- {
570
- "file": "runtime/arcane/modules/DBLS.js",
571
- "name": "DBLS.js",
572
- "kind": "esm",
573
- "exports": [
574
- "DBLS_EVENT_TYPES",
575
- "DBLS_REASONS",
576
- "default"
577
- ],
578
- "summary": "Provides app-scoped localStorage tables, batch reads/writes, filtering, deletion, and counts.",
579
- "availability": "Browser / native WebView",
580
- "protocol": "localStorage + AppDataScope + per-realm globalThis.arcaneEvents authority",
581
- "normalization": "Scoped keys and values normalized; storage failures mixed.",
582
- "surface": "default `DBLS`; installs `window.dbls`, emits `dbls-ready`; CRUD/batch/key APIs."
583
- },
584
- {
585
- "file": "runtime/arcane/modules/DBOPFS.js",
586
- "name": "DBOPFS.js",
587
- "kind": "esm",
588
- "exports": [
589
- "DBOPFS_EVENT_TYPES",
590
- "DBOPFS_REASONS",
591
- "default"
592
- ],
593
- "summary": "Provides app-scoped OPFS tables, worker I/O, backup/restore, compression, and CRUD/batch APIs.",
594
- "availability": "Browser / native WebView",
595
- "protocol": "OPFS, DBOPFSWorker, Compression Streams, and per-realm globalThis.arcaneEvents authority",
596
- "normalization": "App scope normalized; DOM/storage errors preserved.",
597
- "surface": "default `DBOPFS`; installs `window.dbopfs`, emits `dbopfs-ready`; table/file/backup APIs."
598
- },
599
- {
600
- "file": "runtime/arcane/modules/DBOPFSDocumentLibrary.js",
601
- "name": "DBOPFSDocumentLibrary.js",
602
- "kind": "esm",
603
- "exports": [
604
- "DBOPFSDocumentLibrary",
605
- "createDBOPFSDocumentLibrary",
606
- "default",
607
- "normalizeDBOPFSDocumentSchema"
608
- ],
609
- "summary": "Application-defined document corpus bootstrap, caller-source evaluation, atomic DBOPFS generations, bounded lexical search, and untrusted request-context construction.",
610
- "availability": "Browser or compatible host with an existing DBOPFS-style database adapter",
611
- "protocol": "Existing DBOPFS get/set/getAllKeys/delete methods; no new storage protocol",
612
- "normalization": "Preserves DBOPFS method semantics, commits a completion manifest last, validates every stored generation, exposes explicit reject or preserve-readable read-failure policy, and labels retrieved context as untrusted data.",
613
- "surface": "`DBOPFSDocumentLibrary`, `createDBOPFSDocumentLibrary()`, `normalizeDBOPFSDocumentSchema()`; `schema`, `bootstrap()`, `search()`, `evaluate()`, `buildContext()`, and `createContextBuilder()`."
614
- },
615
- {
616
- "file": "runtime/arcane/modules/DBOPFSWorker.js",
617
- "name": "DBOPFSWorker.js",
618
- "kind": "worker",
619
- "exports": [],
620
- "summary": "Serializes OPFS sync-handle read/write requests from a MessagePort.",
621
- "availability": "Dedicated worker",
622
- "protocol": "MessageChannel + OPFS sync access handle",
623
- "normalization": "Responses normalize to `{success,fileData?}` or `{error:{name,message}}`.",
624
- "surface": "No ESM exports; accepts `read` and `write` port requests."
625
- },
626
- {
627
- "file": "runtime/arcane/modules/DevelopmentWorkspace.js",
628
- "name": "DevelopmentWorkspace.js",
629
- "kind": "esm",
630
- "exports": [
631
- "contextQuery",
632
- "default",
633
- "setupTaskId",
634
- "workspaceRoot"
635
- ],
636
- "summary": "Provides bounded workspace inspection, context, setup task, and Node installer clients without arbitrary command execution.",
637
- "availability": "Native bridge",
638
- "protocol": "Arcane.development",
639
- "normalization": "Inputs normalized; provider result/error preserved.",
640
- "surface": "default `DevelopmentWorkspace` and input validators; `inspect()`, `context()`, `setup()`, `installNode()`."
641
- },
642
- {
643
- "file": "runtime/arcane/modules/DirectoryPicker.js",
644
- "name": "DirectoryPicker.js",
645
- "kind": "esm",
646
- "exports": [
647
- "default",
648
- "normalizeDirectoryPickerOptions",
649
- "normalizeDirectorySelection"
650
- ],
651
- "summary": "Wraps the provider-owned native directory chooser and normalizes selected/cancelled/error results.",
652
- "availability": "Native bridge",
653
- "protocol": "Arcane.filesystem.selectDirectory",
654
- "normalization": "Strict normalized selection and coded errors.",
655
- "surface": "default `DirectoryPicker`, `normalizeDirectoryPickerOptions()`, `normalizeDirectorySelection()`."
656
- },
657
- {
658
- "file": "runtime/arcane/modules/DocumentLexicalSearch.js",
659
- "name": "DocumentLexicalSearch.js",
660
- "kind": "esm",
661
- "exports": [
662
- "DOCUMENT_SEARCH_FIELD_ORDER",
663
- "DocumentLexicalSearch",
664
- "createDocumentLexicalIndex",
665
- "default",
666
- "documentContextExcerpt",
667
- "documentSearchTokens",
668
- "normalizedDocumentSearchText",
669
- "scoreDocumentBody",
670
- "scoreDocumentLexicalIndex"
671
- ],
672
- "summary": "Dependency-free deterministic document indexing, ranked metadata/body search, bounded excerpts, and stable tie-breaking.",
673
- "availability": "Cross-host in-process only",
674
- "protocol": "In-process immutable record contract",
675
- "normalization": "Normalizes text and filters, preserves deterministic field priority, and returns frozen results without network, storage, or provider side effects.",
676
- "surface": "Search-field constant; `DocumentLexicalSearch`; index/token/score/excerpt helpers; `rank()` and bounded `search()`."
677
- },
678
- {
679
- "file": "runtime/arcane/modules/DocumentNavigation.js",
680
- "name": "DocumentNavigation.js",
681
- "kind": "esm",
682
- "exports": [
683
- "applyDocumentNavigationFilter",
684
- "bindDocumentNavigation",
685
- "clearDocumentNavigationFilter",
686
- "initializeDocumentNavigation",
687
- "revealCurrentDocumentNavigationItem"
688
- ],
689
- "summary": "Binds document navigation, filtering, history, current-item reveal, and load initialization.",
690
- "availability": "Browser / native WebView",
691
- "protocol": "DOM and history",
692
- "normalization": "Normalized filter/navigation state; DOM effects preserved.",
693
- "surface": "Five binding/filter/reveal helpers."
694
- },
695
- {
696
- "file": "runtime/arcane/modules/Errors.js",
697
- "name": "Errors.js",
698
- "kind": "esm",
699
- "exports": [
700
- "GLOBAL_ERROR_EVENT_CODES",
701
- "GLOBAL_ERROR_EVENT_TYPES",
702
- "GLOBAL_ERROR_REASONS",
703
- "default",
704
- "fingerprintIncident",
705
- "normalizeErrorEvent",
706
- "normalizeRejectionEvent"
707
- ],
708
- "summary": "Normalizes global errors/rejections, fingerprints and deduplicates incidents, persists a ledger, and performs bounded delivery.",
709
- "availability": "Browser / native WebView hybrid",
710
- "protocol": "Window error input, DBOPFS, Mail, and per-realm globalThis.arcaneEvents authority",
711
- "normalization": "Incident records normalized; storage/mail failures isolated.",
712
- "surface": "Global error event/code/reason constants; default `Errors`; event normalizers/fingerprint plus lifecycle, capture, delivery, state-free compatibility observation, and teardown methods."
713
- },
714
- {
715
- "file": "runtime/arcane/modules/GifEncoder.js",
716
- "name": "GifEncoder.js",
717
- "kind": "esm",
718
- "exports": [
719
- "default",
720
- "indexPixels",
721
- "lzw"
722
- ],
723
- "summary": "Encodes indexed frames into a bounded animated GIF using palette mapping and LZW.",
724
- "availability": "Cross-host",
725
- "protocol": "In-process only",
726
- "normalization": "Normalized byte output and bounds.",
727
- "surface": "default `GifEncoder`, `indexPixels()`, `lzw()`."
728
- },
729
- {
730
- "file": "runtime/arcane/modules/HTMLImport.js",
731
- "name": "HTMLImport.js",
732
- "kind": "esm",
733
- "exports": [
734
- "default"
735
- ],
736
- "summary": "Defines the same-origin `<html-import>` loader with open shadow root, inline script execution, and readiness/error events.",
737
- "availability": "Browser / native WebView",
738
- "protocol": "Same-origin fetch + DOM",
739
- "normalization": "Public error detail normalized; fetch/DOM failure preserved.",
740
- "surface": "default `HTMLImport`; registers `html-import`; `connectedCallback()` and `ready`."
741
- },
742
- {
743
- "file": "runtime/arcane/modules/InMemoryCommunicationProvider.js",
744
- "name": "InMemoryCommunicationProvider.js",
745
- "kind": "esm",
746
- "exports": [
747
- "default"
748
- ],
749
- "summary": "Implements deterministic in-memory thread/message/send behavior for demos and tests.",
750
- "availability": "Cross-host",
751
- "protocol": "In-process only",
752
- "normalization": "Normalized communication entities.",
753
- "surface": "default provider with `listThreads()`, `getMessages()`, `send()`."
754
- },
755
- {
756
- "file": "runtime/arcane/modules/IsolatedModelQuestionRunner.js",
757
- "name": "IsolatedModelQuestionRunner.js",
758
- "kind": "esm",
759
- "exports": [
760
- "IsolatedModelQuestionRunner",
761
- "countSentences",
762
- "default"
763
- ],
764
- "summary": "Inspects one exact model and runs one isolated question with proof validation.",
765
- "availability": "Native bridge or injected provider",
766
- "protocol": "localAI isolated-model methods",
767
- "normalization": "Strict normalized proof/coded errors.",
768
- "surface": "default/named runner, `countSentences()`, `inspectModel()`, `runQuestion()`."
769
- },
770
- {
771
- "file": "runtime/arcane/modules/LocalAIReadiness.js",
772
- "name": "LocalAIReadiness.js",
773
- "kind": "esm",
774
- "exports": [
775
- "LOCAL_AI_BROWSER_ENDPOINTS",
776
- "checkLocalAIReadiness",
777
- "deriveLocalAIRequirements",
778
- "evaluateLocalSpeechHealth"
779
- ],
780
- "summary": "Derives selected AI requirements and returns a frozen readiness/recovery report across browser, desktop, and Android modes.",
781
- "availability": "Browser/native hybrid",
782
- "protocol": "Arcane.localAI, Arcane.speech, bounded browser speech health",
783
- "normalization": "Fully normalized report and stable error codes; browsers never probe Ollama.",
784
- "surface": "Endpoint constant plus requirements, speech-health, and readiness helpers."
785
- },
786
- {
787
- "file": "runtime/arcane/modules/LocalAIReadinessController.js",
788
- "name": "LocalAIReadinessController.js",
789
- "kind": "esm",
790
- "exports": [
791
- "LOCAL_AI_READINESS_CONTROLLER_ERROR_CODES",
792
- "LOCAL_AI_READINESS_CONTROLLER_EVENT_TYPES",
793
- "LOCAL_AI_READINESS_CONTROLLER_REASONS",
794
- "availabilityFromReport",
795
- "createLocalAIReadinessController"
796
- ],
797
- "summary": "Coordinates local-AI status component checks, ensured recovery, availability projection, and teardown.",
798
- "availability": "Browser/native hybrid",
799
- "protocol": "LocalAIReadiness + per-realm globalThis.arcaneEvents authority + one-way component projections",
800
- "normalization": "Normalized controller state and change events.",
801
- "surface": "Event/error/reason constants, `createLocalAIReadinessController()`, and `availabilityFromReport()`; returned controller owns abort, refresh/ensure, subscription, and `destroy()` cleanup."
802
- },
803
- {
804
- "file": "runtime/arcane/modules/Mail.js",
805
- "name": "Mail.js",
806
- "kind": "esm",
807
- "exports": [
808
- "default",
809
- "resolveMailConfig"
810
- ],
811
- "summary": "Builds bounded reports and prefers the native mail capability with an explicit HTTP transport fallback.",
812
- "availability": "Browser/native hybrid + cloud",
813
- "protocol": "Arcane.mail.send or MailTransport HTTP(S)",
814
- "normalization": "Mail inputs/results normalized; transport failures mixed.",
815
- "surface": "default `Mail`, `resolveMailConfig()`; installs `window.mail`; `send()`."
816
- },
817
- {
818
- "file": "runtime/arcane/modules/MailOutbox.mjs",
819
- "name": "MailOutbox.mjs",
820
- "kind": "esm",
821
- "exports": [
822
- "MAIL_OUTBOX_ACCEPTANCE_AUTHORITIES",
823
- "MAIL_OUTBOX_IDEMPOTENCY_WINDOW_MS",
824
- "MAIL_OUTBOX_PROTOCOL",
825
- "MAIL_OUTBOX_STATES",
826
- "MAIL_OUTBOX_TABLE",
827
- "MailOutbox",
828
- "createMailOutbox",
829
- "default"
830
- ],
831
- "summary": "Persists bounded mail reports before delivery and normalizes idempotent enqueue, retry, reconciliation, and invalid-record maintenance.",
832
- "availability": "Browser/native WebView or compatible injected host with durable storage, Web Locks, and a delivery function",
833
- "protocol": "arcane-mail-outbox/1 + injected durable storage + Web Locks + AbortSignal + online EventTarget",
834
- "normalization": "Frozen records, idempotency and retry/reconciliation state, bounded drains/inventory, cancellation, and invalid-record maintenance are normalized; storage, lock, and delivery failures are coded.",
835
- "surface": "Protocol/table/window/state/acceptance constants; `MailOutbox`, factory/default; read-only lifecycle diagnostics; record inspection and maintenance; enqueue, drain, start, and stop."
836
- },
837
- {
838
- "file": "runtime/arcane/modules/MailTransport.mjs",
839
- "name": "MailTransport.mjs",
840
- "kind": "esm",
841
- "exports": [
842
- "DEFAULT_MAIL_REQUEST_TIMEOUT_MS",
843
- "MAX_MAIL_RESPONSE_BYTES",
844
- "MailTransportError",
845
- "normalizeMailEndpoint",
846
- "serializeMailReport",
847
- "sendMailReport"
848
- ],
849
- "summary": "Sends one bounded mail report to a normalized HTTP(S) endpoint with timeout and response-size limits.",
850
- "availability": "Browser/server with fetch + cloud",
851
- "protocol": "HTTP(S) fetch + AbortController",
852
- "normalization": "Normalized endpoint/timeout/size errors; remote detail bounded.",
853
- "surface": "Timeout/size constants, `MailTransportError`, `normalizeMailEndpoint()`, `serializeMailReport()`, and `sendMailReport()`."
854
- },
855
- {
856
- "file": "runtime/arcane/modules/Marked.min.js",
857
- "name": "Marked.min.js",
858
- "kind": "esm",
859
- "exports": [
860
- "Hooks",
861
- "Lexer",
862
- "Marked",
863
- "Parser",
864
- "Renderer",
865
- "TextRenderer",
866
- "Tokenizer",
867
- "defaults",
868
- "getDefaults",
869
- "lexer",
870
- "marked",
871
- "options",
872
- "parse",
873
- "parseInline",
874
- "parser",
875
- "setOptions",
876
- "use",
877
- "walkTokens"
878
- ],
879
- "summary": "Vendored Marked 18.0.5 Markdown lexer, parser, renderer, extension, and walk-token API.",
880
- "availability": "Cross-host vendor module",
881
- "protocol": "In-process only",
882
- "normalization": "Vendor-native Marked contract.",
883
- "surface": "Twenty named/default-style Marked exports; see bundled license notice."
884
- },
885
- {
886
- "file": "runtime/arcane/modules/MD.js",
887
- "name": "MD.js",
888
- "kind": "esm",
889
- "exports": [
890
- "default"
891
- ],
892
- "summary": "Renders Markdown with Marked and exposes a DOM-sanitized projection.",
893
- "availability": "Browser / native WebView",
894
- "protocol": "Marked + DOM template sanitization",
895
- "normalization": "Raw Marked behavior plus Arcane sanitization; parse errors vendor-native.",
896
- "surface": "default `MD`; `raw`, `rendered`, `safeRendered`, `append()`."
897
- },
898
- {
899
- "file": "runtime/arcane/modules/MemoryRecords.js",
900
- "name": "MemoryRecords.js",
901
- "kind": "esm",
902
- "exports": [
903
- "hasMemoryContent",
904
- "normalizeMemoryContent"
905
- ],
906
- "summary": "Normalizes memory content and detects meaningful stored memory.",
907
- "availability": "Cross-host",
908
- "protocol": "In-process only",
909
- "normalization": "Fully normalized string/boolean results.",
910
- "surface": "`normalizeMemoryContent()`, `hasMemoryContent()`."
911
- },
912
- {
913
- "file": "runtime/arcane/modules/MessageAdvisory.js",
914
- "name": "MessageAdvisory.js",
915
- "kind": "esm",
916
- "exports": [
917
- "inspectMessageRecords",
918
- "normalizeContentAdvisory",
919
- "unavailableMessageInspection"
920
- ],
921
- "summary": "Normalizes message content advisories and contains per-message inspection failures.",
922
- "availability": "Cross-host",
923
- "protocol": "Injected inspector",
924
- "normalization": "Normalized advisory records; inspector failures converted to unavailable results.",
925
- "surface": "Three advisory/inspection helpers."
926
- },
927
- {
928
- "file": "runtime/arcane/modules/ModelDefinition.js",
929
- "name": "ModelDefinition.js",
930
- "kind": "esm",
931
- "exports": [
932
- "loadModelDefinitionSystemPrompt",
933
- "parseModelDefinition"
934
- ],
935
- "summary": "Parses the deterministic packaged Modelfile subset and extracts the SYSTEM prompt.",
936
- "availability": "Cross-host",
937
- "protocol": "Optional same-origin read-only fetch",
938
- "normalization": "Strict normalized definition with coded syntax errors.",
939
- "surface": "`parseModelDefinition()`, `loadModelDefinitionSystemPrompt()`."
940
- },
941
- {
942
- "file": "runtime/arcane/modules/Ollama.js",
943
- "name": "Ollama.js",
944
- "kind": "esm",
945
- "exports": [
946
- "OLLAMA_EVENT_TYPES",
947
- "OLLAMA_REASONS",
948
- "Ollama",
949
- "default",
950
- "ollama"
951
- ],
952
- "summary": "Provides the first-class Arcane Ollama client without direct access to localhost:11434.",
953
- "availability": "Native bridge",
954
- "protocol": "Arcane.ollama through Core + per-realm globalThis.arcaneEvents authority",
955
- "normalization": "Principal methods preserve provider-native envelopes; readiness/text/unload helpers normalize.",
956
- "surface": "`Ollama`, singleton/default `ollama`; 24 methods; installs `globalThis.arcaneOllama`, emits `arcane-ollama-ready`."
957
- },
958
- {
959
- "file": "runtime/arcane/modules/OllamaModelIdentifier.js",
960
- "name": "OllamaModelIdentifier.js",
961
- "kind": "esm",
962
- "exports": [
963
- "isOllamaModelIdentifier",
964
- "normalizeOllamaModelIdentifier"
965
- ],
966
- "summary": "Validates and canonicalizes the syntax of Ollama model identifiers without granting model admission.",
967
- "availability": "Cross-host",
968
- "protocol": "In-process only",
969
- "normalization": "Fully normalized string/boolean result.",
970
- "surface": "`normalizeOllamaModelIdentifier()`, `isOllamaModelIdentifier()`."
971
- },
972
- {
973
- "file": "runtime/arcane/modules/OllamaSettings.js",
974
- "name": "OllamaSettings.js",
975
- "kind": "esm",
976
- "exports": [
977
- "arcaneBrainModelName",
978
- "ollamaRuntimeSchema",
979
- "ollamaServiceSchema"
980
- ],
981
- "summary": "Defines bounded runtime/service preference schemas and deterministic Arcane brain alias names.",
982
- "availability": "Cross-host",
983
- "protocol": "In-process only",
984
- "normalization": "Fully normalized settings/name contract.",
985
- "surface": "`ollamaRuntimeSchema`, `ollamaServiceSchema`, `arcaneBrainModelName()`."
986
- },
987
- {
988
- "file": "runtime/arcane/modules/OpenMeteoWeatherProvider.js",
989
- "name": "OpenMeteoWeatherProvider.js",
990
- "kind": "esm",
991
- "exports": [
992
- "OPEN_METEO_ENDPOINTS",
993
- "OPEN_METEO_WEATHER_ERRORS",
994
- "OPEN_METEO_WEATHER_EVENTS",
995
- "default",
996
- "mapForecast"
997
- ],
998
- "summary": "Searches and loads Open-Meteo data into frozen Arcane weather entities.",
999
- "availability": "Browser / native WebView / server with fetch + cloud",
1000
- "protocol": "Open-Meteo HTTPS + per-realm globalThis.arcaneEvents authority",
1001
- "normalization": "Provider data normalized to entities; transport errors mixed.",
1002
- "surface": "Endpoint/event/error constants, default provider, `mapForecast()`; search/load methods, state-free EventTarget/on lifecycle compatibility, and `dispose()`."
1003
- },
1004
- {
1005
- "file": "runtime/arcane/modules/PersistentAIChatSession.js",
1006
- "name": "PersistentAIChatSession.js",
1007
- "kind": "esm",
1008
- "exports": [
1009
- "PersistentAIChatSession",
1010
- "createPersistentAIChatSession",
1011
- "default"
1012
- ],
1013
- "summary": "Composes bounded configured chat with an existing ChatEntity so each user, assistant, and structural tool turn has an explicit persistence policy.",
1014
- "availability": "Browser or native WebView with the projected ChatEntity, DBOPFS, and a configured chat function or normalized Arcane.ai surface",
1015
- "protocol": "Existing ChatEntity/DBOPFS methods plus provider-neutral chat request/result records",
1016
- "normalization": "Preserves existing chat/history/memory semantics, commits live context atomically, and keeps durable persistence coherent across structural tool-call/result pairs.",
1017
- "surface": "Default/named `PersistentAIChatSession`, `createPersistentAIChatSession()`; `create()`, `chatEntity`, `fileName`, `ready()`, `history()`, `settleMemory()`, and `send()`."
1018
- },
1019
- {
1020
- "file": "runtime/arcane/modules/PreferenceStore.js",
1021
- "name": "PreferenceStore.js",
1022
- "kind": "esm",
1023
- "exports": [
1024
- "PREFERENCE_STORE_ERROR_CODES",
1025
- "PREFERENCE_STORE_EVENT_TYPES",
1026
- "Preference",
1027
- "default",
1028
- "preferenceSchema"
1029
- ],
1030
- "summary": "Loads and updates schema-defined app preferences through native storage with a narrow browser fallback.",
1031
- "availability": "Browser/native hybrid",
1032
- "protocol": "Arcane.preferences or app-scoped localStorage + per-realm globalThis.arcaneEvents authority",
1033
- "normalization": "Values normalized; only exact unsupported capability falls back.",
1034
- "surface": "Event/error constants, default `PreferenceStore`, re-exported `Preference`/schema; load/set/reset APIs, state-free EventTarget/on compatibility, and `dispose()`."
1035
- },
1036
- {
1037
- "file": "runtime/arcane/modules/QRCode.min.js",
1038
- "name": "QRCode.min.js",
1039
- "kind": "classic-script",
1040
- "exports": [],
1041
- "summary": "Vendored QRCode generator for DOM, canvas, SVG, and image output.",
1042
- "availability": "Browser vendor script",
1043
- "protocol": "Classic script global + DOM/canvas/SVG",
1044
- "normalization": "Vendor-native.",
1045
- "surface": "No ESM exports; global `QRCode`, `makeCode()`, `makeImage()`, `clear()`, `CorrectLevel`."
1046
- },
1047
- {
1048
- "file": "runtime/arcane/modules/Questionnaire.js",
1049
- "name": "Questionnaire.js",
1050
- "kind": "esm",
1051
- "exports": [
1052
- "DEFAULT_QUESTIONNAIRE_NOTIFICATION_TIME_MS",
1053
- "Questionnaire"
1054
- ],
1055
- "summary": "Evaluates whether a one-time questionnaire prompt is due without performing the prompt.",
1056
- "availability": "Cross-host",
1057
- "protocol": "In-process clock only",
1058
- "normalization": "Normalized fail-closed boolean.",
1059
- "surface": "Notification default and `Questionnaire` with timing/check methods."
1060
- },
1061
- {
1062
- "file": "runtime/arcane/modules/RecordLinkIndex.js",
1063
- "name": "RecordLinkIndex.js",
1064
- "kind": "esm",
1065
- "exports": [
1066
- "buildRecordLinkIndex",
1067
- "parseRecordLinks"
1068
- ],
1069
- "summary": "Parses record links and builds their normalized index.",
1070
- "availability": "Cross-host",
1071
- "protocol": "In-process only",
1072
- "normalization": "Fully normalized.",
1073
- "surface": "`parseRecordLinks()`, `buildRecordLinkIndex()`."
1074
- },
1075
- {
1076
- "file": "runtime/arcane/modules/RecordPassageIndex.js",
1077
- "name": "RecordPassageIndex.js",
1078
- "kind": "esm",
1079
- "exports": [
1080
- "cleanExcerpt",
1081
- "extractDateMentions",
1082
- "findRulePassages",
1083
- "pageAtLine",
1084
- "pageMarkers",
1085
- "parseDateMention",
1086
- "textLines",
1087
- "validIsoDate"
1088
- ],
1089
- "summary": "Indexes text lines, page markers, dates, rules, and excerpts for record review.",
1090
- "availability": "Cross-host",
1091
- "protocol": "In-process only",
1092
- "normalization": "Fully normalized.",
1093
- "surface": "Eight text/page/date/rule helper exports."
1094
- },
1095
- {
1096
- "file": "runtime/arcane/modules/RecordReviewStore.js",
1097
- "name": "RecordReviewStore.js",
1098
- "kind": "esm",
1099
- "exports": [
1100
- "RECORD_REVIEW_STORE_ERROR_CODES",
1101
- "RECORD_REVIEW_STORE_EVENT_TYPES",
1102
- "default",
1103
- "normalizeRecordId",
1104
- "normalizeReview"
1105
- ],
1106
- "summary": "Stores normalized record-review decisions through native storage or app-scoped local fallback.",
1107
- "availability": "Browser/native hybrid",
1108
- "protocol": "Arcane.storage or localStorage + per-realm globalThis.arcaneEvents authority",
1109
- "normalization": "Normalized ids/reviews/snapshots; storage failures mixed.",
1110
- "surface": "Event/error constants, default store, record/review normalizers; `load()`, `get()`, `set()`, `snapshot()`, state-free EventTarget/on change compatibility, and `dispose()`."
1111
- },
1112
- {
1113
- "file": "runtime/arcane/modules/RevocableProjectionLedger.js",
1114
- "name": "RevocableProjectionLedger.js",
1115
- "kind": "esm",
1116
- "exports": [
1117
- "DEFAULT_PROJECTION_LEDGER_CAPACITY",
1118
- "DEFAULT_PROJECTION_LEDGER_STORED_CHARACTERS",
1119
- "DEFAULT_PROJECTION_LEDGER_STORED_NODES",
1120
- "DEFAULT_PROJECTION_LEDGER_STORED_UTF8_BYTES",
1121
- "MAX_PROJECTION_LEDGER_CAPACITY",
1122
- "MAX_PROJECTION_LEDGER_STORED_CHARACTERS",
1123
- "MAX_PROJECTION_LEDGER_STORED_NODES",
1124
- "MAX_PROJECTION_LEDGER_STORED_UTF8_BYTES",
1125
- "PROJECTION_LEDGER_LIMITS",
1126
- "PROJECTION_LEDGER_REASON_CODES",
1127
- "PROJECTION_LEDGER_SCHEMA_VERSION",
1128
- "PROJECTION_LEDGER_STATUSES",
1129
- "ProjectionLedgerError",
1130
- "RevocableProjectionLedger",
1131
- "cloneProjectionLedgerValue",
1132
- "createProjectionLedgerFingerprint",
1133
- "createRevocableProjectionLedgerPortAdapter",
1134
- "default"
1135
- ],
1136
- "summary": "Implements an append-only bounded in-memory projection/revocation ledger safe for hostile descriptor inputs.",
1137
- "availability": "Cross-host",
1138
- "protocol": "In-process or explicit port adapter",
1139
- "normalization": "Strict normalization with stable `ProjectionLedgerError`.",
1140
- "surface": "Ledger classes, limits/status/reason constants, clone/fingerprint/port helpers, append/query/list APIs."
1141
- },
1142
- {
1143
- "file": "runtime/arcane/modules/RiskSignalAnalyzer.js",
1144
- "name": "RiskSignalAnalyzer.js",
1145
- "kind": "esm",
1146
- "exports": [
1147
- "DEFAULT_LEVELS",
1148
- "analyzeRiskSignals"
1149
- ],
1150
- "summary": "Matches configured risk signals and levels against bounded text.",
1151
- "availability": "Cross-host",
1152
- "protocol": "In-process only",
1153
- "normalization": "Fully normalized.",
1154
- "surface": "`DEFAULT_LEVELS`, `analyzeRiskSignals()`."
1155
- },
1156
- {
1157
- "file": "runtime/arcane/modules/ScamRiskPolicy.js",
1158
- "name": "ScamRiskPolicy.js",
1159
- "kind": "esm",
1160
- "exports": [
1161
- "assessScamRisk",
1162
- "loadScamNetworkPolicy",
1163
- "scamRiskSignals",
1164
- "scamSafetyGuidance"
1165
- ],
1166
- "summary": "Combines deterministic scam signals with Arcane blocked-domain evidence and safety guidance.",
1167
- "availability": "Cross-host",
1168
- "protocol": "Arcane network policy fetch",
1169
- "normalization": "Fully normalized.",
1170
- "surface": "Signals plus load, assess, and guidance helpers."
1171
- },
1172
- {
1173
- "file": "runtime/arcane/modules/ScopedOPFSCache.js",
1174
- "name": "ScopedOPFSCache.js",
1175
- "kind": "esm",
1176
- "exports": [
1177
- "default"
1178
- ],
1179
- "summary": "Provides a narrow exact-key JSON cache inside one app-owned OPFS namespace.",
1180
- "availability": "Browser / native WebView",
1181
- "protocol": "OPFS + AppDataScope",
1182
- "normalization": "Keys/limits/corruption handling normalized; storage errors mixed.",
1183
- "surface": "default `ScopedOPFSCache`; support check and get/set/delete APIs."
1184
- },
1185
- {
1186
- "file": "runtime/arcane/modules/ScreenCapture.js",
1187
- "name": "ScreenCapture.js",
1188
- "kind": "esm",
1189
- "exports": [
1190
- "SCREEN_CAPTURE_ERROR_CODES",
1191
- "SCREEN_CAPTURE_ERRORS",
1192
- "SCREEN_CAPTURE_EVENT_TYPES",
1193
- "SCREEN_CAPTURE_IMAGE_TYPE_FALLBACK",
1194
- "SCREEN_CAPTURE_REASONS",
1195
- "SCREEN_CAPTURE_STATUSES",
1196
- "default"
1197
- ],
1198
- "summary": "Captures a display surface as image, video, or GIF with explicit lifecycle events.",
1199
- "availability": "Browser / native WebView",
1200
- "protocol": "getDisplayMedia, MediaRecorder, canvas, GifEncoder, and per-realm globalThis.arcaneEvents authority",
1201
- "normalization": "State/events normalized; permission and codec errors mixed.",
1202
- "surface": "Event/status/error/reason and image-fallback constants; default `ScreenCapture`; acquire/capture/start/stop/reset methods, state-free EventTarget/on compatibility, and `destroy()`."
1203
- },
1204
- {
1205
- "file": "runtime/arcane/modules/SpeechPlayback.js",
1206
- "name": "SpeechPlayback.js",
1207
- "kind": "esm",
1208
- "exports": [
1209
- "MAX_SPEECH_CHARACTERS",
1210
- "MAX_SPEECH_CHUNKS",
1211
- "MAX_SPEECH_INPUT",
1212
- "PREFERRED_STREAM_SEGMENT",
1213
- "SPEECH_PLAYBACK_STATE_EVENT",
1214
- "SPEECH_VOICE_ALIASES",
1215
- "SPEECH_VOICE_OPTIONS",
1216
- "SpeechPlayback",
1217
- "default",
1218
- "splitSpeechText"
1219
- ],
1220
- "summary": "Segments bounded text, queues latest-request speech synthesis, and controls lookahead HTML audio playback.",
1221
- "availability": "Browser + admitted AI/native bridge",
1222
- "protocol": "AI.fetchTTS or compatible Arcane.speech.synthesize, globalThis.arcaneEvents, Blob URLs, audio element",
1223
- "normalization": "Caller-owned model/voice/format policy, owned cancellation, playable Blob results, lifecycle state, and limits are normalized; provider admission remains external.",
1224
- "surface": "SpeechPlayback class/default, `SPEECH_PLAYBACK_STATE_EVENT`, compatibility voice/limit constants, `splitSpeechText()`, caller-configured playback lifecycle, cancellation, and destroy APIs."
1225
- },
1226
- {
1227
- "file": "runtime/arcane/modules/StaticDocumentCatalog.js",
1228
- "name": "StaticDocumentCatalog.js",
1229
- "kind": "esm",
1230
- "exports": [
1231
- "CATALOG_SCHEMA_VERSION",
1232
- "default",
1233
- "normalizeStaticDocumentCatalog",
1234
- "staticDocumentCacheKey"
1235
- ],
1236
- "summary": "Loads a positive static document inventory with byte/hash verification, cache, search, and bounded context.",
1237
- "availability": "Browser / native WebView / server with fetch",
1238
- "protocol": "HTTP(S), crypto.subtle, optional cache",
1239
- "normalization": "Strict catalog/content normalization; transport failures mixed.",
1240
- "surface": "default catalog, schema constant, catalog normalizer/cache-key; list/get/search/hydrate/context APIs."
1241
- },
1242
- {
1243
- "file": "runtime/arcane/modules/SystemAppearance.js",
1244
- "name": "SystemAppearance.js",
1245
- "kind": "esm",
1246
- "exports": [
1247
- "default"
1248
- ],
1249
- "summary": "Reads or applies native appearance, returning an explicit unsupported browser state when no bridge exists.",
1250
- "availability": "Browser/native hybrid",
1251
- "protocol": "Arcane.appearance",
1252
- "normalization": "Absent bridge normalized; native result/error preserved.",
1253
- "surface": "default `SystemAppearance`; `available()`, `current()`, `apply()`."
1254
- },
1255
- {
1256
- "file": "runtime/arcane/modules/SystemPlatformPresentation.js",
1257
- "name": "SystemPlatformPresentation.js",
1258
- "kind": "classic-script",
1259
- "exports": [],
1260
- "summary": "Maps kernel names to presentation labels/classes without granting platform authority.",
1261
- "availability": "Browser / native WebView classic script",
1262
- "protocol": "DOM",
1263
- "normalization": "Fully normalized presentation only.",
1264
- "surface": "No ESM exports; global `ArcaneSystemPlatformPresentation` with `kernelType()`, `displayName()`, `apply()`."
1265
- },
1266
- {
1267
- "file": "runtime/arcane/modules/SystemToolRegistry.js",
1268
- "name": "SystemToolRegistry.js",
1269
- "kind": "esm",
1270
- "exports": [
1271
- "default",
1272
- "quoteArgument"
1273
- ],
1274
- "summary": "Registers validated command builders and constructs command strings without executing them.",
1275
- "availability": "Cross-host",
1276
- "protocol": "In-process only",
1277
- "normalization": "Fully normalized definitions/quoting.",
1278
- "surface": "default registry, `quoteArgument()`, register/list/get/build APIs."
1279
- },
1280
- {
1281
- "file": "runtime/arcane/modules/TerminalClient.js",
1282
- "name": "TerminalClient.js",
1283
- "kind": "esm",
1284
- "exports": [
1285
- "TERMINAL_CLIENT_ERROR_CODES",
1286
- "TERMINAL_CLIENT_EVENT_TYPES",
1287
- "TERMINAL_CLIENT_REASONS",
1288
- "default"
1289
- ],
1290
- "summary": "Maps native terminal sessions and Arcane events into an EventTarget client.",
1291
- "availability": "Native bridge",
1292
- "protocol": "Arcane.terminal host transport projected once through the per-realm globalThis.arcaneEvents authority",
1293
- "normalization": "Client events/state normalized; native result/error mixed.",
1294
- "surface": "Event/error/reason constants; default `TerminalClient`; start/write/resize/signal/close/receive/destroy APIs and state-free EventTarget/on terminal compatibility."
1295
- },
1296
- {
1297
- "file": "runtime/arcane/modules/TerminalCommandRegistry.js",
1298
- "name": "TerminalCommandRegistry.js",
1299
- "kind": "esm",
1300
- "exports": [
1301
- "default",
1302
- "splitCommandLine"
1303
- ],
1304
- "summary": "Routes parsed command lines to injected handlers and provides definitions/completions.",
1305
- "availability": "Cross-host",
1306
- "protocol": "Injected handlers",
1307
- "normalization": "Parsing/routing normalized; handler result/error preserved.",
1308
- "surface": "default registry, `splitCommandLine()`, register/resolve/definitions/completions/execute APIs."
1309
- },
1310
- {
1311
- "file": "runtime/arcane/modules/ThemeBootstrap.js",
1312
- "name": "ThemeBootstrap.js",
1313
- "kind": "esm",
1314
- "exports": [
1315
- "arcaneThemeReady",
1316
- "bootstrapArcaneTheme",
1317
- "default",
1318
- "disposeArcaneThemeBootstrap"
1319
- ],
1320
- "summary": "Performs import-time Arcane theme loading and subscribes to native appearance changes.",
1321
- "availability": "Browser/native hybrid",
1322
- "protocol": "ThemeManager + host Arcane.events projected once through the per-realm globalThis.arcaneEvents authority",
1323
- "normalization": "Theme state normalized; storage/native errors mixed.",
1324
- "surface": "`bootstrapArcaneTheme()`, `disposeArcaneThemeBootstrap()`, `arcaneThemeReady`, and default ready promise."
1325
- },
1326
- {
1327
- "file": "runtime/arcane/modules/ThemeManager.js",
1328
- "name": "ThemeManager.js",
1329
- "kind": "esm",
1330
- "exports": [
1331
- "default",
1332
- "loadAndApplyTheme"
1333
- ],
1334
- "summary": "Loads, applies, previews, saves, resets, and synchronizes semantic Arcane themes.",
1335
- "availability": "Browser/native hybrid",
1336
- "protocol": "PreferenceStore, DOM, Arcane.appearance",
1337
- "normalization": "Theme values/events normalized; storage/native failures mixed.",
1338
- "surface": "default `ThemeManager`, `loadAndApplyTheme()`; scheme/custom/system APIs and `arcane-theme-change`."
1339
- },
1340
- {
1341
- "file": "runtime/arcane/modules/TimeGuard.js",
1342
- "name": "TimeGuard.js",
1343
- "kind": "esm",
1344
- "exports": [
1345
- "default"
1346
- ],
1347
- "summary": "Persists and evaluates clock rollback and grace-period state.",
1348
- "availability": "Browser / native WebView",
1349
- "protocol": "User + DBOPFS",
1350
- "normalization": "Time decisions normalized; storage lifecycle mixed.",
1351
- "surface": "default `TimeGuard`; installs `window.timeguard`, emits `time-guard-ready`; clock methods."
1352
- },
1353
- {
1354
- "file": "runtime/arcane/modules/ToolCallRouter.js",
1355
- "name": "ToolCallRouter.js",
1356
- "kind": "esm",
1357
- "exports": [
1358
- "handleResponse",
1359
- "handleStreamedCalls",
1360
- "parseArguments"
1361
- ],
1362
- "summary": "Parses OpenAI-style tool calls and dispatches complete or streamed calls to injected handlers.",
1363
- "availability": "Cross-host",
1364
- "protocol": "Injected handlers",
1365
- "normalization": "Arguments/routing normalized; handler results returned or all-settled.",
1366
- "surface": "`parseArguments()`, `handleResponse()`, `handleStreamedCalls()`."
1367
- },
1368
- {
1369
- "file": "runtime/arcane/modules/uPlot.iife.min.js",
1370
- "name": "uPlot.iife.min.js",
1371
- "kind": "classic-script",
1372
- "exports": [],
1373
- "summary": "Vendored uPlot chart constructor and rendering runtime.",
1374
- "availability": "Browser vendor script",
1375
- "protocol": "Classic script + canvas/DOM",
1376
- "normalization": "Vendor-native.",
1377
- "surface": "No ESM exports; global `uPlot` with data/series/scale/cursor/hook/selection/destroy APIs."
1378
- },
1379
- {
1380
- "file": "runtime/arcane/modules/uPlot.LICENSE.txt",
1381
- "name": "uPlot.LICENSE.txt",
1382
- "kind": "license",
1383
- "exports": [],
1384
- "summary": "License companion for the bundled uPlot vendor runtime.",
1385
- "availability": "Documentation asset",
1386
- "protocol": "None",
1387
- "normalization": "Not executable.",
1388
- "surface": "MIT license text."
1389
- },
1390
- {
1391
- "file": "runtime/arcane/modules/uPlot.min.css",
1392
- "name": "uPlot.min.css",
1393
- "kind": "stylesheet",
1394
- "exports": [],
1395
- "summary": "Bundled uPlot presentation stylesheet.",
1396
- "availability": "Browser stylesheet",
1397
- "protocol": "CSS",
1398
- "normalization": "Presentation only.",
1399
- "surface": "Load with a stylesheet link before rendering uPlot charts."
1400
- },
1401
- {
1402
- "file": "runtime/arcane/modules/WaitForComponent.js",
1403
- "name": "WaitForComponent.js",
1404
- "kind": "esm",
1405
- "exports": [
1406
- "COMPONENT_WAIT_ERROR_CODES",
1407
- "COMPONENT_WAIT_REASONS",
1408
- "default"
1409
- ],
1410
- "summary": "Waits for a component property, method, or readiness event with optional error event and bounded timeout.",
1411
- "availability": "Cross-host EventTarget / browser component",
1412
- "protocol": "EventTarget + timers",
1413
- "normalization": "Normalized coded readiness, error, and timeout results.",
1414
- "surface": "default `waitForComponent()`."
1415
- },
1416
- {
1417
- "file": "runtime/arcane/modules/YouTubeMedia.js",
1418
- "name": "YouTubeMedia.js",
1419
- "kind": "esm",
1420
- "exports": [
1421
- "parseYouTubeMedia",
1422
- "youtubeEmbedUrl"
1423
- ],
1424
- "summary": "Validates YouTube video/playlist locators and constructs privacy-enhanced embed URLs.",
1425
- "availability": "Cross-host",
1426
- "protocol": "URL construction only",
1427
- "normalization": "Fully normalized.",
1428
- "surface": "`parseYouTubeMedia()`, `youtubeEmbedUrl()`."
1429
- }
1430
- ]
1431
- }