counterparts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONSTITUTION.md +68 -0
- package/LICENSE +21 -0
- package/README.md +348 -0
- package/docs/ELI5.md +84 -0
- package/docs/QUICKSTART.md +1258 -0
- package/docs/module-map.md +81 -0
- package/package.json +63 -0
- package/src/adapters/claude-code/CONTRACT.md +606 -0
- package/src/adapters/claude-code/INTERFACE-GAPS.md +655 -0
- package/src/adapters/claude-code/NOTES.md +1055 -0
- package/src/adapters/claude-code/bin/hook.ts +820 -0
- package/src/adapters/claude-code/bin/runner.ts +522 -0
- package/src/adapters/claude-code/config.ts +778 -0
- package/src/adapters/claude-code/credentials.ts +199 -0
- package/src/adapters/claude-code/doctor.ts +2557 -0
- package/src/adapters/claude-code/embed-client.ts +617 -0
- package/src/adapters/claude-code/hooks.ts +2240 -0
- package/src/adapters/claude-code/index.ts +224 -0
- package/src/adapters/claude-code/interpret-client.ts +395 -0
- package/src/adapters/claude-code/page-writer.ts +462 -0
- package/src/adapters/claude-code/primacy.ts +162 -0
- package/src/adapters/claude-code/spawn.ts +241 -0
- package/src/adapters/claude-code/standdown.ts +536 -0
- package/src/adapters/claude-code/transcript.ts +661 -0
- package/src/adapters/claude-code/vectors.ts +415 -0
- package/src/adapters/cli/CONTRACT.md +255 -0
- package/src/adapters/cli/INTERFACE-GAPS.md +350 -0
- package/src/adapters/cli/NOTES.md +936 -0
- package/src/adapters/cli/bin/counterparts.ts +74 -0
- package/src/adapters/cli/commands.ts +6095 -0
- package/src/adapters/cli/export.ts +766 -0
- package/src/adapters/cli/index.ts +103 -0
- package/src/adapters/cli/install.ts +670 -0
- package/src/adapters/cli/removal.ts +1186 -0
- package/src/adapters/cli/repair-dates.ts +659 -0
- package/src/adapters/cli/self-page.ts +229 -0
- package/src/adapters/cli/snapshot.ts +279 -0
- package/src/adapters/cli/start-fresh.ts +1228 -0
- package/src/adapters/config-path.ts +342 -0
- package/src/adapters/dashboard/CONTRACT.md +67 -0
- package/src/adapters/dashboard/INTERFACE-GAPS.md +139 -0
- package/src/adapters/dashboard/NOTES.md +474 -0
- package/src/adapters/dashboard/activity.ts +121 -0
- package/src/adapters/dashboard/ansi.ts +82 -0
- package/src/adapters/dashboard/bin/dashboard.ts +479 -0
- package/src/adapters/dashboard/browse.ts +298 -0
- package/src/adapters/dashboard/identity.ts +182 -0
- package/src/adapters/dashboard/index.ts +183 -0
- package/src/adapters/dashboard/layout.ts +149 -0
- package/src/adapters/dashboard/registries.ts +291 -0
- package/src/adapters/dashboard/resolve.ts +206 -0
- package/src/adapters/dashboard/source.ts +48 -0
- package/src/adapters/dashboard/status.ts +327 -0
- package/src/adapters/dashboard/stories.ts +194 -0
- package/src/adapters/dashboard/web/app.html +1731 -0
- package/src/adapters/dashboard/web/brain.html +463 -0
- package/src/adapters/dashboard/web/fired.ts +31 -0
- package/src/adapters/dashboard/web/flow.ts +457 -0
- package/src/adapters/dashboard/web/narrate.ts +1042 -0
- package/src/adapters/dashboard/web/reveal.ts +135 -0
- package/src/adapters/dashboard/web/server.ts +287 -0
- package/src/adapters/dashboard/web/views.ts +1744 -0
- package/src/adapters/expansions.ts +569 -0
- package/src/adapters/fired.ts +1580 -0
- package/src/adapters/mcp/CONTRACT.md +240 -0
- package/src/adapters/mcp/INTERFACE-GAPS.md +271 -0
- package/src/adapters/mcp/NOTES.md +205 -0
- package/src/adapters/mcp/bin/serve.ts +349 -0
- package/src/adapters/mcp/deliberate.ts +619 -0
- package/src/adapters/mcp/index.ts +101 -0
- package/src/adapters/mcp/protocol.ts +170 -0
- package/src/adapters/mcp/server.ts +1740 -0
- package/src/adapters/mcp/stdio.ts +56 -0
- package/src/adapters/mcp/tools.ts +779 -0
- package/src/adapters/scopes.ts +657 -0
- package/src/adapters/sessions.ts +402 -0
- package/src/adapters/snapshots.ts +1069 -0
- package/src/adapters/stance-env.ts +137 -0
- package/src/core/associate/CONTRACT.md +118 -0
- package/src/core/associate/INTERFACE-GAPS.md +173 -0
- package/src/core/associate/NOTES.md +194 -0
- package/src/core/associate/buffer.ts +66 -0
- package/src/core/associate/edges.ts +188 -0
- package/src/core/associate/index.ts +570 -0
- package/src/core/associate/pending.ts +383 -0
- package/src/core/associate/spread.ts +149 -0
- package/src/core/associate/tunables.ts +123 -0
- package/src/core/bridge.ts +272 -0
- package/src/core/briefing.ts +67 -0
- package/src/core/counterpart.ts +3855 -0
- package/src/core/encode/CONTRACT.md +151 -0
- package/src/core/encode/INTERFACE-GAPS.md +135 -0
- package/src/core/encode/NOTES.md +146 -0
- package/src/core/encode/aliases.ts +71 -0
- package/src/core/encode/battery.ts +284 -0
- package/src/core/encode/chunk.ts +265 -0
- package/src/core/encode/emotion.ts +119 -0
- package/src/core/encode/floor.ts +76 -0
- package/src/core/encode/index.ts +100 -0
- package/src/core/encode/precision.ts +162 -0
- package/src/core/encode/preselect.ts +269 -0
- package/src/core/encode/salience.ts +108 -0
- package/src/core/encode/secrets.ts +265 -0
- package/src/core/encode/tunables.ts +99 -0
- package/src/core/encode/types.ts +286 -0
- package/src/core/encode/words.ts +75 -0
- package/src/core/handoff/CONTRACT.md +199 -0
- package/src/core/handoff/INTERFACE-GAPS.md +166 -0
- package/src/core/handoff/NOTES.md +206 -0
- package/src/core/handoff/index.ts +957 -0
- package/src/core/mint.ts +279 -0
- package/src/core/observer.ts +28 -0
- package/src/core/physics/CONTRACT.md +341 -0
- package/src/core/physics/NOTES.md +155 -0
- package/src/core/physics/clock.ts +51 -0
- package/src/core/physics/index.ts +1054 -0
- package/src/core/prospective/CONTRACT.md +137 -0
- package/src/core/prospective/INTERFACE-GAPS.md +112 -0
- package/src/core/prospective/NOTES.md +160 -0
- package/src/core/prospective/derive.ts +188 -0
- package/src/core/prospective/index.ts +1030 -0
- package/src/core/prospective/tunables.ts +72 -0
- package/src/core/prospective/windows.ts +187 -0
- package/src/core/recall/CONTRACT.md +326 -0
- package/src/core/recall/INTERFACE-GAPS.md +163 -0
- package/src/core/recall/NOTES.md +472 -0
- package/src/core/recall/activate.ts +521 -0
- package/src/core/recall/cues.ts +275 -0
- package/src/core/recall/gate.ts +441 -0
- package/src/core/recall/index.ts +692 -0
- package/src/core/recall/probe.ts +239 -0
- package/src/core/recall/reference.ts +201 -0
- package/src/core/recall/render.ts +285 -0
- package/src/core/recall/session.ts +403 -0
- package/src/core/recall/tunables.ts +329 -0
- package/src/core/remember/CONTRACT.md +293 -0
- package/src/core/remember/INTERFACE-GAPS.md +189 -0
- package/src/core/remember/NOTES.md +373 -0
- package/src/core/remember/fallback.ts +452 -0
- package/src/core/remember/index.ts +103 -0
- package/src/core/remember/owner-strike-seam.ts +479 -0
- package/src/core/remember/proposals.ts +609 -0
- package/src/core/remember/spans.ts +1310 -0
- package/src/core/remember/tunables.ts +111 -0
- package/src/core/remember/updates.ts +198 -0
- package/src/core/retrieval.ts +96 -0
- package/src/core/revision.ts +441 -0
- package/src/core/schemas/CONTRACT.md +190 -0
- package/src/core/schemas/INTERFACE-GAPS.md +172 -0
- package/src/core/schemas/NOTES.md +260 -0
- package/src/core/schemas/aliases.ts +160 -0
- package/src/core/schemas/index.ts +1459 -0
- package/src/core/schemas/tunables.ts +44 -0
- package/src/core/schemas/types.ts +387 -0
- package/src/core/self/CONTRACT.md +459 -0
- package/src/core/self/INTERFACE-GAPS.md +284 -0
- package/src/core/self/NOTES.md +1057 -0
- package/src/core/self/briefing.ts +980 -0
- package/src/core/self/episodes.ts +483 -0
- package/src/core/self/freeze.ts +103 -0
- package/src/core/self/identity.ts +604 -0
- package/src/core/self/index.ts +2130 -0
- package/src/core/self/journal-file.ts +760 -0
- package/src/core/self/page.ts +404 -0
- package/src/core/self/tunables.ts +244 -0
- package/src/core/self/writer.ts +714 -0
- package/src/core/sleep/CONTRACT.md +298 -0
- package/src/core/sleep/INTERFACE-GAPS.md +262 -0
- package/src/core/sleep/NOTES.md +770 -0
- package/src/core/sleep/briefing.ts +86 -0
- package/src/core/sleep/consolidate.ts +241 -0
- package/src/core/sleep/cycle.ts +598 -0
- package/src/core/sleep/decay.ts +237 -0
- package/src/core/sleep/dedup.ts +373 -0
- package/src/core/sleep/index.ts +112 -0
- package/src/core/sleep/log.ts +116 -0
- package/src/core/sleep/markers.ts +164 -0
- package/src/core/sleep/prune.ts +170 -0
- package/src/core/sleep/strength-cache.ts +176 -0
- package/src/core/sleep/tunables.ts +135 -0
- package/src/core/sleep/types.ts +542 -0
- package/src/core/store/CONTRACT.md +446 -0
- package/src/core/store/NOTES.md +1068 -0
- package/src/core/store/cache.ts +709 -0
- package/src/core/store/db.ts +275 -0
- package/src/core/store/errors.ts +134 -0
- package/src/core/store/index.ts +2450 -0
- package/src/core/store/operational.ts +610 -0
- package/src/core/store/owner-op-seam.ts +428 -0
- package/src/core/store/paths.ts +494 -0
- package/src/core/store/prose.ts +165 -0
- package/src/core/store/render.ts +87 -0
- package/src/core/store/walk-seam.ts +78 -0
- package/src/core/types.ts +68 -0
- package/tools/install-loop/run.sh +1063 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `adapters/cli/` — the owner's console.
|
|
3
|
+
*
|
|
4
|
+
* The dependency direction is one-way and asserted by a test: the core imports
|
|
5
|
+
* NOTHING from this directory, and — the sharper rule — **nothing outside this
|
|
6
|
+
* directory imports `removal.ts`** (§5 G1, §16 G2). `removal.ts` is deliberately
|
|
7
|
+
* NOT re-exported here: a module that is easy to import is a module a future
|
|
8
|
+
* caller imports. The console reaches it directly; nobody else may.
|
|
9
|
+
*/
|
|
10
|
+
export {
|
|
11
|
+
COMMANDS,
|
|
12
|
+
COMMAND_BLURB,
|
|
13
|
+
COMMAND_FLAGS,
|
|
14
|
+
COMMON_FLAGS,
|
|
15
|
+
commandHelp,
|
|
16
|
+
unknownFlag,
|
|
17
|
+
EXIT,
|
|
18
|
+
OWNER_OPS,
|
|
19
|
+
openCounterpart,
|
|
20
|
+
parse,
|
|
21
|
+
run,
|
|
22
|
+
usage,
|
|
23
|
+
} from "./commands.js";
|
|
24
|
+
export type { Command, Io, RunOptions } from "./commands.js";
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
BLOB_NAME,
|
|
28
|
+
EXPORT_SCRATCH_STALE_MS,
|
|
29
|
+
sweepStaleExportScratch,
|
|
30
|
+
CIPHER,
|
|
31
|
+
EXPORT_FORMAT,
|
|
32
|
+
KDF,
|
|
33
|
+
decryptBundle,
|
|
34
|
+
encryptBundle,
|
|
35
|
+
exportStore,
|
|
36
|
+
} from "./export.js";
|
|
37
|
+
export type { ExportMode, ExportOptions, ExportReport } from "./export.js";
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
BIN,
|
|
41
|
+
CONFIG_FILE,
|
|
42
|
+
CREDENTIALS_FILE,
|
|
43
|
+
HOOK_SCRIPT,
|
|
44
|
+
HOST_EVENTS,
|
|
45
|
+
MCP_SCRIPT,
|
|
46
|
+
MCP_SERVER_NAME,
|
|
47
|
+
budgetRefusal,
|
|
48
|
+
configObject,
|
|
49
|
+
credentialsTemplate,
|
|
50
|
+
DEFAULT_STORE_DIR,
|
|
51
|
+
installLayout,
|
|
52
|
+
layoutRefusal,
|
|
53
|
+
tempRoots,
|
|
54
|
+
throwawayDefaultRefusal,
|
|
55
|
+
mcpCommand,
|
|
56
|
+
readHost,
|
|
57
|
+
hostMcpFile,
|
|
58
|
+
hostSettingsFiles,
|
|
59
|
+
hostConfigBase,
|
|
60
|
+
runCommand,
|
|
61
|
+
settingsBlock,
|
|
62
|
+
shellQuote,
|
|
63
|
+
writeOnce,
|
|
64
|
+
} from "./install.js";
|
|
65
|
+
export type { ConfigInput, FileResult, HostRead, InstallLayout, WroteWhat } from "./install.js";
|
|
66
|
+
|
|
67
|
+
export { assertSafeTarget, snapshot, snapshotName, vacuumInto } from "./snapshot.js";
|
|
68
|
+
export type { CopiedEntry, CopyMethod, SnapshotReport } from "./snapshot.js";
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
BLANK_INFIX,
|
|
72
|
+
OPEN_WINDOW_MS,
|
|
73
|
+
PARKED_INFIX,
|
|
74
|
+
REAL_OPS,
|
|
75
|
+
configLines,
|
|
76
|
+
confirmationWord,
|
|
77
|
+
guardedMove,
|
|
78
|
+
pairedSuffix,
|
|
79
|
+
park,
|
|
80
|
+
planUndo,
|
|
81
|
+
undoLines,
|
|
82
|
+
parkRefusal,
|
|
83
|
+
parkedPath,
|
|
84
|
+
planLines,
|
|
85
|
+
planStartFresh,
|
|
86
|
+
readLiveness,
|
|
87
|
+
rollbackLines,
|
|
88
|
+
sameFilesystemRefusal,
|
|
89
|
+
sight,
|
|
90
|
+
} from "./start-fresh.js";
|
|
91
|
+
export type {
|
|
92
|
+
DirSighting,
|
|
93
|
+
Liveness,
|
|
94
|
+
OpenSign,
|
|
95
|
+
ParkOutcome,
|
|
96
|
+
ParkStep,
|
|
97
|
+
PlanInput,
|
|
98
|
+
StartFreshOps,
|
|
99
|
+
StartFreshPlan,
|
|
100
|
+
StartFreshShape,
|
|
101
|
+
UndoPlan,
|
|
102
|
+
UndoStep,
|
|
103
|
+
} from "./start-fresh.js";
|