querysub 0.403.0 → 0.405.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/.cursorrules +2 -0
- package/bin/audit-imports.js +4 -0
- package/bin/join.js +1 -1
- package/package.json +7 -4
- package/spec.txt +77 -0
- package/src/-a-archives/archiveCache.ts +9 -4
- package/src/-a-archives/archivesBackBlaze.ts +1039 -1039
- package/src/-a-auth/certs.ts +0 -12
- package/src/-c-identity/IdentityController.ts +12 -3
- package/src/-f-node-discovery/NodeDiscovery.ts +32 -26
- package/src/-g-core-values/NodeCapabilities.ts +12 -2
- package/src/0-path-value-core/AuthorityLookup.ts +239 -0
- package/src/0-path-value-core/LockWatcher2.ts +150 -0
- package/src/0-path-value-core/PathRouter.ts +543 -0
- package/src/0-path-value-core/PathRouterRouteOverride.ts +72 -0
- package/src/0-path-value-core/PathRouterServerAuthoritySpec.tsx +73 -0
- package/src/0-path-value-core/PathValueCommitter.ts +222 -488
- package/src/0-path-value-core/PathValueController.ts +277 -239
- package/src/0-path-value-core/PathWatcher.ts +534 -0
- package/src/0-path-value-core/ShardPrefixes.ts +31 -0
- package/src/0-path-value-core/ValidStateComputer.ts +303 -0
- package/src/0-path-value-core/archiveLocks/ArchiveLocks.ts +1 -1
- package/src/0-path-value-core/archiveLocks/ArchiveLocks2.ts +80 -44
- package/src/0-path-value-core/archiveLocks/archiveSnapshots.ts +13 -16
- package/src/0-path-value-core/auditLogs.ts +2 -0
- package/src/0-path-value-core/hackedPackedPathParentFiltering.ts +97 -0
- package/src/0-path-value-core/pathValueArchives.ts +491 -492
- package/src/0-path-value-core/pathValueCore.ts +195 -1496
- package/src/0-path-value-core/startupAuthority.ts +74 -0
- package/src/1-path-client/RemoteWatcher.ts +90 -82
- package/src/1-path-client/pathValueClientWatcher.ts +808 -815
- package/src/2-proxy/PathValueProxyWatcher.ts +10 -8
- package/src/2-proxy/archiveMoveHarness.ts +182 -214
- package/src/2-proxy/garbageCollection.ts +9 -8
- package/src/2-proxy/schema2.ts +21 -1
- package/src/3-path-functions/PathFunctionHelpers.ts +206 -180
- package/src/3-path-functions/PathFunctionRunner.ts +943 -766
- package/src/3-path-functions/PathFunctionRunnerMain.ts +5 -3
- package/src/3-path-functions/pathFunctionLoader.ts +2 -2
- package/src/3-path-functions/syncSchema.ts +596 -521
- package/src/4-deploy/deployFunctions.ts +19 -4
- package/src/4-deploy/deployGetFunctionsInner.ts +8 -2
- package/src/4-deploy/deployMain.ts +51 -68
- package/src/4-deploy/edgeClientWatcher.tsx +6 -1
- package/src/4-deploy/edgeNodes.ts +2 -2
- package/src/4-dom/qreact.tsx +2 -4
- package/src/4-dom/qreactTest.tsx +7 -13
- package/src/4-querysub/Querysub.ts +21 -8
- package/src/4-querysub/QuerysubController.ts +45 -29
- package/src/4-querysub/permissions.ts +2 -2
- package/src/4-querysub/querysubPrediction.ts +80 -70
- package/src/4-querysub/schemaHelpers.ts +5 -1
- package/src/5-diagnostics/GenericFormat.tsx +14 -9
- package/src/archiveapps/archiveGCEntry.tsx +9 -2
- package/src/archiveapps/archiveJoinEntry.ts +96 -84
- package/src/bits.ts +19 -0
- package/src/config.ts +21 -3
- package/src/config2.ts +23 -48
- package/src/deployManager/components/DeployPage.tsx +7 -3
- package/src/deployManager/machineSchema.ts +4 -1
- package/src/diagnostics/ActionsHistory.ts +3 -8
- package/src/diagnostics/AuditLogPage.tsx +2 -3
- package/src/diagnostics/FunctionCallInfo.tsx +141 -0
- package/src/diagnostics/FunctionCallInfoState.ts +162 -0
- package/src/diagnostics/MachineThreadInfo.tsx +1 -1
- package/src/diagnostics/NodeViewer.tsx +37 -48
- package/src/diagnostics/SyncTestPage.tsx +241 -0
- package/src/diagnostics/auditImportViolations.ts +185 -0
- package/src/diagnostics/listenOnDebugger.ts +3 -3
- package/src/diagnostics/logs/IndexedLogs/BufferUnitSet.ts +10 -4
- package/src/diagnostics/logs/IndexedLogs/IndexedLogs.ts +2 -2
- package/src/diagnostics/logs/IndexedLogs/LogViewer3.tsx +24 -22
- package/src/diagnostics/logs/IndexedLogs/moveIndexLogsToPublic.ts +1 -1
- package/src/diagnostics/logs/diskLogGlobalContext.ts +1 -0
- package/src/diagnostics/logs/errorNotifications2/logWatcher.ts +1 -3
- package/src/diagnostics/logs/lifeCycleAnalysis/LifeCycleEntryEditor.tsx +34 -16
- package/src/diagnostics/logs/lifeCycleAnalysis/LifeCycleEntryReadMode.tsx +4 -6
- package/src/diagnostics/logs/lifeCycleAnalysis/LifeCycleInstanceTableView.tsx +36 -5
- package/src/diagnostics/logs/lifeCycleAnalysis/LifeCyclePage.tsx +19 -5
- package/src/diagnostics/logs/lifeCycleAnalysis/LifeCycleRenderer.tsx +15 -7
- package/src/diagnostics/logs/lifeCycleAnalysis/NestedLifeCycleInfo.tsx +28 -106
- package/src/diagnostics/logs/lifeCycleAnalysis/lifeCycleMatching.ts +2 -0
- package/src/diagnostics/logs/lifeCycleAnalysis/lifeCycleMisc.ts +0 -0
- package/src/diagnostics/logs/lifeCycleAnalysis/lifeCycleSearch.tsx +18 -7
- package/src/diagnostics/logs/lifeCycleAnalysis/lifeCycles.tsx +3 -0
- package/src/diagnostics/managementPages.tsx +10 -3
- package/src/diagnostics/misc-pages/ArchiveViewer.tsx +20 -26
- package/src/diagnostics/misc-pages/ArchiveViewerTree.tsx +6 -4
- package/src/diagnostics/misc-pages/ComponentSyncStats.tsx +2 -2
- package/src/diagnostics/misc-pages/LocalWatchViewer.tsx +7 -9
- package/src/diagnostics/misc-pages/SnapshotViewer.tsx +23 -12
- package/src/diagnostics/misc-pages/archiveViewerShared.tsx +1 -1
- package/src/diagnostics/pathAuditer.ts +486 -0
- package/src/diagnostics/pathAuditerCallback.ts +20 -0
- package/src/diagnostics/watchdog.ts +8 -1
- package/src/library-components/URLParam.ts +1 -1
- package/src/misc/hash.ts +1 -0
- package/src/path.ts +21 -7
- package/src/server.ts +54 -47
- package/src/user-implementation/loginEmail.tsx +1 -1
- package/tempnotes.txt +65 -0
- package/test.ts +298 -97
- package/src/0-path-value-core/NodePathAuthorities.ts +0 -1057
- package/src/0-path-value-core/PathController.ts +0 -1
- package/src/5-diagnostics/diskValueAudit.ts +0 -218
- package/src/5-diagnostics/memoryValueAudit.ts +0 -438
- package/src/archiveapps/archiveMergeEntry.tsx +0 -48
- package/src/archiveapps/lockTest.ts +0 -127
|
@@ -16,16 +16,16 @@ import { PathFunctionRunner } from "./PathFunctionRunner";
|
|
|
16
16
|
import { SocketFunction } from "socket-function/SocketFunction";
|
|
17
17
|
import { getThreadKeyCert } from "../-a-auth/certs";
|
|
18
18
|
import { ClientWatcher } from "../1-path-client/pathValueClientWatcher";
|
|
19
|
-
import { PermissionsCheck } from "../4-querysub/permissions";
|
|
20
19
|
import { timeInMinute } from "socket-function/src/misc";
|
|
21
20
|
import { getDomain, isLocal, isPublic } from "../config";
|
|
22
21
|
import { green, magenta } from "socket-function/src/formatting/logColors";
|
|
23
22
|
import { parseFilterSelector } from "../misc/filterable";
|
|
24
23
|
import path from "path";
|
|
25
|
-
import { Querysub } from "../4-querysub/QuerysubController";
|
|
26
24
|
import { IndexedLogs } from "../diagnostics/logs/IndexedLogs/IndexedLogs";
|
|
27
25
|
|
|
28
26
|
async function main() {
|
|
27
|
+
const { PermissionsCheck } = await import("../4-querysub/permissions");
|
|
28
|
+
const { Querysub } = await import("../4-querysub/QuerysubController");
|
|
29
29
|
Error.stackTraceLimit = 20;
|
|
30
30
|
|
|
31
31
|
//ActionsHistory.LOG_ACTION_HISTORY = "runner";
|
|
@@ -35,6 +35,8 @@ async function main() {
|
|
|
35
35
|
// ClientWatcher.DEBUG_TRIGGERS = "heavy";
|
|
36
36
|
// authorityStorage.DEBUG_UNWATCH = true;
|
|
37
37
|
|
|
38
|
+
Querysub.SEND_FULL_HISTORY_ON_INITIAL_SYNC = true;
|
|
39
|
+
|
|
38
40
|
PathFunctionRunner.DEBUG_CALLS = true;
|
|
39
41
|
// debugCoreMode();
|
|
40
42
|
|
|
@@ -63,7 +65,7 @@ async function main() {
|
|
|
63
65
|
filterSelector,
|
|
64
66
|
});
|
|
65
67
|
|
|
66
|
-
if (
|
|
68
|
+
if (!isPublic()) {
|
|
67
69
|
// We have to import deploy, otherwise local moduleIds won't be known about
|
|
68
70
|
let deployPath = path.resolve("./deploy.ts");
|
|
69
71
|
await import(deployPath);
|
|
@@ -51,7 +51,7 @@ export function watchModuleHotreloads(watcher: SyncWatcher) {
|
|
|
51
51
|
|
|
52
52
|
const getLocalPathRemapping = lazy((): { [gitUrl: string]: string } => {
|
|
53
53
|
let localPaths: string[] = [];
|
|
54
|
-
if (
|
|
54
|
+
if (!isPublic()) {
|
|
55
55
|
localPaths.push(process.cwd().replaceAll(/\\/g, "/") + "/");
|
|
56
56
|
}
|
|
57
57
|
if (!localPaths.length) return {};
|
|
@@ -133,7 +133,7 @@ let moduleResolver = async (spec: {
|
|
|
133
133
|
gitURL: string;
|
|
134
134
|
gitRef: string;
|
|
135
135
|
}) => {
|
|
136
|
-
if (
|
|
136
|
+
if (!isPublic()) {
|
|
137
137
|
// Probably a bug. The local path should have matched.
|
|
138
138
|
devDebugbreak();
|
|
139
139
|
}
|