@adamchanadam/agent-handoff-kit 0.3.40 → 0.3.41
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/LICENSE +21 -21
- package/README.md +1 -1
- package/bin/agent-handoff-kit.mjs +331 -121
- package/bin/installed-file-contract.mjs +45 -0
- package/bin/migration-baselines/official-origin-catalog.json +9828 -0
- package/bin/official-origin-catalog.mjs +192 -0
- package/bin/prompt-mirror-core.mjs +84 -84
- package/package.json +32 -20
- package/packs/agent-governance.md +103 -103
- package/packs/closeout.md +72 -72
- package/packs/coding.md +28 -28
- package/packs/communication.md +30 -30
- package/packs/integrations.md +251 -251
- package/packs/knowledge.md +5 -5
- package/packs/onboarding.md +214 -214
- package/packs/release.md +28 -28
- package/packs/research.md +30 -30
- package/packs/safety.md +29 -29
- package/packs/writing.md +36 -36
- package/runtime-core/AGENTS.core.md +112 -112
- package/runtime-core/CLAUDE.md +13 -13
- package/runtime-core/DOC_SYNC_REGISTRY.md +24 -24
- package/runtime-core/GEMINI.md +17 -17
- package/runtime-core/PROJECT_DECISIONS.md +43 -43
- package/runtime-core/PROJECT_INDEX.md +1 -1
- package/runtime-core/RULE_PACKS.md +14 -14
- package/runtime-core/SESSION_HANDOFF.md +36 -36
- package/runtime-core/SESSION_LOG.md +35 -35
- package/runtime-core/START_NEXT_SESSION_PROMPT.txt +5 -5
- package/bin/migration-baselines/v0.3.38/integrations.md +0 -235
- package/bin/migration-baselines/v0.3.38/onboarding.md +0 -201
- package/bin/migration-baselines/v0.3.38/safety.md +0 -46
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Single source of truth for every file Agent Handoff Kit installs and upgrades.
|
|
2
|
+
// Runtime migration, fixture generation, catalog validation, and package QA must
|
|
3
|
+
// consume this contract instead of maintaining parallel path lists.
|
|
4
|
+
|
|
5
|
+
export const INSTALLED_FILE_CONTRACT_SCHEMA = 1;
|
|
6
|
+
|
|
7
|
+
export const installedFileContracts = Object.freeze([
|
|
8
|
+
contract("runtime-core/AGENTS.core.md", "AGENTS.md", "managed-core"),
|
|
9
|
+
contract("runtime-core/CLAUDE.md", "CLAUDE.md", "strict-bridge"),
|
|
10
|
+
contract("runtime-core/GEMINI.md", "GEMINI.md", "strict-bridge"),
|
|
11
|
+
contract("runtime-core/START_NEXT_SESSION_PROMPT.txt", "START_NEXT_SESSION_PROMPT.txt", "generated-state"),
|
|
12
|
+
contract("runtime-core/SESSION_HANDOFF.md", "dev/SESSION_HANDOFF.md", "stateful-handoff"),
|
|
13
|
+
contract("runtime-core/SESSION_LOG.md", "dev/SESSION_LOG.md", "stateful-log"),
|
|
14
|
+
contract("runtime-core/PROJECT_INDEX.md", "dev/PROJECT_INDEX.md", "stateful-index"),
|
|
15
|
+
contract("runtime-core/DOC_SYNC_REGISTRY.md", "dev/DOC_SYNC_REGISTRY.md", "stateful-registry"),
|
|
16
|
+
contract("runtime-core/RULE_PACKS.md", "dev/RULE_PACKS.md", "marked-routing-table"),
|
|
17
|
+
contract("runtime-core/PROJECT_DECISIONS.md", "dev/PROJECT_DECISIONS.md", "stateful-decisions"),
|
|
18
|
+
contract("packs/safety.md", "dev/rules/safety.md", "rule-pack"),
|
|
19
|
+
contract("packs/coding.md", "dev/rules/coding.md", "rule-pack"),
|
|
20
|
+
contract("packs/writing.md", "dev/rules/writing.md", "rule-pack"),
|
|
21
|
+
contract("packs/research.md", "dev/rules/research.md", "rule-pack"),
|
|
22
|
+
contract("packs/agent-governance.md", "dev/rules/agent-governance.md", "rule-pack"),
|
|
23
|
+
contract("packs/release.md", "dev/rules/release.md", "rule-pack"),
|
|
24
|
+
contract("packs/knowledge.md", "dev/rules/knowledge.md", "rule-pack"),
|
|
25
|
+
contract("packs/communication.md", "dev/rules/communication.md", "rule-pack"),
|
|
26
|
+
contract("packs/closeout.md", "dev/rules/closeout.md", "rule-pack"),
|
|
27
|
+
contract("packs/onboarding.md", "dev/rules/onboarding.md", "rule-pack"),
|
|
28
|
+
contract("packs/integrations.md", "dev/rules/integrations.md", "rule-pack")
|
|
29
|
+
]);
|
|
30
|
+
|
|
31
|
+
export const installedMappings = Object.freeze(
|
|
32
|
+
installedFileContracts.map(({ sourceRel, targetRel }) => Object.freeze([sourceRel, targetRel]))
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
export const requiredInstalledTargets = Object.freeze(
|
|
36
|
+
installedFileContracts.map(({ targetRel }) => targetRel)
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
export function installedFileContract(targetRel) {
|
|
40
|
+
return installedFileContracts.find((item) => item.targetRel === targetRel) ?? null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function contract(sourceRel, targetRel, strategy) {
|
|
44
|
+
return Object.freeze({ sourceRel, targetRel, strategy });
|
|
45
|
+
}
|