Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<!-- AUTOGEN:DOCS:HASH:sha256=9a632d8aab739dcf42534ec63a8c6bb12b8b61777f38bba74c23d061a6ead9f6 -->
<!-- AUTOGEN:DOCS:SOURCE: ./README.md (hand-written documentation; this file is the AI-generated companion) -->

# 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

Expand All @@ -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._

<!-- AUTOGEN:DOCS:END -->
Original file line number Diff line number Diff line change
@@ -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-<name>` binary on `PATH` as `git <name>`, 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
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "git-commit-story",
"name": "git-story",
"version": "0.0.1",
"private": true,
"description": "Attach agent session stories to git commits",
"homepage": "https://github.com/microsoft/TypeAgent#readme",
"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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <command>`.
// CLI entry point. On PATH as `git-story`, so git also runs it as
// `git story <command>`.
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down
2 changes: 1 addition & 1 deletion ts/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading