@listeningkit/log 0.2.0 → 0.2.2-nightly.202611201615.8e33ea6
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/.opencode/plugins/logHooks/index.ts +34 -0
- package/AGENTS.md +1 -1
- package/README.md +129 -28
- package/bin/log.ts +5 -0
- package/docs/browserIdentity.md +41 -0
- package/docs/browserSetup.md +61 -4
- package/docs/browsers.md +284 -54
- package/docs/contributing.md +25 -0
- package/docs/decisions/genuiEverywhere/research.md +91 -0
- package/docs/decisions/mcpReload/issue.md +1 -1
- package/docs/decisions/voiceOptions/claims.json +13 -0
- package/docs/decisions/voiceOptions/decisions.json +58 -0
- package/docs/decisions/voiceOptions/issue.md +41 -0
- package/docs/decisions/voiceOptions/research.md +67 -0
- package/docs/decisions/voiceOptions/results.md +71 -0
- package/docs/decisions/voiceOptions/runMatrix.ts +95 -0
- package/docs/decisions/voiceOptions/subqResults.json +1978 -0
- package/docs/diagrams/browsers.mmd +4 -2
- package/docs/diagrams/commands.mmd +53 -0
- package/docs/diagrams/hooks.mmd +3 -1
- package/docs/diagrams/pageStates.mmd +3 -0
- package/docs/diagrams/platforms.mmd +12 -5
- package/docs/diagrams/surface.mmd +9 -7
- package/docs/errorCatalog.md +14 -2
- package/docs/guides/accountBrowser.md +7 -4
- package/docs/guides/discord.md +5 -5
- package/docs/guides/facebookFlows.md +5 -0
- package/docs/guides/inbox.md +9 -1
- package/docs/guides/knowledgeAndSearch.md +21 -3
- package/docs/guides/linkedin.md +4 -3
- package/docs/guides/logMcpInstructions.md +17 -6
- package/docs/guides/newPlatform.md +8 -0
- package/docs/guides/runsAndEvidence.md +14 -5
- package/docs/guides/sessions.md +2 -2
- package/docs/guides/tiktok.md +39 -0
- package/docs/guides/ui.md +6 -6
- package/docs/guides/voiceGate.md +1 -0
- package/docs/guides/xAccount.md +2 -1
- package/docs/guides/xInbox.md +1 -1
- package/docs/guides/xSending.md +7 -5
- package/docs/harnesses/README.md +4 -3
- package/docs/harnesses/hermes.md +9 -6
- package/docs/httpClients/README.md +53 -0
- package/docs/httpClients/evidence.md +123 -0
- package/docs/httpClients/matrix/claims.json +50 -0
- package/docs/httpClients/matrix/criteria.json +178 -0
- package/docs/httpClients/matrix/options.json +27 -0
- package/docs/httpClients/matrix/runMatrix.mjs +137 -0
- package/docs/httpClients/matrix/subqResults.json +2030 -0
- package/docs/httpClients/matrix/summary.json +242 -0
- package/docs/install.md +11 -3
- package/docs/liveInbox.md +19 -0
- package/docs/mcp.md +109 -22
- package/docs/platforms/discord/background/discordApiApexExperiments.md +2 -2
- package/docs/platforms/discord/background/discordApiApplicationsPublic.md +4 -4
- package/docs/platforms/discord/background/discordApiAuthConditionalStart.md +3 -3
- package/docs/platforms/discord/background/discordApiAuthLocationMetadata.md +3 -3
- package/docs/platforms/discord/background/discordApiAuthLogin.md +3 -3
- package/docs/platforms/discord/background/discordApiCollectiblesCollectionSequencedOffers.md +3 -3
- package/docs/platforms/discord/background/discordApiCollectiblesShop.md +2 -2
- package/docs/platforms/discord/background/discordApiContentInventoryUsersMe.md +4 -4
- package/docs/platforms/discord/background/discordApiExperiments.md +3 -3
- package/docs/platforms/discord/background/discordApiGames.md +4 -4
- package/docs/platforms/discord/background/discordApiGamesDetectableExclusions.md +4 -4
- package/docs/platforms/discord/background/discordApiMetrics.md +3 -3
- package/docs/platforms/discord/background/discordApiPartnerSdkStorefrontConfig.md +4 -4
- package/docs/platforms/discord/background/discordApiPromotions.md +4 -4
- package/docs/platforms/discord/background/discordApiQuestsDecision.md +4 -4
- package/docs/platforms/discord/background/discordApiQuestsEarnedDecision.md +4 -4
- package/docs/platforms/discord/background/discordApiQuestsGetDecisions.md +4 -4
- package/docs/platforms/discord/background/discordApiQuestsMe.md +4 -4
- package/docs/platforms/discord/background/discordApiScience.md +4 -4
- package/docs/platforms/discord/background/discordApiStorefrontPromotions.md +2 -2
- package/docs/platforms/discord/background/discordApiTokens.md +3 -3
- package/docs/platforms/discord/background/discordApiUsersBadges.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMe.md +3 -3
- package/docs/platforms/discord/background/discordApiUsersMeAffinitiesGuilds.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeAffinitiesUsers.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeApplicationsEntitlements.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeBillingCheckoutRecovery.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeBillingPaymentSources.md +2 -2
- package/docs/platforms/discord/background/discordApiUsersMeBillingSubscriptions.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeBillingUserOffer.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeCollectiblesMarketing.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeEntitlements.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeGiftIntentDismissals.md +2 -2
- package/docs/platforms/discord/background/discordApiUsersMeMfaWebauthnCredentials.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeReferralsEligibility.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeRemoteAuthLogin.md +5 -5
- package/docs/platforms/discord/background/discordApiUsersMeSavedMessages.md +4 -4
- package/docs/platforms/discord/background/discordApiUsersMeSurvey.md +4 -4
- package/docs/platforms/discord/background/discordAssets.md +2 -2
- package/docs/platforms/discord/background/discordAssetsVersionStableJson.md +4 -4
- package/docs/platforms/discord/background/discordBadHashDelta.md +3 -3
- package/docs/platforms/discord/background/discordCdnCgiChallengePlatformHBJsdOneshot.md +2 -2
- package/docs/platforms/discord/background/discordCdnCgiChallengePlatformHGJsdOneshot.md +2 -2
- package/docs/platforms/discord/background/statusApiScheduledMaintenancesUpcomingJson.md +4 -4
- package/docs/platforms/discord/systems.md +4 -3
- package/docs/platforms/facebook/operations.json +1 -1
- package/docs/platforms/tiktok/README.md +39 -0
- package/docs/platforms/tiktok/flows/tiktokDelete.md +31 -0
- package/docs/platforms/tiktok/flows/tiktokPost.md +36 -0
- package/docs/proposals/conversationCard.md +70 -0
- package/docs/proposals/genuiEverywhere.md +262 -0
- package/docs/proposals/peopleAcrossPlatforms.md +365 -0
- package/docs/proposals/soron.md +174 -0
- package/docs/proposals/turnAware.md +78 -0
- package/docs/proposals/voiceOptions.md +51 -0
- package/docs/reference.md +364 -106
- package/docs/relate/demoGraph.rl +0 -0
- package/docs/relateGraph.md +97 -0
- package/docs/site.json +4 -4
- package/docs/specs/README.md +86 -3
- package/docs/specs/adsPower.md +8 -4
- package/docs/specs/agentHooks.md +21 -3
- package/docs/specs/browserGate.md +35 -1
- package/docs/specs/callTiming.md +7 -1
- package/docs/specs/handRolled.md +37 -0
- package/docs/specs/mcpReload.md +1 -1
- package/docs/specs/mcpServer.md +17 -3
- package/docs/specs/people.md +78 -0
- package/docs/specs/relateGraph.md +67 -0
- package/docs/specs/search.md +27 -1
- package/docs/specs/sessions.md +28 -0
- package/docs/specs/storage.md +13 -3
- package/docs/specs/tiktok.md +35 -0
- package/docs/specs/updates.md +61 -0
- package/docs/specs/voiceGate.md +28 -2
- package/docs/specs/writeBudgets.md +1 -1
- package/docs/specs/xSession.md +2 -2
- package/docs/toolCallsAgainstTheBook.md +137 -0
- package/docs/updates.md +135 -0
- package/docs/useCases/README.md +2 -1
- package/docs/useCases/discord/serverSearch.md +1 -0
- package/docs/useCases/inbox/ignoreServer.md +31 -0
- package/docs/useCases/inbox/quietPush.md +25 -0
- package/docs/useCases/inbox/saidBy.md +11 -0
- package/docs/useCases/inbox/showMe.md +1 -1
- package/docs/useCases/inbox/signIn.md +7 -6
- package/docs/useCases/inbox/warmPeople.md +31 -0
- package/docs/useCases/log/browserMove.md +35 -0
- package/docs/useCases/log/localModels.md +34 -0
- package/docs/useCases/log/toolFromOneOff.md +57 -0
- package/docs/useCases/log/toolHealth.md +34 -0
- package/docs/useCases/log/updateLog.md +37 -0
- package/docs/useCases/tiktok/post.md +48 -0
- package/hermesPlugin/LICENSE +21 -0
- package/hermesPlugin/README.md +80 -0
- package/hermesPlugin/__init__.py +689 -0
- package/hermesPlugin/dashboard/dist/index.js +139 -0
- package/hermesPlugin/dashboard/dist/style.css +64 -0
- package/hermesPlugin/dashboard/manifest.json +14 -0
- package/hermesPlugin/dashboard/plugin_api.py +383 -0
- package/hermesPlugin/desktop/plugin.js +1650 -0
- package/hermesPlugin/docs/banner.jpg +0 -0
- package/hermesPlugin/docs/screenshots/dashboard.png +0 -0
- package/hermesPlugin/docs/screenshots/indexes.jpg +0 -0
- package/hermesPlugin/docs/screenshots/platforms.jpg +0 -0
- package/hermesPlugin/docs/screenshots/xInbox.jpg +0 -0
- package/hermesPlugin/docs/screenshots/yourVoice.jpg +0 -0
- package/hermesPlugin/plugin.yaml +23 -0
- package/hermesPlugin/skills/log-discord-channel-reply/SKILL.md +39 -0
- package/hermesPlugin/skills/log-discord-forum-posts/SKILL.md +41 -0
- package/hermesPlugin/skills/log-discord-group-chat-read/SKILL.md +46 -0
- package/hermesPlugin/skills/log-discord-meme-reply/SKILL.md +43 -0
- package/hermesPlugin/skills/log-discord-server-reply/SKILL.md +61 -0
- package/hermesPlugin/skills/log-discord-server-search/SKILL.md +41 -0
- package/hermesPlugin/skills/log-facebook-groups/SKILL.md +46 -0
- package/hermesPlugin/skills/log-inbox-boss-maxxing/SKILL.md +55 -0
- package/hermesPlugin/skills/log-inbox-governor-reset/SKILL.md +33 -0
- package/hermesPlugin/skills/log-inbox-ignore-server/SKILL.md +31 -0
- package/hermesPlugin/skills/log-inbox-quiet-push/SKILL.md +29 -0
- package/hermesPlugin/skills/log-inbox-rea-looksmaxxing/SKILL.md +45 -0
- package/hermesPlugin/skills/log-inbox-reactions/SKILL.md +34 -0
- package/hermesPlugin/skills/log-inbox-said-by/SKILL.md +23 -0
- package/hermesPlugin/skills/log-inbox-scope-ajob/SKILL.md +75 -0
- package/hermesPlugin/skills/log-inbox-show-me/SKILL.md +39 -0
- package/hermesPlugin/skills/log-inbox-sign-in/SKILL.md +40 -0
- package/hermesPlugin/skills/log-inbox-triage/SKILL.md +54 -0
- package/hermesPlugin/skills/log-inbox-voice-note/SKILL.md +46 -0
- package/hermesPlugin/skills/log-inbox-warm-people/SKILL.md +31 -0
- package/hermesPlugin/skills/log-instagram-dm-reply/SKILL.md +44 -0
- package/hermesPlugin/skills/log-instagram-new-platform/SKILL.md +47 -0
- package/hermesPlugin/skills/log-linkedin-network/SKILL.md +44 -0
- package/hermesPlugin/skills/log-linkedin-posts/SKILL.md +44 -0
- package/hermesPlugin/skills/log-log-browser-move/SKILL.md +37 -0
- package/hermesPlugin/skills/log-log-local-models/SKILL.md +36 -0
- package/hermesPlugin/skills/log-log-tool-from-one-off/SKILL.md +51 -0
- package/hermesPlugin/skills/log-log-tool-health/SKILL.md +36 -0
- package/hermesPlugin/skills/log-log-update-log/SKILL.md +37 -0
- package/hermesPlugin/skills/log-reddit-contributor-maxxing/SKILL.md +37 -0
- package/hermesPlugin/skills/log-slack-dm-reply/SKILL.md +43 -0
- package/hermesPlugin/skills/log-tiktok-post/SKILL.md +44 -0
- package/hermesPlugin/skills/log-twitter-affiliate-marketing/SKILL.md +62 -0
- package/hermesPlugin/skills/log-twitter-collab-maxxing/SKILL.md +50 -0
- package/hermesPlugin/skills/log-twitter-dm-inbox/SKILL.md +63 -0
- package/hermesPlugin/skills/log-twitter-engagement-replies/SKILL.md +58 -0
- package/hermesPlugin/skills/log-twitter-engager-dms/SKILL.md +62 -0
- package/hermesPlugin/skills/log-twitter-follow-ups/SKILL.md +43 -0
- package/hermesPlugin/skills/log-twitter-followers/SKILL.md +41 -0
- package/hermesPlugin/skills/log-twitter-get-the-action/SKILL.md +58 -0
- package/hermesPlugin/skills/log-twitter-manager-maxxing/SKILL.md +94 -0
- package/hermesPlugin/skills/log-twitter-network-maxing/SKILL.md +99 -0
- package/hermesPlugin/skills/log-twitter-niche-map-region/SKILL.md +47 -0
- package/hermesPlugin/skills/log-twitter-notifications/SKILL.md +50 -0
- package/hermesPlugin/skills/log-twitter-recruiting/SKILL.md +89 -0
- package/hermesPlugin/skills/log-twitter-reply-guy-funnel/SKILL.md +88 -0
- package/hermesPlugin/skills/log-twitter-topic-replies/SKILL.md +54 -0
- package/hermesPlugin/skills/log-twitter-who-needs-you/SKILL.md +45 -0
- package/hermesPlugin/skills/log-web-competitor-traffic/SKILL.md +46 -0
- package/package.json +11 -4
- package/python/browser/adsPowerBrowser.py +2 -1
- package/python/browser/browserDriver.py +87 -5
- package/python/browser/browserViewer.py +455 -54
- package/python/browser/browserViewerTest.py +406 -4
- package/python/browser/browserWindow.py +146 -0
- package/python/browser/camoufoxSource.py +131 -0
- package/python/browser/cdpState.py +52 -0
- package/python/browser/harRecorder.py +19 -4
- package/python/browser/proxyGate.py +42 -15
- package/python/browser/viewerState.py +1 -0
- package/python/browser/visibleBrowser.py +12 -1
- package/python/checks/slackTransport.py +9 -4
- package/python/controlService/consoleRoutes.py +9 -0
- package/python/controlService/dispatcher.py +11 -1
- package/python/controlService/mcpRoutes.py +43 -26
- package/python/controlService/test_console_routes.py +9 -0
- package/python/controlService/test_mcp_ui.py +76 -28
- package/python/controlService/tools.py +2 -0
- package/python/device/deviceProfile.py +8 -5
- package/python/directApi/engine.py +19 -6
- package/python/discordApi/browserGateway.py +3 -1
- package/python/discordApi/browserIdentity.py +156 -34
- package/python/discordApi/browserRest.py +37 -7
- package/python/discordApi/engine.py +90 -25
- package/python/discordApi/test_browserGateway.py +13 -0
- package/python/discordApi/test_typing.py +90 -0
- package/python/errors/errorCatalog.json +200 -2
- package/python/fixtures/loginPages/tiktok.json +41 -0
- package/python/human/humanMouse.py +225 -34
- package/python/human/myuriInput.py +193 -0
- package/python/human/recordMouse.py +2 -1
- package/python/human/scrollMotion.py +74 -14
- package/python/human/test_humanMouse.py +133 -0
- package/python/identity/__init__.py +0 -0
- package/python/identity/accountRoute.py +233 -0
- package/python/identity/browserIdentity.py +299 -0
- package/python/identity/test_accountRoute.py +212 -0
- package/python/instagramApi/engine.py +7 -3
- package/python/judge/__init__.py +0 -0
- package/python/judge/ask.py +21 -0
- package/python/judge/server.py +135 -0
- package/python/judge/test_server.py +52 -0
- package/python/linkedinApi/analytics.py +76 -0
- package/python/linkedinApi/engine.py +119 -10
- package/python/linkedinApi/share.py +135 -4
- package/python/linkedinApi/templates/createPostVideo.json +1 -0
- package/python/linkedinApi/templates/dispatchUpdateDetourPreview.json +1 -0
- package/python/linkedinApi/templates/pollShareObject.json +1 -0
- package/python/linkedinApi/templates/postSlowMetrics.json +145 -0
- package/python/linkedinApi/templates/postSummary.json +73 -0
- package/python/linkedinApi/templates/registerVideoUpload.json +1 -0
- package/python/linkedinApi/templates/reportControlArmVideoRegistered.json +1 -0
- package/python/linkedinApi/templates/reportVideoUploadCompleted.json +1 -0
- package/python/linkedinApi/templates/startBackgroundVideoUpload.json +1 -0
- package/python/linkedinApi/test_analytics.py +28 -0
- package/python/linkedinApi/test_posts.py +29 -0
- package/python/linkedinApi/test_video.py +134 -0
- package/python/logDb/__init__.py +0 -0
- package/python/logDb/engineStore.py +216 -0
- package/python/logHome/__init__.py +9 -0
- package/python/login/autoLogin.py +2 -1
- package/python/pacing/pacer.py +2 -1
- package/python/platformKit/engine.py +7 -0
- package/python/platformKit/host.py +233 -0
- package/python/platformKit/media.py +44 -1
- package/python/redditApi/engine.py +2 -1
- package/python/session/inspectSession.py +91 -13
- package/python/session/publishSession.py +5 -4
- package/python/slackApi/engine.py +2 -0
- package/python/tiktokApi/__init__.py +0 -0
- package/python/tiktokApi/engine.py +248 -0
- package/python/tiktokApi/test_stats.py +67 -0
- package/python/tiktokApi/test_upload.py +32 -0
- package/python/tiktokApi/transport.py +76 -0
- package/python/tiktokApi/upload.py +150 -0
- package/python/twitterApi/engine.py +144 -23
- package/python/twitterApi/inboxSync.py +23 -5
- package/python/twitterApi/notifications.py +23 -5
- package/python/twitterApi/test_posts.py +71 -0
- package/python/twitterApi/test_typing.py +121 -0
- package/scripts/bench/agentPaths.ts +258 -0
- package/scripts/browserView/benchApp.tsx +26 -0
- package/scripts/browserView/benchHost.ts +134 -0
- package/scripts/browserView/benchPluginApi.py +14 -0
- package/scripts/browserView/hostBench.py +323 -0
- package/scripts/browserView/inputBench.py +120 -0
- package/scripts/browserView/openBench.py +80 -0
- package/scripts/browserView/routeBench.py +84 -0
- package/scripts/browserView/stateBench.py +108 -0
- package/scripts/cards/cardShots.py +112 -0
- package/scripts/checks/agnosticBaseline.json +38 -34
- package/scripts/checks/checkAgentHooks.ts +1 -1
- package/scripts/checks/checkBrowserParity.ts +19 -4
- package/scripts/checks/checkCards.ts +72 -0
- package/scripts/checks/checkClientDocs.mjs +3 -1
- package/scripts/checks/checkConsoleParity.ts +53 -3
- package/scripts/checks/checkIdentityGate.ts +94 -0
- package/scripts/checks/checkNamingConventions.mjs +1 -1
- package/scripts/checks/checkNoHardcoding.ts +24 -0
- package/scripts/checks/checkOneDatabase.ts +59 -11
- package/scripts/checks/checkOneIdentity.ts +42 -0
- package/scripts/contextLayer/service.ts +76 -35
- package/scripts/directApi/liveRead.ts +4 -2
- package/scripts/docs/buildDocs.ts +12 -2
- package/scripts/docs/releasesTable.ts +26 -0
- package/scripts/hermes/appHost.ts +51 -0
- package/scripts/hermes/desktopBundles.ts +39 -0
- package/scripts/hooks/antigravity.ts +14 -3
- package/scripts/hooks/event.ts +7 -2
- package/scripts/hooks/handRolled.ts +27 -0
- package/scripts/hooks/push.ts +16 -0
- package/scripts/hooks/relate.ts +8 -0
- package/scripts/hooks/storage.ts +12 -1
- package/scripts/relate/demoStore.ts +21 -0
- package/scripts/release/nightlyVersion.ts +22 -0
- package/scripts/tests/preload.ts +4 -0
- package/scripts/update/check.ts +4 -0
- package/scripts/update/harnesses.ts +5 -0
- package/scripts/update/postInstall.ts +18 -0
- package/scripts/update/track.ts +10 -0
- package/scripts/useCases/evalSkillRouter.ts +85 -0
- package/skills/report/SKILL.md +5 -5
- package/src/agentHooks/answers/client.ts +131 -22
- package/src/agentHooks/answers/types.ts +4 -1
- package/src/agentHooks/handRolled/client.ts +122 -0
- package/src/agentHooks/handRolled/helpers/detect.ts +132 -0
- package/src/agentHooks/handRolled/helpers/index.ts +3 -0
- package/src/agentHooks/handRolled/helpers/normalise.ts +360 -0
- package/src/agentHooks/handRolled/helpers/store.ts +39 -0
- package/src/agentHooks/handRolled/index.ts +4 -0
- package/src/agentHooks/handRolled/types.ts +73 -0
- package/src/agentHooks/harness/client.ts +8 -0
- package/src/agentHooks/harness/types.ts +1 -1
- package/src/agentHooks/hermes/client.ts +37 -5
- package/src/agentHooks/hermes/types.ts +11 -1
- package/src/agentHooks/opencode/types.ts +3 -0
- package/src/agentHooks/registry/index.ts +19 -6
- package/src/agentHooks/sessionOffsets/client.ts +5 -1
- package/src/auth/session/client.ts +2 -2
- package/src/browser/adsPower/client.ts +3 -1
- package/src/browser/adsPower/types.ts +8 -5
- package/src/browser/brave/client.ts +52 -0
- package/src/browser/brave/index.ts +2 -0
- package/src/browser/brave/types.ts +29 -0
- package/src/browser/camoufox/types.ts +6 -3
- package/src/browser/driver/brands.ts +12 -0
- package/src/browser/driver/client.ts +37 -6
- package/src/browser/driver/index.ts +1 -0
- package/src/browser/driver/types.ts +22 -3
- package/src/browser/flow/client.ts +8 -2
- package/src/browser/flow/definitions/tiktokDelete.json +81 -0
- package/src/browser/flow/definitions/tiktokPost.json +117 -0
- package/src/browser/flow/helpers/flowFromRecording.ts +3 -3
- package/src/browser/flow/helpers/overlays.ts +2 -1
- package/src/browser/flow/helpers/pageState.ts +9 -0
- package/src/browser/flow/helpers/renderFlowDoc.ts +5 -3
- package/src/browser/flow/types.ts +1 -0
- package/src/browser/identity/index.ts +102 -0
- package/src/browser/inspect/client.ts +2 -2
- package/src/browser/inspect/helpers/parseInspectAction.ts +2 -2
- package/src/browser/inspect/types.ts +3 -1
- package/src/browser/move/client.ts +236 -0
- package/src/browser/move/helpers/index.ts +2 -0
- package/src/browser/move/helpers/ledger.ts +28 -0
- package/src/browser/move/helpers/readState.ts +26 -0
- package/src/browser/move/index.ts +3 -0
- package/src/browser/move/types.ts +84 -0
- package/src/browser/run/client.ts +23 -5
- package/src/browser/run/helpers/launchBudget.ts +3 -3
- package/src/browser/run/types.ts +1 -0
- package/src/browser/runStore/client.ts +62 -11
- package/src/browser/viewer/client.ts +42 -6
- package/src/browser/viewer/index.ts +3 -0
- package/src/browser/viewer/inputMode.ts +11 -0
- package/src/browser/viewer/relay.ts +96 -0
- package/src/browser/viewer/types.ts +11 -1
- package/src/browser/viewer/window.ts +11 -0
- package/src/cli/browser/index.ts +99 -18
- package/src/cli/capture/index.ts +1 -1
- package/src/cli/console/helpers/connectionsScreen.ts +2 -1
- package/src/cli/console/helpers/settingsScreen.ts +1 -0
- package/src/cli/console/index.ts +3 -1
- package/src/cli/discord/index.ts +117 -26
- package/src/cli/flow/helpers/flowSession.ts +3 -1
- package/src/cli/flow/index.ts +29 -2
- package/src/cli/inbox/index.ts +160 -8
- package/src/cli/inspect/index.ts +20 -7
- package/src/cli/launch/helpers/setup.ts +1 -1
- package/src/cli/launch/index.ts +5 -3
- package/src/cli/linkedin/helpers/cookies.ts +1 -1
- package/src/cli/linkedin/helpers/index.ts +1 -0
- package/src/cli/linkedin/helpers/posts.ts +84 -0
- package/src/cli/linkedin/helpers/share.ts +45 -14
- package/src/cli/linkedin/index.ts +3 -3
- package/src/cli/live/index.ts +1 -0
- package/src/cli/localAccount/index.ts +23 -17
- package/src/cli/models/index.ts +63 -0
- package/src/cli/people/index.ts +93 -0
- package/src/cli/publish/index.ts +2 -2
- package/src/cli/relate/index.ts +77 -0
- package/src/cli/report/index.ts +11 -3
- package/src/cli/router/index.ts +57 -0
- package/src/cli/runner/client.ts +5 -2
- package/src/cli/runner/helpers/commandIndex.ts +15 -0
- package/src/cli/runner/helpers/platforms.ts +3 -1
- package/src/cli/runner/index.ts +26 -2
- package/src/cli/runner/types.ts +1 -0
- package/src/cli/runs/index.ts +2 -2
- package/src/cli/runtime/index.ts +33 -11
- package/src/cli/saidBy/index.ts +39 -0
- package/src/cli/search/index.ts +46 -13
- package/src/cli/sessions/helpers/index.ts +1 -1
- package/src/cli/sessions/helpers/signInActors.ts +13 -2
- package/src/cli/sessions/index.ts +11 -5
- package/src/cli/slack/helpers/cookies.ts +1 -1
- package/src/cli/slack/index.ts +23 -4
- package/src/cli/storage/index.ts +1 -1
- package/src/cli/tiktok/index.ts +283 -0
- package/src/cli/timing/index.ts +30 -8
- package/src/cli/tool/index.ts +154 -0
- package/src/cli/transcribe/index.ts +1 -1
- package/src/cli/treg/index.ts +2 -1
- package/src/cli/twitter/helpers/chat.ts +1 -1
- package/src/cli/twitter/helpers/cookies.ts +1 -1
- package/src/cli/twitter/helpers/dms.ts +1 -1
- package/src/cli/twitter/helpers/followers.ts +1 -1
- package/src/cli/twitter/helpers/follows.ts +1 -1
- package/src/cli/twitter/helpers/index.ts +1 -0
- package/src/cli/twitter/helpers/notifications.ts +1 -1
- package/src/cli/twitter/helpers/posts.ts +78 -0
- package/src/cli/twitter/helpers/queue.ts +2 -2
- package/src/cli/twitter/helpers/send.ts +14 -10
- package/src/cli/twitter/helpers/voice.ts +82 -32
- package/src/cli/twitter/index.ts +2 -2
- package/src/cli/twitter/queueRunExpected.ts +2 -2
- package/src/cli/update/index.ts +93 -0
- package/src/cli/version/index.ts +70 -0
- package/src/cli/voiceNote/index.ts +7 -4
- package/src/cli/warmup/helpers/personaRun.ts +2 -2
- package/src/config/logHome/index.ts +10 -0
- package/src/config/userEnv/index.ts +2 -2
- package/src/console/browserCheck/client.ts +25 -10
- package/src/console/browserCheck/index.ts +1 -1
- package/src/console/browserCheck/types.ts +3 -0
- package/src/console/connections/client.ts +28 -6
- package/src/console/connections/helpers/accounts.ts +12 -4
- package/src/console/connections/helpers/index.ts +1 -1
- package/src/console/connections/index.ts +3 -3
- package/src/console/connections/types.ts +13 -0
- package/src/console/operations/client.ts +3 -1
- package/src/console/operations/types.ts +5 -1
- package/src/console/settings/client.ts +4 -2
- package/src/console/settings/types.ts +1 -0
- package/src/console/web/helpers/browser.ts +23 -1
- package/src/contextLayer/hook/client.ts +30 -8
- package/src/contextLayer/hook/types.ts +3 -0
- package/src/contextLayer/service/client.ts +56 -6
- package/src/contextLayer/service/types.ts +13 -0
- package/src/directApi/engine/client.ts +18 -9
- package/src/discord/chat/match/client.ts +12 -2
- package/src/discord/chat/match/types.ts +1 -1
- package/src/errors/catalog/types.ts +148 -2
- package/src/extensions/fishAudio/client.ts +1 -1
- package/src/extensions/inworld/client.ts +1 -1
- package/src/extensions/memeTaste/client.ts +2 -2
- package/src/extensions/memeTaste/helpers/nicheMap.ts +2 -1
- package/src/extensions/memeTaste/helpers/trainer.ts +3 -2
- package/src/extensions/treg/client.ts +71 -6
- package/src/extensions/treg/types.ts +7 -1
- package/src/extensions/voiceClone/helpers/provider.ts +2 -1
- package/src/extensions/voiceClone/helpers/store.ts +4 -4
- package/src/facebook/group/members/client.ts +2 -2
- package/src/facebook/marketplace/host/helpers/progress.ts +2 -2
- package/src/facebook/warmup/stages/helpers/stageLog.ts +2 -2
- package/src/inbox/card/client.ts +174 -0
- package/src/inbox/card/index.ts +2 -0
- package/src/inbox/card/types.ts +41 -0
- package/src/inbox/context/client.ts +1 -0
- package/src/inbox/dbRead/client.ts +2 -2
- package/src/inbox/ignore/client.ts +42 -0
- package/src/inbox/ignore/index.ts +2 -0
- package/src/inbox/ignore/types.ts +13 -0
- package/src/inbox/judge/client.ts +97 -0
- package/src/inbox/judge/index.ts +2 -0
- package/src/inbox/judge/types.ts +29 -0
- package/src/inbox/judgeModel/client.ts +65 -0
- package/src/inbox/judgeModel/index.ts +2 -0
- package/src/inbox/judgeModel/types.ts +17 -0
- package/src/inbox/label/client.ts +80 -0
- package/src/inbox/label/index.ts +2 -0
- package/src/inbox/label/types.ts +56 -0
- package/src/inbox/lastWord/client.ts +18 -7
- package/src/inbox/lastWord/types.ts +12 -0
- package/src/inbox/nameHints/client.ts +152 -0
- package/src/inbox/nameHints/index.ts +2 -0
- package/src/inbox/nameHints/types.ts +41 -0
- package/src/inbox/pending/client.ts +63 -5
- package/src/inbox/pending/types.ts +3 -0
- package/src/inbox/push/client.ts +102 -0
- package/src/inbox/push/index.ts +2 -0
- package/src/inbox/push/types.ts +31 -0
- package/src/inbox/relay/client.ts +2 -2
- package/src/inbox/relay/types.ts +4 -2
- package/src/inbox/store/client.ts +18 -13
- package/src/inbox/typing/client.ts +38 -0
- package/src/inbox/typing/index.ts +2 -0
- package/src/inbox/typing/types.ts +13 -0
- package/src/inbox/waiting/client.ts +33 -0
- package/src/inbox/waiting/index.ts +2 -0
- package/src/inbox/waiting/types.ts +30 -0
- package/src/inbox/watch/client.ts +99 -44
- package/src/mcp/apps/browserView/client.ts +44 -20
- package/src/mcp/apps/browserView/helpers/build.ts +18 -1
- package/src/mcp/apps/browserView/helpers/style.ts +5 -57
- package/src/mcp/apps/browserView/types.ts +2 -1
- package/src/mcp/apps/browserView/widget/cast.ts +126 -0
- package/src/mcp/apps/browserView/widget/liveClaim.ts +87 -0
- package/src/mcp/apps/browserView/widget/main.ts +335 -205
- package/src/mcp/apps/browserView/widget/view.ts +231 -0
- package/src/mcp/apps/browserView/widget/viewModel.ts +181 -0
- package/src/mcp/apps/browserView/widget/viewStyle.ts +78 -0
- package/src/mcp/apps/cards.ts +116 -0
- package/src/mcp/apps/index.ts +1 -0
- package/src/mcp/apps/logApp/client.ts +125 -0
- package/src/mcp/apps/logApp/index.ts +2 -0
- package/src/mcp/apps/logApp/types.ts +50 -0
- package/src/mcp/apps/meta.ts +30 -0
- package/src/mcp/apps/report/client.ts +37 -15
- package/src/mcp/apps/report/helpers/hermesView.ts +43 -0
- package/src/mcp/apps/report/helpers/index.ts +1 -0
- package/src/mcp/apps/report/helpers/sources.ts +21 -4
- package/src/mcp/apps/report/index.ts +1 -1
- package/src/mcp/apps/report/presets.ts +13 -0
- package/src/mcp/apps/report/types.ts +1 -0
- package/src/mcp/apps/report/view/appBridge.ts +310 -0
- package/src/mcp/apps/report/view/hermesApp.tsx +115 -0
- package/src/mcp/apps/report/view/hermesClean.ts +47 -0
- package/src/mcp/apps/report/view/hermesDesktop.tsx +123 -0
- package/src/mcp/apps/report/view/hermesModules.ts +20 -0
- package/src/mcp/apps/report/view/kit.css +63 -8
- package/src/mcp/apps/report/view/kit.tsx +1 -1
- package/src/mcp/apps/report/view/liveCards.ts +84 -0
- package/src/mcp/apps/report/view/mcpAppsHostLicense.txt +30 -0
- package/src/mcp/apps/report/view/server.tsx +44 -4
- package/src/mcp/apps/report/view/starters/waiting.jsx +40 -0
- package/src/mcp/apps/report/view/widget.tsx +5 -1
- package/src/mcp/apps/widgetKit/jitless.ts +2 -0
- package/src/mcp/freshness/client.ts +58 -5
- package/src/mcp/jobs/client.ts +12 -2
- package/src/mcp/oauth/client.ts +2 -2
- package/src/mcp/reload/client.ts +35 -8
- package/src/mcp/server/helpers/agentRules.ts +15 -0
- package/src/mcp/server/helpers/guides.ts +7 -6
- package/src/mcp/server/helpers/index.ts +1 -0
- package/src/mcp/server/helpers/resultCap.ts +92 -0
- package/src/mcp/server/index.ts +30 -25
- package/src/media/describer/helpers/model.ts +8 -3
- package/src/media/photo/client.ts +2 -2
- package/src/media/voiceNotes/client.ts +3 -2
- package/src/media/voiceNotes/helpers/notes.ts +5 -11
- package/src/media/voiceNotes/helpers/store.ts +2 -2
- package/src/models/manifest/client.ts +40 -0
- package/src/models/manifest/index.ts +2 -0
- package/src/models/manifest/types.ts +102 -0
- package/src/models/store/client.ts +154 -0
- package/src/models/store/helpers/effects.ts +111 -0
- package/src/models/store/helpers/index.ts +1 -0
- package/src/models/store/index.ts +3 -0
- package/src/models/store/types.ts +54 -0
- package/src/observability/liveLog/index.ts +2 -2
- package/src/observability/toolHealth/client.ts +91 -0
- package/src/observability/toolHealth/helpers/index.ts +1 -0
- package/src/observability/toolHealth/helpers/report.ts +168 -0
- package/src/observability/toolHealth/index.ts +3 -0
- package/src/observability/toolHealth/types.ts +83 -0
- package/src/observability/turns/client.ts +73 -0
- package/src/observability/turns/index.ts +2 -0
- package/src/observability/turns/types.ts +27 -0
- package/src/people/client.ts +119 -0
- package/src/people/helpers/card.ts +87 -0
- package/src/people/helpers/identity.ts +24 -0
- package/src/people/helpers/index.ts +3 -0
- package/src/people/helpers/match.ts +176 -0
- package/src/people/index.ts +4 -0
- package/src/people/types.ts +124 -0
- package/src/platformKit/preflight/client.ts +15 -2
- package/src/platformKit/preflight/types.ts +1 -0
- package/src/platformKit/readHost/client.ts +74 -0
- package/src/platformKit/readHost/index.ts +2 -0
- package/src/platformKit/readHost/types.ts +18 -0
- package/src/platformKit/session/client.ts +27 -4
- package/src/platformKit/signIn/client.ts +1 -1
- package/src/platformKit/signIn/helpers/sessionShapes.ts +2 -0
- package/src/platformKit/socialAccount/helpers/checkRunnable.ts +27 -2
- package/src/platformKit/socialAccount/types.ts +2 -0
- package/src/platformKit/watcher/helpers/supervise.ts +16 -1
- package/src/privacy/scan/client.ts +2 -2
- package/src/rea/facebookClient/client.ts +3 -3
- package/src/reddit/engine/client.ts +7 -1
- package/src/relate/graph/client.ts +315 -0
- package/src/relate/graph/fixtures/demoWorld.ts +102 -0
- package/src/relate/graph/helpers/index.ts +2 -0
- package/src/relate/graph/helpers/mentions.ts +9 -0
- package/src/relate/graph/helpers/project.ts +115 -0
- package/src/relate/graph/index.ts +3 -0
- package/src/relate/graph/types.ts +159 -0
- package/src/relate/search/client.ts +65 -0
- package/src/relate/search/index.ts +2 -0
- package/src/relate/search/types.ts +21 -0
- package/src/release/apply/client.ts +109 -0
- package/src/release/apply/helpers/effects.ts +151 -0
- package/src/release/apply/helpers/index.ts +1 -0
- package/src/release/apply/index.ts +3 -0
- package/src/release/apply/types.ts +84 -0
- package/src/release/check/client.ts +264 -0
- package/src/release/check/index.ts +2 -0
- package/src/release/check/types.ts +61 -0
- package/src/release/harnesses/client.ts +96 -0
- package/src/release/harnesses/index.ts +2 -0
- package/src/release/harnesses/types.ts +37 -0
- package/src/release/nightly/client.ts +31 -0
- package/src/release/nightly/index.ts +2 -0
- package/src/release/nightly/types.ts +9 -0
- package/src/release/postInstall/client.ts +51 -0
- package/src/release/postInstall/helpers/effects.ts +141 -0
- package/src/release/postInstall/helpers/index.ts +1 -0
- package/src/release/postInstall/index.ts +3 -0
- package/src/release/postInstall/types.ts +36 -0
- package/src/release/table/client.ts +100 -0
- package/src/release/table/index.ts +2 -0
- package/src/release/table/types.ts +16 -0
- package/src/release/version/client.ts +72 -0
- package/src/release/version/index.ts +2 -0
- package/src/release/version/types.ts +37 -0
- package/src/runtime/bridge/client.ts +2 -2
- package/src/scaffold/index.ts +1 -0
- package/src/scaffold/platform/client.ts +1 -1
- package/src/scaffold/platform/helpers/astEdits.ts +22 -0
- package/src/scaffold/platform/helpers/templates.ts +3 -3
- package/src/scaffold/tool/client.ts +82 -0
- package/src/scaffold/tool/helpers/index.ts +1 -0
- package/src/scaffold/tool/helpers/templates.ts +123 -0
- package/src/scaffold/tool/index.ts +3 -0
- package/src/scaffold/tool/types.ts +36 -0
- package/src/search/conversations/client.ts +34 -14
- package/src/search/conversations/helpers/chunk.ts +2 -0
- package/src/search/conversations/helpers/embedWorker.ts +6 -2
- package/src/search/conversations/helpers/fuse.ts +85 -1
- package/src/search/conversations/helpers/index.ts +1 -0
- package/src/search/conversations/helpers/place.ts +44 -0
- package/src/search/conversations/types.ts +30 -0
- package/src/specs/adsPower/index.ts +12 -2
- package/src/specs/agentHooks/index.ts +59 -5
- package/src/specs/browserGate/index.ts +45 -1
- package/src/specs/callTiming/index.ts +15 -2
- package/src/specs/facebookGroups/index.ts +1 -1
- package/src/specs/handRolled/index.ts +68 -0
- package/src/specs/localAccounts/index.ts +1 -1
- package/src/specs/mcpServer/index.ts +61 -2
- package/src/specs/people/index.ts +91 -0
- package/src/specs/relateGraph/index.ts +105 -0
- package/src/specs/search/index.ts +22 -1
- package/src/specs/sessions/index.ts +47 -1
- package/src/specs/slack/index.ts +2 -2
- package/src/specs/storage/index.ts +19 -3
- package/src/specs/tiktok/index.ts +47 -0
- package/src/specs/types.ts +1 -1
- package/src/specs/updates/index.ts +158 -0
- package/src/specs/voiceClone/index.ts +1 -1
- package/src/specs/voiceGate/index.ts +18 -0
- package/src/specs/writeBudgets/index.ts +1 -1
- package/src/specs/xSession/index.ts +1 -1
- package/src/storage/engineStore/client.ts +115 -0
- package/src/storage/engineStore/index.ts +2 -0
- package/src/storage/engineStore/types.ts +18 -0
- package/src/storage/platform/client.ts +35 -1
- package/src/storage/platform/helpers/base.ts +1 -1
- package/src/storage/platform/helpers/conversations.ts +20 -1
- package/src/storage/platform/helpers/derivedEvents.ts +27 -0
- package/src/storage/platform/helpers/extenders.ts +1 -0
- package/src/storage/platform/types.ts +6 -2
- package/src/storage/schema/client.ts +2 -2
- package/src/storage/schema/helpers/inbox.ts +4 -0
- package/src/storage/schema/helpers/migrations.ts +47 -1
- package/src/storage/state/types.ts +14 -0
- package/src/surface/diagrams/index.ts +2 -2
- package/src/surface/readme/index.ts +3 -1
- package/src/surface/scorecard/helpers/platformWords.ts +1 -0
- package/src/tiktok/account/index.ts +1 -0
- package/src/tiktok/account/session/client.ts +30 -0
- package/src/tiktok/account/session/index.ts +1 -0
- package/src/twenty/graphql/helpers/localAccounts.ts +12 -2
- package/src/twitter/account/session/client.ts +25 -10
- package/src/twitter/account/session/types.ts +28 -1
- package/src/twitter/copy/voice/client.ts +22 -6
- package/src/twitter/copy/voice/types.ts +7 -0
- package/src/twitter/notification/feed/client.ts +6 -11
- package/src/twitter/post/send/client.ts +1 -1
- package/src/twitter/post/send/types.ts +1 -1
- package/src/twitter/queue/events/client.ts +2 -2
- package/src/twitter/queue/run/machine.ts +2 -1
- package/src/twitter/queue/store/client.ts +4 -0
- package/src/useCases/router/client.ts +284 -4
- package/src/useCases/router/fixtures/golden.json +13 -0
- package/src/useCases/router/fixtures/routerMeaning.json +70 -0
- package/src/useCases/router/fixtures/toolGolden.json +70 -0
- package/src/useCases/router/fixtures/tools.json +245 -0
- package/src/useCases/router/helpers/catalog.ts +97 -0
- package/src/useCases/router/helpers/index.ts +2 -0
- package/src/useCases/router/helpers/semantic.ts +7 -1
- package/src/useCases/router/helpers/tools.ts +265 -0
- package/src/useCases/router/types.ts +204 -0
- package/src/voice/aiTells/client.ts +2 -2
- package/src/voice/aiTells/helpers/jina.ts +13 -7
- package/src/voice/aiTells/types.ts +2 -0
- package/src/voice/pairs/client.ts +43 -1
- package/src/voice/pairs/helpers/offProfile.ts +3 -2
- package/src/voice/passes/client.ts +2 -2
- package/src/voice/sameness/client.ts +16 -1
- package/src/voice/sameness/types.ts +4 -0
- package/src/warmup/persona/helpers/drawPersona.ts +2 -2
- package/vendor/endcord/endcord/peripherals.py +14 -6
- package/vendor/fbk/pyproject.toml +1 -1
- package/vendor/fbk/src/constants.py +10 -1
- package/vendor/fbk/src/realtime/dgw/client.py +1 -4
- package/vendor/fbk/src/realtime/mqtt/client.py +1 -3
- package/vendor/fbk/src/realtime/mqtt/connect.py +1 -3
- package/vendor/fbk/src/realtime/ws.py +3 -1
- package/vendor/fbk/src/transport/profile.py +6 -7
- package/vendor/fbk/src/transport/session.py +2 -0
- package/vendor/gabrielSlack/gabriel/core/transport.py +8 -3
- package/vendor/gabrielSlack/pyproject.toml +1 -1
- package/vendor/hermesGenui/LICENSE +21 -0
- package/vendor/hermesGenui/VENDORED.md +36 -0
- package/vendor/hermesGenui/__init__.py +37 -0
- package/vendor/hermesGenui/blocks/__init__.py +106 -0
- package/vendor/hermesGenui/blocks/actions.py +51 -0
- package/vendor/hermesGenui/blocks/atoms.py +89 -0
- package/vendor/hermesGenui/blocks/briefing.py +52 -0
- package/vendor/hermesGenui/blocks/calculator.py +260 -0
- package/vendor/hermesGenui/blocks/calendar.py +65 -0
- package/vendor/hermesGenui/blocks/callout.py +12 -0
- package/vendor/hermesGenui/blocks/chart.py +120 -0
- package/vendor/hermesGenui/blocks/checklist.py +42 -0
- package/vendor/hermesGenui/blocks/common.py +222 -0
- package/vendor/hermesGenui/blocks/flip.py +56 -0
- package/vendor/hermesGenui/blocks/flow.py +169 -0
- package/vendor/hermesGenui/blocks/form.py +145 -0
- package/vendor/hermesGenui/blocks/heatmap.py +44 -0
- package/vendor/hermesGenui/blocks/images.py +27 -0
- package/vendor/hermesGenui/blocks/include.py +20 -0
- package/vendor/hermesGenui/blocks/kpis.py +67 -0
- package/vendor/hermesGenui/blocks/layers.py +68 -0
- package/vendor/hermesGenui/blocks/layout.py +98 -0
- package/vendor/hermesGenui/blocks/list.py +38 -0
- package/vendor/hermesGenui/blocks/prepared.py +44 -0
- package/vendor/hermesGenui/blocks/progress.py +22 -0
- package/vendor/hermesGenui/blocks/simulate.py +187 -0
- package/vendor/hermesGenui/blocks/source.py +10 -0
- package/vendor/hermesGenui/blocks/steps.py +113 -0
- package/vendor/hermesGenui/blocks/streak.py +17 -0
- package/vendor/hermesGenui/blocks/table.py +55 -0
- package/vendor/hermesGenui/blocks/tiles.py +34 -0
- package/vendor/hermesGenui/blocks/timeline.py +48 -0
- package/vendor/hermesGenui/blocks/tracker.py +56 -0
- package/vendor/hermesGenui/blocks/upnext.py +44 -0
- package/vendor/hermesGenui/blocks/weather.py +32 -0
- package/vendor/hermesGenui/core/__init__.py +4 -0
- package/vendor/hermesGenui/core/assistant/__init__.py +7 -0
- package/vendor/hermesGenui/core/assistant/demo.py +86 -0
- package/vendor/hermesGenui/core/assistant/memory.py +423 -0
- package/vendor/hermesGenui/core/assistant/monitor_template.py +37 -0
- package/vendor/hermesGenui/core/assistant/seed.json +421 -0
- package/vendor/hermesGenui/core/assistant/track.py +150 -0
- package/vendor/hermesGenui/core/catalog.json +903 -0
- package/vendor/hermesGenui/core/catalog_text.py +33 -0
- package/vendor/hermesGenui/core/check.py +109 -0
- package/vendor/hermesGenui/core/dashboard/__init__.py +5 -0
- package/vendor/hermesGenui/core/dashboard/assemble.py +118 -0
- package/vendor/hermesGenui/core/dashboard/sources.py +550 -0
- package/vendor/hermesGenui/core/dashboard/spec.py +94 -0
- package/vendor/hermesGenui/core/live/__init__.py +6 -0
- package/vendor/hermesGenui/core/live/cache.py +99 -0
- package/vendor/hermesGenui/core/live/feeds.py +160 -0
- package/vendor/hermesGenui/core/live/resolve.py +69 -0
- package/vendor/hermesGenui/core/manifest.py +47 -0
- package/vendor/hermesGenui/core/pages/__init__.py +3 -0
- package/vendor/hermesGenui/core/pages/calls.py +106 -0
- package/vendor/hermesGenui/core/pages/layout.py +15 -0
- package/vendor/hermesGenui/core/pages/refresh.py +81 -0
- package/vendor/hermesGenui/core/pages/store.py +67 -0
- package/vendor/hermesGenui/core/pages/templates.py +33 -0
- package/vendor/hermesGenui/core/recipes.py +55 -0
- package/vendor/hermesGenui/core/store.py +211 -0
- package/vendor/hermesGenui/core/surface.py +53 -0
- package/vendor/hermesGenui/dashboard/manifest.json +6 -0
- package/vendor/hermesGenui/dashboard/plugin_api.py +298 -0
- package/vendor/hermesGenui/desktop/plugin.js +1641 -0
- package/vendor/hermesGenui/hooks/__init__.py +2 -0
- package/vendor/hermesGenui/hooks/prompt_section.py +52 -0
- package/vendor/hermesGenui/hooks/text_fallback.py +162 -0
- package/vendor/hermesGenui/hooks/visual_nudge.py +82 -0
- package/vendor/hermesGenui/plugin.yaml +37 -0
- package/vendor/hermesGenui/recipes/assistant-check/SKILL.md +90 -0
- package/vendor/hermesGenui/recipes/assistant-ideas/SKILL.md +50 -0
- package/vendor/hermesGenui/recipes/compare/SKILL.md +84 -0
- package/vendor/hermesGenui/recipes/dashboard/SKILL.md +108 -0
- package/vendor/hermesGenui/recipes/explain/SKILL.md +166 -0
- package/vendor/hermesGenui/recipes/learn/SKILL.md +90 -0
- package/vendor/hermesGenui/recipes/page-refresh/SKILL.md +44 -0
- package/vendor/hermesGenui/recipes/personal-assistant/SKILL.md +101 -0
- package/vendor/hermesGenui/recipes/recipe-builder/SKILL.md +55 -0
- package/vendor/hermesGenui/recipes/report/SKILL.md +69 -0
- package/vendor/hermesGenui/recipes/stock-dashboard/SKILL.md +51 -0
- package/vendor/hermesGenui/recipes/today-designer/SKILL.md +71 -0
- package/vendor/hermesGenui/recipes/today-page/SKILL.md +64 -0
- package/vendor/hermesGenui/recipes/tracker/SKILL.md +93 -0
- package/vendor/hermesGenui/recipes/trip-planner/SKILL.md +117 -0
- package/vendor/hermesGenui/recipes/what-if/SKILL.md +104 -0
- package/vendor/hermesGenui/templates/executive.json +12 -0
- package/vendor/hermesGenui/templates/sales-pipeline.json +12 -0
- package/vendor/hermesGenui/templates/security-posture.json +12 -0
- package/vendor/hermesGenui/tools/__init__.py +43 -0
- package/vendor/hermesGenui/tools/assistant.py +412 -0
- package/vendor/hermesGenui/tools/assistant_ideas.py +103 -0
- package/vendor/hermesGenui/tools/board_page.py +395 -0
- package/vendor/hermesGenui/tools/dashboard.py +131 -0
- package/vendor/hermesGenui/tools/market_history.py +329 -0
- package/vendor/hermesGenui/tools/photos/__init__.py +375 -0
- package/vendor/hermesGenui/tools/photos/memory.py +46 -0
- package/vendor/hermesGenui/tools/photos/safety.py +167 -0
- package/vendor/hermesGenui/tools/photos/sources/__init__.py +3 -0
- package/vendor/hermesGenui/tools/photos/sources/common.py +61 -0
- package/vendor/hermesGenui/tools/photos/sources/openverse.py +42 -0
- package/vendor/hermesGenui/tools/photos/sources/pages.py +203 -0
- package/vendor/hermesGenui/tools/photos/sources/pexels.py +27 -0
- package/vendor/hermesGenui/tools/photos/sources/tavily.py +32 -0
- package/vendor/hermesGenui/tools/photos/sources/unsplash.py +29 -0
- package/vendor/hermesGenui/tools/photos/sources/wikimedia.py +49 -0
- package/vendor/hermesGenui/tools/save_recipe.py +101 -0
- package/vendor/hermesGenui/tools/show_blocks.py +212 -0
- package/vendor/hermesGenui/web/build.mjs +25 -0
- package/vendor/hermesGenui/web/package.json +22 -0
- package/vendor/hermesGenui/web/src/blocks/actions/Actions.tsx +35 -0
- package/vendor/hermesGenui/web/src/blocks/actions/actions.css +2 -0
- package/vendor/hermesGenui/web/src/blocks/actions/read.ts +53 -0
- package/vendor/hermesGenui/web/src/blocks/atoms/Atoms.tsx +70 -0
- package/vendor/hermesGenui/web/src/blocks/atoms/atoms.css +38 -0
- package/vendor/hermesGenui/web/src/blocks/atoms/read.ts +103 -0
- package/vendor/hermesGenui/web/src/blocks/briefing/Briefing.tsx +43 -0
- package/vendor/hermesGenui/web/src/blocks/briefing/briefing.css +25 -0
- package/vendor/hermesGenui/web/src/blocks/briefing/read.ts +25 -0
- package/vendor/hermesGenui/web/src/blocks/calculator/Calculator.tsx +52 -0
- package/vendor/hermesGenui/web/src/blocks/calculator/calcChart.ts +150 -0
- package/vendor/hermesGenui/web/src/blocks/calculator/calculator.css +25 -0
- package/vendor/hermesGenui/web/src/blocks/calculator/read.ts +110 -0
- package/vendor/hermesGenui/web/src/blocks/calendar/Calendar.tsx +91 -0
- package/vendor/hermesGenui/web/src/blocks/calendar/calendar.css +47 -0
- package/vendor/hermesGenui/web/src/blocks/calendar/read.ts +55 -0
- package/vendor/hermesGenui/web/src/blocks/callout/Callout.tsx +19 -0
- package/vendor/hermesGenui/web/src/blocks/callout/callout.css +18 -0
- package/vendor/hermesGenui/web/src/blocks/callout/read.ts +31 -0
- package/vendor/hermesGenui/web/src/blocks/chart/AreaMarks.tsx +32 -0
- package/vendor/hermesGenui/web/src/blocks/chart/Chart.tsx +130 -0
- package/vendor/hermesGenui/web/src/blocks/chart/ChartTip.tsx +59 -0
- package/vendor/hermesGenui/web/src/blocks/chart/ColumnMarks.tsx +88 -0
- package/vendor/hermesGenui/web/src/blocks/chart/HBarChart.tsx +99 -0
- package/vendor/hermesGenui/web/src/blocks/chart/Legend.tsx +21 -0
- package/vendor/hermesGenui/web/src/blocks/chart/LineMarks.tsx +98 -0
- package/vendor/hermesGenui/web/src/blocks/chart/PieChart.tsx +130 -0
- package/vendor/hermesGenui/web/src/blocks/chart/chart.css +144 -0
- package/vendor/hermesGenui/web/src/blocks/chart/chartData.ts +252 -0
- package/vendor/hermesGenui/web/src/blocks/chart/geometry.ts +107 -0
- package/vendor/hermesGenui/web/src/blocks/chart/layout.ts +192 -0
- package/vendor/hermesGenui/web/src/blocks/chart/pick.ts +32 -0
- package/vendor/hermesGenui/web/src/blocks/chart/read.ts +57 -0
- package/vendor/hermesGenui/web/src/blocks/chart/useWidth.ts +22 -0
- package/vendor/hermesGenui/web/src/blocks/checklist/Checklist.tsx +73 -0
- package/vendor/hermesGenui/web/src/blocks/checklist/checklist.css +52 -0
- package/vendor/hermesGenui/web/src/blocks/checklist/read.ts +76 -0
- package/vendor/hermesGenui/web/src/blocks/checklist/savedState.ts +87 -0
- package/vendor/hermesGenui/web/src/blocks/flip/Flip.tsx +47 -0
- package/vendor/hermesGenui/web/src/blocks/flip/columns.ts +8 -0
- package/vendor/hermesGenui/web/src/blocks/flip/flip.css +73 -0
- package/vendor/hermesGenui/web/src/blocks/flip/read.ts +31 -0
- package/vendor/hermesGenui/web/src/blocks/flow/Flow.tsx +229 -0
- package/vendor/hermesGenui/web/src/blocks/flow/flow.css +119 -0
- package/vendor/hermesGenui/web/src/blocks/flow/highlight.tsx +46 -0
- package/vendor/hermesGenui/web/src/blocks/flow/packet.ts +38 -0
- package/vendor/hermesGenui/web/src/blocks/flow/read.ts +100 -0
- package/vendor/hermesGenui/web/src/blocks/flow/walk.ts +57 -0
- package/vendor/hermesGenui/web/src/blocks/form/Form.tsx +147 -0
- package/vendor/hermesGenui/web/src/blocks/form/form.css +55 -0
- package/vendor/hermesGenui/web/src/blocks/form/formMessage.ts +73 -0
- package/vendor/hermesGenui/web/src/blocks/form/read.ts +188 -0
- package/vendor/hermesGenui/web/src/blocks/form/sentForm.ts +48 -0
- package/vendor/hermesGenui/web/src/blocks/heatmap/Heatmap.tsx +43 -0
- package/vendor/hermesGenui/web/src/blocks/heatmap/heatmap.css +42 -0
- package/vendor/hermesGenui/web/src/blocks/heatmap/heatmapColour.ts +60 -0
- package/vendor/hermesGenui/web/src/blocks/heatmap/read.ts +83 -0
- package/vendor/hermesGenui/web/src/blocks/images/Images.tsx +53 -0
- package/vendor/hermesGenui/web/src/blocks/images/images.css +58 -0
- package/vendor/hermesGenui/web/src/blocks/images/read.ts +26 -0
- package/vendor/hermesGenui/web/src/blocks/kpis/Kpis.tsx +100 -0
- package/vendor/hermesGenui/web/src/blocks/kpis/kpis.css +31 -0
- package/vendor/hermesGenui/web/src/blocks/kpis/read.ts +74 -0
- package/vendor/hermesGenui/web/src/blocks/layers/Layers.tsx +177 -0
- package/vendor/hermesGenui/web/src/blocks/layers/geometry.ts +76 -0
- package/vendor/hermesGenui/web/src/blocks/layers/layers.css +38 -0
- package/vendor/hermesGenui/web/src/blocks/layers/read.ts +28 -0
- package/vendor/hermesGenui/web/src/blocks/layout/Containers.tsx +52 -0
- package/vendor/hermesGenui/web/src/blocks/layout/Tabs.tsx +49 -0
- package/vendor/hermesGenui/web/src/blocks/layout/layout.css +68 -0
- package/vendor/hermesGenui/web/src/blocks/layout/read.ts +88 -0
- package/vendor/hermesGenui/web/src/blocks/layout/readTabs.ts +75 -0
- package/vendor/hermesGenui/web/src/blocks/list/List.tsx +59 -0
- package/vendor/hermesGenui/web/src/blocks/list/list.css +77 -0
- package/vendor/hermesGenui/web/src/blocks/list/read.ts +67 -0
- package/vendor/hermesGenui/web/src/blocks/list/rowAvatar.ts +54 -0
- package/vendor/hermesGenui/web/src/blocks/prepared/Prepared.tsx +37 -0
- package/vendor/hermesGenui/web/src/blocks/prepared/prepared.css +19 -0
- package/vendor/hermesGenui/web/src/blocks/prepared/read.ts +31 -0
- package/vendor/hermesGenui/web/src/blocks/progress/Progress.tsx +83 -0
- package/vendor/hermesGenui/web/src/blocks/progress/progress.css +64 -0
- package/vendor/hermesGenui/web/src/blocks/progress/read.ts +36 -0
- package/vendor/hermesGenui/web/src/blocks/simulate/Piles.tsx +95 -0
- package/vendor/hermesGenui/web/src/blocks/simulate/SimChart.tsx +61 -0
- package/vendor/hermesGenui/web/src/blocks/simulate/Simulate.tsx +131 -0
- package/vendor/hermesGenui/web/src/blocks/simulate/read.ts +97 -0
- package/vendor/hermesGenui/web/src/blocks/simulate/sim.ts +47 -0
- package/vendor/hermesGenui/web/src/blocks/simulate/simulate.css +34 -0
- package/vendor/hermesGenui/web/src/blocks/source/Source.tsx +5 -0
- package/vendor/hermesGenui/web/src/blocks/source/read.ts +25 -0
- package/vendor/hermesGenui/web/src/blocks/source/source.css +2 -0
- package/vendor/hermesGenui/web/src/blocks/steps/Steps.tsx +62 -0
- package/vendor/hermesGenui/web/src/blocks/steps/read.ts +51 -0
- package/vendor/hermesGenui/web/src/blocks/steps/steps.css +44 -0
- package/vendor/hermesGenui/web/src/blocks/streak/Streak.tsx +39 -0
- package/vendor/hermesGenui/web/src/blocks/streak/read.ts +29 -0
- package/vendor/hermesGenui/web/src/blocks/streak/streak.css +55 -0
- package/vendor/hermesGenui/web/src/blocks/table/Table.tsx +98 -0
- package/vendor/hermesGenui/web/src/blocks/table/cells.ts +56 -0
- package/vendor/hermesGenui/web/src/blocks/table/read.ts +127 -0
- package/vendor/hermesGenui/web/src/blocks/table/sort.ts +59 -0
- package/vendor/hermesGenui/web/src/blocks/table/table.css +78 -0
- package/vendor/hermesGenui/web/src/blocks/tiles/Tiles.tsx +46 -0
- package/vendor/hermesGenui/web/src/blocks/tiles/read.ts +91 -0
- package/vendor/hermesGenui/web/src/blocks/tiles/tiles.css +69 -0
- package/vendor/hermesGenui/web/src/blocks/timeline/Timeline.tsx +33 -0
- package/vendor/hermesGenui/web/src/blocks/timeline/read.ts +79 -0
- package/vendor/hermesGenui/web/src/blocks/timeline/timeline.css +38 -0
- package/vendor/hermesGenui/web/src/blocks/tracker/Tracker.tsx +105 -0
- package/vendor/hermesGenui/web/src/blocks/tracker/read.ts +54 -0
- package/vendor/hermesGenui/web/src/blocks/tracker/tracker.css +52 -0
- package/vendor/hermesGenui/web/src/blocks/upnext/UpNext.tsx +48 -0
- package/vendor/hermesGenui/web/src/blocks/upnext/read.ts +52 -0
- package/vendor/hermesGenui/web/src/blocks/upnext/upnext.css +52 -0
- package/vendor/hermesGenui/web/src/blocks/weather/Weather.tsx +19 -0
- package/vendor/hermesGenui/web/src/blocks/weather/read.ts +22 -0
- package/vendor/hermesGenui/web/src/blocks/weather/weather.css +9 -0
- package/vendor/hermesGenui/web/src/core/Blocks.tsx +21 -0
- package/vendor/hermesGenui/web/src/core/fields.ts +143 -0
- package/vendor/hermesGenui/web/src/core/readBlocks.ts +55 -0
- package/vendor/hermesGenui/web/src/core/types.ts +22 -0
- package/vendor/hermesGenui/web/src/host/BlockTag.tsx +50 -0
- package/vendor/hermesGenui/web/src/host/actions.ts +63 -0
- package/vendor/hermesGenui/web/src/host/blockTag.css +18 -0
- package/vendor/hermesGenui/web/src/host/env.d.ts +18 -0
- package/vendor/hermesGenui/web/src/lib/EventArt.tsx +180 -0
- package/vendor/hermesGenui/web/src/lib/Icon.tsx +43 -0
- package/vendor/hermesGenui/web/src/lib/InlineText.tsx +19 -0
- package/vendor/hermesGenui/web/src/lib/canvas.ts +45 -0
- package/vendor/hermesGenui/web/src/lib/format.ts +74 -0
- package/vendor/hermesGenui/web/src/lib/formula.ts +323 -0
- package/vendor/hermesGenui/web/src/lib/icons.ts +7 -0
- package/vendor/hermesGenui/web/src/lib/locale.ts +9 -0
- package/vendor/hermesGenui/web/src/lib/motion.ts +7 -0
- package/vendor/hermesGenui/web/src/live/DashboardView.tsx +149 -0
- package/vendor/hermesGenui/web/src/live/RefreshBar.tsx +27 -0
- package/vendor/hermesGenui/web/src/live/dashboard.css +23 -0
- package/vendor/hermesGenui/web/src/live/open.ts +32 -0
- package/vendor/hermesGenui/web/src/live/pages.ts +30 -0
- package/vendor/hermesGenui/web/src/live/register.tsx +72 -0
- package/vendor/hermesGenui/web/src/plugin.tsx +51 -0
- package/vendor/hermesGenui/web/src/registry.tsx +125 -0
- package/vendor/hermesGenui/web/src/styles/index.ts +45 -0
- package/vendor/hermesGenui/web/src/styles/lynx.css +31 -0
- package/vendor/hermesGenui/web/src/styles/shared.css +69 -0
- package/vendor/hermesGenui/web/src/styles/tokens.css +69 -0
- package/vendor/hermesGenui/web/tsconfig.json +18 -0
- package/vendor/instagrapi/instagrapi/mixins/public.py +10 -6
- package/vendor/instagrapi/instagrapi/realtime/mqttot.py +1 -1
- package/vendor/openLinkedinApi/open_linkedin_api/transport.py +8 -2
- package/vendor/openLinkedinApi/pyproject.toml +1 -1
- package/vendor/twikit/requirements.txt +1 -1
- package/vendor/twikit/tests/test_long_video_upload.py +63 -0
- package/vendor/twikit/twikit/client/client.py +18 -7
- package/vendor/twikit/twikit/client/v11.py +31 -1
- package/vendor/twikit/twikit/constants.py +7 -1
- package/vendor/twikit/twikit/guest/client.py +3 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
1
2
|
import { existsSync } from "node:fs";
|
|
2
3
|
import { homedir } from "node:os";
|
|
3
4
|
import { join } from "node:path";
|
|
@@ -8,6 +9,8 @@ import type { OpenCodeEvent, PluginContext, SessionHookEvent, ToolHookEvent } fr
|
|
|
8
9
|
|
|
9
10
|
const CHAT_NAME_TOOL = /^mcp__log__(discord|slack|instagram)/;
|
|
10
11
|
|
|
12
|
+
const HAND_ROLLED_TOOL = /^(Bash|PowerShell|Monitor|write|patch|apply_patch)$/i;
|
|
13
|
+
|
|
11
14
|
const STOP_REPEAT_MS = 5 * 60 * 1000;
|
|
12
15
|
|
|
13
16
|
const STOP_QUIET_MS = 2000;
|
|
@@ -85,6 +88,28 @@ export default {
|
|
|
85
88
|
const stopBlocked = new Map<string, { reason: string; at: number }>();
|
|
86
89
|
const lastStopAt = new Map<string, number>();
|
|
87
90
|
const started = new Set<string>();
|
|
91
|
+
const pushes = new Map<string, ReturnType<typeof spawn>>();
|
|
92
|
+
|
|
93
|
+
const follow = (sessionID: string): void => {
|
|
94
|
+
const reader = sessionID.replace(/[^A-Za-z0-9_-]/g, "").slice(0, 80);
|
|
95
|
+
if (!reader || pushes.has(sessionID) || !ctx.session.synthetic) return;
|
|
96
|
+
const child = spawn("bun", [join(repo, "scripts", "hooks", "push.ts"), "--host", "opencode", "--reader", reader], { cwd: repo, stdio: ["ignore", "pipe", "ignore"], windowsHide: true });
|
|
97
|
+
pushes.set(sessionID, child);
|
|
98
|
+
let buffered = "";
|
|
99
|
+
child.stdout?.setEncoding("utf8");
|
|
100
|
+
child.stdout?.on("data", (chunk: string) => {
|
|
101
|
+
buffered += chunk;
|
|
102
|
+
const lines = buffered.split("\n");
|
|
103
|
+
buffered = lines.pop() ?? "";
|
|
104
|
+
for (const line of lines) {
|
|
105
|
+
try {
|
|
106
|
+
const batch = JSON.parse(line) as { context?: string };
|
|
107
|
+
if (batch.context) void ctx.session.synthetic?.({ sessionID, text: clipped(batch.context) }).catch(() => undefined);
|
|
108
|
+
} catch {}
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
child.on("exit", () => pushes.delete(sessionID));
|
|
112
|
+
};
|
|
88
113
|
|
|
89
114
|
const inject = async (sessionID: string, key: string, text: string): Promise<boolean> => {
|
|
90
115
|
try {
|
|
@@ -147,6 +172,10 @@ export default {
|
|
|
147
172
|
const name = codeTool || hostToolName(String(event.tool ?? ""));
|
|
148
173
|
const callID = String(event.callID ?? "");
|
|
149
174
|
if (callID) callTools.set(callID, name);
|
|
175
|
+
if (HAND_ROLLED_TOOL.test(name)) {
|
|
176
|
+
const advice = await runCommandHook("handRolled.ts", repo, { hook_event_name: "PreToolUse", session_id: event.sessionID, tool_name: name, tool_input: input, cwd: repo });
|
|
177
|
+
if (advice.context) carried.set(event.sessionID, [carried.get(event.sessionID), advice.context].filter(Boolean).join("\n\n"));
|
|
178
|
+
}
|
|
150
179
|
if (CHAT_NAME_TOOL.test(name)) {
|
|
151
180
|
const verdict = await runCommandHook("chatNames.ts", repo, {
|
|
152
181
|
hook_event_name: "PreToolUse",
|
|
@@ -205,6 +234,7 @@ export default {
|
|
|
205
234
|
if (info?.parentID) return;
|
|
206
235
|
}
|
|
207
236
|
started.add(sessionID);
|
|
237
|
+
follow(sessionID);
|
|
208
238
|
const context = await sessionStart(sessionID, source);
|
|
209
239
|
if (!context) return;
|
|
210
240
|
if (!(await inject(sessionID, START_KEY, context))) carried.set(sessionID, context);
|
|
@@ -223,6 +253,8 @@ export default {
|
|
|
223
253
|
return;
|
|
224
254
|
}
|
|
225
255
|
if (event.type === "session.deleted") {
|
|
256
|
+
pushes.get(sessionID)?.kill();
|
|
257
|
+
pushes.delete(sessionID);
|
|
226
258
|
carried.delete(sessionID);
|
|
227
259
|
stopBlocked.delete(sessionID);
|
|
228
260
|
lastStopAt.delete(sessionID);
|
|
@@ -240,6 +272,8 @@ export default {
|
|
|
240
272
|
|
|
241
273
|
return () => {
|
|
242
274
|
controller.abort();
|
|
275
|
+
for (const child of pushes.values()) child.kill();
|
|
276
|
+
pushes.clear();
|
|
243
277
|
carried.clear();
|
|
244
278
|
callTools.clear();
|
|
245
279
|
stopBlocked.clear();
|
package/AGENTS.md
CHANGED
|
@@ -84,7 +84,7 @@ For platform work, read the relevant skill/use-case and current domain spec. Pla
|
|
|
84
84
|
|
|
85
85
|
90. 2026-10-28 · Preserve platform message splitting: draft lines send as separate messages unless The owner explicitly requests the supported asOne behavior.
|
|
86
86
|
|
|
87
|
-
94. 2026-10-29 · Every platform call goes through Log and its governor, never a scratch client with account tokens/cookies. A refusal, failed send, 429, block, disable, captcha or cooldown stops that run/account until The owner authorizes continuation. Do not retry through refusals. Bulk reading and sending are separate sessions; cold DMs stay a few a day, minutes apart, and opening a DM counts as a write.
|
|
87
|
+
94. 2026-10-29 · Every platform call goes through Log and its governor, never a scratch client with account tokens/cookies. A refusal, failed send, 429, block, disable, captcha or cooldown stops that run/account until The owner authorizes continuation. Do not retry through refusals. Bulk reading and sending are separate sessions; cold DMs stay a few a day, minutes apart, and opening a DM counts as a write. Live-view input: a browser the agent opened takes it only on sign-in pages, one the owner opened to drive on every page (2026-11-20).
|
|
88
88
|
|
|
89
89
|
103. 2026-10-31 · The public log repository on origin is the working repository. Keep archived repository references as history, not implementation destinations.
|
|
90
90
|
|
package/README.md
CHANGED
|
@@ -156,6 +156,10 @@ Then ask in plain words: *"read my X DMs and tell me who's waiting on me"*. log'
|
|
|
156
156
|
- **One session per account.** Each account keeps one connection open, the way the platform's own app does, never a new one per command.
|
|
157
157
|
- **Live inbox.** New messages are pushed into your agent's context as they arrive, and two agents never answer the same chat.
|
|
158
158
|
- **Kept human.** Every account has its own daily limits, pacing and local waking hours. A refusal from the platform stops the run, and nothing is retried.
|
|
159
|
+
- **A judge on every message in.** The voice gate checks what goes out; the judge checks what comes in. Token stealers, encoded scripts and prompt injection are held before your agent reads them, and a small local model marks what the rules miss ([#189](https://github.com/matthewdonsemail-lab/log/pull/189), [#190](https://github.com/matthewdonsemail-lab/log/pull/190)).
|
|
160
|
+
- **Turn aware.** On Discord and Slack a multi-line reply waits while they are typing, and holds the rest if they write back or keep typing ([#199](https://github.com/matthewdonsemail-lab/log/pull/199), [#202](https://github.com/matthewdonsemail-lab/log/pull/202)).
|
|
161
|
+
- **Search knows where it was said.** Every hit names a DM, a group or a server channel, and you can search only one of them ([#198](https://github.com/matthewdonsemail-lab/log/pull/198)).
|
|
162
|
+
- **It watches its own tools.** Tool health shows which tools are used, which fail and which guides went stale, and suggests the fix ([#203](https://github.com/matthewdonsemail-lab/log/pull/203)).
|
|
159
163
|
- **Your machine, your data.** Accounts and sessions stay in `~/.logCli`. Many accounts? Keep them in [Twenty](docs/twenty.md), an open-source CRM, so every machine, agent and teammate sees the same ones.
|
|
160
164
|
|
|
161
165
|
## Works in every harness
|
|
@@ -166,7 +170,7 @@ A harness is the agent app you talk to log through. log is the same MCP server i
|
|
|
166
170
|
|---|---|---|---|---|
|
|
167
171
|
| [Claude Code](docs/harnesses/claudeApp.md#claude-code) | local or hosted | its prompt hook runs the router on every prompt | hooks on every prompt and after every tool call | text; sign-in in the window on your screen |
|
|
168
172
|
| [Codex](docs/harnesses/codex.md) | local or hosted | its prompt hook | hooks on every prompt and around tool calls | text |
|
|
169
|
-
| [Hermes](docs/harnesses/hermes.md) | local or hosted | the `
|
|
173
|
+
| [Hermes](docs/harnesses/hermes.md) | local or hosted | the `log` plugin's `pre_llm_call`, before every model call | the same hook, before every model call | text, plus a **log tab** in the Hermes dashboard |
|
|
170
174
|
| [OpenCode](docs/harnesses/README.md) | local | its prompt hook | its plugin's hooks | text |
|
|
171
175
|
| [Antigravity](docs/harnesses/README.md) | local | its prompt hook | its hooks | text |
|
|
172
176
|
| [Cursor](docs/harnesses/cursor.md) | local or hosted | `getGuide({ ask })` (Cursor's prompt hook can't add context) | `sessionStart` and `postToolUse` hooks | MCP Apps: `report` and `browserView` inline |
|
|
@@ -233,21 +237,24 @@ flowchart LR
|
|
|
233
237
|
H["One session per account<br/>like the platform's own app"]
|
|
234
238
|
W["One live watcher per account<br/>holds the platform's push channel"]
|
|
235
239
|
DB[("log.db<br/>every event, once")]
|
|
236
|
-
V["
|
|
240
|
+
V["Worked out from the events<br/>chats, messages, people, search,<br/>with media text and transcripts beside them"]
|
|
241
|
+
J["The judge<br/>reads what other people wrote"]
|
|
242
|
+
K["Hooks and the push loop<br/>put new messages in front of the agent"]
|
|
237
243
|
P["logMcp<br/>reload proxy"]
|
|
238
244
|
M["log MCP server"]
|
|
239
|
-
|
|
245
|
+
G["Play gate, voice gate<br/>and the chat claim"]
|
|
240
246
|
end
|
|
241
247
|
subgraph agents["Your agent"]
|
|
242
248
|
C["Claude Code, Codex, Cursor,<br/>Hermes, OpenCode, ChatGPT..."]
|
|
243
249
|
end
|
|
244
250
|
X & D & S & I -- "push: new message, reaction, media" --> W
|
|
245
|
-
W -- "append once" --> DB
|
|
251
|
+
W -- "append once, by its id" --> DB
|
|
252
|
+
W -- "after a gap, catch up through the session" --> H
|
|
246
253
|
DB --> V
|
|
254
|
+
DB -- "new since this session last looked" --> J --> K --> C
|
|
247
255
|
C -- "tool call" --> P --> M
|
|
248
256
|
M -- "reads in about 1 ms" --> V
|
|
249
|
-
M -- "send, react, voice note" --> H --> X & D & S & I
|
|
250
|
-
V --> K --> C
|
|
257
|
+
M -- "send, react, voice note" --> G --> H --> X & D & S & I
|
|
251
258
|
```
|
|
252
259
|
|
|
253
260
|
In plain words:
|
|
@@ -255,29 +262,35 @@ In plain words:
|
|
|
255
262
|
2. **One watcher per account.** It holds the platform's own push channel (X Chat's socket, Discord's gateway, Slack's socket, Instagram's realtime connection). Everything that arrives is written to `log.db` once, as an event.
|
|
256
263
|
3. **Everything else is worked out from those events.** That covers the chats, who said what, what a picture or video shows, what a voice note said, and the search index. The chats and messages can be rebuilt from the events at any time.
|
|
257
264
|
4. **Your agent asks the database, not the platform.** A tool call reads the database. The platform is only called to send something, or to catch up after a gap.
|
|
258
|
-
5. **Hooks push new things to your agent.** When someone writes, the agent sees it in its context straight away, without asking.
|
|
265
|
+
5. **Hooks push new things to your agent.** When someone writes, the judge reads it first, and then the agent sees it in its context straight away, without asking.
|
|
266
|
+
6. **Every send passes the gates.** The play gate, the voice gate and the chat claim come before anything goes out through the account's session.
|
|
259
267
|
|
|
260
268
|
### How your agent connects, and why you never restart it
|
|
261
269
|
|
|
262
270
|
```mermaid
|
|
263
271
|
sequenceDiagram
|
|
264
|
-
participant C as Claude Code
|
|
272
|
+
participant C as Your agent, e.g. Claude Code
|
|
265
273
|
participant P as logMcp, the reload proxy
|
|
266
274
|
participant A as log server, old code
|
|
267
275
|
participant B as log server, new code
|
|
268
276
|
C->>P: initialize, then tool calls over stdio
|
|
269
277
|
P->>A: passes every call through
|
|
270
278
|
Note over P: log's code changes on disk
|
|
271
|
-
P->>P: waits until no call
|
|
279
|
+
P->>P: waits until no call is in flight, holding new calls
|
|
272
280
|
P->>B: starts the new server and replays initialize
|
|
273
|
-
B-->>P: ready
|
|
274
|
-
|
|
281
|
+
B-->>P: ready within 30 s
|
|
282
|
+
alt the old server is running a job
|
|
283
|
+
Note over A: keeps running it to its end, then stops
|
|
284
|
+
else nothing is running
|
|
285
|
+
P->>A: stops the old server
|
|
286
|
+
end
|
|
275
287
|
P-->>C: tools/list_changed
|
|
276
288
|
C->>P: next tool call
|
|
277
289
|
P->>B: runs on the new code
|
|
290
|
+
Note over P,B: no answer in 30 s and the new server is stopped, the old code keeps serving
|
|
278
291
|
```
|
|
279
292
|
|
|
280
|
-
Claude Code starts `logMcp` once. `logMcp` is a small proxy that never exits, and it runs the real server as a child process. When log's code changes, it waits until
|
|
293
|
+
Claude Code starts `logMcp` once. `logMcp` is a small proxy that never exits, and it runs the real server as a child process. When log's code changes, it waits until no call is in flight, starts the new code, and swaps it in. A long job, like a queue sending over an hour, is never cut off: it keeps running in the old server until it ends, and every new call goes to the new code. If the new code doesn't start within 30 s, the old code keeps serving. Your agent keeps working without a restart. This design was picked from four open-source options by a SubQ matrix ([`docs/decisions/mcpReload`](docs/decisions/mcpReload)).
|
|
281
294
|
|
|
282
295
|
### How the router tells your agent what to do
|
|
283
296
|
|
|
@@ -288,44 +301,52 @@ flowchart TD
|
|
|
288
301
|
ASK["You: who's waiting on me on X?"] --> HOOK{"Does the harness<br/>have a prompt hook?"}
|
|
289
302
|
HOOK -- "yes: Claude Code, Codex, Hermes,<br/>OpenCode, Antigravity" --> H["The hook runs the router<br/>on every prompt, by itself"]
|
|
290
303
|
HOOK -- "no: Cursor, Claude, ChatGPT, Grok" --> G["The model calls getGuide({ ask })<br/>the same router, on the server"]
|
|
291
|
-
H & G --> R["The router<br/>your words against every play's phrases,<br/>plus a meaning score from
|
|
304
|
+
H & G --> R["The router<br/>fixes typos, then scores your words against every play's phrases,<br/>plus a meaning score from MiniLM in the warm context service"]
|
|
292
305
|
R -- "clear match" --> M["PLAY MATCH<br/>the play's steps load with<br/>getGuide({ useCase })"]
|
|
293
|
-
R -- "near tie" --> T["MAYBE A PLAY<br/>a short menu, nothing loaded"]
|
|
306
|
+
R -- "close, but below the bar or a near tie" --> T["MAYBE A PLAY<br/>a short menu, nothing loaded"]
|
|
294
307
|
R -- "no match" --> N["No play<br/>the agent answers as usual"]
|
|
295
308
|
M --> PG["Play gate<br/>only the sends the loaded play names go through"]
|
|
296
|
-
PG --> VG["Voice gate<br/>the draft is
|
|
309
|
+
PG --> VG["Voice gate<br/>already answered? the same as sent?<br/>then the draft is read against how you write"]
|
|
297
310
|
VG --> LIVE["Sent as you, only with --live<br/>and your approval"]
|
|
298
311
|
```
|
|
299
312
|
|
|
300
|
-
1. **The hook runs it for you.** In a harness with a prompt hook, the router runs before the model sees your message, and its answer is added to the turn. In Hermes this is the `
|
|
313
|
+
1. **The hook runs it for you.** In a harness with a prompt hook, the router runs before the model sees your message, and its answer is added to the turn. In Hermes this is the `log` plugin's `pre_llm_call`.
|
|
301
314
|
2. **Or the model asks.** Everywhere else, the server's instructions and every tool's description tell the model to call `getGuide({ ask: "<your words>" })` first. It's the same router, so the same prompt gets the same play. A golden set of prompts checks that (`src/useCases/router/fixtures/golden.json`).
|
|
302
315
|
3. **Words, then meaning.** Each play lists how people ask for it. The hook's warm context service adds a meaning score from MiniLM, a small model on your machine, in about 12 ms. If the service is down, the hook falls back to the word score, so a play is still named.
|
|
303
|
-
4. **A clear match loads the play. A near
|
|
316
|
+
4. **A clear match loads the play. A near one doesn't.** A clear match clears its play's bar with room to spare over the next one, and its steps load with `getGuide({ useCase })`. A play that is close but below the bar, or a near tie, shows a short menu and loads nothing. Building or fixing log itself is never a play.
|
|
304
317
|
5. **The play gate.** A send only goes through when the play that's loaded names it. An agent can't wander from "read my DMs" into sending.
|
|
305
318
|
|
|
306
319
|
### How notifications stream into your agent
|
|
307
320
|
|
|
308
|
-
Your agent doesn't have to ask what's new. Every account's watcher holds the platform's own push channel, and the hooks put what arrived in front of the agent before its next step:
|
|
321
|
+
Your agent doesn't have to ask what's new. Every account's watcher holds the platform's own push channel, and the hooks put what arrived in front of the agent before its next step. In Hermes, OpenCode and Claude Code (through a `Monitor`), a push loop also starts a turn when a message lands while the agent is idle ([docs/liveInbox.md](docs/liveInbox.md)). The hooks are answered by the warm context service on your machine (port 47317), or by a one-off process when it's down:
|
|
309
322
|
|
|
310
323
|
```mermaid
|
|
311
324
|
sequenceDiagram
|
|
312
325
|
participant P as The platform
|
|
313
326
|
participant W as Your account's watcher
|
|
314
327
|
participant DB as log.db
|
|
315
|
-
participant K as Hook
|
|
328
|
+
participant K as Hook or push loop
|
|
329
|
+
participant J as The judge
|
|
316
330
|
participant A as Your agent
|
|
317
331
|
participant S as Your account's session
|
|
318
332
|
Note over K,W: a hook starts any signed-in account's watcher that isn't running
|
|
319
333
|
P->>W: push: new message, reaction, notification
|
|
320
334
|
W->>DB: append the event once, by its id
|
|
321
|
-
|
|
335
|
+
alt a hook
|
|
336
|
+
A->>K: you type, a tool call ends, or (Hermes) a model call starts
|
|
337
|
+
else the push loop
|
|
338
|
+
K->>K: wakes on every watcher write, or every 15 s
|
|
339
|
+
end
|
|
322
340
|
K->>DB: what's new since this session last looked?
|
|
341
|
+
K->>J: the new messages, a voice note as its transcript
|
|
342
|
+
J-->>K: clean, marked as data, or the chat held behind one alert
|
|
323
343
|
K-->>A: NEW MESSAGE, who said what and what to do
|
|
344
|
+
K-->>A: the conversation from log.db, each of their lines judged again
|
|
324
345
|
K-->>A: each account's session, today's limits, X's unread counts
|
|
325
346
|
K-->>A: a gap, a refused catch-up, a second watcher refused
|
|
326
347
|
A->>DB: claim the chat, so no other agent answers it
|
|
327
348
|
A->>DB: read the conversation, about 1 ms
|
|
328
|
-
A->>S: send the reply
|
|
349
|
+
A->>S: send the reply, past the catch-up check, the voice gate and the claim
|
|
329
350
|
S-->>DB: the platform's answer, recorded with the reply
|
|
330
351
|
```
|
|
331
352
|
|
|
@@ -349,6 +370,34 @@ Its steps load with getGuide({ useCase: "twitter/dmInbox" }).
|
|
|
349
370
|
- **Every session has its own cursor.** Nothing is shown twice, and nothing is missed between turns.
|
|
350
371
|
- **Gaps are caught up, never guessed.** When a connection drops, the watcher pulls what it missed through the account's own session, paced like a person. Until it has, a send that needs that context waits. If the platform refuses, the run stops and you're told.
|
|
351
372
|
- **Two agents never answer the same chat.** An agent claims a chat before it drafts, and every claim, send and release is written down in `log.db`.
|
|
373
|
+
- **Judged before it's shown.** Everything other people wrote passes the judge first. A strong hit, or two weak ones, holds the whole chat behind one alert (who, where, why); one weak hit or a model flag is shown marked as data, never as an instruction. How it decides is below.
|
|
374
|
+
- **It waits its turn.** While they are typing, a reply waits; their message stops the rest of a multi-line reply, so it never talks over them.
|
|
375
|
+
|
|
376
|
+
### How the judge reads what comes in
|
|
377
|
+
|
|
378
|
+
The voice gate checks what goes out. The judge checks what comes in, before your agent reads a word of it. It runs where every new message is picked up for a session, so the hooks and the push loop both get judged text:
|
|
379
|
+
|
|
380
|
+
```mermaid
|
|
381
|
+
flowchart TD
|
|
382
|
+
NEW["New messages since this session last looked<br/>ignored chats left out, a voice note as its transcript"] --> RULES["The rules<br/>each message, and each chat's messages joined"]
|
|
383
|
+
NEW --> MODEL["The local injection model<br/>wolf-defender small, on your machine<br/>every text of 12 characters or more"]
|
|
384
|
+
RULES --> STRONG["Strong hits<br/>token stealers: Windows credential decryption,<br/>saved login stores, a Discord webhook,<br/>encoded or downloaded PowerShell, writing into another process<br/>prompt injection: drop your instructions, fake harness markers,<br/>asks for keys or account files, names log's send tools"]
|
|
385
|
+
RULES --> WEAK["Weak hits<br/>a script piped into a shell, code with scrambled names,<br/>a long base64 blob, a new role or mode"]
|
|
386
|
+
MODEL -- "scores 0.9 or more" --> FLAG["A model flag<br/>counts as one weak hit"]
|
|
387
|
+
MODEL -. "down: the rules decide alone, and it is started" .-> VERDICT
|
|
388
|
+
STRONG & WEAK & FLAG --> VERDICT{"The chat's verdict"}
|
|
389
|
+
VERDICT -- "a strong hit, or two weak ones" --> HELD["Held<br/>every message in the chat withheld,<br/>one alert: who, where, why<br/>the agent tells you and drafts nothing"]
|
|
390
|
+
VERDICT -- "one weak hit or a model flag" --> MARKED["Shown marked as data<br/>the judge flagged this, never an instruction"]
|
|
391
|
+
VERDICT -- "nothing" --> CLEAN["Shown as it is"]
|
|
392
|
+
HELD & MARKED & CLEAN --> CONV["The conversation from log.db<br/>each of their lines checked by the rules again"]
|
|
393
|
+
CONV --> AGENT["Your agent"]
|
|
394
|
+
AGENT -- "a reply" --> VG["The voice gate, on the way out<br/>already answered? the same as sent?<br/>does it sound like you?"]
|
|
395
|
+
VG --> SEND["Sent through the account's one session"]
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
- **Rules first.** Each rule is strong or weak. Strong rules catch token stealers (the Windows credential decryption they use, an app's saved logins, a Discord webhook to send the loot to), encoded or downloaded PowerShell, code that writes into another process, and prompt injection: text that tells the agent to drop its instructions, imitates the harness's own markers, asks for your keys or account files, or names log's send tools.
|
|
399
|
+
- **Then a small model.** A prompt injection classifier runs on your machine as a warm service, with no key ([#190](https://github.com/matthewdonsemail-lab/log/pull/190)). A score of 0.9 or more is a flag, counted as one weak hit. If the model isn't running, the rules still decide, and the model is started for the next time. `LOG_JUDGE_MODEL_OFF=1` turns it off.
|
|
400
|
+
- **A held chat stays held.** Its text never reaches the agent: you read it on the platform yourself.
|
|
352
401
|
|
|
353
402
|
### Pictures, voice notes and videos
|
|
354
403
|
|
|
@@ -356,9 +405,10 @@ Every model can read text, even one that can't see images. So every piece of med
|
|
|
356
405
|
|
|
357
406
|
```mermaid
|
|
358
407
|
flowchart LR
|
|
359
|
-
IN["A picture, voice note or video arrives"] -->
|
|
408
|
+
IN["A picture, voice note or video arrives"] --> Q["The describer, one warm process<br/>takes one at a time from a queue of 20"]
|
|
409
|
+
Q --> REC["Kept in log.db: size, length, hash, a small preview"]
|
|
360
410
|
REC --> PIC["Picture: what is in it,<br/>its words read out"]
|
|
361
|
-
REC --> AUD["Voice note: what was said"]
|
|
411
|
+
REC --> AUD["Voice note: what was said, by AssemblyAI"]
|
|
362
412
|
REC --> VID["Video: cut where the picture changes,<br/>each scene described,<br/>its sound transcribed"]
|
|
363
413
|
PIC & AUD & VID --> TXT["One line of text<br/>any model can read"]
|
|
364
414
|
TXT --> DEL["The downloaded file is deleted"]
|
|
@@ -378,14 +428,15 @@ A video with no sound, like motion graphics, says `no sound` and is told by what
|
|
|
378
428
|
|
|
379
429
|
### The models it uses
|
|
380
430
|
|
|
381
|
-
|
|
431
|
+
Three models run on your own machine, with no key. Four are hosted, and each needs its key:
|
|
382
432
|
|
|
383
433
|
| Model | Runs | What it does |
|
|
384
434
|
|---|---|---|
|
|
385
435
|
| all-MiniLM-L6-v2 (23 MB) | your machine | meaning search over every conversation, your voice index, matching what you typed to a play |
|
|
386
436
|
| LFM2.5-VL-450M (352 MB) | your machine | describes every picture and video frame as text |
|
|
437
|
+
| wolf-defender prompt injection small | your machine | the judge's model: flags prompt injection in what comes in |
|
|
387
438
|
| SubQ `subq-snap-1.1` | hosted, `SUBQ_API_KEY` | the voice gate: does a draft sound like you |
|
|
388
|
-
| Jina embeddings v5 and reranker v3.5 | hosted, `JINA_API_KEY` | the AI tells check,
|
|
439
|
+
| Jina embeddings v5 and reranker v3.5 | hosted, `JINA_API_KEY` | the AI tells check, ranking a chat's history for the gate, and a meaning vector for each piece of media |
|
|
389
440
|
| AssemblyAI | hosted, `ASSEMBLYAI_API_KEY` | what was said in a voice note or a video |
|
|
390
441
|
| Inworld or Fish Audio | hosted, `INWORLD_API_KEY` or `FISH_API_KEY` | a voice note in your cloned voice, only when you ask |
|
|
391
442
|
|
|
@@ -395,13 +446,14 @@ flowchart LR
|
|
|
395
446
|
IN -->|picture or video| VL["LFM2.5-VL, your machine"] --> DB
|
|
396
447
|
IN -->|voice| AA["AssemblyAI"] --> DB
|
|
397
448
|
DB --> ML["MiniLM, your machine"] --> IDX["search and voice indexes"]
|
|
398
|
-
|
|
449
|
+
DB --> WD["the judge: wolf-defender, your machine"] --> READ["your agent reads it"]
|
|
450
|
+
READ & IDX --> DRAFT["your agent drafts"] --> GATE["voice gate: SubQ and Jina"] --> SEND["sent as you"]
|
|
399
451
|
```
|
|
400
452
|
|
|
401
453
|
**What your machine needs,** measured here on 2026-11-09 (16 threads, CPU only):
|
|
402
|
-
- **A 64-bit machine.** There's no GPU:
|
|
454
|
+
- **A 64-bit machine.** There's no GPU: the local models run on the CPU.
|
|
403
455
|
- **About 2 GB of free memory.** The picture model peaked at 1.25 GB and takes 6 to 7 s a picture. It stops itself past 4 GB.
|
|
404
|
-
- **About 400 MB of disk** for the
|
|
456
|
+
- **About 400 MB of disk** for MiniLM and the picture model, plus the judge's model, each downloaded the first time it's needed.
|
|
405
457
|
- **ffmpeg on your PATH** for videos and voice notes.
|
|
406
458
|
|
|
407
459
|
**Building the indexes** on a new machine, in this order:
|
|
@@ -435,10 +487,30 @@ Measured on this project's own `log.db` on 2026-11-08, not estimated:
|
|
|
435
487
|
| Claim a chat so no other agent answers it | 1 ms | 5 ms | 16 ms | 27 ms | `log timing` (79 claims) |
|
|
436
488
|
| Lock the account for one call | 0.2 ms | 0.3 ms | 0.4 ms | 0.5 ms | `log timing` (62 calls) |
|
|
437
489
|
| Match what you typed to a play (in the warm service) | 12 ms | 36 ms | 47 ms | n/a | `bun scripts/useCases/benchRouter.ts` |
|
|
490
|
+
| A new message reaches the session's push (watcher store to push loop, 25 messages, 2026-11-20) | 248 ms | 354 ms | 408 ms | n/a | inbox push bench, see `docs/browsers.md` |
|
|
491
|
+
| First live-browser or report card resource in Hermes (warm host) | 16 ms | 31 ms | 31 ms | n/a | `scripts/browserView/routeBench.py` |
|
|
438
492
|
| Read the same Discord chat from Discord itself | 2.3 s | 3.6 s | 5.1 s | 6.0 s | `log timing` (190 reads) |
|
|
439
493
|
|
|
440
494
|
That last row is why log reads its own database: asking the platform takes thousands of times longer. Sends are slower again, on purpose. Each account keeps human pacing between actions, and a refusal from a platform stops the run.
|
|
441
495
|
|
|
496
|
+
#### The agent's own paths: hooks, router, MCP and Python
|
|
497
|
+
|
|
498
|
+
Every prompt and tool call also passes through log's hooks, the play router and the MCP proxy. `bun scripts/bench/agentPaths.ts` times them on scratch state (no account is touched); `--repo` points it at another checkout, so a branch can be compared with `main`. Measured 2026-11-20 on the same machine, 40 prompts per run, two runs per side taken in turn while another agent's benchmark held the CPU near 100%, so read the ranges, not single numbers:
|
|
499
|
+
|
|
500
|
+
| Path | Before p50 / p95 / p99 | After p50 / p95 / p99 | What changed |
|
|
501
|
+
|---|---|---|---|
|
|
502
|
+
| Prompt hook, whole answer (UserPromptSubmit) | 383-665 ms / 2.0-7.4 s / 12.6-28.1 s | 389-655 ms / 0.8-2.1 s / 1.8-5.2 s | the runs-size walk (1.3 s idle, 17 s under load) and `git status` left the hook's path |
|
|
503
|
+
| The router inside it | 181-324 ms / 1.3-2.4 s / 7.0-27.5 s | 197-306 ms / 0.55-1.5 s / 1.2-3.9 s | no longer held up by the other hooks; a window both routers ask for is embedded once (a typo fix makes the play route's windows differ). Under this load it still missed its 150 ms budget on 18 of 80 prompts, against 16 of 80 before |
|
|
504
|
+
| Storage notice inside it | 2-3 ms / 40-142 ms / 0.24-17.2 s | 4-15 ms / 19-80 ms / 54-118 ms | the size is answered from cache and measured again behind |
|
|
505
|
+
| Engines notice inside it | 7-8 ms / 0.24-1.6 s / 5.5-8.6 s | 10-23 ms / 61-120 ms / 85-183 ms | the uncommitted-files listing and code stamp refresh behind |
|
|
506
|
+
| After-tool hook (PostToolUse) | 170-205 ms / 0.74-2.5 s / 1.4-5.4 s | 112-309 ms / 0.49-0.67 s / 0.86-1.06 s | no hook in the same service blocks it any more |
|
|
507
|
+
| Hand-rolled check per terminal call (Hermes) | a Bun process: 470-790 ms / 0.94-1.2 s / 1.07-1.21 s | 18-28 ms / 99-138 ms / 200-258 ms | served by the warm service |
|
|
508
|
+
| MCP tools/list (proxy + server) | 92 ms / 108 ms / 123 ms | unchanged | |
|
|
509
|
+
| MCP cheap call (accountsList) | 35 ms / 46 ms / 51 ms | unchanged | |
|
|
510
|
+
| Python engine start + imports (a call no host serves) | 838 ms / 876 ms | unchanged | |
|
|
511
|
+
|
|
512
|
+
On the owner's real sessions (`log timing`, 48 h before this change) the prompt hook was p50 598 ms, p95 3.40 s, p99 3.64 s, and the router missed its 150 ms budget on 168 of 186 prompts because the other hooks held the event loop. The same check found 26, then 29, `push.ts` loops running for one Hermes session reader: the plugin started another each time a prompt arrived while its loop was between restarts. It now keeps one per session.
|
|
513
|
+
|
|
442
514
|
Every call is timed: `log timing` shows p50, p95 and p99 for every tool and each step inside it, and `log timing --call <id>` shows one call step by step.
|
|
443
515
|
|
|
444
516
|
### Why local first
|
|
@@ -448,6 +520,35 @@ Every call is timed: `log timing` shows p50, p95 and p99 for every tool and each
|
|
|
448
520
|
- **Yours.** Your messages, sessions and media text stay on your machine in one file you can back up.
|
|
449
521
|
- **Shareable when you need it.** Accounts can live in [Twenty](docs/twenty.md) so several machines share them. A hosted version, with a login per user, is planned.
|
|
450
522
|
|
|
523
|
+
## Roadmap
|
|
524
|
+
|
|
525
|
+
What's built, what's next and what's planned is kept in one pinned issue: **[Roadmap #200](https://github.com/matthewdonsemail-lab/log/issues/200)**. In short:
|
|
526
|
+
|
|
527
|
+
| Area | Built | Next |
|
|
528
|
+
|---|---|---|
|
|
529
|
+
| Security | the judge's rules and local model | judging images, a guard before tool calls, taint, a canary token, an attack-set benchmark, an encrypted account store |
|
|
530
|
+
| The record ([soron](docs/proposals/soron.md), [#197](https://github.com/matthewdonsemail-lab/log/issues/197)) | search by DM, group or channel | keeping edits and deletions, capturing the conversation around a personal mention (kept after a ban), judging each message the moment it arrives |
|
|
531
|
+
| Turn awareness ([spec](https://github.com/matthewdonsemail-lab/log/blob/turnAware/docs/proposals/turnAware.md)) | typing on Discord and Slack | X Chat |
|
|
532
|
+
| Tools | tool health | recording which tools the router offered, so unused tools can be told apart from unseen ones |
|
|
533
|
+
| Your day | | a morning debrief: who is waiting, what you owe, what was held overnight |
|
|
534
|
+
| Voice | cloned voice notes | voice-note replies in your voice, then calls, with your yes per call |
|
|
535
|
+
| Browser | human mouse: Fitts's-law timing, corrective moves, tremor ([#201](https://github.com/matthewdonsemail-lab/log/pull/201)) | sign-ins moving from AdsPower to Camoufox, browser-fingerprinted HTTP for X and Discord |
|
|
536
|
+
| Every harness ([spec](https://github.com/matthewdonsemail-lab/log/blob/genuiEverywhere/docs/proposals/genuiEverywhere.md), [#196](https://github.com/matthewdonsemail-lab/log/pull/196)) | views in Cursor, Claude and ChatGPT where the host draws MCP Apps | a ChatGPT connector, a smaller inbox tool profile, a Claude Desktop extension, a render test on every PR |
|
|
537
|
+
| Speed | | the prompt hook under 150 ms |
|
|
538
|
+
|
|
539
|
+
Built here means written, tested and in an open PR; each lands in a release once merged.
|
|
540
|
+
|
|
541
|
+
## Releases
|
|
542
|
+
|
|
543
|
+
Newest first. Each release pins the local models it runs with (`log models`), and `log update` moves code, harness plugins and models to the release together ([docs/updates.md](docs/updates.md)).
|
|
544
|
+
|
|
545
|
+
<!-- releases:start: written by `bun run docs:releases` from CHANGELOG.md and src/models/manifest, not edited by hand -->
|
|
546
|
+
| Version | Date | What's in it | Models |
|
|
547
|
+
| --- | --- | --- | --- |
|
|
548
|
+
| [0.2.1](https://github.com/matthewdonsemail-lab/log/pull/179) | 2026-11-20 | The relate graph, the live inbox push (messages during tool calls, burst batching, late copies dropped), inbox labels and ignoring a server or chat (+2 more) | not pinned (newest by name) |
|
|
549
|
+
| [0.2.0](https://github.com/matthewdonsemail-lab/log/pull/166) | 2026-11-15 | The one-command Hermes pack, the catalog review, the README rewrite and the catch-up machine (+1 more) | not pinned (newest by name) |
|
|
550
|
+
<!-- releases:end -->
|
|
551
|
+
|
|
451
552
|
## CLI
|
|
452
553
|
|
|
453
554
|
```bash
|
package/bin/log.ts
CHANGED
|
@@ -20,6 +20,9 @@ let callId = "";
|
|
|
20
20
|
const code = await timeCall(`cli ${words || "help"}`, async (call) => {
|
|
21
21
|
callId = call.callId;
|
|
22
22
|
const exit = await runFast(argv, {
|
|
23
|
+
refused: (said) => {
|
|
24
|
+
call.attrs.code ??= said;
|
|
25
|
+
},
|
|
23
26
|
out: (line) => {
|
|
24
27
|
console.log(line);
|
|
25
28
|
appendLiveLine(dir, tool, "out", line);
|
|
@@ -33,4 +36,6 @@ const code = await timeCall(`cli ${words || "help"}`, async (call) => {
|
|
|
33
36
|
return exit;
|
|
34
37
|
});
|
|
35
38
|
appendLiveLine(dir, tool, "out", `■ exit ${code} in ${msText(performance.now() - began)} (call ${callId})`);
|
|
39
|
+
const { afterCommand } = await import("../src/release/check/index.ts");
|
|
40
|
+
afterCommand(argv[0], (line) => process.stderr.write(`${line}\n`), Boolean(process.stderr.isTTY));
|
|
36
41
|
process.exit(code);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# One browser identity
|
|
2
|
+
|
|
3
|
+
Every HTTP client log runs presents the same browser: Facebook (fbk), X (twikit), Instagram's web transport (instagrapi), Slack (gabriel), LinkedIn, Discord and Reddit (wreq-js). One module decides it: `python/identity/browserIdentity.py`, with its TypeScript twin `src/browser/identity/index.ts`. A vendored client never writes its own impersonate target or user agent, and `bun run check:oneIdentity` fails the commit if one does. A new platform from `log new platform` takes it the same way.
|
|
4
|
+
|
|
5
|
+
## Set it
|
|
6
|
+
|
|
7
|
+
| Setting | Values | Default |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `LOG_BROWSER` | a pinned target: `chrome152`, `chrome150`, `firefox155`… | `chrome152` |
|
|
10
|
+
| `LOG_BROWSER_OS` | `windows`, `macos`, `linux` | `windows` |
|
|
11
|
+
| `LOG_HTTP_CLIENT` | `curl_cffi` (`httpcloak` once its adapter is built) | `curl_cffi` |
|
|
12
|
+
|
|
13
|
+
Each takes one value for every platform, or per platform with a default: `LOG_BROWSER=facebook=chrome136,default=chrome152`. Without the env vars, `~/.logCli/settings.json` is read:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{ "identity": { "browser": { "default": "chrome152", "facebook": "chrome136" }, "os": "windows" } }
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The identity gives each client the curl_cffi target, the matching user agent and `sec-ch-ua-platform`, the httpcloak preset name and the wreq-js profile. An unpinned target (`chrome`), a Safari or unknown target, or one the installed curl_cffi doesn't ship is refused; it's never swapped for a nearby one. Reddit's wreq-js 3.0.0 stops at `chrome_149`, so Reddit uses the newest Chrome profile at or below the identity until wreq-js is upgraded.
|
|
20
|
+
|
|
21
|
+
Facebook keeps each account's saved transport profile (fbk writes it once and replays it), so existing Facebook accounts stay on the `chrome136` they were made with. Only new profiles take the identity.
|
|
22
|
+
|
|
23
|
+
## API calls send Chrome's fetch headers
|
|
24
|
+
|
|
25
|
+
curl_cffi's default headers are a page load's (`sec-fetch-mode: navigate`, `sec-fetch-dest: document`, `sec-fetch-user`, `upgrade-insecure-requests`, an HTML `accept`). Slack, LinkedIn, X and Facebook were sending those on every GraphQL and JSON call. A real browser's `fetch()` sends `sec-fetch-mode: cors`, `sec-fetch-dest: empty`, `accept: */*`, `priority: u=1, i`, and its own order, with the page's headers (`authorization`, `x-csrf-token`, `x-fb-lsd`) right after `sec-ch-ua-platform`.
|
|
26
|
+
|
|
27
|
+
Each API client attaches its session with `browserIdentity.attach(session, platform, origin)`. From then on, every API call (any non-GET, or a GET to an `/api/`, `/graphql`, `/voyager` or `api.` URL that doesn't ask for HTML) goes out with:
|
|
28
|
+
- the header set and order captured from real Chrome 157 doing `fetch()`;
|
|
29
|
+
- `sec-fetch-site` worked out from the page origin;
|
|
30
|
+
- `sec-ch-ua` built by Chromium's own brand rule;
|
|
31
|
+
- curl_cffi's `header_order` and `default_headers=False`.
|
|
32
|
+
|
|
33
|
+
Page loads keep curl_cffi's navigation headers. `LOG_FETCH_HEADERS=facebook=off` (or `fetchHeaders` in settings.json) turns it off for a platform.
|
|
34
|
+
|
|
35
|
+
## Why Chrome 152, curl_cffi, and httpcloak later
|
|
36
|
+
|
|
37
|
+
See [httpClients](httpClients/README.md): a live test against the real Chrome on this machine, both libraries' docs, what Scraping Enthusiasts said, and a SubQ matrix. In short:
|
|
38
|
+
- For the same version, curl_cffi and httpcloak send byte-identical JA4 and peetprint.
|
|
39
|
+
- curl_cffi 0.17 is needed for Windows Chrome targets. 0.16 targets all say macOS.
|
|
40
|
+
- 152 is the newest Chrome both libraries ship.
|
|
41
|
+
- httpcloak has no WebSocket client and no Python asyncio, which Discord, Slack and Facebook need.
|
package/docs/browserSetup.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Some commands work in the account's own browser rather than through a
|
|
4
4
|
platform's API. This page shows how to get each browser ready: [AdsPower](https://www.adspower.com/share/pD25Iu) (the
|
|
5
|
-
main one)
|
|
5
|
+
main one), Camoufox (the default) and Brave. You need it before running any command
|
|
6
6
|
that opens a browser, such as `log inspect` or `log facebook host`.
|
|
7
7
|
|
|
8
8
|
## What to know first
|
|
@@ -17,7 +17,10 @@ that opens a browser, such as `log inspect` or `log facebook host`.
|
|
|
17
17
|
- the account must pass the account check first;
|
|
18
18
|
- its proxy and cookies are copied into a private temporary folder for the
|
|
19
19
|
run and deleted afterwards;
|
|
20
|
-
- every launch is
|
|
20
|
+
- every launch is headed with the cursor shown, never headless. A browser
|
|
21
|
+
opened to be streamed (the live view in a chat or the console) hides its
|
|
22
|
+
window, so the stream is its only view; set `LOG_BROWSER_WINDOW=visible`
|
|
23
|
+
to keep the window (the owner's change to rule 11, 2026-11-20).
|
|
21
24
|
|
|
22
25
|
## AdsPower
|
|
23
26
|
|
|
@@ -47,12 +50,66 @@ python -m camoufox fetch # downloads the Camoufox browser
|
|
|
47
50
|
log facebook doctor
|
|
48
51
|
```
|
|
49
52
|
|
|
53
|
+
### When Camoufox's GitHub is down
|
|
54
|
+
|
|
55
|
+
On 19 Nov 2026 GitHub suspended daijro's and JWriter20's accounts with no notice, and `daijro/camoufox` went with them. Every release source the camoufox package knows (`daijro/camoufox`, `camoufox/camoufox`, `JWriter20/camoufox`) answers 404, so `camoufox fetch` can't download or update the browser. daijro is moving the project to a self-hosted GitLab.
|
|
56
|
+
|
|
57
|
+
Point log at the GitLab project once it publishes releases:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
LOG_CAMOUFOX_SOURCE=https://<their gitlab host>/daijro/camoufox # or "camoufoxSource" in ~/.logCli/settings.json
|
|
61
|
+
python python/browser/camoufoxSource.py fetch # any camoufox command: list all, set, version
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
`python/browser/camoufoxSource.py` reads the GitLab releases API (`/api/v4/projects/<path>/releases`) and hands camoufox each release in the shape of a GitHub release, so camoufox's own version rules, channels and installer run unchanged. Every launch goes through it (`visibleBrowser.launch_kwargs`). Nothing changes while it's unset.
|
|
65
|
+
|
|
66
|
+
The GeoIP database camoufox uses to place each proxy exit (`GeoIP AIO by daijro`) came from `daijro/geoip-all-in-one`, also gone. Switch to the other source with `python -m camoufox set --geoip "MaxMind GeoLite2"`. If an update still fails, the gate (`proxyGate.locate_ip`) keeps the database already on this machine instead of refusing the launch.
|
|
67
|
+
|
|
68
|
+
### Human input: Myuri
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pip install "myuri==5.0.0" # human mouse, typing and scroll (LGPL-3.0)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
With [Myuri](https://github.com/JWriter20/Myuri) installed, every session that
|
|
75
|
+
moves the pointer itself plans its moves, typing and wheel steps with Myuri
|
|
76
|
+
(`python/human/myuriInput.py`): recorded human paths, typos it corrects,
|
|
77
|
+
fitted key timing, and notched mouse-wheel scrolls. The seed comes from the
|
|
78
|
+
account's device file, so each account keeps one steady "hand" across runs.
|
|
79
|
+
Passwords, codes and PINs are typed with no typos. Camoufox's own humanize is
|
|
80
|
+
turned off on those launches so nothing is paced twice. Without Myuri, log
|
|
81
|
+
falls back to its own curves and a fixed typing beat.
|
|
82
|
+
|
|
83
|
+
## Brave
|
|
84
|
+
|
|
85
|
+
Brave runs the accounts whose browser is set to `brave` (see
|
|
86
|
+
[Choosing a browser](browsers.md#choosing-a-browser)). log does not download
|
|
87
|
+
it: install Brave the usual way for the OS. log looks for it at
|
|
88
|
+
`LOG_BRAVE_PATH` first, then the standard places:
|
|
89
|
+
|
|
90
|
+
- Windows: `%PROGRAMFILES%`, `%PROGRAMFILES(X86)%` and `%LOCALAPPDATA%` under
|
|
91
|
+
`BraveSoftware/Brave-Browser/Application/brave.exe`;
|
|
92
|
+
- macOS: `Brave Browser.app` in `/Applications` or `~/Applications`;
|
|
93
|
+
- Linux: `brave-browser`, `brave`, `/opt/brave.com/brave/brave`, the snap.
|
|
94
|
+
|
|
95
|
+
None there is refused with `braveNotFound`. Each account gets its own Brave
|
|
96
|
+
profile folder under log's home (`browsers/brave/<account id>`), which keeps
|
|
97
|
+
its cookies between opens.
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
log localAccount add --platform reddit --account <name> --browser brave # one account
|
|
101
|
+
echo 'LOG_BROWSER_DRIVER=brave' >> ~/.logCli/.env # every account with no setting
|
|
102
|
+
```
|
|
103
|
+
|
|
50
104
|
## Adding another browser
|
|
51
105
|
|
|
52
106
|
A new browser is one more driver:
|
|
53
107
|
|
|
54
108
|
- its folder `src/browser/<name>` (capability row, driver, tests);
|
|
55
109
|
- its Python opener in `python/browser/browserDriver.py`;
|
|
56
|
-
- its column in [Browsers](browsers.md)
|
|
110
|
+
- its column in [Browsers](browsers.md);
|
|
111
|
+
- its place on every surface: the CLI, the MCP, the local and hosted console
|
|
112
|
+
([the full list](browsers.md#adding-a-browser)).
|
|
57
113
|
|
|
58
|
-
`bun run check:browsers` (pre-commit)
|
|
114
|
+
`bun run check:browsers` and `bun run check:consoleParity` (pre-commit) refuse
|
|
115
|
+
one that is missing a piece.
|