@first-tree-ai/context-tree 0.1.7-alpha.202609010710 → 0.1.7

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.
Files changed (37) hide show
  1. package/README.md +35 -38
  2. package/dist/cli/index.mjs +923 -647
  3. package/package.json +7 -28
  4. package/scripts/postinstall.mjs +53 -0
  5. package/skills/context-tree-connect/SKILL.md +9 -7
  6. package/skills/context-tree-create/SKILL.md +10 -10
  7. package/skills/context-tree-publish/SKILL.md +4 -8
  8. package/skills/context-tree-read/SKILL.md +32 -12
  9. package/skills/context-tree-setup/SKILL.md +7 -12
  10. package/skills/context-tree-write/SKILL.md +196 -17
  11. package/.agents/plugins/marketplace.json +0 -19
  12. package/.claude-plugin/marketplace.json +0 -21
  13. package/.claude-plugin/plugin.json +0 -16
  14. package/.codex-plugin/plugin.json +0 -36
  15. package/dist/cli/index.d.mts +0 -1
  16. package/dist/index.d.mts +0 -77
  17. package/dist/index.mjs +0 -1449
  18. package/dist/schemas-C_7izpsa.d.mts +0 -390
  19. package/dist/schemas-DKHE1sWt.mjs +0 -289
  20. package/dist/schemas.d.mts +0 -2
  21. package/dist/schemas.mjs +0 -2
  22. package/docs/specification.md +0 -160
  23. package/examples/basic/NODE.md +0 -15
  24. package/examples/basic/members/NODE.md +0 -8
  25. package/examples/basic/members/example-agent/NODE.md +0 -7
  26. package/examples/basic/members/example-agent/memory.md +0 -9
  27. package/examples/basic/systems/NODE.md +0 -10
  28. package/examples/basic/systems/runtime.md +0 -15
  29. package/hooks/hooks.json +0 -26
  30. package/hooks/session-start.mjs +0 -55
  31. package/policy/context-tree-policy.md +0 -156
  32. package/skills/context-tree-connect/scripts/context-tree.mjs +0 -41
  33. package/skills/context-tree-create/scripts/context-tree.mjs +0 -41
  34. package/skills/context-tree-publish/scripts/context-tree.mjs +0 -41
  35. package/skills/context-tree-read/scripts/context-tree.mjs +0 -41
  36. package/skills/context-tree-setup/scripts/context-tree.mjs +0 -41
  37. package/skills/context-tree-write/scripts/context-tree.mjs +0 -41
package/dist/index.d.mts DELETED
@@ -1,77 +0,0 @@
1
- import { C as PrepareContextWriteResult, O as VerifyTreeReport, S as ManagedTreeListingResult, b as FinishContextWriteResult, d as ContextTreePolicy, f as ContextTreePublishResult, h as ContextTreeReadResult, r as ConnectProjectResult, u as ContextTreeConnectionResult, v as ContextTreeSyncResult, y as CreateProjectResult } from "./schemas-C_7izpsa.mjs";
2
-
3
- //#region src/core/internal/git.d.ts
4
- /**
5
- * The single injectable command runner shared by every Git and GitHub CLI
6
- * operation in the core. Tests substitute this to keep Git and `gh` behavior
7
- * hermetic.
8
- */
9
- type CommandResult = {
10
- status: number | null;
11
- stdout: string;
12
- stderr: string;
13
- };
14
- type CommandRunner = (command: string, args: string[]) => CommandResult;
15
- //#endregion
16
- //#region src/core/connections.d.ts
17
- /** List valid, clean managed trees, excluding unsafe or invalid candidates without failing the listing. */
18
- declare function listManagedTrees(runner?: CommandRunner): ManagedTreeListingResult;
19
- declare function resolveConnection(projectPath: string, runner?: CommandRunner): ContextTreeConnectionResult;
20
- type ConnectProjectOptions = {
21
- projectPath: string;
22
- target: string;
23
- } | {
24
- projectPath: string;
25
- treePath: string;
26
- };
27
- /**
28
- * Connect by exact managed name or GitHub OWNER/REPO, or attach an exact,
29
- * clean, fully valid Git checkout at an explicit disk path in place.
30
- */
31
- declare function connectProject(options: ConnectProjectOptions, runner?: CommandRunner): ConnectProjectResult;
32
- //#endregion
33
- //#region src/core/create.d.ts
34
- /** Create and connect the project's uniquely named managed local Context Tree. */
35
- declare function createProject(projectPath: string, runner?: CommandRunner): CreateProjectResult;
36
- //#endregion
37
- //#region src/core/policy.d.ts
38
- declare function readContextTreePolicy(): ContextTreePolicy;
39
- //#endregion
40
- //#region src/core/publish.d.ts
41
- type PublishProjectOptions = {
42
- /** GitHub OWNER/REPO override; defaults to the authenticated account plus the managed tree name. */repository?: string | undefined;
43
- };
44
- /**
45
- * Publish a clean, valid local tree as a private GitHub repository. The
46
- * default repository name derives from the authenticated account and managed
47
- * tree name; OWNER/REPO is accepted only as an explicit override. The initial
48
- * publication is one gh repo create operation, and the stored connection is
49
- * updated atomically to the published tree state.
50
- */
51
- declare function publishProject(projectPath: string, options?: PublishProjectOptions, runner?: CommandRunner): ContextTreePublishResult;
52
- //#endregion
53
- //#region src/core/read.d.ts
54
- declare function readTree(treePath: string, path?: string): ContextTreeReadResult;
55
- //#endregion
56
- //#region src/core/sync.d.ts
57
- /**
58
- * Local trees report their checked-out state without network access. GitHub
59
- * trees fast-forward the exact checked-out branch once, then revalidate.
60
- */
61
- declare function syncProject(projectPath: string, runner?: CommandRunner): ContextTreeSyncResult;
62
- //#endregion
63
- //#region src/core/verify.d.ts
64
- declare function verifyTree(treePath: string): VerifyTreeReport;
65
- //#endregion
66
- //#region src/core/write.d.ts
67
- /** Synchronize first, then create an isolated task worktree at the exact HEAD. */
68
- declare function prepareContextWrite(projectPath: string, runner?: CommandRunner): PrepareContextWriteResult;
69
- type FinishContextWriteOptions = {
70
- message: string;
71
- projectPath: string;
72
- worktreePath: string;
73
- };
74
- /** Commit every pending change, then fast-forward locally or push once. */
75
- declare function finishContextWrite(options: FinishContextWriteOptions, runner?: CommandRunner): FinishContextWriteResult;
76
- //#endregion
77
- export { connectProject, createProject, finishContextWrite, listManagedTrees, prepareContextWrite, publishProject, readContextTreePolicy, readTree, resolveConnection, syncProject, verifyTree };