@oscharko-dev/keiko-tools 0.2.8 → 0.2.9

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 (50) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/git-commit-intent-node.d.ts +7 -0
  3. package/dist/git-commit-intent-node.d.ts.map +1 -0
  4. package/dist/git-commit-intent-node.js +42 -0
  5. package/dist/git-merge-gateway.d.ts +95 -0
  6. package/dist/git-merge-gateway.d.ts.map +1 -0
  7. package/dist/git-merge-gateway.js +536 -0
  8. package/dist/git-merge-node.d.ts +17 -0
  9. package/dist/git-merge-node.d.ts.map +1 -0
  10. package/dist/git-merge-node.js +243 -0
  11. package/dist/git-mutation-adapter.d.ts +51 -0
  12. package/dist/git-mutation-adapter.d.ts.map +1 -0
  13. package/dist/git-mutation-adapter.js +207 -0
  14. package/dist/git-mutation-evidence.d.ts +23 -0
  15. package/dist/git-mutation-evidence.d.ts.map +1 -0
  16. package/dist/git-mutation-evidence.js +283 -0
  17. package/dist/git-mutation-node.d.ts +22 -0
  18. package/dist/git-mutation-node.d.ts.map +1 -0
  19. package/dist/git-mutation-node.js +145 -0
  20. package/dist/git-mutation-orchestrator.d.ts +92 -0
  21. package/dist/git-mutation-orchestrator.d.ts.map +1 -0
  22. package/dist/git-mutation-orchestrator.js +321 -0
  23. package/dist/git-mutation-preflight.d.ts +35 -0
  24. package/dist/git-mutation-preflight.d.ts.map +1 -0
  25. package/dist/git-mutation-preflight.js +226 -0
  26. package/dist/git-mutation-taxonomy.d.ts +15 -0
  27. package/dist/git-mutation-taxonomy.d.ts.map +1 -0
  28. package/dist/git-mutation-taxonomy.js +102 -0
  29. package/dist/git-pr-gateway.d.ts +101 -0
  30. package/dist/git-pr-gateway.d.ts.map +1 -0
  31. package/dist/git-pr-gateway.js +487 -0
  32. package/dist/git-pr-node.d.ts +17 -0
  33. package/dist/git-pr-node.d.ts.map +1 -0
  34. package/dist/git-pr-node.js +173 -0
  35. package/dist/git-publish-gateway.d.ts +72 -0
  36. package/dist/git-publish-gateway.d.ts.map +1 -0
  37. package/dist/git-publish-gateway.js +423 -0
  38. package/dist/git-publish-node.d.ts +17 -0
  39. package/dist/git-publish-node.d.ts.map +1 -0
  40. package/dist/git-publish-node.js +107 -0
  41. package/dist/git-worktree-adapter.d.ts +78 -0
  42. package/dist/git-worktree-adapter.d.ts.map +1 -0
  43. package/dist/git-worktree-adapter.js +300 -0
  44. package/dist/git-worktree-snapshot-node.d.ts +31 -0
  45. package/dist/git-worktree-snapshot-node.d.ts.map +1 -0
  46. package/dist/git-worktree-snapshot-node.js +189 -0
  47. package/dist/index.d.ts +9 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +37 -0
  50. package/package.json +9 -5
package/dist/index.js CHANGED
@@ -24,6 +24,43 @@ export { WorkspaceToolHost } from "./registry.js";
24
24
  // `terminal-policy.ts` re-exports the symbol surface src/ui/terminal.ts depends on. Surface
25
25
  // every name it exports so the shim at src/tools/terminal-policy.ts can forward from here.
26
26
  export * from "./terminal-policy.js";
