@devness/useai 0.4.12 → 0.4.13
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/index.js +6 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var VERSION;
|
|
|
112
112
|
var init_version = __esm({
|
|
113
113
|
"../shared/dist/constants/version.js"() {
|
|
114
114
|
"use strict";
|
|
115
|
-
VERSION = "0.4.
|
|
115
|
+
VERSION = "0.4.13";
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
|
|
@@ -950,17 +950,11 @@ process.stdin.on('end', () => {
|
|
|
950
950
|
var starts = (transcript.match(/useai_session_start/g) || []).length;
|
|
951
951
|
if (starts === 0) process.exit(0);
|
|
952
952
|
var ends = (transcript.match(/useai_session_end/g) || []).length;
|
|
953
|
-
if (
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
} else {
|
|
959
|
-
process.stdout.write(JSON.stringify({
|
|
960
|
-
decision: 'block',
|
|
961
|
-
reason: 'You did work without UseAI tracking. Call useai_session_start first, then useai_session_end with milestones (generic descriptions of accomplishments), languages used, and files_touched_count.'
|
|
962
|
-
}));
|
|
963
|
-
}
|
|
953
|
+
if (ends >= starts) process.exit(0);
|
|
954
|
+
process.stdout.write(JSON.stringify({
|
|
955
|
+
decision: 'block',
|
|
956
|
+
reason: 'Before ending, call useai_session_end with milestones (generic descriptions of accomplishments), languages used, and files_touched_count.'
|
|
957
|
+
}));
|
|
964
958
|
} catch { process.exit(0); }
|
|
965
959
|
});
|
|
966
960
|
`;
|