rename .story_kit directory to .storkit and update all references
Renames the config directory and updates 514 references across 42 Rust source files, plus CLAUDE.md, .gitignore, Makefile, script/release, and .mcp.json files. All 1205 tests pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -158,7 +158,7 @@ struct AllTokenUsageResponse {
|
||||
/// response so the agents panel is not cluttered with old completed items on
|
||||
/// frontend startup.
|
||||
pub fn story_is_archived(project_root: &path::Path, story_id: &str) -> bool {
|
||||
let work = project_root.join(".story_kit").join("work");
|
||||
let work = project_root.join(".storkit").join("work");
|
||||
let filename = format!("{story_id}.md");
|
||||
work.join("5_done").join(&filename).exists()
|
||||
|| work.join("6_archived").join(&filename).exists()
|
||||
@@ -316,7 +316,7 @@ impl AgentsApi {
|
||||
))
|
||||
}
|
||||
|
||||
/// Create a git worktree for a story under .story_kit/worktrees/{story_id}.
|
||||
/// Create a git worktree for a story under .storkit/worktrees/{story_id}.
|
||||
#[oai(path = "/agents/worktrees", method = "post")]
|
||||
async fn create_worktree(
|
||||
&self,
|
||||
@@ -343,7 +343,7 @@ impl AgentsApi {
|
||||
}))
|
||||
}
|
||||
|
||||
/// List all worktrees under .story_kit/worktrees/.
|
||||
/// List all worktrees under .storkit/worktrees/.
|
||||
#[oai(path = "/agents/worktrees", method = "get")]
|
||||
async fn list_worktrees(&self) -> OpenApiResult<Json<Vec<WorktreeListEntry>>> {
|
||||
let project_root = self
|
||||
@@ -389,7 +389,7 @@ impl AgentsApi {
|
||||
("6_archived", "archived"),
|
||||
];
|
||||
|
||||
let work_dir = project_root.join(".story_kit").join("work");
|
||||
let work_dir = project_root.join(".storkit").join("work");
|
||||
let filename = format!("{}.md", story_id.0);
|
||||
|
||||
for (stage_dir, stage_name) in &stages {
|
||||
@@ -604,7 +604,7 @@ mod tests {
|
||||
fn make_work_dirs(tmp: &TempDir) -> path::PathBuf {
|
||||
let root = tmp.path().to_path_buf();
|
||||
for stage in &["5_done", "6_archived"] {
|
||||
std::fs::create_dir_all(root.join(".story_kit").join("work").join(stage)).unwrap();
|
||||
std::fs::create_dir_all(root.join(".storkit").join("work").join(stage)).unwrap();
|
||||
}
|
||||
root
|
||||
}
|
||||
@@ -621,7 +621,7 @@ mod tests {
|
||||
let tmp = TempDir::new().unwrap();
|
||||
let root = make_work_dirs(&tmp);
|
||||
std::fs::write(
|
||||
root.join(".story_kit/work/5_done/79_story_foo.md"),
|
||||
root.join(".storkit/work/5_done/79_story_foo.md"),
|
||||
"---\nname: test\n---\n",
|
||||
)
|
||||
.unwrap();
|
||||
@@ -633,7 +633,7 @@ mod tests {
|
||||
let tmp = TempDir::new().unwrap();
|
||||
let root = make_work_dirs(&tmp);
|
||||
std::fs::write(
|
||||
root.join(".story_kit/work/6_archived/79_story_foo.md"),
|
||||
root.join(".storkit/work/6_archived/79_story_foo.md"),
|
||||
"---\nname: test\n---\n",
|
||||
)
|
||||
.unwrap();
|
||||
@@ -647,7 +647,7 @@ mod tests {
|
||||
|
||||
// Place an archived story file in 6_archived
|
||||
std::fs::write(
|
||||
root.join(".story_kit/work/6_archived/79_story_archived.md"),
|
||||
root.join(".storkit/work/6_archived/79_story_archived.md"),
|
||||
"---\nname: archived story\n---\n",
|
||||
)
|
||||
.unwrap();
|
||||
@@ -694,7 +694,7 @@ mod tests {
|
||||
}
|
||||
|
||||
fn make_project_toml(root: &path::Path, content: &str) {
|
||||
let sk_dir = root.join(".story_kit");
|
||||
let sk_dir = root.join(".storkit");
|
||||
std::fs::create_dir_all(&sk_dir).unwrap();
|
||||
std::fs::write(sk_dir.join("project.toml"), content).unwrap();
|
||||
}
|
||||
@@ -830,7 +830,7 @@ allowed_tools = ["Read", "Bash"]
|
||||
#[tokio::test]
|
||||
async fn list_worktrees_returns_entries_from_dir() {
|
||||
let tmp = TempDir::new().unwrap();
|
||||
let worktrees_dir = tmp.path().join(".story_kit").join("worktrees");
|
||||
let worktrees_dir = tmp.path().join(".storkit").join("worktrees");
|
||||
std::fs::create_dir_all(worktrees_dir.join("42_story_foo")).unwrap();
|
||||
std::fs::create_dir_all(worktrees_dir.join("43_story_bar")).unwrap();
|
||||
|
||||
@@ -935,7 +935,7 @@ allowed_tools = ["Read", "Bash"]
|
||||
// --- get_work_item_content tests ---
|
||||
|
||||
fn make_stage_dir(root: &path::Path, stage: &str) {
|
||||
std::fs::create_dir_all(root.join(".story_kit").join("work").join(stage)).unwrap();
|
||||
std::fs::create_dir_all(root.join(".storkit").join("work").join(stage)).unwrap();
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@@ -944,7 +944,7 @@ allowed_tools = ["Read", "Bash"]
|
||||
let root = tmp.path();
|
||||
make_stage_dir(root, "1_backlog");
|
||||
std::fs::write(
|
||||
root.join(".story_kit/work/1_backlog/42_story_foo.md"),
|
||||
root.join(".storkit/work/1_backlog/42_story_foo.md"),
|
||||
"---\nname: \"Foo Story\"\n---\n\n# Story 42: Foo Story\n\nSome content.",
|
||||
)
|
||||
.unwrap();
|
||||
@@ -968,7 +968,7 @@ allowed_tools = ["Read", "Bash"]
|
||||
let root = tmp.path();
|
||||
make_stage_dir(root, "2_current");
|
||||
std::fs::write(
|
||||
root.join(".story_kit/work/2_current/43_story_bar.md"),
|
||||
root.join(".storkit/work/2_current/43_story_bar.md"),
|
||||
"---\nname: \"Bar Story\"\n---\n\nBar content.",
|
||||
)
|
||||
.unwrap();
|
||||
@@ -1244,7 +1244,7 @@ allowed_tools = ["Read", "Bash"]
|
||||
let root = tmp.path().to_path_buf();
|
||||
// Create work dirs including 2_current for the story file.
|
||||
for stage in &["1_backlog", "2_current", "5_done", "6_archived"] {
|
||||
std::fs::create_dir_all(root.join(".story_kit").join("work").join(stage)).unwrap();
|
||||
std::fs::create_dir_all(root.join(".storkit").join("work").join(stage)).unwrap();
|
||||
}
|
||||
|
||||
// Write a story file with persisted test results.
|
||||
@@ -1258,7 +1258,7 @@ name: "Test story"
|
||||
<!-- story-kit-test-results: {"unit":[{"name":"from_file","status":"pass","details":null}],"integration":[]} -->
|
||||
"#;
|
||||
std::fs::write(
|
||||
root.join(".story_kit/work/2_current/42_story_foo.md"),
|
||||
root.join(".storkit/work/2_current/42_story_foo.md"),
|
||||
story_content,
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user