@cleocode/cleo 2026.4.22 → 2026.4.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/cli/index.js +34 -348
- package/dist/cli/index.js.map +3 -3
- package/package.json +7 -7
package/dist/cli/index.js
CHANGED
|
@@ -55245,35 +55245,6 @@ var init_show3 = __esm({
|
|
|
55245
55245
|
});
|
|
55246
55246
|
|
|
55247
55247
|
// packages/core/src/tasks/index.ts
|
|
55248
|
-
var tasks_exports = {};
|
|
55249
|
-
__export(tasks_exports, {
|
|
55250
|
-
VALID_PRIORITIES: () => VALID_PRIORITIES,
|
|
55251
|
-
addTask: () => addTask,
|
|
55252
|
-
archiveTasks: () => archiveTasks,
|
|
55253
|
-
buildDefaultVerification: () => buildDefaultVerification,
|
|
55254
|
-
completeTask: () => completeTask,
|
|
55255
|
-
deleteTask: () => deleteTask,
|
|
55256
|
-
findRecentDuplicate: () => findRecentDuplicate,
|
|
55257
|
-
findTasks: () => findTasks,
|
|
55258
|
-
fuzzyScore: () => fuzzyScore,
|
|
55259
|
-
getNextPosition: () => getNextPosition,
|
|
55260
|
-
getTaskDepth: () => getTaskDepth,
|
|
55261
|
-
inferTaskType: () => inferTaskType,
|
|
55262
|
-
listTasks: () => listTasks,
|
|
55263
|
-
logOperation: () => logOperation,
|
|
55264
|
-
normalizePriority: () => normalizePriority,
|
|
55265
|
-
showTask: () => showTask,
|
|
55266
|
-
updateTask: () => updateTask,
|
|
55267
|
-
validateDepends: () => validateDepends,
|
|
55268
|
-
validateLabels: () => validateLabels,
|
|
55269
|
-
validateParent: () => validateParent,
|
|
55270
|
-
validatePhaseFormat: () => validatePhaseFormat,
|
|
55271
|
-
validatePriority: () => validatePriority,
|
|
55272
|
-
validateSize: () => validateSize,
|
|
55273
|
-
validateStatus: () => validateStatus,
|
|
55274
|
-
validateTaskType: () => validateTaskType,
|
|
55275
|
-
validateTitle: () => validateTitle
|
|
55276
|
-
});
|
|
55277
55248
|
var init_tasks2 = __esm({
|
|
55278
55249
|
"packages/core/src/tasks/index.ts"() {
|
|
55279
55250
|
"use strict";
|
|
@@ -75217,258 +75188,6 @@ var init_cleo = __esm({
|
|
|
75217
75188
|
});
|
|
75218
75189
|
|
|
75219
75190
|
// packages/core/src/index.ts
|
|
75220
|
-
var src_exports = {};
|
|
75221
|
-
__export(src_exports, {
|
|
75222
|
-
ADR_STATUSES: () => ADR_STATUSES,
|
|
75223
|
-
AGENT_INSTANCE_STATUSES: () => AGENT_INSTANCE_STATUSES,
|
|
75224
|
-
AGENT_TYPES: () => AGENT_TYPES,
|
|
75225
|
-
AdapterManager: () => AdapterManager,
|
|
75226
|
-
BRAIN_OBSERVATION_TYPES: () => BRAIN_OBSERVATION_TYPES,
|
|
75227
|
-
CORE_PROTECTED_FILES: () => CORE_PROTECTED_FILES,
|
|
75228
|
-
Cleo: () => Cleo,
|
|
75229
|
-
CleoError: () => CleoError,
|
|
75230
|
-
ERROR_CATALOG: () => ERROR_CATALOG,
|
|
75231
|
-
ExitCode: () => ExitCode,
|
|
75232
|
-
GATE_STATUSES: () => GATE_STATUSES,
|
|
75233
|
-
HookRegistry: () => HookRegistry,
|
|
75234
|
-
LIFECYCLE_PIPELINE_STATUSES: () => LIFECYCLE_PIPELINE_STATUSES,
|
|
75235
|
-
LIFECYCLE_STAGE_STATUSES: () => LIFECYCLE_STAGE_STATUSES,
|
|
75236
|
-
MANIFEST_STATUSES: () => MANIFEST_STATUSES,
|
|
75237
|
-
MINIMUM_NODE_MAJOR: () => MINIMUM_NODE_MAJOR,
|
|
75238
|
-
OrchestrationLevel: () => OrchestrationLevel,
|
|
75239
|
-
PIPELINE_STATUS_ICONS: () => PIPELINE_STATUS_ICONS,
|
|
75240
|
-
PLATFORM: () => PLATFORM,
|
|
75241
|
-
SESSION_STATUSES: () => SESSION_STATUSES,
|
|
75242
|
-
STAGE_STATUS_ICONS: () => STAGE_STATUS_ICONS,
|
|
75243
|
-
STATUS_REGISTRY: () => STATUS_REGISTRY,
|
|
75244
|
-
STRICTNESS_PRESETS: () => STRICTNESS_PRESETS,
|
|
75245
|
-
SessionView: () => SessionView,
|
|
75246
|
-
TASK_STATUSES: () => TASK_STATUSES,
|
|
75247
|
-
TASK_STATUS_SYMBOLS_ASCII: () => TASK_STATUS_SYMBOLS_ASCII,
|
|
75248
|
-
TASK_STATUS_SYMBOLS_UNICODE: () => TASK_STATUS_SYMBOLS_UNICODE,
|
|
75249
|
-
TERMINAL_PIPELINE_STATUSES: () => TERMINAL_PIPELINE_STATUSES,
|
|
75250
|
-
TERMINAL_STAGE_STATUSES: () => TERMINAL_STAGE_STATUSES,
|
|
75251
|
-
TERMINAL_TASK_STATUSES: () => TERMINAL_TASK_STATUSES,
|
|
75252
|
-
adapters: () => adapters_exports,
|
|
75253
|
-
addTask: () => addTask,
|
|
75254
|
-
admin: () => admin_exports,
|
|
75255
|
-
adrStatusSchema: () => adrStatusSchema,
|
|
75256
|
-
adrs: () => adrs_exports,
|
|
75257
|
-
agentInstanceStatusSchema: () => agentInstanceStatusSchema,
|
|
75258
|
-
agentTypeSchema: () => agentTypeSchema,
|
|
75259
|
-
agents: () => agents_exports,
|
|
75260
|
-
applyStrictnessPreset: () => applyStrictnessPreset,
|
|
75261
|
-
archiveTasks: () => archiveTasks,
|
|
75262
|
-
bootstrapGlobalCleo: () => bootstrapGlobalCleo,
|
|
75263
|
-
brainConfidenceLevelSchema: () => brainConfidenceLevelSchema,
|
|
75264
|
-
brainDecisionTypeSchema: () => brainDecisionTypeSchema,
|
|
75265
|
-
brainEdgeTypeSchema: () => brainEdgeTypeSchema,
|
|
75266
|
-
brainImpactLevelSchema: () => brainImpactLevelSchema,
|
|
75267
|
-
brainLinkTypeSchema: () => brainLinkTypeSchema,
|
|
75268
|
-
brainMemoryTypeSchema: () => brainMemoryTypeSchema,
|
|
75269
|
-
brainNodeTypeSchema: () => brainNodeTypeSchema,
|
|
75270
|
-
brainObservationSourceTypeSchema: () => brainObservationSourceTypeSchema,
|
|
75271
|
-
brainObservationTypeSchema: () => brainObservationTypeSchema,
|
|
75272
|
-
brainOutcomeTypeSchema: () => brainOutcomeTypeSchema,
|
|
75273
|
-
brainPatternTypeSchema: () => brainPatternTypeSchema,
|
|
75274
|
-
brainStickyColorSchema: () => brainStickyColorSchema,
|
|
75275
|
-
brainStickyPrioritySchema: () => brainStickyPrioritySchema,
|
|
75276
|
-
brainStickyStatusSchema: () => brainStickyStatusSchema,
|
|
75277
|
-
caamp: () => caamp_exports,
|
|
75278
|
-
checkSchema: () => checkSchema,
|
|
75279
|
-
checkStorageMigration: () => checkStorageMigration,
|
|
75280
|
-
classifyProject: () => classifyProject,
|
|
75281
|
-
closeLogger: () => closeLogger,
|
|
75282
|
-
code: () => code_exports,
|
|
75283
|
-
codebaseMap: () => codebase_map_exports,
|
|
75284
|
-
compareSemver: () => compareSemver,
|
|
75285
|
-
completeTask: () => completeTask,
|
|
75286
|
-
compliance: () => compliance_exports,
|
|
75287
|
-
conduit: () => conduit_exports,
|
|
75288
|
-
context: () => context_exports,
|
|
75289
|
-
coreHooks: () => hooks_exports,
|
|
75290
|
-
createDataAccessor: () => createDataAccessor,
|
|
75291
|
-
createErrorResult: () => createErrorResult,
|
|
75292
|
-
createPage: () => createPage,
|
|
75293
|
-
createSuccessResult: () => createSuccessResult,
|
|
75294
|
-
currentTask: () => currentTask,
|
|
75295
|
-
deleteTask: () => deleteTask,
|
|
75296
|
-
detectPlatform: () => detectPlatform,
|
|
75297
|
-
detectVersion: () => detectVersion,
|
|
75298
|
-
endSession: () => endSession,
|
|
75299
|
-
ensureCleoOsHub: () => ensureCleoOsHub,
|
|
75300
|
-
ensureCleoStructure: () => ensureCleoStructure,
|
|
75301
|
-
ensureGlobalHome: () => ensureGlobalHome,
|
|
75302
|
-
ensureGlobalScaffold: () => ensureGlobalScaffold,
|
|
75303
|
-
ensureInitialized: () => ensureInitialized,
|
|
75304
|
-
ensureSqliteDb: () => ensureSqliteDb,
|
|
75305
|
-
externalLinkTypeSchema: () => externalLinkTypeSchema,
|
|
75306
|
-
fetchBrainEntries: () => fetchBrainEntries,
|
|
75307
|
-
fileExists: () => fileExists,
|
|
75308
|
-
findTasks: () => findTasks,
|
|
75309
|
-
formatError: () => formatError3,
|
|
75310
|
-
formatOutput: () => formatOutput,
|
|
75311
|
-
formatSuccess: () => formatSuccess,
|
|
75312
|
-
gateStatusSchema: () => gateStatusSchema,
|
|
75313
|
-
getAccessor: () => getAccessor,
|
|
75314
|
-
getAllErrorDefinitions: () => getAllErrorDefinitions,
|
|
75315
|
-
getCleoCacheDir: () => getCleoCacheDir,
|
|
75316
|
-
getCleoCantWorkflowsDir: () => getCleoCantWorkflowsDir,
|
|
75317
|
-
getCleoConfigDir: () => getCleoConfigDir,
|
|
75318
|
-
getCleoDir: () => getCleoDir,
|
|
75319
|
-
getCleoDirAbsolute: () => getCleoDirAbsolute,
|
|
75320
|
-
getCleoErrorRegistry: () => getCleoErrorRegistry,
|
|
75321
|
-
getCleoGlobalAgentsDir: () => getCleoGlobalAgentsDir,
|
|
75322
|
-
getCleoGlobalJustfilePath: () => getCleoGlobalJustfilePath,
|
|
75323
|
-
getCleoGlobalRecipesDir: () => getCleoGlobalRecipesDir,
|
|
75324
|
-
getCleoHome: () => getCleoHome,
|
|
75325
|
-
getCleoLogDir: () => getCleoLogDir,
|
|
75326
|
-
getCleoPiExtensionsDir: () => getCleoPiExtensionsDir,
|
|
75327
|
-
getCleoTempDir: () => getCleoTempDir,
|
|
75328
|
-
getCleoTemplatesTildePath: () => getCleoTemplatesTildePath,
|
|
75329
|
-
getCleoVersion: () => getCleoVersion,
|
|
75330
|
-
getConfigPath: () => getConfigPath,
|
|
75331
|
-
getConfigValue: () => getConfigValue,
|
|
75332
|
-
getErrorDefinition: () => getErrorDefinition,
|
|
75333
|
-
getErrorDefinitionByLafsCode: () => getErrorDefinitionByLafsCode,
|
|
75334
|
-
getErrorMessage: () => getErrorMessage,
|
|
75335
|
-
getExitCodeName: () => getExitCodeName,
|
|
75336
|
-
getGlobalConfigPath: () => getGlobalConfigPath,
|
|
75337
|
-
getIsoTimestamp: () => getIsoTimestamp,
|
|
75338
|
-
getLogDir: () => getLogDir,
|
|
75339
|
-
getLogger: () => getLogger,
|
|
75340
|
-
getMigrationStatus: () => getMigrationStatus,
|
|
75341
|
-
getPackageRoot: () => getPackageRoot,
|
|
75342
|
-
getProjectInfo: () => getProjectInfo,
|
|
75343
|
-
getProjectInfoSync: () => getProjectInfoSync,
|
|
75344
|
-
getProjectRoot: () => getProjectRoot,
|
|
75345
|
-
getRawConfig: () => getRawConfig,
|
|
75346
|
-
getRawConfigValue: () => getRawConfigValue,
|
|
75347
|
-
getRegistryEntry: () => getRegistryEntry,
|
|
75348
|
-
getRegistryEntryByLafsCode: () => getRegistryEntryByLafsCode,
|
|
75349
|
-
getSystemInfo: () => getSystemInfo2,
|
|
75350
|
-
getSystemMigrationStatus: () => getMigrationStatus2,
|
|
75351
|
-
getVersion: () => getVersion2,
|
|
75352
|
-
hooks: () => hooks,
|
|
75353
|
-
initLogger: () => initLogger,
|
|
75354
|
-
initProject: () => initProject,
|
|
75355
|
-
inject: () => inject_exports,
|
|
75356
|
-
insertAgentErrorLogSchema: () => insertAgentErrorLogSchema,
|
|
75357
|
-
insertAgentInstanceSchema: () => insertAgentInstanceSchema,
|
|
75358
|
-
insertExternalTaskLinkSchema: () => insertExternalTaskLinkSchema,
|
|
75359
|
-
insertPipelineManifestSchema: () => insertPipelineManifestSchema,
|
|
75360
|
-
insertReleaseManifestSchema: () => insertReleaseManifestSchema,
|
|
75361
|
-
insertSessionSchema: () => insertSessionSchema,
|
|
75362
|
-
insertTaskSchema: () => insertTaskSchema,
|
|
75363
|
-
intelligence: () => intelligence_exports,
|
|
75364
|
-
isCleoRegisteredCode: () => isCleoRegisteredCode,
|
|
75365
|
-
isErrorCode: () => isErrorCode,
|
|
75366
|
-
isErrorResult: () => isErrorResult,
|
|
75367
|
-
isErrorType: () => isErrorType,
|
|
75368
|
-
isGatewayEnvelope: () => isGatewayEnvelope,
|
|
75369
|
-
isLafsError: () => isLafsError,
|
|
75370
|
-
isLafsSuccess: () => isLafsSuccess,
|
|
75371
|
-
isNoChangeCode: () => isNoChangeCode,
|
|
75372
|
-
isProjectInitialized: () => isProjectInitialized,
|
|
75373
|
-
isRecoverableCode: () => isRecoverableCode,
|
|
75374
|
-
isSuccessCode: () => isSuccessCode,
|
|
75375
|
-
isValidStatus: () => isValidStatus,
|
|
75376
|
-
issue: () => issue_exports,
|
|
75377
|
-
lib: () => lib_exports,
|
|
75378
|
-
lifecycle: () => lifecycle_exports,
|
|
75379
|
-
lifecycleEvidenceTypeSchema: () => lifecycleEvidenceTypeSchema,
|
|
75380
|
-
lifecycleGateResultSchema: () => lifecycleGateResultSchema,
|
|
75381
|
-
lifecyclePipelineStatusSchema: () => lifecyclePipelineStatusSchema,
|
|
75382
|
-
lifecycleStageNameSchema: () => lifecycleStageNameSchema,
|
|
75383
|
-
lifecycleStageStatusSchema: () => lifecycleStageStatusSchema,
|
|
75384
|
-
lifecycleTransitionTypeSchema: () => lifecycleTransitionTypeSchema,
|
|
75385
|
-
listSessions: () => listSessions,
|
|
75386
|
-
listStrictnessPresets: () => listStrictnessPresets,
|
|
75387
|
-
listTasks: () => listTasks,
|
|
75388
|
-
loadConfig: () => loadConfig,
|
|
75389
|
-
manifestStatusSchema: () => manifestStatusSchema,
|
|
75390
|
-
memory: () => memory_exports,
|
|
75391
|
-
memoryFindHitNext: () => memoryFindHitNext,
|
|
75392
|
-
metrics: () => metrics_exports,
|
|
75393
|
-
migration: () => migration_exports,
|
|
75394
|
-
nexus: () => nexus_exports,
|
|
75395
|
-
normalizeError: () => normalizeError,
|
|
75396
|
-
normalizeTaskId: () => normalizeTaskId,
|
|
75397
|
-
observability: () => observability_exports,
|
|
75398
|
-
observeBrain: () => observeBrain,
|
|
75399
|
-
ops: () => operations_exports,
|
|
75400
|
-
orchestration: () => orchestration_exports,
|
|
75401
|
-
otel: () => otel_exports,
|
|
75402
|
-
paginate: () => paginate,
|
|
75403
|
-
parseConfigValue: () => parseConfigValue,
|
|
75404
|
-
phases: () => phases_exports,
|
|
75405
|
-
pipeline: () => pipeline_exports2,
|
|
75406
|
-
populateEmbeddings: () => populateEmbeddings,
|
|
75407
|
-
pruneAuditLog: () => pruneAuditLog,
|
|
75408
|
-
pushWarning: () => pushWarning,
|
|
75409
|
-
queryAudit: () => queryAudit,
|
|
75410
|
-
reconcile: () => reconcile,
|
|
75411
|
-
reconciliation: () => reconciliation_exports,
|
|
75412
|
-
release: () => release_exports,
|
|
75413
|
-
remote: () => remote_exports,
|
|
75414
|
-
research: () => research_exports,
|
|
75415
|
-
resolveProjectPath: () => resolveProjectPath,
|
|
75416
|
-
restoreSession: () => restoreSession,
|
|
75417
|
-
resumeSession: () => resumeSession,
|
|
75418
|
-
roadmap: () => roadmap_exports,
|
|
75419
|
-
routing: () => routing_exports,
|
|
75420
|
-
runAllMigrations: () => runAllMigrations,
|
|
75421
|
-
runMigration: () => runMigration,
|
|
75422
|
-
searchBrain: () => searchBrain,
|
|
75423
|
-
searchBrainCompact: () => searchBrainCompact,
|
|
75424
|
-
security: () => security_exports,
|
|
75425
|
-
selectAgentErrorLogSchema: () => selectAgentErrorLogSchema,
|
|
75426
|
-
selectAgentInstanceSchema: () => selectAgentInstanceSchema,
|
|
75427
|
-
selectExternalTaskLinkSchema: () => selectExternalTaskLinkSchema,
|
|
75428
|
-
selectPipelineManifestSchema: () => selectPipelineManifestSchema,
|
|
75429
|
-
selectReleaseManifestSchema: () => selectReleaseManifestSchema,
|
|
75430
|
-
selectSessionSchema: () => selectSessionSchema,
|
|
75431
|
-
selectTaskSchema: () => selectTaskSchema,
|
|
75432
|
-
sequence: () => sequence_exports,
|
|
75433
|
-
serializeSession: () => serializeSession,
|
|
75434
|
-
sessionListItemNext: () => sessionListItemNext,
|
|
75435
|
-
sessionStartNext: () => sessionStartNext,
|
|
75436
|
-
sessionStatus: () => sessionStatus,
|
|
75437
|
-
sessionStatusSchema: () => sessionStatusSchema,
|
|
75438
|
-
sessions: () => sessions_exports,
|
|
75439
|
-
setConfigValue: () => setConfigValue,
|
|
75440
|
-
sha256: () => sha256,
|
|
75441
|
-
showTask: () => showTask,
|
|
75442
|
-
skills: () => skills_exports,
|
|
75443
|
-
snapshot: () => snapshot_exports,
|
|
75444
|
-
spawn: () => spawn_exports,
|
|
75445
|
-
startSession: () => startSession,
|
|
75446
|
-
startTask: () => startTask,
|
|
75447
|
-
stats: () => stats_exports,
|
|
75448
|
-
sticky: () => sticky_exports,
|
|
75449
|
-
stopTask: () => stopTask,
|
|
75450
|
-
syncDirectionSchema: () => syncDirectionSchema,
|
|
75451
|
-
system: () => system_exports,
|
|
75452
|
-
taskListItemNext: () => taskListItemNext,
|
|
75453
|
-
taskPrioritySchema: () => taskPrioritySchema,
|
|
75454
|
-
taskRelationTypeSchema: () => taskRelationTypeSchema,
|
|
75455
|
-
taskShowNext: () => taskShowNext,
|
|
75456
|
-
taskSizeSchema: () => taskSizeSchema,
|
|
75457
|
-
taskStatusSchema: () => taskStatusSchema,
|
|
75458
|
-
taskTypeSchema: () => taskTypeSchema,
|
|
75459
|
-
taskWork: () => task_work_exports,
|
|
75460
|
-
tasks: () => tasks_exports,
|
|
75461
|
-
templates: () => templates_exports,
|
|
75462
|
-
timelineBrain: () => timelineBrain,
|
|
75463
|
-
tokenUsageConfidenceSchema: () => tokenUsageConfidenceSchema,
|
|
75464
|
-
tokenUsageMethodSchema: () => tokenUsageMethodSchema,
|
|
75465
|
-
tokenUsageTransportSchema: () => tokenUsageTransportSchema,
|
|
75466
|
-
ui: () => ui_exports,
|
|
75467
|
-
updateProjectName: () => updateProjectName,
|
|
75468
|
-
updateTask: () => updateTask,
|
|
75469
|
-
validateAgainstSchema: () => validateAgainstSchema,
|
|
75470
|
-
validation: () => validation_exports
|
|
75471
|
-
});
|
|
75472
75191
|
var init_src2 = __esm({
|
|
75473
75192
|
"packages/core/src/index.ts"() {
|
|
75474
75193
|
init_src();
|
|
@@ -107761,6 +107480,11 @@ var init_system_engine = __esm({
|
|
|
107761
107480
|
|
|
107762
107481
|
// packages/cleo/src/dispatch/engines/task-engine.ts
|
|
107763
107482
|
function taskToRecord(task) {
|
|
107483
|
+
const relates = task.relates?.map((r) => ({
|
|
107484
|
+
taskId: r.taskId,
|
|
107485
|
+
type: r.type,
|
|
107486
|
+
...r.reason && { reason: r.reason }
|
|
107487
|
+
}));
|
|
107764
107488
|
return {
|
|
107765
107489
|
id: task.id,
|
|
107766
107490
|
title: task.title,
|
|
@@ -107777,7 +107501,7 @@ function taskToRecord(task) {
|
|
|
107777
107501
|
position: task.position,
|
|
107778
107502
|
positionVersion: task.positionVersion,
|
|
107779
107503
|
depends: task.depends,
|
|
107780
|
-
relates
|
|
107504
|
+
relates,
|
|
107781
107505
|
files: task.files,
|
|
107782
107506
|
acceptance: task.acceptance,
|
|
107783
107507
|
notes: task.notes,
|
|
@@ -107864,34 +107588,12 @@ async function taskFind(projectRoot, query, limit, options) {
|
|
|
107864
107588
|
return { success: true, data: { results: fullResults, total: findResult.total } };
|
|
107865
107589
|
}
|
|
107866
107590
|
if (options?.fields) {
|
|
107867
|
-
const
|
|
107868
|
-
const extendedResults = [];
|
|
107591
|
+
const fullResults = [];
|
|
107869
107592
|
for (const r of findResult.results) {
|
|
107870
|
-
const base = {
|
|
107871
|
-
id: r.id,
|
|
107872
|
-
title: r.title,
|
|
107873
|
-
status: r.status,
|
|
107874
|
-
priority: r.priority,
|
|
107875
|
-
parentId: r.parentId,
|
|
107876
|
-
depends: r.depends,
|
|
107877
|
-
type: r.type,
|
|
107878
|
-
size: r.size
|
|
107879
|
-
};
|
|
107880
107593
|
const task = await accessor.loadSingleTask(r.id);
|
|
107881
|
-
if (task)
|
|
107882
|
-
const record2 = taskToRecord(task);
|
|
107883
|
-
for (const field of extraFields) {
|
|
107884
|
-
if (field in record2) {
|
|
107885
|
-
base[field] = record2[field];
|
|
107886
|
-
}
|
|
107887
|
-
}
|
|
107888
|
-
}
|
|
107889
|
-
extendedResults.push(base);
|
|
107594
|
+
if (task) fullResults.push(taskToRecord(task));
|
|
107890
107595
|
}
|
|
107891
|
-
return {
|
|
107892
|
-
success: true,
|
|
107893
|
-
data: { results: extendedResults, total: findResult.total }
|
|
107894
|
-
};
|
|
107596
|
+
return { success: true, data: { results: fullResults, total: findResult.total } };
|
|
107895
107597
|
}
|
|
107896
107598
|
const results = findResult.results.map((r) => ({
|
|
107897
107599
|
id: r.id,
|
|
@@ -122842,7 +122544,7 @@ function registerLabelsCommand(program) {
|
|
|
122842
122544
|
await dispatchFromCli("query", "tasks", "label.list", {}, { command: "labels" });
|
|
122843
122545
|
});
|
|
122844
122546
|
labels.command("show <label>").description("Show tasks with specific label").action(async (label) => {
|
|
122845
|
-
await dispatchFromCli("query", "tasks", "label.
|
|
122547
|
+
await dispatchFromCli("query", "tasks", "label.list", { label }, { command: "labels" });
|
|
122846
122548
|
});
|
|
122847
122549
|
labels.command("stats").description("Show detailed label statistics").action(async () => {
|
|
122848
122550
|
await dispatchFromCli("query", "tasks", "label.list", {}, { command: "labels" });
|
|
@@ -123407,34 +123109,24 @@ function registerNexusCommand(program) {
|
|
|
123407
123109
|
}
|
|
123408
123110
|
|
|
123409
123111
|
// packages/cleo/src/cli/commands/observe.ts
|
|
123410
|
-
|
|
123411
|
-
init_renderers();
|
|
123112
|
+
init_cli();
|
|
123412
123113
|
function registerObserveCommand(program) {
|
|
123413
123114
|
program.command("observe <text>").description("Save an observation to brain.db").option("-t, --title <title>", "Optional title (defaults to first 120 chars of text)").option(
|
|
123414
123115
|
"--type <type>",
|
|
123415
123116
|
"Observation type (discovery, decision, bugfix, refactor, feature, change, pattern, session_summary)"
|
|
123416
123117
|
).action(async (text3, opts) => {
|
|
123417
|
-
|
|
123418
|
-
|
|
123419
|
-
|
|
123420
|
-
|
|
123118
|
+
await dispatchFromCli(
|
|
123119
|
+
"mutate",
|
|
123120
|
+
"memory",
|
|
123121
|
+
"observe",
|
|
123122
|
+
{
|
|
123421
123123
|
text: text3,
|
|
123422
123124
|
title: opts.title,
|
|
123423
|
-
type: opts.type,
|
|
123125
|
+
...opts.type !== void 0 && { type: opts.type },
|
|
123424
123126
|
sourceType: "manual"
|
|
123425
|
-
}
|
|
123426
|
-
|
|
123427
|
-
|
|
123428
|
-
id: result.id,
|
|
123429
|
-
type: result.type,
|
|
123430
|
-
createdAt: result.createdAt
|
|
123431
|
-
},
|
|
123432
|
-
{ command: "observe", operation: "memory.observe" }
|
|
123433
|
-
);
|
|
123434
|
-
} catch (err) {
|
|
123435
|
-
cliError(err instanceof Error ? err.message : String(err), 1);
|
|
123436
|
-
process.exitCode = 1;
|
|
123437
|
-
}
|
|
123127
|
+
},
|
|
123128
|
+
{ command: "observe", operation: "memory.observe" }
|
|
123129
|
+
);
|
|
123438
123130
|
});
|
|
123439
123131
|
}
|
|
123440
123132
|
|
|
@@ -123720,8 +123412,14 @@ function registerPlanCommand(program) {
|
|
|
123720
123412
|
// packages/cleo/src/cli/commands/promote.ts
|
|
123721
123413
|
init_cli();
|
|
123722
123414
|
function registerPromoteCommand(program) {
|
|
123723
|
-
program.command("promote <task-id>").description("Remove parent from task, making it root-level").
|
|
123724
|
-
await dispatchFromCli(
|
|
123415
|
+
program.command("promote <task-id>").description("Remove parent from task, making it root-level").action(async (taskId) => {
|
|
123416
|
+
await dispatchFromCli(
|
|
123417
|
+
"mutate",
|
|
123418
|
+
"tasks",
|
|
123419
|
+
"reparent",
|
|
123420
|
+
{ taskId, newParentId: null },
|
|
123421
|
+
{ command: "promote" }
|
|
123422
|
+
);
|
|
123725
123423
|
});
|
|
123726
123424
|
}
|
|
123727
123425
|
|
|
@@ -125416,38 +125114,26 @@ function registerSkillsCommand(program) {
|
|
|
125416
125114
|
{ command: "skills", operation: "tools.skill.uninstall" }
|
|
125417
125115
|
);
|
|
125418
125116
|
});
|
|
125419
|
-
skillsCmd.command("enable <skill-name>").description("Enable a skill").action(async (skillName) => {
|
|
125117
|
+
skillsCmd.command("enable <skill-name>").description("Enable a skill (alias for install)").action(async (skillName) => {
|
|
125420
125118
|
await dispatchFromCli(
|
|
125421
125119
|
"mutate",
|
|
125422
125120
|
"tools",
|
|
125423
|
-
"skill.
|
|
125121
|
+
"skill.install",
|
|
125424
125122
|
{
|
|
125425
125123
|
name: skillName
|
|
125426
125124
|
},
|
|
125427
|
-
{ command: "skills", operation: "tools.skill.
|
|
125125
|
+
{ command: "skills", operation: "tools.skill.install" }
|
|
125428
125126
|
);
|
|
125429
125127
|
});
|
|
125430
|
-
skillsCmd.command("disable <skill-name>").description("Disable a skill").action(async (skillName) => {
|
|
125128
|
+
skillsCmd.command("disable <skill-name>").description("Disable a skill (alias for uninstall)").action(async (skillName) => {
|
|
125431
125129
|
await dispatchFromCli(
|
|
125432
125130
|
"mutate",
|
|
125433
125131
|
"tools",
|
|
125434
|
-
"skill.
|
|
125132
|
+
"skill.uninstall",
|
|
125435
125133
|
{
|
|
125436
125134
|
name: skillName
|
|
125437
125135
|
},
|
|
125438
|
-
{ command: "skills", operation: "tools.skill.
|
|
125439
|
-
);
|
|
125440
|
-
});
|
|
125441
|
-
skillsCmd.command("configure <skill-name>").description("Configure a skill").option("--set <key=value>", "Set configuration value").action(async (skillName, opts) => {
|
|
125442
|
-
await dispatchFromCli(
|
|
125443
|
-
"mutate",
|
|
125444
|
-
"tools",
|
|
125445
|
-
"skill.configure",
|
|
125446
|
-
{
|
|
125447
|
-
name: skillName,
|
|
125448
|
-
config: opts["set"]
|
|
125449
|
-
},
|
|
125450
|
-
{ command: "skills", operation: "tools.skill.configure" }
|
|
125136
|
+
{ command: "skills", operation: "tools.skill.uninstall" }
|
|
125451
125137
|
);
|
|
125452
125138
|
});
|
|
125453
125139
|
skillsCmd.command("refresh").description("Refresh skills cache").action(async () => {
|