sidecar-cli 0.1.4-rc.1 → 0.1.4-rc.2
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/README.md +2 -0
- package/dist/cli.js +13 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@ project memory for your work
|
|
|
6
6
|
|
|
7
7
|
Sidecar is a local-first, CLI-first project memory and recording tool for human developers and AI coding agents.
|
|
8
8
|
|
|
9
|
+
Documentation website: [usesidecar.dev](https://usesidecar.dev/)
|
|
10
|
+
|
|
9
11
|
## Why Sidecar exists
|
|
10
12
|
|
|
11
13
|
- Keep project memory structured and local.
|
package/dist/cli.js
CHANGED
|
@@ -73,6 +73,17 @@ function respondSuccess(command, asJson, data, lines = []) {
|
|
|
73
73
|
console.log(line);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
function renderInitBanner() {
|
|
77
|
+
return [
|
|
78
|
+
' [■]─[▪]',
|
|
79
|
+
' ███████╗██╗██████╗ ███████╗ ██████╗ █████╗ ██████╗',
|
|
80
|
+
' ██╔════╝██║██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗',
|
|
81
|
+
' ███████╗██║██║ ██║█████╗ ██║ ███████║██████╔╝',
|
|
82
|
+
' ╚════██║██║██║ ██║██╔══╝ ██║ ██╔══██║██╔══██╗',
|
|
83
|
+
' ███████║██║██████╔╝███████╗╚██████╗██║ ██║██║ ██║',
|
|
84
|
+
' ╚══════╝╚═╝╚═════╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝',
|
|
85
|
+
].join('\n');
|
|
86
|
+
}
|
|
76
87
|
function summaryWasRefreshedRecently(db, projectId) {
|
|
77
88
|
return Boolean(db
|
|
78
89
|
.prepare(`SELECT id FROM events WHERE project_id = ? AND type = 'summary_generated' AND created_at >= datetime('now', '-3 day') LIMIT 1`)
|
|
@@ -397,18 +408,13 @@ program
|
|
|
397
408
|
};
|
|
398
409
|
const shouldShowBanner = !opts.json && !bannerDisabled();
|
|
399
410
|
if (shouldShowBanner) {
|
|
400
|
-
console.log(
|
|
411
|
+
console.log(renderInitBanner());
|
|
401
412
|
console.log('');
|
|
402
413
|
}
|
|
403
414
|
respondSuccess(command, Boolean(opts.json), data, [
|
|
404
415
|
`Initialized Sidecar for project: ${projectName}`,
|
|
405
|
-
'
|
|
406
|
-
'Created:',
|
|
407
|
-
...data.filesCreated.map((f) => `- ${f}`),
|
|
416
|
+
'Documentation: https://usesidecar.dev/',
|
|
408
417
|
...(resolvedInstructions ? ['', `Loaded instructions.md from ${resolvedInstructions.sourceLabel}`] : []),
|
|
409
|
-
'',
|
|
410
|
-
'Next step:',
|
|
411
|
-
'sidecar context',
|
|
412
418
|
]);
|
|
413
419
|
}
|
|
414
420
|
catch (err) {
|