@devness/useai-cli 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
|
@@ -30,7 +30,7 @@ var SYSTEMD_SERVICE_PATH = join(homedir(), ".config", "systemd", "user", "useai-
|
|
|
30
30
|
var WINDOWS_STARTUP_SCRIPT_PATH = join(process.env["APPDATA"] ?? join(homedir(), "AppData", "Roaming"), "Microsoft", "Windows", "Start Menu", "Programs", "Startup", "useai-daemon.vbs");
|
|
31
31
|
|
|
32
32
|
// ../shared/dist/constants/version.js
|
|
33
|
-
var VERSION = "0.4.
|
|
33
|
+
var VERSION = "0.4.13";
|
|
34
34
|
|
|
35
35
|
// ../shared/dist/constants/defaults.js
|
|
36
36
|
var DEFAULT_CONFIG = {
|
|
@@ -4898,17 +4898,11 @@ process.stdin.on('end', () => {
|
|
|
4898
4898
|
var starts = (transcript.match(/useai_session_start/g) || []).length;
|
|
4899
4899
|
if (starts === 0) process.exit(0);
|
|
4900
4900
|
var ends = (transcript.match(/useai_session_end/g) || []).length;
|
|
4901
|
-
if (
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
} else {
|
|
4907
|
-
process.stdout.write(JSON.stringify({
|
|
4908
|
-
decision: 'block',
|
|
4909
|
-
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.'
|
|
4910
|
-
}));
|
|
4911
|
-
}
|
|
4901
|
+
if (ends >= starts) process.exit(0);
|
|
4902
|
+
process.stdout.write(JSON.stringify({
|
|
4903
|
+
decision: 'block',
|
|
4904
|
+
reason: 'Before ending, call useai_session_end with milestones (generic descriptions of accomplishments), languages used, and files_touched_count.'
|
|
4905
|
+
}));
|
|
4912
4906
|
} catch { process.exit(0); }
|
|
4913
4907
|
});
|
|
4914
4908
|
`;
|