@devness/useai-cli 0.6.26 → 0.6.27
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 -5
- 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.6.
|
|
33
|
+
var VERSION = "0.6.27";
|
|
34
34
|
|
|
35
35
|
// ../shared/dist/constants/defaults.js
|
|
36
36
|
var DEFAULT_CAPTURE_CONFIG = {
|
|
@@ -52,7 +52,7 @@ var DEFAULT_SYNC_INCLUDE_CONFIG = {
|
|
|
52
52
|
};
|
|
53
53
|
var DEFAULT_SYNC_CONFIG = {
|
|
54
54
|
enabled: false,
|
|
55
|
-
interval_hours:
|
|
55
|
+
interval_hours: 3,
|
|
56
56
|
include: { ...DEFAULT_SYNC_INCLUDE_CONFIG }
|
|
57
57
|
};
|
|
58
58
|
var DEFAULT_CONFIG = {
|
|
@@ -5434,7 +5434,7 @@ var rawFramework = {
|
|
|
5434
5434
|
getInstructionText(opts) {
|
|
5435
5435
|
const reasonsLevel = opts?.evaluationReasons ?? "all";
|
|
5436
5436
|
const lines = [
|
|
5437
|
-
"- At the END of every response, call `useai_end` with languages used, files_touched_count, milestones, and an `evaluation` object honestly assessing: prompt_quality (1-5), context_provided (1-5), task_outcome, iteration_count, independence_level (1-5), scope_quality (1-5), tools_leveraged count.",
|
|
5437
|
+
"- At the END of every response where `useai_start` was called, call `useai_end` with languages used, files_touched_count, milestones, and an `evaluation` object honestly assessing: prompt_quality (1-5), context_provided (1-5), task_outcome, iteration_count, independence_level (1-5), scope_quality (1-5), tools_leveraged count. Do NOT call `useai_end` if `useai_start` was not called in this turn.",
|
|
5438
5438
|
' - **milestones**: Array of objects, each with required `title` (string, generic \u2014 no project/file names), `category` (string), and optional `private_title` (string, detailed \u2014 can include project names and specifics). Example: `[{"title": "Implemented auth flow", "private_title": "Added OAuth2 to UserService in acme-api", "category": "feature"}]`',
|
|
5439
5439
|
" - **milestone category values**: feature, bugfix, refactor, test, docs, setup, deployment, fix, analysis, research, investigation, performance, cleanup, chore, security, migration, design, devops, config, other",
|
|
5440
5440
|
" - **task_type values**: coding, debugging, testing, planning, reviewing, documenting, learning, deployment, devops, research, migration, design, data, security, configuration, code_review, investigation, infrastructure, analysis, ops, setup, refactoring, other"
|
|
@@ -5516,7 +5516,7 @@ var spaceFramework = {
|
|
|
5516
5516
|
getInstructionText(opts) {
|
|
5517
5517
|
const reasonsLevel = opts?.evaluationReasons ?? "all";
|
|
5518
5518
|
const lines = [
|
|
5519
|
-
"- At the END of every response, call `useai_end` with languages used, files_touched_count, milestones, and an `evaluation` object.",
|
|
5519
|
+
"- At the END of every response where `useai_start` was called, call `useai_end` with languages used, files_touched_count, milestones, and an `evaluation` object. Do NOT call `useai_end` if `useai_start` was not called in this turn.",
|
|
5520
5520
|
' - **milestones**: Array of objects, each with required `title` (string, generic \u2014 no project/file names), `category` (string), and optional `private_title` (string, detailed \u2014 can include project names and specifics). Example: `[{"title": "Implemented auth flow", "private_title": "Added OAuth2 to UserService in acme-api", "category": "feature"}]`',
|
|
5521
5521
|
" - **milestone category values**: feature, bugfix, refactor, test, docs, setup, deployment, fix, analysis, research, investigation, performance, cleanup, chore, security, migration, design, devops, config, other",
|
|
5522
5522
|
" - **task_type values**: coding, debugging, testing, planning, reviewing, documenting, learning, deployment, devops, research, migration, design, data, security, configuration, code_review, investigation, infrastructure, analysis, ops, setup, refactoring, other",
|
|
@@ -5558,7 +5558,8 @@ function buildInstructionsText(frameworkId, opts) {
|
|
|
5558
5558
|
const promptInstruction = opts?.capturePrompt !== false ? ", `prompt` (the user's full verbatim prompt text)" : "";
|
|
5559
5559
|
return [
|
|
5560
5560
|
"## UseAI Session Tracking",
|
|
5561
|
-
`- At the START of every response to a **user message**, call \`useai_start\` with the appropriate task_type${promptInstruction}. Also generate a short session \`title\` (generic, no project names) and \`private_title\` (detailed, can include specifics) from the user's prompt.`,
|
|
5561
|
+
`- At the START of every response to a **real user message**, call \`useai_start\` with the appropriate task_type${promptInstruction}. Also generate a short session \`title\` (generic, no project names) and \`private_title\` (detailed, can include specifics) from the user's prompt.`,
|
|
5562
|
+
' - **"Real user message"** = the turn contains actual user-authored text (typed or spoken). Do NOT call `useai_start` on turns that only contain system reminders, hook feedback, plan approval clicks, or other automated/system-generated content with no user-authored text.',
|
|
5562
5563
|
" - **task_type values**: coding, debugging, testing, planning, reviewing, documenting, learning, deployment, devops, research, migration, design, data, security, configuration, code_review, investigation, infrastructure, analysis, ops, setup, refactoring, other",
|
|
5563
5564
|
"- To group multiple prompts in the same conversation, pass the `conversation_id` from the previous `useai_start` response (returned as `conversation_id=<value>`). Omit it for the first message or a new conversation.",
|
|
5564
5565
|
"- For LONG sessions (15+ min), call `useai_heartbeat` periodically.",
|