27
+ // ─── Governed Git mutation execution kernel (Issue #472, Epic #470) ──────────────────
28
+ // The deterministic preflight/orchestration kernel for governed local Git writes. The Node
29
+ // execution adapter lives on the `./internal/git-mutation` subpath (it carries the spawn effect);
30
+ // the pure surface — lifecycle taxonomy, preflight evaluators, the narrow adapter port + closed
31
+ // command table, and the orchestrator — is re-exported here.
32
+ export { GIT_MUTATION_FAILURE_CATEGORIES, GIT_MUTATION_LIFECYCLE_PHASES, GIT_MUTATION_PHASE_ORDER, GIT_MUTATION_STATUSES, gitMutationCategoryForExecutionError, gitMutationCategoryForExecutionResult, gitMutationFailureIsRecoverable, isGitMutationFailureCategory, isGitMutationLifecyclePhase, isGitMutationStatus, } from "./git-mutation-taxonomy.js";
33
+ export { evaluateGitPreflight, GIT_PREFLIGHT_FINDING_CODES, gitPreflightRemediationFor, isGitPreflightFindingCode, } from "./git-mutation-preflight.js";
34
+ export { buildAbortArgv, buildBranchCreateArgv, buildBranchSwitchArgv, buildCommitArgv, buildRecoveryArgv, buildStageArgv, buildUnstageArgv, GIT_MUTATION_ALLOWED_SUBCOMMANDS, GIT_MUTATION_COMMAND_RULES, gitMutationPlanIsGoverned, GitMutationArgvError, } from "./git-mutation-adapter.js";
35
+ export { createInMemoryGitMutationJournal, gitMutationOutcomeFailureCategory, runGitMutation, } from "./git-mutation-orchestrator.js";
36
+ export { buildGitDeliveryEvidenceRecord, } from "./git-mutation-evidence.js";
37
+ // ─── Governed remote publish gateway (Issue #476, Epic #470; ADR-0063) ──────────────────────────
38
+ // The SEPARATE remote execution authority for governed push. The pure surface — push command, narrow
39
+ // remote adapter port, dedicated push allowlist, argv builder, rejection taxonomy, and the runGitPublish
40
+ // orchestrator — is re-exported here. The Node push executor (createNodeGitPublishAdapter) carries the
41
+ // spawn effect and is reachable on the `./internal/git-mutation` subpath, alongside the other Node git
42
+ // effects, never the package barrel.
43
+ export { buildPushArgv, classifyGitPublishRejection, evaluateGitPublishEffectivePolicy, GIT_PUBLISH_ALLOWED_SUBCOMMANDS, GIT_PUBLISH_COMMAND_RULES, GIT_PUBLISH_REJECTION_REASONS, gitPublishArgvIsGoverned, gitPublishRejectionFor, gitPublishRejectionToErrorCode, GitPublishArgvError, isGitPublishRejectionReason, runGitPublish, } from "./git-publish-gateway.js";
44
+ // The SEPARATE GitHub pull request authority (Issue #477, ADR-0064). A PARALLEL gateway to the publish
45
+ // gateway — never an extension of it. The pure surface — PR command union, narrow two-method adapter
46
+ // port, dedicated `gh api` allowlist, argv builders, GitHub-error classifier, effective-policy
47
+ // evaluator, and the runGitPullRequest orchestrator — is re-exported here. The Node `gh api` executor
48
+ // (createNodeGitPullRequestAdapter) carries the spawn effect and is reachable on the
49
+ // `./internal/git-mutation` subpath, never the package barrel.
50
+ export { buildPrConvertDraftGraphqlArgv, buildPrCreateArgv, buildPrMarkReadyGraphqlArgv, buildPrUpdateArgv, classifyGitPullRequestRejection, evaluateGitPullRequestEffectivePolicy, GIT_PULL_REQUEST_ALLOWED_SUBCOMMANDS, GIT_PULL_REQUEST_COMMAND_RULES, gitPrArgvIsGoverned, gitPrRejectionToErrorCode, gitPullRequestRejectionFor, GitPrArgvError, runGitPullRequest, } from "./git-pr-gateway.js";
51
+ // The SEPARATE governed merge authority (Issue #478, ADR-0065). A THIRD parallel gateway to the publish
52
+ // and PR gateways — never an extension of either. The pure surface — merge command, narrow two-method
53
+ // adapter port (readiness read + merge execute), dedicated `gh api` allowlist, argv builders, GitHub
54
+ // merge-error classifier, mergeable-state mapper, effective-policy evaluator, and the runGitMerge
55
+ // orchestrator (preflight + policy + final-approval + the readiness gate) — is re-exported here. The Node
56
+ // `gh api` executor (createNodeGitMergeAdapter) carries the spawn effect and is reachable on the
57
+ // `./internal/git-mutation` subpath, never the package barrel.
58
+ export { buildDeleteMergedBranchArgv, buildHeadStatusArgv, buildMergeArgv, buildMergeReadinessArgv, buildRepoMergeConfigArgv, classifyGitMergeRejection, evaluateGitMergeEffectivePolicy, GIT_MERGE_ALLOWED_SUBCOMMANDS, GIT_MERGE_COMMAND_RULES, gitMergeArgvIsGoverned, gitMergeRejectionToErrorCode, GitMergeArgvError, mapRawMergeReadiness, runGitMerge, } from "./git-merge-gateway.js";
59
+ // ─── Governed local Git flows: commit-intent summary (Issue #475) ──────────────────────────────
60
+ // The PURE commit-intent summarizer reduces staged paths into the content-free GitCommitChangeSummary.
61
+ // The live worktree READER carries the Node spawn effect and is therefore NOT re-exported here; it is
62
+ // reachable via the `./internal/git-mutation` subpath (alongside createNodeGitMutationAdapter).
63
+ export { MAX_COMMIT_SUMMARY_AREAS, summarizeStagedChangeset } from "./git-commit-intent-node.js";
27
64
  // ─── Browser sub-surface (ADR-0017) ─────────────────────────────────────────────────
28
65
  export { BROWSER_ERROR_CODES, BrowserToolError } from "./browser/errors.js";
29
66
  export { isLoopbackHost, isLoopbackUrl, normalizeCdpPort, normalizeNavigateUrl, } from "./browser/validators.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-tools",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal tools package: Keiko safe tool-execution layer — terminal-policy command allowlist, env-isolated no-shell spawn, atomic patch workflow, browser CDP adapter, and the WorkspaceWriter boundary (ADR-0006 / ADR-0017). Not published independently.",
@@ -18,6 +18,10 @@
18
18
  "./internal/writer": {
19
19
  "types": "./dist/writer.d.ts",
20
20
  "import": "./dist/writer.js"
21
+ },
22
+ "./internal/git-mutation": {
23
+ "types": "./dist/git-mutation-node.d.ts",
24
+ "import": "./dist/git-mutation-node.js"
21
25
  }
22
26
  },
23
27
  "scripts": {
@@ -33,10 +37,10 @@
33
37
  "node": ">=22"
34
38
  },
35
39
  "dependencies": {
36
- "@oscharko-dev/keiko-contracts": "0.2.8",
37
- "@oscharko-dev/keiko-sandbox": "0.2.8",
38
- "@oscharko-dev/keiko-security": "0.2.8",
39
- "@oscharko-dev/keiko-workspace": "0.2.8",
40
+ "@oscharko-dev/keiko-contracts": "0.2.9",
41
+ "@oscharko-dev/keiko-sandbox": "0.2.9",
42
+ "@oscharko-dev/keiko-security": "0.2.9",
43
+ "@oscharko-dev/keiko-workspace": "0.2.9",
40
44
  "ws": "^8.21.0"
41
45
  }
42
46
  }