@burtson-labs/bandit-engine 2.0.168 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/LICENSE +189 -31
- package/NOTICE +26 -0
- package/README.md +15 -59
- package/dist/aiProviderStore-42S3LW2J.mjs +8 -0
- package/dist/aiProviderStore-42S3LW2J.mjs.map +1 -0
- package/dist/chat-GDC4ZVCF.mjs +10 -0
- package/dist/chat-GDC4ZVCF.mjs.map +1 -0
- package/dist/{chunk-GRPTCHFN.mjs → chunk-5KC42IIR.mjs} +339 -155
- package/dist/chunk-5KC42IIR.mjs.map +1 -0
- package/dist/chunk-7QYA3PAF.mjs +29521 -0
- package/dist/chunk-7QYA3PAF.mjs.map +1 -0
- package/dist/{chunk-SZJB5FLZ.mjs → chunk-FCQN3LKT.mjs} +251 -77
- package/dist/chunk-FCQN3LKT.mjs.map +1 -0
- package/dist/{chunk-HNXPDIWC.mjs → chunk-NI7BKLC7.mjs} +1 -1
- package/dist/chunk-NI7BKLC7.mjs.map +1 -0
- package/dist/index.d.mts +63 -57
- package/dist/index.d.ts +63 -57
- package/dist/index.js +18053 -9606
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16630 -142
- package/dist/index.mjs.map +1 -1
- package/dist/{memoryUtils-HGCYEUCD.mjs → memoryUtils-UBZ33DNA.mjs} +8 -3
- package/dist/memoryUtils-UBZ33DNA.mjs.map +1 -0
- package/dist/modelStore-SEC34WRM.mjs +8 -0
- package/dist/modelStore-SEC34WRM.mjs.map +1 -0
- package/dist/{public-DJa4Db00.d.mts → public-D8UsefSk.d.mts} +21 -8
- package/dist/{public-DJa4Db00.d.ts → public-D8UsefSk.d.ts} +21 -8
- package/dist/public-types.d.mts +1 -1
- package/dist/public-types.d.ts +1 -1
- package/docs/00_intro.md +2 -2
- package/docs/05_contributing.md +2 -2
- package/docs/06_licensing.md +18 -0
- package/docs/07_custom_tools.md +233 -0
- package/docs/README.md +2 -1
- package/package.json +23 -20
- package/dist/aiProviderStore-HY5G4QAK.mjs +0 -8
- package/dist/aiProviderStore-HY5G4QAK.mjs.map +0 -1
- package/dist/chat-7LOFYEWE.mjs +0 -15
- package/dist/chat-7LOFYEWE.mjs.map +0 -1
- package/dist/chat-provider.js +0 -11080
- package/dist/chat-provider.js.map +0 -1
- package/dist/chat-provider.mjs +0 -16
- package/dist/chat-provider.mjs.map +0 -1
- package/dist/chunk-4SXXEGEK.mjs +0 -10690
- package/dist/chunk-4SXXEGEK.mjs.map +0 -1
- package/dist/chunk-62IYSU3I.mjs +0 -7324
- package/dist/chunk-62IYSU3I.mjs.map +0 -1
- package/dist/chunk-CABOLDNR.mjs +0 -216
- package/dist/chunk-CABOLDNR.mjs.map +0 -1
- package/dist/chunk-E5WMDLE3.mjs +0 -390
- package/dist/chunk-E5WMDLE3.mjs.map +0 -1
- package/dist/chunk-GRPTCHFN.mjs.map +0 -1
- package/dist/chunk-HNXPDIWC.mjs.map +0 -1
- package/dist/chunk-JD6C64CT.mjs +0 -516
- package/dist/chunk-JD6C64CT.mjs.map +0 -1
- package/dist/chunk-KAXUI5H7.mjs +0 -6009
- package/dist/chunk-KAXUI5H7.mjs.map +0 -1
- package/dist/chunk-ONQMRE2G.mjs +0 -26
- package/dist/chunk-ONQMRE2G.mjs.map +0 -1
- package/dist/chunk-P4C5IRM5.mjs +0 -39
- package/dist/chunk-P4C5IRM5.mjs.map +0 -1
- package/dist/chunk-QI67R5F6.mjs +0 -194
- package/dist/chunk-QI67R5F6.mjs.map +0 -1
- package/dist/chunk-R3NOM2DG.mjs +0 -2945
- package/dist/chunk-R3NOM2DG.mjs.map +0 -1
- package/dist/chunk-SZJB5FLZ.mjs.map +0 -1
- package/dist/chunk-YGOLNWXJ.mjs +0 -11906
- package/dist/chunk-YGOLNWXJ.mjs.map +0 -1
- package/dist/management/management.js +0 -44454
- package/dist/management/management.js.map +0 -1
- package/dist/management/management.mjs +0 -16
- package/dist/management/management.mjs.map +0 -1
- package/dist/memoryUtils-HGCYEUCD.mjs.map +0 -1
- package/dist/modals/chat-modal/chat-modal.js +0 -19730
- package/dist/modals/chat-modal/chat-modal.js.map +0 -1
- package/dist/modals/chat-modal/chat-modal.mjs +0 -18
- package/dist/modals/chat-modal/chat-modal.mjs.map +0 -1
- package/dist/modelStore-TFNX4GEC.mjs +0 -8
- package/dist/modelStore-TFNX4GEC.mjs.map +0 -1
- package/dist/shared/custom-element.js +0 -73
- package/dist/shared/custom-element.js.map +0 -1
- package/dist/shared/custom-element.mjs +0 -7
- package/dist/shared/custom-element.mjs.map +0 -1
- package/docs/06_busl_licensing.md +0 -25
- package/docs/api_reference/.nojekyll +0 -1
- package/docs/api_reference/assets/bandit-docs.js +0 -462
- package/docs/api_reference/assets/highlight.css +0 -141
- package/docs/api_reference/assets/icons.js +0 -18
- package/docs/api_reference/assets/icons.svg +0 -1
- package/docs/api_reference/assets/main.js +0 -61
- package/docs/api_reference/assets/navigation.js +0 -1
- package/docs/api_reference/assets/search.js +0 -1
- package/docs/api_reference/assets/style.css +0 -1664
- package/docs/api_reference/classes/DebugLogger.html +0 -29
- package/docs/api_reference/classes/FeatureFlagService.html +0 -28
- package/docs/api_reference/classes/NotificationService.html +0 -21
- package/docs/api_reference/classes/StreamingTTSClient.html +0 -19
- package/docs/api_reference/classes/VectorDatabaseService.html +0 -63
- package/docs/api_reference/classes/VectorMigrationService.html +0 -27
- package/docs/api_reference/classes/VoiceService.html +0 -4
- package/docs/api_reference/enums/TTSState.html +0 -6
- package/docs/api_reference/functions/Chat.html +0 -1
- package/docs/api_reference/functions/ChatModal.html +0 -29
- package/docs/api_reference/functions/ChatProvider.html +0 -29
- package/docs/api_reference/functions/FeatureFlagProvider.html +0 -30
- package/docs/api_reference/functions/FeedbackButton.html +0 -29
- package/docs/api_reference/functions/FeedbackModal.html +0 -29
- package/docs/api_reference/functions/InterestsEditor.html +0 -5
- package/docs/api_reference/functions/Management.html +0 -1
- package/docs/api_reference/functions/NotificationProvider.html +0 -29
- package/docs/api_reference/functions/SubscriptionExpiredGuard.html +0 -31
- package/docs/api_reference/functions/SubscriptionExpiredModal.html +0 -31
- package/docs/api_reference/functions/defineCustomElement.html +0 -1
- package/docs/api_reference/functions/getCriticalConfig.html +0 -2
- package/docs/api_reference/functions/getFeatureMatrix.html +0 -1
- package/docs/api_reference/functions/getStreamingTTSClient.html +0 -1
- package/docs/api_reference/functions/getSystemConstants.html +0 -2
- package/docs/api_reference/functions/getTTSState.html +0 -1
- package/docs/api_reference/functions/handleHttpError.html +0 -2
- package/docs/api_reference/functions/handleSubscriptionUpgrade.html +0 -1
- package/docs/api_reference/functions/handleValidationError.html +0 -2
- package/docs/api_reference/functions/initializeCoreSystem.html +0 -2
- package/docs/api_reference/functions/isWorkspaceAdminRole.html +0 -6
- package/docs/api_reference/functions/pauseTTS.html +0 -1
- package/docs/api_reference/functions/previewTierUpgrade.html +0 -1
- package/docs/api_reference/functions/resolveManagementSections.html +0 -2
- package/docs/api_reference/functions/resumeTTS.html +0 -1
- package/docs/api_reference/functions/showInfoNotification.html +0 -2
- package/docs/api_reference/functions/showSuccessNotification.html +0 -2
- package/docs/api_reference/functions/speakWithStreaming.html +0 -1
- package/docs/api_reference/functions/stopTTS.html +0 -1
- package/docs/api_reference/functions/syncSubscriptionWithAPI.html +0 -1
- package/docs/api_reference/functions/updateSubscriptionTier.html +0 -2
- package/docs/api_reference/functions/useFeatureFlag.html +0 -2
- package/docs/api_reference/functions/useFeatureVisibility.html +0 -2
- package/docs/api_reference/functions/useFeatures.html +0 -2
- package/docs/api_reference/functions/useGatewayHealth.html +0 -1
- package/docs/api_reference/functions/useGatewayMemory.html +0 -1
- package/docs/api_reference/functions/useGatewayModels.html +0 -1
- package/docs/api_reference/functions/useGlobalTTS.html +0 -2
- package/docs/api_reference/functions/useManagementAccess.html +0 -2
- package/docs/api_reference/functions/useNotification.html +0 -1
- package/docs/api_reference/functions/useNotificationService.html +0 -6
- package/docs/api_reference/functions/useTTS.html +0 -2
- package/docs/api_reference/functions/useVectorStore.html +0 -13
- package/docs/api_reference/functions/useVoiceStore.html +0 -8
- package/docs/api_reference/functions/useVoices.html +0 -3
- package/docs/api_reference/functions/validateEnvironment.html +0 -2
- package/docs/api_reference/functions/validateSystemIntegrity.html +0 -2
- package/docs/api_reference/index.html +0 -916
- package/docs/api_reference/interfaces/AIChatRequest.html +0 -8
- package/docs/api_reference/interfaces/AIChatResponse.html +0 -3
- package/docs/api_reference/interfaces/AIGenerateRequest.html +0 -5
- package/docs/api_reference/interfaces/AIGenerateResponse.html +0 -3
- package/docs/api_reference/interfaces/AIMessage.html +0 -4
- package/docs/api_reference/interfaces/AIModel.html +0 -6
- package/docs/api_reference/interfaces/AIProviderConfig.html +0 -12
- package/docs/api_reference/interfaces/ChatConfig.html +0 -5
- package/docs/api_reference/interfaces/ChatModalProps.html +0 -7
- package/docs/api_reference/interfaces/CreateMemoryOptions.html +0 -7
- package/docs/api_reference/interfaces/FeatureEvaluation.html +0 -14
- package/docs/api_reference/interfaces/FeatureFlagConfig.html +0 -18
- package/docs/api_reference/interfaces/FeatureFlagContextValue.html +0 -16
- package/docs/api_reference/interfaces/FeatureFlagProviderProps.html +0 -4
- package/docs/api_reference/interfaces/FeedbackButtonProps.html +0 -19
- package/docs/api_reference/interfaces/FeedbackCategories.html +0 -6
- package/docs/api_reference/interfaces/FeedbackModalProps.html +0 -4
- package/docs/api_reference/interfaces/FeedbackPriorities.html +0 -5
- package/docs/api_reference/interfaces/FeedbackRequest.html +0 -12
- package/docs/api_reference/interfaces/FeedbackResponse.html +0 -7
- package/docs/api_reference/interfaces/FileUploadResult.html +0 -4
- package/docs/api_reference/interfaces/GatewayChatRequest.html +0 -13
- package/docs/api_reference/interfaces/GatewayChatResponse.html +0 -7
- package/docs/api_reference/interfaces/GatewayContract.html +0 -4
- package/docs/api_reference/interfaces/GatewayGenerateRequest.html +0 -8
- package/docs/api_reference/interfaces/GatewayGenerateResponse.html +0 -12
- package/docs/api_reference/interfaces/GatewayHealthResponse.html +0 -5
- package/docs/api_reference/interfaces/GatewayMemoryRecord.html +0 -7
- package/docs/api_reference/interfaces/GatewayMemoryResponse.html +0 -4
- package/docs/api_reference/interfaces/GatewayMessage.html +0 -5
- package/docs/api_reference/interfaces/GatewayMessageContent.html +0 -4
- package/docs/api_reference/interfaces/GatewayModel.html +0 -9
- package/docs/api_reference/interfaces/GatewayModelsResponse.html +0 -2
- package/docs/api_reference/interfaces/ManagementAccess.html +0 -5
- package/docs/api_reference/interfaces/ManagementAccessInput.html +0 -5
- package/docs/api_reference/interfaces/ManagementLink.html +0 -7
- package/docs/api_reference/interfaces/ManagementProps.html +0 -22
- package/docs/api_reference/interfaces/ManagementSectionDef.html +0 -10
- package/docs/api_reference/interfaces/MemorySearchFilters.html +0 -5
- package/docs/api_reference/interfaces/MigrationProgress.html +0 -6
- package/docs/api_reference/interfaces/MigrationStatus.html +0 -7
- package/docs/api_reference/interfaces/NotificationConfig.html +0 -5
- package/docs/api_reference/interfaces/NotificationContextType.html +0 -6
- package/docs/api_reference/interfaces/NotificationProviderProps.html +0 -4
- package/docs/api_reference/interfaces/PackageSettings.html +0 -22
- package/docs/api_reference/interfaces/SearchOptions.html +0 -6
- package/docs/api_reference/interfaces/SearchResult.html +0 -5
- package/docs/api_reference/interfaces/SubscriptionExpiredGuardProps.html +0 -7
- package/docs/api_reference/interfaces/SubscriptionExpiredModalProps.html +0 -6
- package/docs/api_reference/interfaces/TTSOptions.html +0 -5
- package/docs/api_reference/interfaces/TTSProgress.html +0 -6
- package/docs/api_reference/interfaces/TrialUsage.html +0 -6
- package/docs/api_reference/interfaces/UploadRequest.html +0 -9
- package/docs/api_reference/interfaces/UseTTSReturn.html +0 -14
- package/docs/api_reference/interfaces/VectorDocument.html +0 -11
- package/docs/api_reference/interfaces/VectorMemory.html +0 -12
- package/docs/api_reference/interfaces/VectorMemoryMetadata.html +0 -7
- package/docs/api_reference/interfaces/VectorStoreStatus.html +0 -7
- package/docs/api_reference/interfaces/VoiceModelsResponse.html +0 -4
- package/docs/api_reference/interfaces/VoiceState.html +0 -12
- package/docs/api_reference/media/02_gateway_api.md +0 -123
- package/docs/api_reference/media/05_cli_quickstart.md +0 -87
- package/docs/api_reference/media/LICENSE +0 -43
- package/docs/api_reference/media/PRE-PUSH-CHECKLIST.md +0 -10
- package/docs/api_reference/media/PROTECTION-NOTICE.md +0 -11
- package/docs/api_reference/media/README.md +0 -58
- package/docs/api_reference/modules.html +0 -136
- package/docs/api_reference/types/FeatureKey.html +0 -2
- package/docs/api_reference/types/FeatureMatrix.html +0 -2
- package/docs/api_reference/types/GatewayQueryOptions.html +0 -1
- package/docs/api_reference/types/LogContext.html +0 -14
- package/docs/api_reference/types/ManagementRequest.html +0 -1
- package/docs/api_reference/types/ManagementSectionId.html +0 -2
- package/docs/api_reference/types/SubscriptionTier.html +0 -2
- package/docs/api_reference/variables/DEFAULT_TIER_FEATURES.html +0 -2
- package/docs/api_reference/variables/FeatureFlagContext.html +0 -1
- package/docs/api_reference/variables/MANAGEMENT_SECTIONS.html +0 -1
- package/docs/api_reference/variables/OSS_DEFAULT_FEATURES.html +0 -2
- package/docs/api_reference/variables/SYSTEM_FLAGS.html +0 -2
- package/docs/api_reference/variables/authenticationService.html +0 -1
- package/docs/api_reference/variables/debugLogger-1.html +0 -1
- package/docs/api_reference/variables/featureFlagService-1.html +0 -2
- package/docs/api_reference/variables/notificationService-1.html +0 -1
- package/docs/api_reference/variables/vectorDatabaseService-1.html +0 -1
- package/docs/api_reference/variables/vectorMigrationService-1.html +0 -1
- package/docs/api_reference/variables/voiceService-1.html +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to `@burtson-labs/bandit-engine`. Versions follow semver.
|
|
4
|
+
|
|
5
|
+
## 2.1.1
|
|
6
|
+
|
|
7
|
+
### Chat
|
|
8
|
+
|
|
9
|
+
- Every tool call is now shown on the message as a tool trail ("Searched: …", "Read: example.com", "Created file: …", failed calls marked), while the answer streams and after it finishes. A call shows as running ("Reading: example.com…") from the moment it starts; calls cut off by a stop or error are saved as "Stopped: …". The trail is saved on the history entry (`HistoryEntry.toolsUsed`) and carried through conversation sync (`ConversationTurnDTO.toolsUsed`), so it survives reloads.
|
|
10
|
+
- A page read with `web_fetch` now gets a Sources chip and a citation number, like search results. Chained tool calls (after the first round) also add their sources.
|
|
11
|
+
- The follow-up pass keeps the tool call in the assistant's own turn ("I called web_fetch(…) and got the results below"), so models without native tool messages know they made the call. Later turns get a short tool note on earlier answers, so the model can still say where an answer came from.
|
|
12
|
+
- Prompt: an attribution rule (name the source; never present tool output or provided context as your own knowledge), one citation format matched to the Sources chips, no more "sources are attached automatically" when none are, and the search service's summary placed after the numbered results it was written from.
|
|
13
|
+
- Custom and MCP-server tools are now recognized on the first model turn, not only in chained rounds.
|
|
14
|
+
- Providers can announce context sources the backend attached (`AIChatResponse.contextSources`, read from an optional `context_sources: [{ label, detail? }]` field on stream chunks); they appear in the tool trail.
|
|
15
|
+
|
|
16
|
+
## 2.1.0
|
|
17
|
+
|
|
18
|
+
### License
|
|
19
|
+
- Bandit Engine is now licensed under the Apache License, Version 2.0 (see `LICENSE` and `NOTICE`). Versions up to and including 2.0.168 were published under the Business Source License 1.1 and remain under that license; this release and later ones are Apache-2.0. The relicense covers the package's whole history, including outside contributions, with the contributors' consent. `@burtson-labs/bandit-types` 1.1.0 and `@burtson-labs/bandit-themes` 2.1.0, which the engine depends on and bundles, are relicensed to Apache-2.0 at the same time. So is `@burtson-labs/bandit-cli` 1.1.0, the quickstart scaffolder.
|
|
20
|
+
|
|
21
|
+
### Security
|
|
22
|
+
- Dependency advisories patched in the production tree: axios ^1.21.0 (prototype-pollution credential theft and MITM, SSRF, header injection), react-router-dom ^7.18.5 (open redirect via backslash), @xmldom/xmldom 0.8.15 through mammoth ^1.13.0 (DoS and XML injection reachable through uploaded .docx). `uuid` is no longer a dependency; ids come from `crypto.randomUUID`.
|
|
23
|
+
- Telemetry no longer forwards the signed-in gateway token to a custom collector. Only the Burtson collector receives it by default; your own endpoint receives exactly the headers you configure.
|
|
24
|
+
- `vectorDatabaseService` is no longer attached to `window` at import time.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- The CommonJS entry (`require("@burtson-labs/bandit-engine")`) could not load since 2.0.161: it imported `@burtson-labs/icons/mui/<icon>` subpaths that the icons package exposes to `import` only (`ERR_PACKAGE_PATH_NOT_EXPORTED`). The icons the engine uses are now bundled into both outputs, and `@burtson-labs/icons` is no longer an install-time dependency. The CJS entry still resolves ESM-only dependencies (react-markdown, rehype-*, lowlight) through Node's `require(esm)`, so it needs Node 22.12 or later; ESM works everywhere. The packed-consumer check used to report success even when this import failed; it now fails on any error before its final assertion.
|
|
28
|
+
- Feature-flag subscription sync sent an empty bearer: it read a token key nothing writes. It now uses the auth service, so memory-mode sessions work too.
|
|
29
|
+
- `parseJwtClaims` returns `null` quietly for API-key credentials instead of logging an error on every authentication check.
|
|
30
|
+
- Two zustand selectors used the deprecated `(selector, shallow)` form; they use `useShallow`.
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- `react`, `react-dom`, `@mui/material`, `@emotion/react` and `@emotion/styled` are peer dependencies only (they were also listed as dependencies, which could install a second copy of MUI and emotion).
|
|
34
|
+
- `idb` is pinned to `^8.0.3` (was `latest`).
|
|
35
|
+
- Package contents: a single entry point, source maps without embedded source, the markdown docs instead of the generated API reference. 227 files / 20.2 MB unpacked becomes 42 files / 6.5 MB (the icons the engine uses are now inside).
|
|
36
|
+
- `exports` has `types` conditions for both module formats and exposes `./package.json`; `./types` is types-only.
|
|
37
|
+
|
|
38
|
+
### Removed
|
|
39
|
+
- 7,463 lines of source nothing imported and 17 MB of unused images, including a stale copy of the CLI scaffolder (use `@burtson-labs/bandit-cli`), example files, the direct-Ollama hook and store, and twelve theme re-export shims that the exports map already blocked. No public export was removed.
|
|
40
|
+
|
|
41
|
+
## 2.0.168 and earlier
|
|
42
|
+
Published under BUSL-1.1. See the git history for per-version notes.
|
package/LICENSE
CHANGED
|
@@ -1,43 +1,201 @@
|
|
|
1
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
- Personal, educational, and non-commercial use
|
|
7
|
-
- 30-day commercial evaluation period (no production deployment)
|
|
7
|
+
1. Definitions.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- Integration in SaaS or client-facing products
|
|
12
|
-
- Rebranding, sublicensing, or redistribution
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
17
22
|
|
|
18
|
-
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
19
25
|
|
|
20
|
-
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
21
29
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
the Licensed Work for a Commercial Use. A "Commercial Use" means use of
|
|
27
|
-
the Licensed Work in production, or any other use that is primarily
|
|
28
|
-
intended for or directed toward commercial advantage or monetary
|
|
29
|
-
compensation.
|
|
30
|
-
Change Date: April 1, 2027
|
|
31
|
-
Change License: Apache License, Version 2.0
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
37
47
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
41
61
|
|
|
42
|
-
|
|
43
|
-
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept and charge a
|
|
167
|
+
fee for acceptance of support, warranty, indemnity, or other liability
|
|
168
|
+
obligations and/or rights consistent with this License. However, in
|
|
169
|
+
accepting such obligations, You may act only on Your own behalf
|
|
170
|
+
and on Your sole responsibility, not on behalf of any other Contributor,
|
|
171
|
+
and only if You agree to indemnify, defend, and hold each Contributor
|
|
172
|
+
harmless for any liability incurred by, or claims asserted against,
|
|
173
|
+
such Contributor by reason of your accepting any such warranty or
|
|
174
|
+
additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025-2026 Burtson Labs LLC
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Bandit Engine
|
|
2
|
+
Copyright 2025-2026 Burtson Labs LLC
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Burtson Labs LLC (https://burtson.ai).
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
you may not use this file except in compliance with the License.
|
|
8
|
+
You may obtain a copy of the License at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
See the License for the specific language governing permissions and
|
|
16
|
+
limitations under the License.
|
|
17
|
+
|
|
18
|
+
Releases of @burtson-labs/bandit-engine up to and including 2.0.168 were
|
|
19
|
+
published under the Business Source License 1.1 and remain under that license.
|
|
20
|
+
From 2.1.0 the package, including the contributions in its history, is
|
|
21
|
+
relicensed under the Apache License, Version 2.0 with its contributors' consent.
|
|
22
|
+
|
|
23
|
+
"Bandit", "Bandit AI" and "Burtson Labs" are trademarks of Burtson Labs LLC.
|
|
24
|
+
The License does not grant permission to use these names, logos or marks,
|
|
25
|
+
except as required for reasonable and customary use in describing the origin
|
|
26
|
+
of the work.
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ An AI chat toolkit built for speed, design, and control. Power branded AI assist
|
|
|
14
14
|
[](https://banditailabs.com/npm-package)
|
|
15
15
|
[](https://banditailabs.com/)
|
|
16
16
|
[](https://www.typescriptlang.org/)
|
|
17
|
-
[](./LICENSE)
|
|
18
18
|
|
|
19
19
|
## Features
|
|
20
20
|
- Plug-and-play React chat, modal, and management surfaces
|
|
@@ -1296,71 +1296,27 @@ The new approach provides:
|
|
|
1296
1296
|
|
|
1297
1297
|
---
|
|
1298
1298
|
|
|
1299
|
-
##
|
|
1299
|
+
## License
|
|
1300
1300
|
|
|
1301
|
-
|
|
1301
|
+
Bandit Engine is licensed under the [Apache License, Version 2.0](./LICENSE). You may use, modify and distribute it, including in commercial products, under the terms of that license; [NOTICE](./NOTICE) carries the attributions to keep when you redistribute.
|
|
1302
1302
|
|
|
1303
|
-
|
|
1303
|
+
Versions up to and including 2.0.168 were published under the Business Source License 1.1 and remain under that license; 2.1.0 and later are Apache-2.0. "Bandit", "Bandit AI" and "Burtson Labs" are trademarks of Burtson Labs LLC; the license grants no trademark rights.
|
|
1304
1304
|
|
|
1305
|
-
|
|
1306
|
-
- <img src="https://icons.burtson.ai/svg-accent/check-circle.svg" width="16" align="center" alt="" /> **Non-Commercial Use**: Free for educational, research, and personal projects
|
|
1307
|
-
- <img src="https://icons.burtson.ai/svg-accent/x-circle.svg" width="16" align="center" alt="" /> **Commercial Production**: Requires commercial license for production deployment
|
|
1308
|
-
- <img src="https://icons.burtson.ai/svg-accent/x-circle.svg" width="16" align="center" alt="" /> **Competitive Use**: Cannot be used to create competing AI chat products
|
|
1309
|
-
- <img src="https://icons.burtson.ai/svg-accent/x-circle.svg" width="16" align="center" alt="" /> **AI Training**: Cannot be used as training data for AI models
|
|
1305
|
+
Commercial support, hosted Bandit plans and custom integrations are available from Burtson Labs separately from the license: team@burtson.ai. See [docs/06_licensing.md](./docs/06_licensing.md).
|
|
1310
1306
|
|
|
1311
|
-
###
|
|
1307
|
+
### For contributors
|
|
1312
1308
|
|
|
1313
|
-
|
|
1314
|
-
- Internal development and testing
|
|
1315
|
-
- Educational and research purposes
|
|
1316
|
-
- Evaluation for potential commercial licensing
|
|
1317
|
-
- Contributions back to the project (under same license)
|
|
1318
|
-
|
|
1319
|
-
**Prohibited:**
|
|
1320
|
-
- Production use without commercial license
|
|
1321
|
-
- Creating derivative commercial products
|
|
1322
|
-
- Using as training data for AI/ML models
|
|
1323
|
-
- Removing or modifying license notices and watermarks
|
|
1324
|
-
|
|
1325
|
-
### <img src="https://icons.burtson.ai/svg-accent/lock.svg" width="18" align="center" alt="" /> Protection Features
|
|
1326
|
-
|
|
1327
|
-
This codebase includes multiple protection layers:
|
|
1328
|
-
- **Embedded Watermarks**: Visible and stealth fingerprints in all source files
|
|
1329
|
-
- **Audit Trails**: Usage tracking and compliance monitoring
|
|
1330
|
-
- **License Validation**: Runtime checks for compliance
|
|
1331
|
-
- **Honey Pot Files**: Trap files that trigger license violations when accessed
|
|
1332
|
-
|
|
1333
|
-
**<img src="https://icons.burtson.ai/svg-accent/alert-triangle.svg" width="16" align="center" alt="" /> Warning**: Removing, modifying, or bypassing these protection mechanisms constitutes a license violation and may result in immediate license termination.
|
|
1334
|
-
|
|
1335
|
-
### <img src="https://icons.burtson.ai/svg-accent/briefcase.svg" width="18" align="center" alt="" /> Commercial Licensing
|
|
1336
|
-
|
|
1337
|
-
**Production License**: Required for commercial deployment
|
|
1338
|
-
- Full production rights
|
|
1339
|
-
- Priority support and maintenance
|
|
1340
|
-
- Custom integrations and features
|
|
1341
|
-
- Enterprise SLA options
|
|
1342
|
-
|
|
1343
|
-
**Contact for Licensing:**
|
|
1344
|
-
- **Email**: legal@burtson.ai
|
|
1345
|
-
- **Website**: https://burtson.ai/license
|
|
1346
|
-
- **Sales**: sales@burtson.ai
|
|
1347
|
-
|
|
1348
|
-
### <img src="https://icons.burtson.ai/svg-accent/code.svg" width="18" align="center" alt="" /> For Contributors & Developers
|
|
1349
|
-
|
|
1350
|
-
Before contributing or publishing a new Pull Request, run the available validation scripts:
|
|
1309
|
+
Before opening a pull request, run:
|
|
1351
1310
|
|
|
1352
1311
|
```bash
|
|
1353
|
-
npm run lint
|
|
1354
|
-
npm run test
|
|
1355
|
-
npm run build
|
|
1356
|
-
npm run
|
|
1312
|
+
npm run lint # Static analysis for the src tree
|
|
1313
|
+
npm run test # Vitest suite
|
|
1314
|
+
npm run build # Generate the dist bundle with tsup
|
|
1315
|
+
npm run check:consumer # Install the packed tarball in a clean React 19 + MUI 7 app
|
|
1357
1316
|
```
|
|
1358
1317
|
|
|
1359
|
-
|
|
1360
|
-
- [
|
|
1361
|
-
- [
|
|
1362
|
-
- [LICENSE](./LICENSE) — the repository's current license terms.
|
|
1363
|
-
|
|
1364
|
-
Source notices are attribution, not telemetry or enforcement. They do not track usage or prevent distribution. The legacy helpers with integrity and validation names are deprecated and must not be used as security controls.
|
|
1318
|
+
- [CONTRIBUTING.md](./CONTRIBUTING.md): tooling, commit conventions, review expectations.
|
|
1319
|
+
- [LICENSE-NOTICE.md](./LICENSE-NOTICE.md): source notices and the deprecated compatibility helpers.
|
|
1320
|
+
- [SECURITY.md](./SECURITY.md): how to report a vulnerability.
|
|
1365
1321
|
|
|
1366
|
-
© 2025 Burtson Labs LLC.
|
|
1322
|
+
© 2025-2026 Burtson Labs LLC.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"mappings":"","names":[]}
|