shin-engine 1.0.6 → 1.0.8

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.
Files changed (2) hide show
  1. package/bin/ee.js +13 -4
  2. package/package.json +1 -1
package/bin/ee.js CHANGED
@@ -7,6 +7,8 @@ const https = require("https");
7
7
  const http = require("http");
8
8
  const os = require("os");
9
9
 
10
+ const PKG = require(join(__dirname, "..", "package.json"));
11
+ const VERSION = PKG.version;
10
12
  const EE_HOME = join(os.homedir(), ".ee");
11
13
  const BRAIN_DIR = join(EE_HOME, "engineering-brain");
12
14
  const JAR = join(EE_HOME, "ee.jar");
@@ -72,7 +74,7 @@ function installJava() {
72
74
  async function ensureSetup() {
73
75
  if (existsSync(JAR)) return true;
74
76
 
75
- step("SHIN first-time setup");
77
+ step("SHIN v" + VERSION + " first-time setup");
76
78
 
77
79
  // Check/Install Java
78
80
  try {
@@ -134,14 +136,20 @@ async function ensureSetup() {
134
136
  }
135
137
 
136
138
  async function main() {
139
+ if (cmd === "--version" || cmd === "-v") {
140
+ log("shin-engine v" + VERSION);
141
+ return;
142
+ }
143
+
137
144
  if (!cmd) {
145
+ log("shin-engine v" + VERSION);
138
146
  log("Usage: shin <command>");
139
147
  log("Run 'shin --help' for options");
140
148
  return;
141
149
  }
142
150
 
143
151
  if (cmd === "start") {
144
- if (isRunning()) { log("SHIN is already running on port " + PORT); return; }
152
+ if (isRunning()) { log("SHIN v" + VERSION + " is already running on port " + PORT); return; }
145
153
  const setup = await ensureSetup();
146
154
  if (!setup) { process.exit(1); }
147
155
 
@@ -156,7 +164,7 @@ async function main() {
156
164
  for (let i = 0; i < 30; i++) {
157
165
  await sleep(1000);
158
166
  if (isRunning()) {
159
- log("SHIN ready on port " + PORT);
167
+ log("SHIN v" + VERSION + " ready on port " + PORT);
160
168
  log("\nTell your OpenCode agent: 'load the engineering-experience-engine skill'");
161
169
  return;
162
170
  }
@@ -178,7 +186,7 @@ async function main() {
178
186
 
179
187
  if (cmd === "status") {
180
188
  if (isRunning()) {
181
- log("SHIN is running on port " + PORT);
189
+ log("SHIN v" + VERSION + " is running on port " + PORT);
182
190
  } else {
183
191
  log("SHIN is not running");
184
192
  }
@@ -200,6 +208,7 @@ async function main() {
200
208
  log(" shin stop Stop the SHIN backend");
201
209
  log(" shin status Check if SHIN is running");
202
210
  log(" shin view Open the SHIN dashboard in browser");
211
+ log(" shin --version Show version");
203
212
  return;
204
213
  }
205
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shin-engine",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Engineering Experience Engine — engineering judgment for AI coding agents",
5
5
  "bin": {
6
6
  "shin": "bin/ee.js"