diff --git a/ts/packages/git-commit-story/LICENSE b/ts/packages/git-story/LICENSE similarity index 100% rename from ts/packages/git-commit-story/LICENSE rename to ts/packages/git-story/LICENSE diff --git a/ts/packages/git-commit-story/README.AUTOGEN.md b/ts/packages/git-story/README.AUTOGEN.md similarity index 76% rename from ts/packages/git-commit-story/README.AUTOGEN.md rename to ts/packages/git-story/README.AUTOGEN.md index 1a21d48c08..c8ab4dde12 100644 --- a/ts/packages/git-commit-story/README.AUTOGEN.md +++ b/ts/packages/git-story/README.AUTOGEN.md @@ -6,9 +6,9 @@ -# git-commit-story — AI-generated documentation +# git-story — AI-generated documentation -> 📝 **Placeholder documentation — not yet AI-authored.** Re-run `pnpm docs:generate:llm --package git-commit-story` to populate this file, or read [`./README.md`](./README.md) for the hand-written documentation in the meantime. The deterministic Reference section below is already populated. +> 📝 **Placeholder documentation — not yet AI-authored.** Re-run `pnpm docs:generate:llm --package git-story` to populate this file, or read [`./README.md`](./README.md) for the hand-written documentation in the meantime. The deterministic Reference section below is already populated. ## Overview @@ -34,6 +34,6 @@ External: `commander` --- -_Auto-generated against commit `031e5113b09df01a0f6392d858d93badc14699c7` on `2026-09-29T06:06:07.744Z` by `docs-generate.yml`. Links validated at that commit; the working tree may have drifted by up to 24h. Re-run `pnpm --filter git-commit-story docs:verify-links` to spot-check._ +_Auto-generated against commit `031e5113b09df01a0f6392d858d93badc14699c7` on `2026-09-29T06:06:07.744Z` by `docs-generate.yml`. Links validated at that commit; the working tree may have drifted by up to 24h. Re-run `pnpm --filter git-story docs:verify-links` to spot-check._ diff --git a/ts/packages/git-commit-story/README.md b/ts/packages/git-story/README.md similarity index 75% rename from ts/packages/git-commit-story/README.md rename to ts/packages/git-story/README.md index 1902c012e4..eaa04e7b40 100644 --- a/ts/packages/git-commit-story/README.md +++ b/ts/packages/git-story/README.md @@ -1,17 +1,17 @@ -# git-commit-story +# git-story Attaches the agent sessions that led to a commit to that commit. This package is the scaffold: a CLI with no story logic yet. Git runs any `git-` binary on `PATH` as `git `, so the -`git-commit-story` binary is also `git commit-story`. +`git-story` binary is also `git story`. ```text -$ cd ts/packages/git-commit-story +$ cd ts/packages/git-story $ pnpm build -$ npm link # puts git-commit-story on PATH -$ git commit-story init # registers Copilot CLI hooks for this repo -$ git commit-story hooks copilot user-prompt-submitted +$ npm link # puts git-story on PATH +$ git story init # registers Copilot CLI hooks for this repo +$ git story hooks copilot user-prompt-submitted Hello World ``` diff --git a/ts/packages/git-commit-story/package.json b/ts/packages/git-story/package.json similarity index 87% rename from ts/packages/git-commit-story/package.json rename to ts/packages/git-story/package.json index cb2f7a6666..cdd1919a60 100644 --- a/ts/packages/git-commit-story/package.json +++ b/ts/packages/git-story/package.json @@ -1,5 +1,5 @@ { - "name": "git-commit-story", + "name": "git-story", "version": "0.0.1", "private": true, "description": "Attach agent session stories to git commits", @@ -7,13 +7,13 @@ "repository": { "type": "git", "url": "https://github.com/microsoft/TypeAgent.git", - "directory": "ts/packages/git-commit-story" + "directory": "ts/packages/git-story" }, "license": "MIT", "author": "Microsoft", "type": "module", "bin": { - "git-commit-story": "./dist/cli.js" + "git-story": "./dist/cli.js" }, "scripts": { "build": "npm run tsc", diff --git a/ts/packages/git-commit-story/src/cli.ts b/ts/packages/git-story/src/cli.ts similarity index 72% rename from ts/packages/git-commit-story/src/cli.ts rename to ts/packages/git-story/src/cli.ts index b925035c73..b691d1528d 100644 --- a/ts/packages/git-commit-story/src/cli.ts +++ b/ts/packages/git-story/src/cli.ts @@ -2,13 +2,13 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -// CLI entry point. On PATH as `git-commit-story`, so git also runs it as -// `git commit-story `. +// CLI entry point. On PATH as `git-story`, so git also runs it as +// `git story `. import { Command } from "commander"; import { hooksCommand } from "./commands/hooks.js"; import { initCommand } from "./commands/init.js"; -const program = new Command("git-commit-story") +const program = new Command("git-story") .description("Attach agent session stories to git commits") .version("0.0.1") .addCommand(initCommand) diff --git a/ts/packages/git-commit-story/src/commands/hooks.ts b/ts/packages/git-story/src/commands/hooks.ts similarity index 100% rename from ts/packages/git-commit-story/src/commands/hooks.ts rename to ts/packages/git-story/src/commands/hooks.ts diff --git a/ts/packages/git-commit-story/src/commands/init.ts b/ts/packages/git-story/src/commands/init.ts similarity index 97% rename from ts/packages/git-commit-story/src/commands/init.ts rename to ts/packages/git-story/src/commands/init.ts index 789cf1e21e..87ef4e9138 100644 --- a/ts/packages/git-commit-story/src/commands/init.ts +++ b/ts/packages/git-story/src/commands/init.ts @@ -9,7 +9,7 @@ import path from "node:path"; // Copilot CLI reads repo-level hooks from this file. The `.local` variant is // per-clone, so init also adds it to `.git/info/exclude`. const COPILOT_SETTINGS = ".github/copilot/settings.local.json"; -const PROMPT_HOOK = "git commit-story hooks copilot user-prompt-submitted"; +const PROMPT_HOOK = "git story hooks copilot user-prompt-submitted"; // Recursively sorts object keys so the settings file has a stable order. // Array order is kept. Example: {b:1,a:{d:2,c:3}} -> {a:{c:3,d:2},b:1}. diff --git a/ts/packages/git-commit-story/src/tsconfig.json b/ts/packages/git-story/src/tsconfig.json similarity index 100% rename from ts/packages/git-commit-story/src/tsconfig.json rename to ts/packages/git-story/src/tsconfig.json diff --git a/ts/packages/git-commit-story/tsconfig.json b/ts/packages/git-story/tsconfig.json similarity index 100% rename from ts/packages/git-commit-story/tsconfig.json rename to ts/packages/git-story/tsconfig.json diff --git a/ts/pnpm-lock.yaml b/ts/pnpm-lock.yaml index feae407673..a05e8d2519 100644 --- a/ts/pnpm-lock.yaml +++ b/ts/pnpm-lock.yaml @@ -5289,7 +5289,7 @@ importers: specifier: ~5.4.5 version: 5.4.5 - packages/git-commit-story: + packages/git-story: dependencies: commander: specifier: ^12.1.0