@codebehind/agent-workflow 1.1.10 → 1.1.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebehind/agent-workflow",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "Scaffold the agent-workflow spec-driven delivery framework into any repo",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,6 +18,42 @@ Install these tools before starting:
18
18
 
19
19
  ---
20
20
 
21
+ ## 0. Configure the Notion MCP server
22
+
23
+ The `prepare-spec` skill fetches Notion pages via the [Notion MCP server](https://github.com/notionhq/notion-mcp-server). Register it once at user scope so it is available in all projects.
24
+
25
+ ### 0a. Create a Notion integration
26
+
27
+ 1. Go to [https://www.notion.so/profile/integrations](https://www.notion.so/profile/integrations) and click **New integration**.
28
+ 2. Give it a name (e.g. `claude-code`), select your workspace, and click **Save**.
29
+ 3. Copy the **Internal Integration Secret** — it starts with `ntn_`.
30
+ 4. Open each Notion page (or parent database) the agent needs to read, click **⋯ → Connections**, and add your integration.
31
+
32
+ ### 0b. Register the MCP server with Claude Code
33
+
34
+ ```bash
35
+ claude mcp add --scope user notion \
36
+ -- npx -y @notionhq/notion-mcp-server
37
+ ```
38
+
39
+ Then set the required auth header (replace `<YOUR_TOKEN>` with the secret from step 0a):
40
+
41
+ ```bash
42
+ claude mcp add --scope user notion \
43
+ -e OPENAPI_MCP_HEADERS='{"Authorization":"Bearer <YOUR_TOKEN>","Notion-Version":"2022-06-28"}' \
44
+ -- npx -y @notionhq/notion-mcp-server
45
+ ```
46
+
47
+ ### 0c. Verify the connection
48
+
49
+ ```bash
50
+ claude mcp list
51
+ ```
52
+
53
+ You should see `notion: ✓ Connected`.
54
+
55
+ ---
56
+
21
57
  ## 1. Authenticate with GitLab
22
58
 
23
59
  ```bash
@@ -26,12 +26,29 @@ DEFAULT_BRANCH="$(${REPO_ROOT}/scripts/agent/git-detect-default-branch.sh origin
26
26
 
27
27
  mkdir -p "${RUN_ROOT}/worktrees"
28
28
 
29
+ copy_local_overrides() {
30
+ if [[ -f "${REPO_ROOT}/.mcp.json" ]]; then
31
+ cp "${REPO_ROOT}/.mcp.json" "${WORKTREE_DIR}/.mcp.json"
32
+ fi
33
+
34
+ while IFS= read -r src; do
35
+ rel="${src#${REPO_ROOT}/}"
36
+ dst="${WORKTREE_DIR}/${rel}"
37
+ mkdir -p "$(dirname "$dst")"
38
+ cp "$src" "$dst"
39
+ done < <(find "$REPO_ROOT" \
40
+ -path "$REPO_ROOT/.git" -prune -o \
41
+ -path "$REPO_ROOT/node_modules" -prune -o \
42
+ \( -name ".env" -o -name ".env.*" \) -print)
43
+ }
44
+
29
45
  git fetch origin --prune
30
46
 
31
47
  if git worktree list --porcelain | awk '/^worktree /{print $2}' | grep -Fxq "$WORKTREE_DIR"; then
32
48
  if [[ -d "$WORKTREE_DIR" ]]; then
33
49
  echo "Syncing existing worktree with origin/${DEFAULT_BRANCH}..." >&2
34
50
  git -C "$WORKTREE_DIR" rebase "origin/${DEFAULT_BRANCH}"
51
+ copy_local_overrides
35
52
  echo "WORKTREE_DIR=${WORKTREE_DIR}"
36
53
  exit 0
37
54
  else
@@ -45,6 +62,7 @@ fi
45
62
 
46
63
  rm -rf "$WORKTREE_DIR"
47
64
  git worktree add "$WORKTREE_DIR" -b "$BRANCH" "origin/${DEFAULT_BRANCH}"
65
+ copy_local_overrides
48
66
 
49
67
  cat <<OUT
50
68
  WORKTREE_DIR=${WORKTREE_DIR}