episoda 0.2.21 → 0.2.23
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/dist/daemon/daemon-process.js +403 -29
- package/dist/daemon/daemon-process.js.map +1 -1
- package/dist/hooks/post-checkout +3 -2
- package/dist/hooks/pre-commit +6 -5
- package/dist/index.js +459 -568
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/hooks/post-checkout
CHANGED
|
@@ -126,11 +126,12 @@ const supabase = createClient(supabaseUrl, supabaseKey);
|
|
|
126
126
|
|
|
127
127
|
// EP556: Extract UID from branch name and look up by UID instead of branch_name
|
|
128
128
|
// This eliminates race conditions during Ready→Doing transitions
|
|
129
|
-
//
|
|
129
|
+
// EP962: Supports both new format (EP{number}-{description}) and legacy (module/EP{number}-{description})
|
|
130
130
|
let moduleId = null;
|
|
131
131
|
let projectId = configuredProjectId || null; // EP725: Default to configured project for main/master
|
|
132
132
|
if ('${NEW_BRANCH}' !== 'main' && '${NEW_BRANCH}' !== 'master') {
|
|
133
|
-
|
|
133
|
+
// Match both EP123-description and module/EP123-description
|
|
134
|
+
const branchMatch = '${NEW_BRANCH}'.match(/^(?:module\/)?EP(\d+)-/);
|
|
134
135
|
if (branchMatch) {
|
|
135
136
|
const uid = 'EP' + branchMatch[1];
|
|
136
137
|
const { data: module } = await supabase
|
package/dist/hooks/pre-commit
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
#
|
|
3
3
|
# EP490: Prevent commits directly to main branch
|
|
4
4
|
# EP647: Extended to block ALL non-module branches (except hotfix/*)
|
|
5
|
+
# EP962: Updated to support new branch format (EP123-description instead of module/EP123-...)
|
|
5
6
|
# This hook enforces the module workflow for all development work
|
|
6
7
|
#
|
|
7
8
|
|
|
8
9
|
BRANCH=$(git branch --show-current)
|
|
9
10
|
|
|
10
|
-
# Allow module branches (module/EP123-description)
|
|
11
|
+
# Allow module branches - both new format (EP123-description) and legacy (module/EP123-description)
|
|
11
12
|
# EP647: But warn if it's a cloud module being committed locally
|
|
12
|
-
if [[ "$BRANCH" == module
|
|
13
|
-
# Extract module UID from branch name (e.g., EP647 from module/EP647-description)
|
|
13
|
+
if [[ "$BRANCH" == EP* ]] || [[ "$BRANCH" == module/EP* ]]; then
|
|
14
|
+
# Extract module UID from branch name (e.g., EP647 from EP647-description or module/EP647-description)
|
|
14
15
|
MODULE_UID=$(echo "$BRANCH" | grep -oE 'EP[0-9]+')
|
|
15
16
|
|
|
16
17
|
if [ -n "$MODULE_UID" ]; then
|
|
@@ -111,7 +112,7 @@ if [ "$BRANCH" = "main" ] || [ "$BRANCH" = "master" ]; then
|
|
|
111
112
|
echo " 2. Create a new module (or select existing)"
|
|
112
113
|
echo " 3. Move it to 'Doing' state to create a branch"
|
|
113
114
|
echo " 4. Then switch to the module branch:"
|
|
114
|
-
echo " git stash && git checkout
|
|
115
|
+
echo " git stash && git checkout EP-XXX-... && git stash pop"
|
|
115
116
|
echo ""
|
|
116
117
|
echo "To bypass this check (not recommended):"
|
|
117
118
|
echo " git commit --no-verify"
|
|
@@ -123,7 +124,7 @@ fi
|
|
|
123
124
|
echo ""
|
|
124
125
|
echo "❌ Cannot commit on branch '$BRANCH'"
|
|
125
126
|
echo ""
|
|
126
|
-
echo "All work must be done on module branches (
|
|
127
|
+
echo "All work must be done on module branches (EP-XXX-...)."
|
|
127
128
|
echo "This ensures proper tracking and code review workflow."
|
|
128
129
|
echo ""
|
|
129
130
|
echo "Options:"
|