@neuralis/brain-core 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -1409
- package/app/README.md +1 -1
- package/app/cards/FilesystemCardShell.tsx +42 -4
- package/app/cards/FilesystemChangeCard.tsx +34 -11
- package/app/cards/README.md +6 -5
- package/app/cards/diffUtils.ts +99 -1
- package/app/filesystem/FilesystemHost.tsx +17 -2
- package/app/filesystem/api/README.md +3 -3
- package/app/filesystem/api/index.ts +35 -11
- package/app/filesystem/api/projectPackages.ts +13 -102
- package/app/filesystem/domain/types.ts +30 -10
- package/app/filesystem/hooks/README.md +3 -3
- package/app/filesystem/hooks/useDiscoverableSources.ts +19 -30
- package/app/filesystem/hooks/useFilesystemSSE.ts +1 -1
- package/app/filesystem/host/README.md +5 -3
- package/app/filesystem/host/buildFilesystemHostValue.ts +19 -0
- package/app/filesystem/host/installFilesystemHostComponents.tsx +1 -1
- package/app/filesystem/lib/sourceKindForm.ts +118 -39
- package/app/filesystem/lib/treeVisualState.tsx +98 -4
- package/app/filesystem/store/README.md +1 -0
- package/app/filesystem/store/filesystemStore.ts +86 -5
- package/app/filesystem/store/gitSlice.ts +5 -0
- package/app/filesystem/store/helpers.ts +17 -0
- package/app/filesystem/store/listSlice.ts +8 -0
- package/app/filesystem/ui/CodeEditor.tsx +18 -3
- package/app/filesystem/ui/FileEditor.tsx +15 -10
- package/app/filesystem/ui/FileTree.tsx +41 -16
- package/app/filesystem/ui/FolderPicker.tsx +251 -0
- package/app/filesystem/ui/GitControlPanel.tsx +5 -0
- package/app/filesystem/ui/PackagesPanel.tsx +52 -374
- package/app/filesystem/ui/PolicyEditor.tsx +109 -24
- package/app/filesystem/ui/README.md +17 -11
- package/app/filesystem/ui/RawMediaPreview.tsx +58 -0
- package/app/filesystem/ui/SourceBranchHeader.tsx +4 -4
- package/app/filesystem/ui/SourcesPanel.tsx +420 -360
- package/app/filesystem/ui/Toolbar.tsx +1 -2
- package/app/shared/filesystem.png +0 -0
- package/dist/app/host.js +57 -49
- package/dist/scripts/sourceRootPairV1.d.ts +47 -0
- package/dist/scripts/sourceRootPairV1.d.ts.map +1 -0
- package/dist/scripts/sourceRootPairV1.js +147 -0
- package/dist/scripts/sourceRootPairV1.js.map +1 -0
- package/dist/scripts/sourceToFolderV1.d.ts +56 -0
- package/dist/scripts/sourceToFolderV1.d.ts.map +1 -0
- package/dist/scripts/sourceToFolderV1.js +152 -0
- package/dist/scripts/sourceToFolderV1.js.map +1 -0
- package/dist/scripts/sourceToHostV1.d.ts +56 -0
- package/dist/scripts/sourceToHostV1.d.ts.map +1 -0
- package/dist/scripts/sourceToHostV1.js +132 -0
- package/dist/scripts/sourceToHostV1.js.map +1 -0
- package/dist/src/connectors/AppSourceConfigStore.d.ts +17 -3
- package/dist/src/connectors/AppSourceConfigStore.d.ts.map +1 -1
- package/dist/src/connectors/AppSourceConfigStore.js +46 -6
- package/dist/src/connectors/AppSourceConfigStore.js.map +1 -1
- package/dist/src/connectors/HostConnector.d.ts +201 -0
- package/dist/src/connectors/HostConnector.d.ts.map +1 -0
- package/dist/src/connectors/HostConnector.js +903 -0
- package/dist/src/connectors/HostConnector.js.map +1 -0
- package/dist/src/connectors/inProcessTransport.d.ts +131 -0
- package/dist/src/connectors/inProcessTransport.d.ts.map +1 -0
- package/dist/src/connectors/inProcessTransport.js +447 -0
- package/dist/src/connectors/inProcessTransport.js.map +1 -0
- package/dist/src/domain/access/callerPermissions.d.ts +29 -0
- package/dist/src/domain/access/callerPermissions.d.ts.map +1 -1
- package/dist/src/domain/access/callerPermissions.js +85 -5
- package/dist/src/domain/access/callerPermissions.js.map +1 -1
- package/dist/src/domain/access/nativeLocalFence.d.ts +65 -0
- package/dist/src/domain/access/nativeLocalFence.d.ts.map +1 -0
- package/dist/src/domain/access/nativeLocalFence.js +171 -0
- package/dist/src/domain/access/nativeLocalFence.js.map +1 -0
- package/dist/src/domain/access/uriPermission.js +3 -3
- package/dist/src/domain/access/uriPermission.js.map +1 -1
- package/dist/src/domain/byteRange.d.ts +15 -0
- package/dist/src/domain/byteRange.d.ts.map +1 -0
- package/dist/src/domain/byteRange.js +30 -0
- package/dist/src/domain/byteRange.js.map +1 -0
- package/dist/src/domain/defaultPermissions.d.ts.map +1 -1
- package/dist/src/domain/defaultPermissions.js +29 -0
- package/dist/src/domain/defaultPermissions.js.map +1 -1
- package/dist/src/domain/mime.d.ts +8 -16
- package/dist/src/domain/mime.d.ts.map +1 -1
- package/dist/src/domain/mime.js +10 -99
- package/dist/src/domain/mime.js.map +1 -1
- package/dist/src/domain/paths.d.ts.map +1 -1
- package/dist/src/domain/paths.js +5 -3
- package/dist/src/domain/paths.js.map +1 -1
- package/dist/src/domain/sourceConfig.d.ts +52 -19
- package/dist/src/domain/sourceConfig.d.ts.map +1 -1
- package/dist/src/domain/sourceConfig.js +103 -19
- package/dist/src/domain/sourceConfig.js.map +1 -1
- package/dist/src/domain/sourcePackages.d.ts +8 -8
- package/dist/src/domain/sourcePackages.d.ts.map +1 -1
- package/dist/src/domain/sourceRootPair.d.ts +88 -0
- package/dist/src/domain/sourceRootPair.d.ts.map +1 -0
- package/dist/src/domain/sourceRootPair.js +108 -0
- package/dist/src/domain/sourceRootPair.js.map +1 -0
- package/dist/src/domain/syncTypes.d.ts +8 -1
- package/dist/src/domain/syncTypes.d.ts.map +1 -1
- package/dist/src/domain/syncTypes.js +1 -0
- package/dist/src/domain/syncTypes.js.map +1 -1
- package/dist/src/domain/types.d.ts +24 -1
- package/dist/src/domain/types.d.ts.map +1 -1
- package/dist/src/domain/uri.d.ts.map +1 -1
- package/dist/src/domain/uri.js +3 -2
- package/dist/src/domain/uri.js.map +1 -1
- package/dist/src/embeddings/clients/GeminiEmbedder.d.ts.map +1 -1
- package/dist/src/embeddings/clients/GeminiEmbedder.js +2 -5
- package/dist/src/embeddings/clients/GeminiEmbedder.js.map +1 -1
- package/dist/src/embeddings/clients/OpenAIEmbedder.d.ts.map +1 -1
- package/dist/src/embeddings/clients/OpenAIEmbedder.js +2 -3
- package/dist/src/embeddings/clients/OpenAIEmbedder.js.map +1 -1
- package/dist/src/embeddings/clients/QwenEmbedder.d.ts +2 -0
- package/dist/src/embeddings/clients/QwenEmbedder.d.ts.map +1 -1
- package/dist/src/embeddings/clients/QwenEmbedder.js +10 -2
- package/dist/src/embeddings/clients/QwenEmbedder.js.map +1 -1
- package/dist/src/embeddings/clients/VoyageEmbedder.d.ts +2 -0
- package/dist/src/embeddings/clients/VoyageEmbedder.d.ts.map +1 -1
- package/dist/src/embeddings/clients/VoyageEmbedder.js +8 -1
- package/dist/src/embeddings/clients/VoyageEmbedder.js.map +1 -1
- package/dist/src/embeddings/factory.d.ts +5 -3
- package/dist/src/embeddings/factory.d.ts.map +1 -1
- package/dist/src/embeddings/factory.js +7 -3
- package/dist/src/embeddings/factory.js.map +1 -1
- package/dist/src/embeddings/models.d.ts +1 -1
- package/dist/src/embeddings/models.d.ts.map +1 -1
- package/dist/src/embeddings/retry.js +1 -1
- package/dist/src/embeddings/retry.js.map +1 -1
- package/dist/src/embeddings/types.d.ts +6 -0
- package/dist/src/embeddings/types.d.ts.map +1 -1
- package/dist/src/embeddings/types.js +11 -0
- package/dist/src/embeddings/types.js.map +1 -1
- package/dist/src/git/GitRunner.d.ts +110 -30
- package/dist/src/git/GitRunner.d.ts.map +1 -1
- package/dist/src/git/GitRunner.js +511 -199
- package/dist/src/git/GitRunner.js.map +1 -1
- package/dist/src/git/GitWatchRegistry.d.ts +41 -35
- package/dist/src/git/GitWatchRegistry.d.ts.map +1 -1
- package/dist/src/git/GitWatchRegistry.js +61 -79
- package/dist/src/git/GitWatchRegistry.js.map +1 -1
- package/dist/src/git/gitPlace.d.ts +61 -0
- package/dist/src/git/gitPlace.d.ts.map +1 -0
- package/dist/src/git/gitPlace.js +74 -0
- package/dist/src/git/gitPlace.js.map +1 -0
- package/dist/src/git/sourceGitControl.d.ts +31 -19
- package/dist/src/git/sourceGitControl.d.ts.map +1 -1
- package/dist/src/git/sourceGitControl.js +208 -92
- package/dist/src/git/sourceGitControl.js.map +1 -1
- package/dist/src/git/sourceGitStatus.js +1 -1
- package/dist/src/git/sourceGitStatus.js.map +1 -1
- package/dist/src/git/untrackedStats.js +1 -1
- package/dist/src/git/untrackedStats.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/lifecycle.d.ts +8 -11
- package/dist/src/lifecycle.d.ts.map +1 -1
- package/dist/src/lifecycle.js +2 -1
- package/dist/src/lifecycle.js.map +1 -1
- package/dist/src/routes/git.d.ts.map +1 -1
- package/dist/src/routes/git.js +183 -54
- package/dist/src/routes/git.js.map +1 -1
- package/dist/src/routes/helpers/uriGuard.d.ts +1 -1
- package/dist/src/routes/helpers/uriGuard.d.ts.map +1 -1
- package/dist/src/routes/helpers/uriGuard.js +3 -2
- package/dist/src/routes/helpers/uriGuard.js.map +1 -1
- package/dist/src/routes/helpers.d.ts +10 -3
- package/dist/src/routes/helpers.d.ts.map +1 -1
- package/dist/src/routes/helpers.js +12 -5
- package/dist/src/routes/helpers.js.map +1 -1
- package/dist/src/routes/list.d.ts.map +1 -1
- package/dist/src/routes/list.js +2 -3
- package/dist/src/routes/list.js.map +1 -1
- package/dist/src/routes/policies.d.ts +6 -4
- package/dist/src/routes/policies.d.ts.map +1 -1
- package/dist/src/routes/policies.js +22 -16
- package/dist/src/routes/policies.js.map +1 -1
- package/dist/src/routes/raw.d.ts.map +1 -1
- package/dist/src/routes/raw.js +65 -11
- package/dist/src/routes/raw.js.map +1 -1
- package/dist/src/routes/sources.d.ts +60 -18
- package/dist/src/routes/sources.d.ts.map +1 -1
- package/dist/src/routes/sources.js +411 -299
- package/dist/src/routes/sources.js.map +1 -1
- package/dist/src/services/BridgeService.d.ts +15 -35
- package/dist/src/services/BridgeService.d.ts.map +1 -1
- package/dist/src/services/BridgeService.js +30 -88
- package/dist/src/services/BridgeService.js.map +1 -1
- package/dist/src/services/FilesystemService.d.ts +3 -2
- package/dist/src/services/FilesystemService.d.ts.map +1 -1
- package/dist/src/services/FilesystemService.js +110 -32
- package/dist/src/services/FilesystemService.js.map +1 -1
- package/dist/src/services/FilesystemUiService.d.ts +4 -1
- package/dist/src/services/FilesystemUiService.d.ts.map +1 -1
- package/dist/src/services/FilesystemUiService.js +66 -25
- package/dist/src/services/FilesystemUiService.js.map +1 -1
- package/dist/src/services/SyncScheduler.d.ts +12 -4
- package/dist/src/services/SyncScheduler.d.ts.map +1 -1
- package/dist/src/services/SyncScheduler.js +37 -8
- package/dist/src/services/SyncScheduler.js.map +1 -1
- package/dist/src/services/baselineRepair.d.ts +13 -3
- package/dist/src/services/baselineRepair.d.ts.map +1 -1
- package/dist/src/services/baselineRepair.js +13 -3
- package/dist/src/services/baselineRepair.js.map +1 -1
- package/dist/src/services/declaredSources.d.ts +125 -42
- package/dist/src/services/declaredSources.d.ts.map +1 -1
- package/dist/src/services/declaredSources.js +117 -45
- package/dist/src/services/declaredSources.js.map +1 -1
- package/dist/src/store/dataFormats.d.ts +17 -2
- package/dist/src/store/dataFormats.d.ts.map +1 -1
- package/dist/src/store/dataFormats.js +18 -3
- package/dist/src/store/dataFormats.js.map +1 -1
- package/dist/src/sync/DeltaSyncRunner.d.ts.map +1 -1
- package/dist/src/sync/DeltaSyncRunner.js +144 -4
- package/dist/src/sync/DeltaSyncRunner.js.map +1 -1
- package/dist/src/sync/SyncJobQueue.d.ts +7 -2
- package/dist/src/sync/SyncJobQueue.d.ts.map +1 -1
- package/dist/src/sync/SyncJobQueue.js +16 -10
- package/dist/src/sync/SyncJobQueue.js.map +1 -1
- package/dist/src/sync/SyncWatchService.d.ts +21 -4
- package/dist/src/sync/SyncWatchService.d.ts.map +1 -1
- package/dist/src/sync/SyncWatchService.js +115 -10
- package/dist/src/sync/SyncWatchService.js.map +1 -1
- package/dist/src/sync/categoryInference.d.ts +1 -1
- package/dist/src/sync/categoryInference.js +1 -1
- package/dist/src/usecases/admitSourceRoot.d.ts +65 -0
- package/dist/src/usecases/admitSourceRoot.d.ts.map +1 -0
- package/dist/src/usecases/admitSourceRoot.js +85 -0
- package/dist/src/usecases/admitSourceRoot.js.map +1 -0
- package/dist/src/usecases/browseSourceFolders.d.ts +85 -0
- package/dist/src/usecases/browseSourceFolders.d.ts.map +1 -0
- package/dist/src/usecases/browseSourceFolders.js +210 -0
- package/dist/src/usecases/browseSourceFolders.js.map +1 -0
- package/dist/src/usecases/createDeclaredSources.d.ts +13 -2
- package/dist/src/usecases/createDeclaredSources.d.ts.map +1 -1
- package/dist/src/usecases/createDeclaredSources.js +39 -0
- package/dist/src/usecases/createDeclaredSources.js.map +1 -1
- package/dist/src/usecases/list.d.ts.map +1 -1
- package/dist/src/usecases/list.js +83 -26
- package/dist/src/usecases/list.js.map +1 -1
- package/dist/src/usecases/listAttachableDevices.d.ts +13 -0
- package/dist/src/usecases/listAttachableDevices.d.ts.map +1 -0
- package/dist/src/usecases/listAttachableDevices.js +10 -0
- package/dist/src/usecases/listAttachableDevices.js.map +1 -0
- package/dist/src/usecases/listSourcePackages.d.ts.map +1 -1
- package/dist/src/usecases/listSourcePackages.js +2 -5
- package/dist/src/usecases/listSourcePackages.js.map +1 -1
- package/dist/src/usecases/purgeExcludedPoints.d.ts.map +1 -1
- package/dist/src/usecases/purgeExcludedPoints.js +3 -2
- package/dist/src/usecases/purgeExcludedPoints.js.map +1 -1
- package/dist/src/usecases/readFiles.d.ts.map +1 -1
- package/dist/src/usecases/readFiles.js +15 -0
- package/dist/src/usecases/readFiles.js.map +1 -1
- package/dist/src/usecases/reconcileSourcePackageRoots.d.ts +1 -1
- package/dist/src/usecases/reconcileSourcePackageRoots.d.ts.map +1 -1
- package/dist/src/usecases/reconcileSourcePackageRoots.js +2 -1
- package/dist/src/usecases/reconcileSourcePackageRoots.js.map +1 -1
- package/dist/src/usecases/revokePrincipal.d.ts +7 -5
- package/dist/src/usecases/revokePrincipal.d.ts.map +1 -1
- package/dist/src/usecases/revokePrincipal.js +29 -7
- package/dist/src/usecases/revokePrincipal.js.map +1 -1
- package/dist/src/usecases/scheduleSourceSync.d.ts +7 -0
- package/dist/src/usecases/scheduleSourceSync.d.ts.map +1 -1
- package/dist/src/usecases/scheduleSourceSync.js +6 -5
- package/dist/src/usecases/scheduleSourceSync.js.map +1 -1
- package/dist/src/usecases/triggerSourceSync.d.ts +46 -0
- package/dist/src/usecases/triggerSourceSync.d.ts.map +1 -0
- package/dist/src/usecases/triggerSourceSync.js +75 -0
- package/dist/src/usecases/triggerSourceSync.js.map +1 -0
- package/dist/src/usecases/uploadBinary.d.ts +2 -1
- package/dist/src/usecases/uploadBinary.d.ts.map +1 -1
- package/dist/src/usecases/uploadBinary.js +2 -2
- package/dist/src/usecases/uploadBinary.js.map +1 -1
- package/dist/src/usecases/vector/endpointGuard.d.ts +1 -1
- package/dist/src/usecases/vector/endpointGuard.js +1 -1
- package/dist/src/vector/qdrantClient.d.ts +1 -1
- package/dist/src/vector/qdrantClient.js +1 -1
- package/dist/src/wiring.d.ts +3 -0
- package/dist/src/wiring.d.ts.map +1 -1
- package/dist/src/wiring.js +72 -6
- package/dist/src/wiring.js.map +1 -1
- package/package.json +145 -54
- package/skills/connect-business-data/SKILL.md +2 -2
- package/skills/create-package/SKILL.md +18 -18
- package/skills/create-package/references/config-and-credentials.md +16 -13
- package/skills/create-package/references/connectors-and-uri-policies.md +36 -27
- package/skills/create-package/references/manifest-and-discovery.md +12 -12
- package/skills/create-package/references/runtime-and-build.md +18 -18
- package/skills/create-package/references/skills-and-context.md +35 -19
- package/skills/create-package/references/surfaces-and-design.md +16 -16
- package/skills/create-package/references/team-and-workflows.md +2 -2
- package/skills/create-package/references/test-and-ship.md +17 -17
- package/skills/create-package/references/tools-and-schemas.md +5 -5
- package/skills/create-package/scripts/{check-package.sh → check-package.mjs} +78 -64
- package/skills/create-package/scripts/{verify-loaded.sh → verify-loaded.mjs} +156 -162
- package/skills/git/SKILL.md +31 -29
- package/skills/manage-files/SKILL.md +11 -14
- package/skills/manage-sources/SKILL.md +85 -45
- package/skills/manage-uri-policy/SKILL.md +9 -6
- package/skills/sync/SKILL.md +1 -1
- package/dist/src/connectors/LocalDiskConnector.d.ts +0 -171
- package/dist/src/connectors/LocalDiskConnector.d.ts.map +0 -1
- package/dist/src/connectors/LocalDiskConnector.js +0 -1233
- package/dist/src/connectors/LocalDiskConnector.js.map +0 -1
- package/skills/manage-files/scripts/copy.sh +0 -7
- package/skills/manage-files/scripts/create.sh +0 -7
- package/skills/manage-files/scripts/mkdir.sh +0 -7
- package/skills/manage-files/scripts/modify.sh +0 -7
- package/skills/manage-files/scripts/upload.sh +0 -16
- package/skills/manage-files/scripts/write.sh +0 -29
- package/skills/manage-sources/scripts/reembed.sh +0 -23
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* REPLACES the whole persisted floor class with what its `trustedBaselines`
|
|
25
25
|
* argument names — it does not merge. Reconciling a `data` source against the
|
|
26
26
|
* connector floors alone (the `local` connector declares none) would therefore
|
|
27
|
-
* DELETE the
|
|
27
|
+
* DELETE the nine `floor:true` rules agent-core declares, silently (this repair
|
|
28
28
|
* is `void`-fired and its catch only warns) and persistently. The two sources:
|
|
29
29
|
*
|
|
30
30
|
* 1. scheme-keyed MANIFEST `uriPolicies` (`data`/`packages` only — four
|
|
@@ -56,8 +56,18 @@ import type { SourceConfigPort } from '../connectors/types.js';
|
|
|
56
56
|
* the manifest edit reaches new sources only and every existing deployment
|
|
57
57
|
* stays open. A bump also re-runs the non-floor baseline UNION, and
|
|
58
58
|
* `mergeBaselines` does not dedupe: expect every manifest path row to appear
|
|
59
|
-
* twice in the persisted config.
|
|
60
|
-
*
|
|
59
|
+
* twice in the persisted config. A duplicate of a manifest row is harmless, but
|
|
60
|
+
* the last row declaring a bit decides: a bump re-appends every manifest row
|
|
61
|
+
* AFTER the stored subject-scoped grant rows (agent attach rows, conversation
|
|
62
|
+
* widenings) and revokes them. A bump therefore ships WITH an offline step that
|
|
63
|
+
* re-appends those rows after the union (the `source-uri-subject-v1` shape) —
|
|
64
|
+
* never a dedupe here, do not "fix" it in this file.
|
|
65
|
+
*
|
|
66
|
+
* A row whose SUBJECT changes is not a bump: the stored owner/admin rows took
|
|
67
|
+
* `priority: 2` (the caller's role priority, admin or stronger) from the
|
|
68
|
+
* offline `source-uri-subject-v1` upgrade
|
|
69
|
+
* (`brain-core/source-config` v6), which rewrites rows in place instead of
|
|
70
|
+
* appending the manifest rows a second time over hand-made edits.
|
|
61
71
|
*/
|
|
62
72
|
export declare const SOURCE_BASELINE_REPAIR_VERSION = 5;
|
|
63
73
|
export type BaselineRepairResult = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baselineRepair.d.ts","sourceRoot":"","sources":["../../../src/services/baselineRepair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAKH,OAAO,KAAK,EACV,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D
|
|
1
|
+
{"version":3,"file":"baselineRepair.d.ts","sourceRoot":"","sources":["../../../src/services/baselineRepair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAKH,OAAO,KAAK,EACV,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,MAAM,MAAM,oBAAoB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,wBAAs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E,CAAC;CACzI,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA2FjC"}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* REPLACES the whole persisted floor class with what its `trustedBaselines`
|
|
25
25
|
* argument names — it does not merge. Reconciling a `data` source against the
|
|
26
26
|
* connector floors alone (the `local` connector declares none) would therefore
|
|
27
|
-
* DELETE the
|
|
27
|
+
* DELETE the nine `floor:true` rules agent-core declares, silently (this repair
|
|
28
28
|
* is `void`-fired and its catch only warns) and persistently. The two sources:
|
|
29
29
|
*
|
|
30
30
|
* 1. scheme-keyed MANIFEST `uriPolicies` (`data`/`packages` only — four
|
|
@@ -55,8 +55,18 @@ import { applyTrustedSourceBaselines, } from '@neuralis/package-system/policies'
|
|
|
55
55
|
* the manifest edit reaches new sources only and every existing deployment
|
|
56
56
|
* stays open. A bump also re-runs the non-floor baseline UNION, and
|
|
57
57
|
* `mergeBaselines` does not dedupe: expect every manifest path row to appear
|
|
58
|
-
* twice in the persisted config.
|
|
59
|
-
*
|
|
58
|
+
* twice in the persisted config. A duplicate of a manifest row is harmless, but
|
|
59
|
+
* the last row declaring a bit decides: a bump re-appends every manifest row
|
|
60
|
+
* AFTER the stored subject-scoped grant rows (agent attach rows, conversation
|
|
61
|
+
* widenings) and revokes them. A bump therefore ships WITH an offline step that
|
|
62
|
+
* re-appends those rows after the union (the `source-uri-subject-v1` shape) —
|
|
63
|
+
* never a dedupe here, do not "fix" it in this file.
|
|
64
|
+
*
|
|
65
|
+
* A row whose SUBJECT changes is not a bump: the stored owner/admin rows took
|
|
66
|
+
* `priority: 2` (the caller's role priority, admin or stronger) from the
|
|
67
|
+
* offline `source-uri-subject-v1` upgrade
|
|
68
|
+
* (`brain-core/source-config` v6), which rewrites rows in place instead of
|
|
69
|
+
* appending the manifest rows a second time over hand-made edits.
|
|
60
70
|
*/
|
|
61
71
|
export const SOURCE_BASELINE_REPAIR_VERSION = 5;
|
|
62
72
|
export async function repairSourceBaselines(deps) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baselineRepair.js","sourceRoot":"","sources":["../../../src/services/baselineRepair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAQ3C
|
|
1
|
+
{"version":3,"file":"baselineRepair.js","sourceRoot":"","sources":["../../../src/services/baselineRepair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAQ3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC;AAIhD,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,IAiB3C;IACC,MAAM,GAAG,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACzC,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,MAAM,CAAC;IACX,IAAI,CAAC;QACH,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;IAC9C,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,iCAAiC,EAAE;YACrD,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;SACxD,CAAC,CAAC;QACH,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACrC,CAAC;IAED,KAAK,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,MAAM,EAAE,CAAC;QACvC,kEAAkE;QAClE,6EAA6E;QAC7E,I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AE,MAAM,CAAC,MAAM;oBACrB,SAAS,EAAE,KAAK,CAAC,SAAS;oBAC1B,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI;oBACxB,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI;iBAC7B,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,qCAAqC,EAAE;gBACzD,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,SAAS,EAAE,KAAK,CAAC,SAAS;gBAC1B,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;aACxD,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QACjB,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,kCAAkC,EAAE;YACtD,OAAO,EAAE,gCAAgC;YACzC,QAAQ;YACR,OAAO;YACP,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IACD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AACxC,CAAC;AAED,KAAK,UAAU,KAAK,CAClB,IAAyC,EACzC,KAAgD,EAChD,MAA0E,EAC1E,WAAoC;IAEpC,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,EAAE;QACrC,GAAG,MAAM;QACT,WAAW;QACX,sBAAsB,EAAE,gCAAgC;QACxD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* - `matchDeclaredSource` — the UNSPOOFABLE attribution match used by
|
|
11
11
|
* `listSourceRuntimeSummaries` to resolve `origin_package` + the description
|
|
12
|
-
* fallback. Matches on slug + connection kind AND, for
|
|
12
|
+
* fallback. Matches on slug + connection kind AND, for rooted kinds, the
|
|
13
13
|
* RESOLVED root (a user mount named `app` whose root is not the platform app
|
|
14
14
|
* zone will NOT match the admin app-zone declaration → it stays "Mounted").
|
|
15
15
|
* - `repairDeclaredSources` — the version-stamped description backfill
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* declaration reaching here is trust-authorized.
|
|
31
31
|
*/
|
|
32
32
|
export { createMissingDeclaredSources, type DeclaredSourceFailure } from '../usecases/createDeclaredSources.js';
|
|
33
|
-
import type { ConnectorHierarchicalPermissions, ConnectorPathPermission, MachineWrittenEntry, PackageSourceDeclaration, SourceLiveReason, SourceScope } from '@neuralis/package-system/contracts';
|
|
33
|
+
import type { ConnectorHierarchicalPermissions, ConnectorPathPermission, MachineWrittenEntry, PackageSourceDeclaration, PackageSourceRoot, SourceLiveReason, SourceScope } from '@neuralis/package-system/contracts';
|
|
34
34
|
import type { RuntimeStackInfo } from '@neuralis/package-system/paths';
|
|
35
35
|
import type { SourceConfig } from '../domain/sourceConfig.js';
|
|
36
36
|
import { type SourceEnabledDeps } from '../domain/access/sourceEnabled.js';
|
|
@@ -53,18 +53,19 @@ export declare function isOwnDataZoneDeclaration(originPackage: string, decl: Pa
|
|
|
53
53
|
type MatchCtx = {
|
|
54
54
|
projectRoot: string;
|
|
55
55
|
appRoot: string | null;
|
|
56
|
+
isDocker: boolean;
|
|
56
57
|
};
|
|
57
58
|
/**
|
|
58
59
|
* Contract-backed source attribution. Returns the declaring package id + the
|
|
59
60
|
* declaration when `config` is an instance of a declared source, else null.
|
|
60
|
-
* Slug + kind must match; for
|
|
61
|
+
* Slug + kind must match; for a declaration with a root the RESOLVED
|
|
61
62
|
* roots must match too — this is the anti-spoof guard (a user mount that merely
|
|
62
63
|
* shares a declared slug but points elsewhere is NOT attributed).
|
|
63
64
|
*
|
|
64
65
|
* PRECONDITION (architect MINOR-1): `declsByPkg` contains ONLY trusted-or-above
|
|
65
66
|
* packages' declarations — `aggregateTrustedSourceDeclarations` (agent-core)
|
|
66
67
|
* filters the map at bootstrap. Without that filter an untrusted package could
|
|
67
|
-
* replicate a
|
|
68
|
+
* replicate a native `(slug, root)` or a registered sandbox kind and be
|
|
68
69
|
* attributed here; the match key alone is not a trust boundary.
|
|
69
70
|
*/
|
|
70
71
|
export declare function matchDeclaredSource(config: Pick<SourceConfig, 'source' | 'connection'>, declsByPkg: Record<string, PackageSourceDeclaration[]>, ctx: MatchCtx): {
|
|
@@ -75,7 +76,7 @@ export declare function matchDeclaredSource(config: Pick<SourceConfig, 'source'
|
|
|
75
76
|
* Build a persisted `SourceConfig` from a `seed:'auto'` project-scope
|
|
76
77
|
* declaration for create-missing (existing projects predating the declaration).
|
|
77
78
|
* Returns null for shapes create-missing does not handle (user/agent scope,
|
|
78
|
-
* a
|
|
79
|
+
* a folder without a project-relative root) — those are skipped + logged.
|
|
79
80
|
*/
|
|
80
81
|
export declare function buildDeclaredSourceConfig(decl: PackageSourceDeclaration, ctx: {
|
|
81
82
|
projectId: string;
|
|
@@ -150,7 +151,7 @@ export declare function autoProjectDeclarations(declsByPkg: Record<string, Packa
|
|
|
150
151
|
* One filesystem-coverable source root for the shell uri-policy gate (S1 —
|
|
151
152
|
* `briny-fencing-pelican`). `containerRoot` is resolved with the SAME
|
|
152
153
|
* canonical `resolveLocalRoot` the connector wiring uses (relative join /
|
|
153
|
-
* absolute
|
|
154
|
+
* the plane's half of an absolute pair), so the gate's
|
|
154
155
|
* container-path → source mapping never diverges from what the connector
|
|
155
156
|
* actually mounts. Server-internal: the list is NOT access-filtered — the
|
|
156
157
|
* consumer evaluates `permissions` against the caller's own session context
|
|
@@ -176,43 +177,29 @@ export type ShellSourceRoot = {
|
|
|
176
177
|
* infer it from the slug string, because a plain local source may
|
|
177
178
|
* legitimately be named `host-notes`.
|
|
178
179
|
*/
|
|
179
|
-
plane?: '
|
|
180
|
-
/** Absolute HOST path. Set only for `plane: '
|
|
180
|
+
plane?: 'local' | 'device';
|
|
181
|
+
/** Absolute HOST path. Set only for `plane: 'device'`. */
|
|
181
182
|
hostRoot?: string;
|
|
182
183
|
/**
|
|
183
|
-
* The paired device a `plane: '
|
|
184
|
+
* The paired device a `plane: 'device'` source lives on — its
|
|
184
185
|
* `connection.config.device`, read as an opaque string (brain-core knows no
|
|
185
|
-
* device semantics). The consumer partitions the
|
|
186
|
+
* device semantics). The consumer partitions the device plane by it.
|
|
186
187
|
*/
|
|
187
188
|
device?: string;
|
|
188
189
|
};
|
|
189
190
|
/**
|
|
190
|
-
* R2 — one candidate row for the host's runtime
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* `
|
|
194
|
-
*
|
|
191
|
+
* R2 — one candidate row for the host's runtime package activation: the
|
|
192
|
+
* kernel's `PackageSourceRoot` (ONE shape, `contracts/services.ts`). The host
|
|
193
|
+
* (`projectPackages`) enumerates these and constructs a package scanner for
|
|
194
|
+
* every `packageFolders` entry of an enabled source whose root it can open in
|
|
195
|
+
* process. ALL project-associated sources are returned (no pre-filter) so the
|
|
196
|
+
* host can log each skip; deny-by-default lives in the host filter.
|
|
195
197
|
*/
|
|
196
|
-
export type PackageSourceRoot
|
|
197
|
-
/** Source slug. */
|
|
198
|
-
slug: string;
|
|
199
|
-
/** Canonical URI root — `${slug}://`. */
|
|
200
|
-
uriRoot: string;
|
|
201
|
-
/** Absolute container-side root dir, or '' for non-local kinds. */
|
|
202
|
-
containerRoot: string;
|
|
203
|
-
/** Source scope (the host loads only `kind: 'project'` in R2; user/agent → R2b). */
|
|
204
|
-
scope: SourceScope;
|
|
205
|
-
/** The opt-in flag (deny-by-default false). */
|
|
206
|
-
recognizesPackages: boolean;
|
|
207
|
-
/** Effective enabled state (`resolveEnabledState !== false`). */
|
|
208
|
-
enabled: boolean;
|
|
209
|
-
/** The persisted `connection.kind`. */
|
|
210
|
-
kind: string;
|
|
211
|
-
};
|
|
198
|
+
export type { PackageSourceRoot };
|
|
212
199
|
/**
|
|
213
200
|
* One access-filtered source row for the agent-core `<runtime_stack>` source
|
|
214
201
|
* table. The READ sibling of `ShellSourceRoot`: scope/feature-filtered to the
|
|
215
|
-
* caller, all connector kinds (not just
|
|
202
|
+
* caller, all connector kinds (not just folders), and stats-bearing — but read
|
|
216
203
|
* PURELY from persisted source-config JSON (`description` + `sync.stats`), with
|
|
217
204
|
* NO live walk / connector.count() / vector count. Loaded once per stream, so
|
|
218
205
|
* it sits in the cacheable system-prompt prefix. SLIM by design — the
|
|
@@ -221,10 +208,23 @@ export type PackageSourceRoot = {
|
|
|
221
208
|
export type SourceRuntimeSummary = {
|
|
222
209
|
/** `${slug}://`. */
|
|
223
210
|
uriRoot: string;
|
|
224
|
-
/** Coarse connector family — `
|
|
211
|
+
/** Coarse connector family — `host` | `brain` | `webtop` | the kind. */
|
|
225
212
|
connector: string;
|
|
226
|
-
/** The persisted `connection.kind` (e.g. `
|
|
213
|
+
/** The persisted `connection.kind` (e.g. `host`, `brain`, `webtop`). */
|
|
227
214
|
kind: string;
|
|
215
|
+
/**
|
|
216
|
+
* A device source's machine: the owner-given name and the platform it claimed
|
|
217
|
+
* (stable), and its live confinement verdict (volatile — `<workspace_live>`).
|
|
218
|
+
* `retired` when the device was revoked, must pair again, or is gone (then its
|
|
219
|
+
* id stands for the name and the platform reads `unknown`). Absent for a
|
|
220
|
+
* source on this server.
|
|
221
|
+
*/
|
|
222
|
+
device?: {
|
|
223
|
+
name: string;
|
|
224
|
+
os: string;
|
|
225
|
+
confinement?: 'sandboxed' | 'unconfined' | 'unproven';
|
|
226
|
+
retired?: true;
|
|
227
|
+
};
|
|
228
228
|
/** Human description from the source config, or null. */
|
|
229
229
|
description: string | null;
|
|
230
230
|
/** Host-side absolute root, or null when not host-resolvable. */
|
|
@@ -299,11 +299,65 @@ export type SourceEnumerationDeps = {
|
|
|
299
299
|
packageSourceDeclarations(): Record<string, PackageSourceDeclaration[]>;
|
|
300
300
|
/** The platform app root (resolves `${appRoot}` declarations), or null before boot. */
|
|
301
301
|
appRoot(): string | null;
|
|
302
|
+
/** The runtime stack's plane: which half of a source's root pair this process opens. */
|
|
303
|
+
isDocker(): boolean;
|
|
304
|
+
/**
|
|
305
|
+
* The device folder as THIS process may open it to load packages — agent-core's
|
|
306
|
+
* `devices.localFolderRoot` (a loopback device, a ceiling-checked directory):
|
|
307
|
+
* `{ root }`, or `{ skipped }` with a fixed reason code. Absent ⇒ no device
|
|
308
|
+
* folder is ever opened in process.
|
|
309
|
+
*/
|
|
310
|
+
localDeviceFolder?(input: {
|
|
311
|
+
device: string;
|
|
312
|
+
root: string;
|
|
313
|
+
project?: {
|
|
314
|
+
projectId: string;
|
|
315
|
+
};
|
|
316
|
+
}): Promise<{
|
|
317
|
+
root: string;
|
|
318
|
+
} | {
|
|
319
|
+
skipped: string;
|
|
320
|
+
}>;
|
|
321
|
+
/**
|
|
322
|
+
* A device folder's packages read OVER ITS LINK — agent-core's
|
|
323
|
+
* `devices.devicePackageFolder`: the reader factory of its package folders, or
|
|
324
|
+
* `{ skipped }` with a fixed code. Absent ⇒ no device folder of another machine
|
|
325
|
+
* (or of any machine, inside a container) loads packages. A PROJECT-scope
|
|
326
|
+
* folder carries its `project`, so agent-core re-asks at every read whether the
|
|
327
|
+
* device's owner still holds `device.own` there.
|
|
328
|
+
*/
|
|
329
|
+
devicePackageFolder?(input: {
|
|
330
|
+
source: string;
|
|
331
|
+
device: string;
|
|
332
|
+
root: string;
|
|
333
|
+
project?: {
|
|
334
|
+
projectId: string;
|
|
335
|
+
};
|
|
336
|
+
}): NonNullable<PackageSourceRoot['device']> | {
|
|
337
|
+
skipped: string;
|
|
338
|
+
};
|
|
339
|
+
/** agent-core's `devices.describe`: a device's name, platform and live confinement, `retired` for a revoked one (`null` ⇒ not held, e.g. purged). */
|
|
340
|
+
describeDevice?(deviceId: string): Promise<{
|
|
341
|
+
name: string;
|
|
342
|
+
os: string;
|
|
343
|
+
confinement?: 'sandboxed' | 'unconfined' | 'unproven';
|
|
344
|
+
retired?: true;
|
|
345
|
+
} | null>;
|
|
346
|
+
/**
|
|
347
|
+
* A source with package folders that loads none, and why (a fixed code, never
|
|
348
|
+
* a path) — the caller logs each (project, source, reason) once.
|
|
349
|
+
*/
|
|
350
|
+
packageFolderSkipped?(projectId: string, slug: string, reason: string): void;
|
|
302
351
|
};
|
|
303
352
|
export declare function listShellSourceRoots(deps: SourceEnumerationDeps, projectId: string): Promise<ShellSourceRoot[]>;
|
|
304
353
|
export declare function listPackageSourceRoots(deps: SourceEnumerationDeps, projectId: string): Promise<PackageSourceRoot[]>;
|
|
305
|
-
/**
|
|
306
|
-
|
|
354
|
+
/**
|
|
355
|
+
* THE package-source projection of one persisted config (runtime listing and
|
|
356
|
+
* offline upgrade alike). `containerRoot` is the in-process folder's resolved
|
|
357
|
+
* root; a device folder's is `''` here (only the async runtime listing may ask
|
|
358
|
+
* agent-core whether this process can open it).
|
|
359
|
+
*/
|
|
360
|
+
export declare function toPackageSourceRoot(config: SourceConfig, projectRoot: string, isDocker: boolean): PackageSourceRoot;
|
|
307
361
|
export declare function listSourceRuntimeSummaries(deps: SourceEnumerationDeps, projectId: string, opts: SourceRuntimeSummaryOptions): Promise<SourceRuntimeSummary[]>;
|
|
308
362
|
export type SourceConfigPatch = {
|
|
309
363
|
source: string;
|
|
@@ -314,15 +368,44 @@ export type SourceConfigPatch = {
|
|
|
314
368
|
description?: string;
|
|
315
369
|
};
|
|
316
370
|
/**
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
|
|
371
|
+
* Who asks for a cross-package source-config edit: the scope the config is read
|
|
372
|
+
* under plus the caller's features (the device-owner gate reads them; absent
|
|
373
|
+
* features answer like none — deny by default).
|
|
374
|
+
*/
|
|
375
|
+
export type SourceConfigCaller = SourceConfigScope & {
|
|
376
|
+
agentId?: string;
|
|
377
|
+
grantedFeatures: readonly string[];
|
|
378
|
+
};
|
|
379
|
+
/** A refused edit: the route PATCH's status, text and (for a floor) code. */
|
|
380
|
+
export type SourceEditRefusal = {
|
|
381
|
+
status: 400 | 403 | 409;
|
|
382
|
+
error: string;
|
|
383
|
+
code?: string;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* The edit gates the route's PATCH runs, bound per package state: the refusal,
|
|
387
|
+
* or null. Another member's user/agent source needs `files.writeOthers`; an
|
|
388
|
+
* immutable `floor:true` row is never dropped or altered (409); a device-plane
|
|
389
|
+
* source is edited only by its device's owner holding `device.own`; a
|
|
390
|
+
* protected-zone root needs `sources.privileged`; a source the native folder
|
|
391
|
+
* fence refuses (it predates the fence) may be narrowed, never widened.
|
|
321
392
|
*/
|
|
322
|
-
export
|
|
393
|
+
export type SourceEditFence = (caller: SourceConfigCaller, existing: SourceConfig, next: SourceConfig) => Promise<SourceEditRefusal | null>;
|
|
394
|
+
/** A refused edit answers the route PATCH's status (403, 409 for a floor), an unknown or invalid one 400. */
|
|
395
|
+
export type SourceConfigWriteResult = {
|
|
323
396
|
ok: true;
|
|
324
397
|
} | {
|
|
325
398
|
ok: false;
|
|
399
|
+
status: 400 | 403 | 409;
|
|
326
400
|
error: string;
|
|
327
|
-
|
|
401
|
+
code?: string;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* The ONE sanctioned cross-package source-config write (`upsertSourceConfig`
|
|
405
|
+
* on the package API): re-read, merge permissions + sync + description,
|
|
406
|
+
* fence, validate, persist. Admin and other host callers must NOT write source
|
|
407
|
+
* JSON directly — this keeps the connector registry and on-disk configs in
|
|
408
|
+
* sync, and the native fence on every writer.
|
|
409
|
+
*/
|
|
410
|
+
export declare function upsertSourceConfig(sourceConfigs: SourceConfigPort, caller: SourceConfigCaller, patch: SourceConfigPatch, logger: RepairLogger, refusesEdit: SourceEditFence): Promise<SourceConfigWriteResult>;
|
|
328
411
|
//# sourceMappingURL=declaredSources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaredSources.d.ts","sourceRoot":"","sources":["../../../src/services/declaredSources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAIH,OAAO,EAAE,4BAA4B,EAAE,KAAK,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAChH,OAAO,KAAK,EACV,gCAAgC,EAChC,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,gBAAgB,EAChB,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGvE,OAAO,KAAK,EAA2B,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGvF,OAAO,EAA8B,KAAK,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACvG,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAsB,MAAM,wBAAwB,CAAC;AACtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAE7B;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAOhD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAE9H;AAED,KAAK,QAAQ,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"declaredSources.d.ts","sourceRoot":"","sources":["../../../src/services/declaredSources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAIH,OAAO,EAAE,4BAA4B,EAAE,KAAK,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAChH,OAAO,KAAK,EACV,gCAAgC,EAChC,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACj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