@memorax/memorax-code 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -12
- package/bin/memorax-code-npm-preinstall.mjs +7 -2
- package/bin/memorax-code-opencode.mjs +4 -0
- package/bin/memorax-code-plugin-postinstall.mjs +424 -108
- package/docs/configuration.md +153 -29
- package/docs/troubleshooting.md +93 -7
- package/lib/dsh-plugin-install.mjs +22 -0
- package/lib/memorax-code-adapter-common/src/hooks/capture-cwd-hook.mjs +21 -14
- package/lib/memorax-code-adapter-common/src/hooks/ensure-backend-runner.mjs +26 -7
- package/lib/memorax-code-adapter-common/src/hooks/memory-skill-reminder-hook.mjs +86 -95
- package/lib/memorax-code-adapter-common/src/hooks/memory-skill-reminder-policy.mjs +58 -0
- package/lib/memorax-code-adapter-common/src/repo-memory/repo-memory-auto-build.mjs +38 -0
- package/lib/memorax-code-adapter-common/src/repo-memory/repo-memory-job-supervisor.mjs +1 -1
- package/lib/memorax-code-adapter-common/src/windows-cli-invocation.mjs +13 -1
- package/lib/memorax-code-backend/dist/app/backend-server.js +210 -0
- package/lib/memorax-code-backend/dist/{server-observability.js → app/memory-observability.js} +4 -4
- package/lib/memorax-code-backend/dist/{backend-state.js → app/state.js} +1 -1
- package/lib/memorax-code-backend/dist/{claude-adapter-lifecycle.js → clients/claude/lifecycle.js} +2 -2
- package/lib/memorax-code-backend/dist/{claude-memory-hook-runtime.js → clients/claude/memory-hook-runtime.js} +16 -9
- package/lib/memorax-code-backend/dist/clients/codex/lifecycle.js +131 -0
- package/lib/memorax-code-backend/dist/{codex-memory-hook-runtime.js → clients/codex/memory-hook-runtime.js} +18 -11
- package/lib/memorax-code-backend/dist/{codex-plugin-hooks.js → clients/codex/plugin-hooks.js} +1 -1
- package/lib/memorax-code-backend/dist/{codex-plugin-install.js → clients/codex/plugin-install.js} +6 -6
- package/lib/memorax-code-backend/dist/clients/dsh/lifecycle.js +75 -0
- package/lib/memorax-code-backend/dist/clients/dsh/memory-hook-runtime.js +258 -0
- package/lib/memorax-code-backend/dist/clients/dsh/session-turn.js +249 -0
- package/lib/memorax-code-backend/dist/clients/opencode/lifecycle.js +54 -0
- package/lib/memorax-code-backend/dist/clients/opencode/memory-hook-runtime.js +277 -0
- package/lib/memorax-code-backend/dist/clients/opencode/message-turn.js +78 -0
- package/lib/memorax-code-backend/dist/codex-adapter-lifecycle.js +1 -131
- package/lib/memorax-code-backend/dist/{memorax-code-config.js → config/memorax-code.js} +32 -4
- package/lib/memorax-code-backend/dist/{server-cli.js → entrypoints/backend-cli.js} +157 -34
- package/lib/memorax-code-backend/dist/jsonl-append.js +1 -75
- package/lib/memorax-code-backend/dist/{active-client-selection.js → lifecycle/active-clients.js} +12 -1
- package/lib/memorax-code-backend/dist/{backend-service-cleanup.js → lifecycle/backend/cleanup.js} +1 -1
- package/lib/memorax-code-backend/dist/{backend-service-record.js → lifecycle/backend/record.js} +1 -1
- package/lib/memorax-code-backend/dist/{backend-service-result.js → lifecycle/backend/result.js} +2 -2
- package/lib/memorax-code-backend/dist/{service.js → lifecycle/backend/service.js} +16 -16
- package/lib/memorax-code-backend/dist/{backend-token-record.js → lifecycle/backend/token-record.js} +1 -1
- package/lib/memorax-code-backend/dist/{backend-service-token.js → lifecycle/backend/token.js} +2 -2
- package/lib/memorax-code-backend/dist/lifecycle/client-plugin-removal.js +109 -0
- package/lib/memorax-code-backend/dist/{client-selection.js → lifecycle/client-selection.js} +11 -5
- package/lib/memorax-code-backend/dist/{backend-lifecycle-lock.js → lifecycle/lock.js} +1 -1
- package/lib/memorax-code-backend/dist/{memorax-code-lifecycle.js → lifecycle/orchestrator.js} +325 -39
- package/lib/memorax-code-backend/dist/memorax-cli.js +3 -1
- package/lib/memorax-code-backend/dist/memorax-code.js +1 -1
- package/lib/memorax-code-backend/dist/{automatic-memory-retrieval.js → memory/automatic-retrieval.js} +3 -3
- package/lib/memorax-code-backend/dist/{automatic-memory-writeback.js → memory/automatic-writeback.js} +82 -21
- package/lib/memorax-code-backend/dist/{memory-cli.js → memory/cli.js} +45 -10
- package/lib/memorax-code-backend/dist/{memory-hook-command.js → memory/hook-command.js} +156 -9
- package/lib/memorax-code-backend/dist/memory/observability.js +1 -0
- package/lib/memorax-code-backend/dist/memory/payload-redaction.js +212 -0
- package/lib/memorax-code-backend/dist/{memory-reminder-trace-recorder.js → memory/reminder-trace-recorder.js} +20 -7
- package/lib/memorax-code-backend/dist/{repository-memory-context.js → memory/repository-session.js} +25 -4
- package/lib/memorax-code-backend/dist/{memory-service.js → memory/service.js} +30 -6
- package/lib/memorax-code-backend/dist/{memory-turn-coordinator.js → memory/turn-coordinator.js} +7 -3
- package/lib/memorax-code-backend/dist/{memory-writeback-buffer.js → memory/writeback-buffer.js} +31 -2
- package/lib/memorax-code-backend/dist/{memory-writeback-chunk.js → memory/writeback-chunk.js} +1 -1
- package/lib/memorax-code-backend/dist/{memory-writeback-reconciler.js → memory/writeback-reconciler.js} +6 -6
- package/lib/memorax-code-backend/dist/{memory-writeback-task-projection.js → memory/writeback-task-projection.js} +4 -4
- package/lib/memorax-code-backend/dist/{memorax-adapter.js → provider/memorax/adapter.js} +5 -5
- package/lib/memorax-code-backend/dist/{memorax-config.js → provider/memorax/config.js} +4 -4
- package/lib/memorax-code-backend/dist/{memorax-http.js → provider/memorax/http.js} +1 -1
- package/lib/memorax-code-backend/dist/{repo-memory-readiness.js → repository/readiness.js} +3 -3
- package/lib/memorax-code-backend/dist/{repository-memory-scope.js → repository/scope.js} +81 -33
- package/lib/memorax-code-backend/dist/server.js +3 -212
- package/lib/memorax-code-backend/dist/service-entrypoint.js +1 -1
- package/lib/memorax-code-backend/dist/{debug-log.js → shared/debug-log.js} +1 -1
- package/lib/memorax-code-backend/dist/shared/jsonl-append.js +75 -0
- package/lib/memorax-code-backend/dist/shared/windows-cli-invocation.js +148 -0
- package/lib/memorax-code-backend/dist/{trace-config.js → trace/config.js} +43 -5
- package/lib/memorax-code-backend/dist/{trace-context.js → trace/context.js} +53 -2
- package/lib/memorax-code-backend/dist/{trace-store.js → trace/store.js} +3 -3
- package/lib/memorax-code-backend/dist/{server-health.js → transport/http/health.js} +1 -1
- package/lib/memorax-code-backend/dist/{server-memory-hook.js → transport/http/memory-hook.js} +3 -3
- package/lib/memorax-code-backend/dist/{server-http.js → transport/http/request.js} +1 -1
- package/lib/memorax-code-backend/dist/{claude-local-transcript.js → viewer/history/claude-transcript.js} +3 -3
- package/lib/memorax-code-backend/dist/{memory-viewer-session-title.js → viewer/history/session-title.js} +1 -1
- package/lib/memorax-code-backend/dist/{server-memory-viewer.js → viewer/http/public-routes.js} +25 -14
- package/lib/memorax-code-backend/dist/viewer/model.js +1 -0
- package/lib/memorax-code-backend/dist/{memory-viewer-activity.js → viewer/projection/activity.js} +2 -2
- package/lib/memorax-code-backend/dist/{memory-viewer-history-projection.js → viewer/projection/history.js} +1 -1
- package/lib/memorax-code-backend/dist/{memory-viewer-observability.js → viewer/projection/observability.js} +1 -1
- package/lib/memorax-code-backend/dist/{memory-viewer-user-projection.js → viewer/projection/user.js} +1 -1
- package/lib/memorax-code-backend/dist/{memory-viewer-writeback-status.js → viewer/projection/writeback-status.js} +1 -1
- package/lib/memorax-code-backend/dist/{memory-viewer-store.js → viewer/store.js} +59 -32
- package/lib/memorax-code-backend/dist/viewer/ui/icon.js +1 -0
- package/lib/memorax-code-backend/dist/{memory-viewer-user-html.js → viewer/ui/user-html.js} +14 -12
- package/lib/memorax-code-backend/dist/windows-cli-invocation.js +1 -148
- package/lib/memorax-code-backend/package.json +3 -3
- package/lib/memorax-code-claude-adapter/.claude-plugin/plugin.json +1 -1
- package/lib/memorax-code-claude-adapter/hooks/runtime-shell.json +1 -1
- package/lib/memorax-code-claude-adapter/package.json +1 -1
- package/lib/memorax-code-claude-adapter/runtime-hooks/memory-turn.mjs +5 -0
- package/lib/memorax-code-claude-adapter/skills/memorax-code/SKILL.md +23 -15
- package/lib/memorax-code-claude-adapter/skills/memorax-code/defaults.json +8 -5
- package/lib/memorax-code-claude-adapter/skills/memorax-code/references/memorax-add.md +5 -1
- package/lib/memorax-code-claude-adapter/skills/memorax-code/references/memorax-search.md +40 -10
- package/lib/memorax-code-claude-adapter/skills/memorax-code/references/personal-read.md +1 -1
- package/lib/memorax-code-claude-adapter/skills/memorax-code/references/personal-write.md +33 -13
- package/lib/memorax-code-claude-adapter/skills/memorax-code/references/repo-build.md +62 -13
- package/lib/memorax-code-claude-adapter/skills/memorax-code/references/repo-read.md +11 -4
- package/lib/memorax-code-claude-adapter/skills/memorax-code/references/repo-templates.md +179 -59
- package/lib/memorax-code-claude-adapter/skills/memorax-code/references/repo-update.md +18 -7
- package/lib/memorax-code-claude-adapter/skills/memorax-code/scripts/collect_all.py +122 -39
- package/lib/memorax-code-claude-adapter/skills/memorax-code/scripts/detect_updates.py +73 -10
- package/lib/memorax-code-claude-adapter/skills/memorax-code/scripts/github_resource_facets.py +9 -1
- package/lib/memorax-code-claude-adapter/skills/memorax-code/scripts/gitlab_resource_facets.py +9 -1
- package/lib/memorax-code-claude-adapter/skills/memorax-code/scripts/validate_memory.py +23 -1
- package/lib/memorax-code-claude-adapter/src/plugin-install.mjs +2 -0
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/.claude-plugin/plugin.json +1 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/hooks/runtime-shell.json +1 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/memorax-code-adapter-common/src/hooks/capture-cwd-hook.mjs +21 -14
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/memorax-code-adapter-common/src/hooks/ensure-backend-runner.mjs +26 -7
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/memorax-code-adapter-common/src/hooks/memory-skill-reminder-hook.mjs +86 -95
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/memorax-code-adapter-common/src/hooks/memory-skill-reminder-policy.mjs +58 -0
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/memorax-code-adapter-common/src/repo-memory/repo-memory-auto-build.mjs +38 -0
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/memorax-code-adapter-common/src/repo-memory/repo-memory-job-supervisor.mjs +1 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/memorax-code-adapter-common/src/windows-cli-invocation.mjs +13 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/package.json +1 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/runtime-hooks/memory-turn.mjs +5 -0
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/SKILL.md +23 -15
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/defaults.json +8 -5
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/references/memorax-add.md +5 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/references/memorax-search.md +40 -10
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/references/personal-read.md +1 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/references/personal-write.md +33 -13
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/references/repo-build.md +62 -13
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/references/repo-read.md +11 -4
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/references/repo-templates.md +179 -59
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/references/repo-update.md +18 -7
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/scripts/collect_all.py +122 -39
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/scripts/detect_updates.py +73 -10
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/scripts/github_resource_facets.py +9 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/scripts/gitlab_resource_facets.py +9 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/skills/memorax-code/scripts/validate_memory.py +23 -1
- package/lib/memorax-code-claude-marketplace/plugins/memorax-code-claude-adapter/src/plugin-install.mjs +2 -0
- package/lib/memorax-code-codex-adapter/.codex-plugin/plugin.json +1 -1
- package/lib/memorax-code-codex-adapter/hooks/runtime-shell.json +1 -1
- package/lib/memorax-code-codex-adapter/package.json +1 -1
- package/lib/memorax-code-codex-adapter/runtime-hooks/memory-skill-reminder.mjs +16 -2
- package/lib/memorax-code-codex-adapter/skills/memorax-code/SKILL.md +23 -15
- package/lib/memorax-code-codex-adapter/skills/memorax-code/defaults.json +8 -5
- package/lib/memorax-code-codex-adapter/skills/memorax-code/references/memorax-add.md +5 -1
- package/lib/memorax-code-codex-adapter/skills/memorax-code/references/memorax-search.md +40 -10
- package/lib/memorax-code-codex-adapter/skills/memorax-code/references/personal-read.md +1 -1
- package/lib/memorax-code-codex-adapter/skills/memorax-code/references/personal-write.md +33 -13
- package/lib/memorax-code-codex-adapter/skills/memorax-code/references/repo-build.md +62 -13
- package/lib/memorax-code-codex-adapter/skills/memorax-code/references/repo-read.md +11 -4
- package/lib/memorax-code-codex-adapter/skills/memorax-code/references/repo-templates.md +179 -59
- package/lib/memorax-code-codex-adapter/skills/memorax-code/references/repo-update.md +18 -7
- package/lib/memorax-code-codex-adapter/skills/memorax-code/scripts/collect_all.py +122 -39
- package/lib/memorax-code-codex-adapter/skills/memorax-code/scripts/detect_updates.py +73 -10
- package/lib/memorax-code-codex-adapter/skills/memorax-code/scripts/github_resource_facets.py +9 -1
- package/lib/memorax-code-codex-adapter/skills/memorax-code/scripts/gitlab_resource_facets.py +9 -1
- package/lib/memorax-code-codex-adapter/skills/memorax-code/scripts/validate_memory.py +23 -1
- package/lib/memorax-code-dsh-adapter/cordis.patch.yml +10 -0
- package/lib/memorax-code-dsh-adapter/hooks/repo-memory-job.mjs +68 -0
- package/lib/memorax-code-dsh-adapter/package.json +69 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/SKILL.md +91 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/agents/claude.yaml +10 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/agents/openai.yaml +7 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/defaults.json +12 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/references/memorax-add.md +86 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/references/memorax-search.md +91 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/references/personal-read.md +46 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/references/personal-write.md +120 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/references/repo-build.md +319 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/references/repo-read.md +103 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/references/repo-templates.md +390 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/references/repo-update.md +127 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/scripts/collect_all.py +579 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/scripts/detect_updates.py +919 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/scripts/git_commit_facets.py +222 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/scripts/github_resource_facets.py +512 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/scripts/gitlab_resource_facets.py +517 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/scripts/prepare_repo_memory.py +411 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/scripts/user_profile_memory.py +528 -0
- package/lib/memorax-code-dsh-adapter/skills/memorax-code/scripts/validate_memory.py +248 -0
- package/lib/memorax-code-dsh-adapter/src/backend-client.mjs +119 -0
- package/lib/memorax-code-dsh-adapter/src/dsh-message.mjs +32 -0
- package/lib/memorax-code-dsh-adapter/src/dsh-version.mjs +18 -0
- package/lib/memorax-code-dsh-adapter/src/http-client.mjs +55 -0
- package/lib/memorax-code-dsh-adapter/src/index.mjs +72 -0
- package/lib/memorax-code-dsh-adapter/src/personal-context-worker.mjs +48 -0
- package/lib/memorax-code-dsh-adapter/src/personal-context.mjs +114 -0
- package/lib/memorax-code-dsh-adapter/src/plugin.mjs +724 -0
- package/lib/memorax-code-dsh-adapter/src/profile-lifecycle.mjs +1289 -0
- package/lib/memorax-code-dsh-adapter/src/protocol.mjs +145 -0
- package/lib/memorax-code-dsh-adapter/src/runtime-state.mjs +132 -0
- package/lib/memorax-code-opencode-adapter/hooks/repo-memory-job.mjs +37 -0
- package/lib/memorax-code-opencode-adapter/package.json +10 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/SKILL.md +91 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/agents/claude.yaml +10 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/agents/openai.yaml +7 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/defaults.json +12 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/references/memorax-add.md +86 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/references/memorax-search.md +91 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/references/personal-read.md +46 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/references/personal-write.md +120 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/references/repo-build.md +319 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/references/repo-read.md +103 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/references/repo-templates.md +390 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/references/repo-update.md +127 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/scripts/collect_all.py +579 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/scripts/detect_updates.py +919 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/scripts/git_commit_facets.py +222 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/scripts/github_resource_facets.py +512 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/scripts/gitlab_resource_facets.py +517 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/scripts/prepare_repo_memory.py +411 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/scripts/user_profile_memory.py +528 -0
- package/lib/memorax-code-opencode-adapter/skills/memorax-code/scripts/validate_memory.py +248 -0
- package/lib/memorax-code-opencode-adapter/src/adapter-paths.mjs +37 -0
- package/lib/memorax-code-opencode-adapter/src/cli.mjs +260 -0
- package/lib/memorax-code-opencode-adapter/src/diagnostics.mjs +31 -0
- package/lib/memorax-code-opencode-adapter/src/plugin-install.mjs +673 -0
- package/lib/memorax-code-opencode-adapter/src/plugin.mjs +536 -0
- package/lib/memorax-code-opencode-adapter/src/repo-memory-server-runner.mjs +207 -0
- package/lib/resolve-claude-command.mjs +154 -1
- package/lib/resolve-codex-command.mjs +56 -1
- package/lib/run-entrypoint.mjs +6 -0
- package/package.json +7 -3
- package/lib/memorax-code-backend/dist/client-plugin-removal.js +0 -67
- /package/lib/memorax-code-backend/dist/{claude-transcript-turn.js → clients/claude/transcript-turn.js} +0 -0
- /package/lib/memorax-code-backend/dist/{codex-effective-prompt.js → clients/codex/effective-prompt.js} +0 -0
- /package/lib/memorax-code-backend/dist/{codex-rollout-turn.js → clients/codex/rollout-turn.js} +0 -0
- /package/lib/memorax-code-backend/dist/{codex-session-turn-index.js → clients/codex/session-turn-index.js} +0 -0
- /package/lib/memorax-code-backend/dist/{codex-workspace-links.js → clients/codex/workspace-links.js} +0 -0
- /package/lib/memorax-code-backend/dist/{backend-env.js → config/backend-env.js} +0 -0
- /package/lib/memorax-code-backend/dist/{proxy-env.js → config/proxy-env.js} +0 -0
- /package/lib/memorax-code-backend/dist/{entrypoint.js → entrypoints/main.js} +0 -0
- /package/lib/memorax-code-backend/dist/{backend-process.js → lifecycle/backend/process.js} +0 -0
- /package/lib/memorax-code-backend/dist/{backend-shutdown-request.js → lifecycle/backend/shutdown-request.js} +0 -0
- /package/lib/memorax-code-backend/dist/{backend-status.js → lifecycle/backend/status.js} +0 -0
- /package/lib/memorax-code-backend/dist/{adapter-lifecycle-participant.js → lifecycle/contracts.js} +0 -0
- /package/lib/memorax-code-backend/dist/{install-watchdog.js → lifecycle/install-watchdog.js} +0 -0
- /package/lib/memorax-code-backend/dist/{memory-observability.js → lifecycle/participant.js} +0 -0
- /package/lib/memorax-code-backend/dist/{memory-project.js → memory/project.js} +0 -0
- /package/lib/memorax-code-backend/dist/{incremental-jsonl-projection.js → shared/incremental-jsonl-projection.js} +0 -0
- /package/lib/memorax-code-backend/dist/{utils.js → shared/record.js} +0 -0
- /package/lib/memorax-code-backend/dist/{server-json.js → transport/http/json.js} +0 -0
- /package/lib/memorax-code-backend/dist/{memory-viewer-data-projection-cache.js → viewer/projection/cache.js} +0 -0
- /package/lib/memorax-code-backend/dist/{memory-viewer-event-identity.js → viewer/projection/event-identity.js} +0 -0
- /package/lib/memorax-code-backend/dist/{memory-viewer-redaction.js → viewer/projection/redaction.js} +0 -0
- /package/lib/memorax-code-backend/dist/{memory-viewer-turn-reference.js → viewer/projection/turn-reference.js} +0 -0
- /package/lib/memorax-code-backend/dist/{memory-viewer-logo.js → viewer/ui/logo.js} +0 -0
|
@@ -4,11 +4,13 @@ Use these templates as fill-in scaffolds. Replace all bracketed placeholders wit
|
|
|
4
4
|
|
|
5
5
|
### `.repo_memory/PROFILE.md`
|
|
6
6
|
|
|
7
|
+
`PROFILE.md` is the only fixed conceptual wiki file. It is a wiki landing page, not a dense resource index. It should read like a wiki-style repository memory home page: concise project identity, first-use path, major areas, supporting pages, and historical/provider pointers. Keep MemoraX frontmatter so the validator and maintenance hooks can still trust the bundle.
|
|
8
|
+
|
|
7
9
|
```markdown
|
|
8
10
|
---
|
|
9
|
-
schema: "repo_memory_profile.v0.
|
|
10
|
-
layout: "
|
|
11
|
-
disclosure_model: "
|
|
11
|
+
schema: "repo_memory_profile.v0.2"
|
|
12
|
+
layout: "wiki_landing_page.v0.1"
|
|
13
|
+
disclosure_model: "progressive_wiki"
|
|
12
14
|
repo_name: "[repo name]"
|
|
13
15
|
repo_owner: "[owner or empty]"
|
|
14
16
|
repo_full_name: "[owner/name or empty]"
|
|
@@ -32,91 +34,146 @@ raw:
|
|
|
32
34
|
provider_facets: "raw/github-facets.json|raw/gitlab-facets.json|"
|
|
33
35
|
---
|
|
34
36
|
|
|
35
|
-
# [Repo Name]
|
|
37
|
+
# [Repo Name] Repository Wiki
|
|
38
|
+
|
|
39
|
+
[One short paragraph explaining what this repository is, who uses it, and the primary runtime/package/product surface. Ground this in inspected docs or source.]
|
|
40
|
+
|
|
41
|
+
- Repository: `[owner/name or local repo]`
|
|
42
|
+
- Local HEAD when prepared: `[sha]` on `[branch]`
|
|
43
|
+
- Build mode: `[lightweight|deep]`; working tree was `[clean/dirty + explanation]`
|
|
44
|
+
- License: `[license if known]`
|
|
45
|
+
|
|
46
|
+
## What This Repo Contains
|
|
47
|
+
|
|
48
|
+
| Area | What it does |
|
|
49
|
+
|------|--------------|
|
|
50
|
+
| `[repo-native product/module/workflow name]` (`path/`) | [Plain-language responsibility and primary entrypoint.] |
|
|
51
|
+
| `[repo-native product/module/workflow name]` (`path/`) | [Plain-language responsibility and primary entrypoint.] |
|
|
52
|
+
|
|
53
|
+
## How It Works
|
|
54
|
+
|
|
55
|
+
[Five to ten sentences describing the main runtime/build/request/data flow. Link to supporting pages instead of explaining every detail here. Use conservative wording when lightweight mode did not inspect representative source.]
|
|
56
|
+
|
|
57
|
+
## First-Use Path
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
[install or setup command]
|
|
61
|
+
[one fast verification or smoke command]
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
[Explain the shortest safe path a future agent should use to orient, build, test, or run the project.]
|
|
65
|
+
|
|
66
|
+
## Major Areas
|
|
67
|
+
|
|
68
|
+
Choose these rows from `.repo_memory/_plan.md` after clustering inspected docs/source paths. Do not assume fixed page names; generic names are fallback names only when repository vocabulary gives no stronger topic.
|
|
69
|
+
|
|
70
|
+
| Area | Page | What It Covers |
|
|
71
|
+
|------|------|----------------|
|
|
72
|
+
| `[repo-native area name]` | [`[human page title]`](./repo-native-topic.md) | [What task cluster this page routes and why it is a canonical home.] |
|
|
73
|
+
| `[repo-native area name]` | [`[human page title]`](./repo-native-topic.md) | [What task cluster this page routes and why it is a canonical home.] |
|
|
74
|
+
|
|
75
|
+
## Supporting Pages
|
|
36
76
|
|
|
37
|
-
|
|
77
|
+
- [`[human page title]`](./repo-native-topic.md) - open when [task cue, change surface, workflow, or risk].
|
|
78
|
+
- [`[human page title]`](./another-repo-native-topic.md) - open when [task cue, change surface, workflow, or risk].
|
|
79
|
+
|
|
80
|
+
## Agent Consumption Rules
|
|
81
|
+
|
|
82
|
+
1. Read this file first, then open only the supporting page relevant to the task. Memory is a map, not proof.
|
|
83
|
+
2. Verify current behavior against live source, configs, tests, or executable checks before editing or making strong claims.
|
|
84
|
+
3. Treat commits, PRs/MRs, and issues as historical routing context; they do not prove current checkout behavior.
|
|
85
|
+
4. Prefer source paths and commands linked from supporting pages over broad repository scanning.
|
|
86
|
+
|
|
87
|
+
## Coding Memory Boundary
|
|
38
88
|
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
89
|
+
This repo memory is a cold-start repository map presented as a repository wiki. Use it for module routing, architecture boundaries, verification gates, historical PR/issue context, and repository-specific conventions.
|
|
90
|
+
|
|
91
|
+
Runtime coding memory is narrower and should take precedence when it matches the current repo, module, API, behavior, lifecycle surface, ownership boundary, or failure mode. Use runtime coding memory for verified repair invariants, failed-attempt evidence, mutable-state ownership, callback/hook boundaries, adapter behavior, validation contracts, and other task-learned engineering lessons.
|
|
92
|
+
|
|
93
|
+
Do not treat repo memory, commits, PRs, or issues as implementation recipes. They are routing evidence and historical context. Always verify current behavior against live source and focused checks before editing.
|
|
94
|
+
|
|
95
|
+
## Provider Context
|
|
96
|
+
|
|
97
|
+
- [Historical commits](./resources/commits.md) - local checkout history and regression routing.
|
|
98
|
+
- [Historical PRs/MRs](./resources/prs.md) - implementation context from provider facets when available.
|
|
99
|
+
- [Historical issues](./resources/issues.md) - user/request/problem context when available.
|
|
100
|
+
- Raw local commit facets: `./raw/git-commits.json`.
|
|
101
|
+
- Raw code-host facets: `./raw/github-facets.json` or `./raw/gitlab-facets.json` when present.
|
|
44
102
|
|
|
45
103
|
## Evidence Inspected
|
|
46
104
|
|
|
47
|
-
- Build mode: `[lightweight|deep]`.
|
|
48
105
|
- Root docs and agent instructions: `[README/docs/AGENTS.md/CLAUDE.md or similar files inspected]`.
|
|
49
106
|
- Module docs: `[module README/docs inspected]`.
|
|
50
107
|
- Representative source: `[important source/entrypoint files inspected, or 'not inspected in lightweight mode']`.
|
|
51
108
|
- Manifests/scripts/CI: `[manifests, scripts, workflows inspected, or 'not inspected in lightweight mode']`.
|
|
52
109
|
- Local commit snapshot: `[raw/git-commits.json status and count]`.
|
|
53
110
|
- Historical code-host snapshot: `[raw/github-facets.json or raw/gitlab-facets.json status and counts]`.
|
|
111
|
+
```
|
|
54
112
|
|
|
55
|
-
|
|
113
|
+
### `.repo_memory/_plan.md`
|
|
56
114
|
|
|
57
|
-
|
|
58
|
-
2. [Repo-specific safety or ownership rule].
|
|
59
|
-
3. [Repo-specific preferred extension pattern].
|
|
60
|
-
4. Treat PR/issue resources as historical/contextual; verify current behavior in code and tests.
|
|
115
|
+
Create this temporary planning artifact after discovery and before final wiki writing. Use it to cluster repository concepts and choose natural page boundaries. Remove `_plan.md` before final validation; it is not part of the durable bundle.
|
|
61
116
|
|
|
62
|
-
|
|
117
|
+
```markdown
|
|
118
|
+
# Repo Memory Wiki Plan
|
|
119
|
+
|
|
120
|
+
## Candidate Domains Considered
|
|
121
|
+
|
|
122
|
+
- [selected, merged, or skipped candidate domain] - [source evidence and decision].
|
|
63
123
|
|
|
64
|
-
|
|
65
|
-
historical PR/issue context, architecture boundaries, verification gates, and
|
|
66
|
-
repository-specific conventions.
|
|
124
|
+
## Intended Final Pages
|
|
67
125
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
failed-attempt evidence, mutable-state ownership, callback/hook boundaries,
|
|
72
|
-
adapter behavior, validation contracts, and other task-learned engineering
|
|
73
|
-
lessons.
|
|
126
|
+
| Page | Purpose | Source evidence | Boundary |
|
|
127
|
+
|------|---------|-----------------|----------|
|
|
128
|
+
| `repo-native-topic.md` | [Future-agent task this page routes.] | [Docs/source/tests/scripts inspected.] | [What belongs here and what belongs elsewhere.] |
|
|
74
129
|
|
|
75
|
-
|
|
76
|
-
They are routing evidence and historical context. Always verify current
|
|
77
|
-
behavior against live source and focused checks before editing.
|
|
130
|
+
## Canonical Homes And Overlaps
|
|
78
131
|
|
|
79
|
-
|
|
132
|
+
- [Overlapping concept] belongs in `[page]`; link from `[other page]` instead of duplicating because [reason].
|
|
133
|
+
|
|
134
|
+
## Weak Evidence And Verification Needs
|
|
135
|
+
|
|
136
|
+
- [Claim/path/command] needs [specific verification] before final writing, or should be omitted.
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### `.repo_memory/<repo-native-topic>.md`
|
|
140
|
+
|
|
141
|
+
Create supporting conceptual pages after clustering inspected evidence. Name pages from repository vocabulary, not from this template. Use lowercase kebab-case filenames derived from product surfaces, runtime components, commands, protocols, adapters, workflows, data models, operations, or other durable repository concepts. Generic names are fallback names only when repository vocabulary gives no stronger topic. Every conceptual page must include frontmatter so validation can scan it.
|
|
142
|
+
|
|
143
|
+
```markdown
|
|
144
|
+
---
|
|
145
|
+
schema: "repo_memory_wiki_page.v0.1"
|
|
146
|
+
page_type: "architecture|workflow|data-model|integration|operation|testing|extension|domain"
|
|
147
|
+
generated_at: "[ISO timestamp]"
|
|
148
|
+
source_profile: "PROFILE.md"
|
|
149
|
+
trust_state: "draft_wiki_page"
|
|
150
|
+
---
|
|
80
151
|
|
|
81
|
-
|
|
82
|
-
- `[module/path]`: [What it does, important entrypoints, how it relates to other modules].
|
|
152
|
+
# [Human Documentation Title]
|
|
83
153
|
|
|
84
|
-
##
|
|
154
|
+
## Purpose
|
|
85
155
|
|
|
86
|
-
|
|
87
|
-
- [How modules communicate or hand off data].
|
|
88
|
-
- [Where state, artifacts, configs, or generated outputs live].
|
|
156
|
+
[Explain which future tasks should open this page and what decisions it helps route.]
|
|
89
157
|
|
|
90
|
-
##
|
|
158
|
+
## Key Paths
|
|
91
159
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
- [Expensive or environment-dependent checks and required services].
|
|
160
|
+
| Path | Responsibility | When to inspect |
|
|
161
|
+
|------|----------------|-----------------|
|
|
162
|
+
| `path/to/file-or-dir` | [What it owns.] | [Task cue, symbol, command, or failure mode.] |
|
|
96
163
|
|
|
97
|
-
##
|
|
164
|
+
## Flow Or Boundaries
|
|
98
165
|
|
|
99
|
-
|
|
100
|
-
- PR resource: `.repo_memory/resources/prs.md`.
|
|
101
|
-
- Issue resource: `.repo_memory/resources/issues.md`.
|
|
102
|
-
- Raw local commit facets: `.repo_memory/raw/git-commits.json`.
|
|
103
|
-
- Raw code-host facets: `.repo_memory/raw/github-facets.json` or `.repo_memory/raw/gitlab-facets.json`.
|
|
104
|
-
- Mechanical preparation facts: `.repo_memory/raw/prepare-report.json`.
|
|
166
|
+
[Explain the concept, lifecycle, dependency direction, or ownership boundary. Prefer short paragraphs and bullets over exhaustive API reference.]
|
|
105
167
|
|
|
106
|
-
##
|
|
168
|
+
## Verification
|
|
107
169
|
|
|
108
|
-
- [
|
|
109
|
-
- [
|
|
110
|
-
- [Open PR themes and warning that they are not landed behavior].
|
|
111
|
-
- [Issue clusters / user pain points].
|
|
170
|
+
- [Fast command or source check relevant to this page.]
|
|
171
|
+
- [Expensive or environment-dependent check, or say none identified.]
|
|
112
172
|
|
|
113
|
-
##
|
|
173
|
+
## Agent Notes
|
|
114
174
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
3. Search `resources/*.md` by module, file, symbol, branch, SHA, PR/MR number, or issue number when historical context matters.
|
|
118
|
-
4. Open matched `resources/*.md` sections for compact human-readable commit/PR/issue routing.
|
|
119
|
-
5. Use `raw/git-commits.json`, `raw/github-facets.json`, or `raw/gitlab-facets.json` only when compact resources are insufficient or a matched section points to a raw facet.
|
|
175
|
+
- Treat this page as routing context and verify current behavior in live source before editing.
|
|
176
|
+
- [One repo-specific caution, extension rule, or likely pitfall.]
|
|
120
177
|
```
|
|
121
178
|
|
|
122
179
|
### `.repo_memory/resources/commits.md`
|
|
@@ -141,6 +198,7 @@ Source: `.repo_memory/raw/git-commits.json`. Treat commits as local checkout his
|
|
|
141
198
|
## Commit [short_sha]: [title]
|
|
142
199
|
|
|
143
200
|
- SHA: `[full sha]`
|
|
201
|
+
- Evidence status: [One short sentence describing local-history evidence strength and whether current source was verified.]
|
|
144
202
|
- Author: `[author name]`
|
|
145
203
|
- Authored: `[ISO timestamp]`
|
|
146
204
|
- Modules: `[semantic modules for human routing]`
|
|
@@ -157,6 +215,7 @@ Source: `.repo_memory/raw/git-commits.json`. Treat commits as local checkout his
|
|
|
157
215
|
## Commit [short_sha]: [title]
|
|
158
216
|
|
|
159
217
|
- SHA: `...`
|
|
218
|
+
- Evidence status: ...
|
|
160
219
|
- Author: `...`
|
|
161
220
|
- Authored: `...`
|
|
162
221
|
- Modules: `...`
|
|
@@ -169,6 +228,24 @@ Source: `.repo_memory/raw/git-commits.json`. Treat commits as local checkout his
|
|
|
169
228
|
- Raw lookup: `facetId=commit.abc1234`
|
|
170
229
|
```
|
|
171
230
|
|
|
231
|
+
When commit history is disabled by policy, still write a disabled resource file:
|
|
232
|
+
|
|
233
|
+
```markdown
|
|
234
|
+
---
|
|
235
|
+
schema: "repo_memory_commit_resource.v0.1"
|
|
236
|
+
repo_full_name: "[owner/name or local repo name]"
|
|
237
|
+
generated_at: "[ISO timestamp]"
|
|
238
|
+
source: "history_disabled"
|
|
239
|
+
resource_count: 0
|
|
240
|
+
trust_state: "disabled_by_policy"
|
|
241
|
+
raw_source: ""
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
# Commit Resource Snapshot
|
|
245
|
+
|
|
246
|
+
No commit evidence was collected because historical evidence was disabled for this build. This is a collection-policy statement, not proof that the repository has no commits.
|
|
247
|
+
```
|
|
248
|
+
|
|
172
249
|
### `.repo_memory/resources/prs.md`
|
|
173
250
|
|
|
174
251
|
Use fixed-field sections, not Markdown tables. Every GitHub PR or GitLab MR needs a search-grade `Description` following the standard in `SKILL.md`. Do not paste the full raw summary; full raw summaries stay in `../raw/github-facets.json` or `../raw/gitlab-facets.json`.
|
|
@@ -191,6 +268,7 @@ Source: `.repo_memory/raw/github-facets.json` or `.repo_memory/raw/gitlab-facets
|
|
|
191
268
|
## PR/MR #[number]: [title]
|
|
192
269
|
|
|
193
270
|
- State: `MERGED|OPEN|CLOSED` [include draft if applicable]
|
|
271
|
+
- Evidence status: [One short sentence describing historical/current relevance and whether current source was verified.]
|
|
194
272
|
- Branch: `base <- head`
|
|
195
273
|
- Modules: `[semantic modules for human routing]`
|
|
196
274
|
- Path modules: `[path prefixes from raw facets or current inspection]`
|
|
@@ -208,6 +286,7 @@ Source: `.repo_memory/raw/github-facets.json` or `.repo_memory/raw/gitlab-facets
|
|
|
208
286
|
## PR/MR #[number]: [title]
|
|
209
287
|
|
|
210
288
|
- State: `...`
|
|
289
|
+
- Evidence status: ...
|
|
211
290
|
- Branch: `...`
|
|
212
291
|
- Modules: `...`
|
|
213
292
|
- Path modules: `...`
|
|
@@ -243,6 +322,7 @@ Source: `.repo_memory/raw/github-facets.json` or `.repo_memory/raw/gitlab-facets
|
|
|
243
322
|
## Issue #[number]: [title]
|
|
244
323
|
|
|
245
324
|
- State: `OPEN|CLOSED`
|
|
325
|
+
- Evidence status: [One short sentence describing issue evidence strength, relevance, and whether current source was verified.]
|
|
246
326
|
- Modules: `[semantic modules for human routing]`
|
|
247
327
|
- Path modules: `[path prefixes from linked PR facets or current inspection, or -]`
|
|
248
328
|
- Description: [2-4 search-grade sentences: what user problem/request this issue explains, when future agents should open it, affected behavior/modules, symptoms/errors, search cues, and evidence strength]
|
|
@@ -268,3 +348,43 @@ Source: `.repo_memory/raw/github-facets.json` or `.repo_memory/raw/gitlab-facets
|
|
|
268
348
|
- URL: ...
|
|
269
349
|
- Raw lookup: `facetId=issue.123`
|
|
270
350
|
```
|
|
351
|
+
|
|
352
|
+
### Disabled Or Unavailable Resource Files
|
|
353
|
+
|
|
354
|
+
Use this pattern when historical evidence or provider evidence was intentionally not collected, unavailable, or degraded to local-only. Keep `resource_count: 0` and `raw_source: ""`; do not fabricate PRs, MRs, issues, or raw provider evidence. Use `source: "history_disabled"` when the entire history channel is disabled, `source: "provider_skipped_local_only"` when provider collection was skipped for a local-only build, and `source: "provider_unavailable"` when provider collection could not be completed.
|
|
355
|
+
|
|
356
|
+
For PR/MR resources:
|
|
357
|
+
|
|
358
|
+
```markdown
|
|
359
|
+
---
|
|
360
|
+
schema: "repo_memory_pr_resource.v0.1"
|
|
361
|
+
repo_full_name: "[owner/name or local repo name]"
|
|
362
|
+
generated_at: "[ISO timestamp]"
|
|
363
|
+
source: "provider_skipped_local_only|provider_unavailable|history_disabled"
|
|
364
|
+
resource_count: 0
|
|
365
|
+
trust_state: "unavailable_local_only|disabled_by_policy"
|
|
366
|
+
raw_source: ""
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
# Pull Request Resource Snapshot
|
|
370
|
+
|
|
371
|
+
No provider evidence was collected for PRs/MRs in this build. This means PR/MR history is unavailable in the memory bundle; it does not mean the repository has no PRs or MRs.
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
For issue resources:
|
|
375
|
+
|
|
376
|
+
```markdown
|
|
377
|
+
---
|
|
378
|
+
schema: "repo_memory_issue_resource.v0.1"
|
|
379
|
+
repo_full_name: "[owner/name or local repo name]"
|
|
380
|
+
generated_at: "[ISO timestamp]"
|
|
381
|
+
source: "provider_skipped_local_only|provider_unavailable|history_disabled"
|
|
382
|
+
resource_count: 0
|
|
383
|
+
trust_state: "unavailable_local_only|disabled_by_policy"
|
|
384
|
+
raw_source: ""
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
# Issue Resource Snapshot
|
|
388
|
+
|
|
389
|
+
No provider evidence was collected for issues in this build. This means issue history is unavailable in the memory bundle; it does not mean the repository has no issues.
|
|
390
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Core Principle
|
|
4
4
|
|
|
5
|
-
Update existing repo memory from a delta, not a full rebuild. Treat the current `.repo_memory/` bundle as the baseline, detect the
|
|
5
|
+
Update existing repo memory from a delta, not a full rebuild. Treat the current `.repo_memory/` bundle as the baseline, follow the effective history policy, detect only the enabled local commit and provider PR/MR/issue changes, then edit only the affected resources.
|
|
6
6
|
|
|
7
7
|
Do not rebuild the whole bundle by default. Return to `SKILL.md` and use `repo-build.md` only when `.repo_memory/PROFILE.md` is missing, the existing memory is structurally unusable, or the user explicitly asks for a full rebuild.
|
|
8
8
|
|
|
@@ -26,9 +26,18 @@ If `.repo_memory/PROFILE.md` is missing, stop and route to `repo-build.md`; do n
|
|
|
26
26
|
|
|
27
27
|
## Default Settings
|
|
28
28
|
|
|
29
|
-
Updater uses `<skill-dir>/defaults.json`
|
|
29
|
+
Updater uses `<skill-dir>/defaults.json` so build and update operations stay aligned. It reads `repoHistory.mode`, `repoHistory.limits.prs`, `repoHistory.limits.issues`, and `summaryChars`, with compatibility fallback to legacy `limits.prs` and `limits.issues`; local commit deltas are not limit-capped because they are computed from the stored baseline commit to current `HEAD` when commit history is enabled.
|
|
30
30
|
|
|
31
|
-
Override one updater run with `--pr-limit`, `--issue-limit`, or `--summary-chars`. Do not edit `defaults.json` for a one-run updater request.
|
|
31
|
+
Override one updater run with `--history-mode`, `--pr-limit`, `--issue-limit`, or `--summary-chars`. Do not edit `defaults.json` for a one-run updater request.
|
|
32
|
+
|
|
33
|
+
History policy modes:
|
|
34
|
+
|
|
35
|
+
- `none`: skip local commit deltas and provider PR/MR/issue deltas.
|
|
36
|
+
- `commits-only` or `local-only`: detect local commit deltas and skip provider PR/MR/issue deltas.
|
|
37
|
+
- `provider`: detect local commit deltas and fetch provider PR/MR/issue deltas when provider evidence is ready.
|
|
38
|
+
- `provider-required`: detect local commit deltas and require provider PR/MR/issue evidence rather than silently authoring provider resources without evidence.
|
|
39
|
+
|
|
40
|
+
Do not re-enable commit or provider channels disabled by policy. Use the detector's `effective_settings.history` block as the authority for which history channels are enabled.
|
|
32
41
|
|
|
33
42
|
## User Count Requests
|
|
34
43
|
|
|
@@ -52,13 +61,15 @@ python3 <skill-dir>/scripts/detect_updates.py \
|
|
|
52
61
|
|
|
53
62
|
The detector:
|
|
54
63
|
|
|
64
|
+
- reads the effective history policy from `repoHistory.mode` and reports it in `effective_settings.history`;
|
|
55
65
|
- reads the commit baseline from `PROFILE.md` `local_head`, with a fallback to the nearest stored ancestor commit in `resources/commits.md`;
|
|
56
66
|
- reads PR/MR and issue baselines from `resources/prs.md` and `resources/issues.md`, enriched by existing raw provider facets when available;
|
|
57
|
-
- compares local git `HEAD` against the newest stored commit;
|
|
67
|
+
- compares local git `HEAD` against the newest stored commit only when commit history is enabled;
|
|
68
|
+
- reports `local_commit_status.status: "skipped"` with `reason: "history_disabled_by_policy"` when `repoHistory.mode` disables commit history;
|
|
58
69
|
- reports `local_commit_status.status: "skipped"` with `reason: "missing_baseline_commit"` when no stored local commit baseline can be found;
|
|
59
70
|
- reports `local_commit_status.status: "skipped"` with `reason: "baseline_not_ancestor_of_head"` when history was rebased or force-pushed, instead of silently returning no commit delta;
|
|
60
|
-
- detects provider state from live git remotes and provider CLIs;
|
|
61
|
-
- fetches bounded latest GitHub/GitLab PR/MR/issue facets when provider evidence is available;
|
|
71
|
+
- detects provider state from live git remotes and provider CLIs only when provider history is enabled;
|
|
72
|
+
- fetches bounded latest GitHub/GitLab PR/MR/issue facets only when provider history is enabled and provider evidence is available;
|
|
62
73
|
- reports added or changed PR/MR/issue numbers without editing memory files;
|
|
63
74
|
- reports provider items missing from the current bounded window as `baseline_only_numbers`, not as deletions.
|
|
64
75
|
|
|
@@ -68,7 +79,7 @@ When provider fetch succeeds, the report includes fetched authoring evidence und
|
|
|
68
79
|
|
|
69
80
|
The report also includes `builder_helpers` fingerprints for the sibling builder files that updater depends on, including `path`, `exists`, `mtime_ns`, and `size_bytes`. Use this only for compatibility diagnostics; it is not evidence for authoring repo-memory resources.
|
|
70
81
|
|
|
71
|
-
Use `--
|
|
82
|
+
Use `--history-mode local-only` or `--history-mode none` when the user requests a one-run history-policy override. `--provider-mode off` remains supported as a compatibility provider-only override when provider access is intentionally unavailable.
|
|
72
83
|
|
|
73
84
|
## Provider Sandbox and Transport Failures
|
|
74
85
|
|