@ahmednawaz/crank 0.1.5 → 0.1.7

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/bin/crank.js CHANGED
@@ -176,8 +176,11 @@ function hasDevScript(detectEnv) {
176
176
  }
177
177
 
178
178
  function applySmartDefaults(flags, detectEnv, command) {
179
- if (command === 'start' && !flags.explicit.dev) {
180
- flags.dev = false;
179
+ if (command === 'start' && !flags.explicit.daemon) {
180
+ flags.daemon = false;
181
+ if (!flags.explicit.dev) {
182
+ flags.dev = false;
183
+ }
181
184
  }
182
185
  if (detectEnv.isReplit) {
183
186
  flags.httpMcp = true;
@@ -499,7 +502,7 @@ function runCompanionSupervisor(projectRoot, { foreground, httpMcp }) {
499
502
  }
500
503
 
501
504
  function launchDetachedDaemon(projectRoot, argvFlags) {
502
- const args = [__filename, 'start', '--daemon', '--no-open', projectRoot];
505
+ const args = [__filename, 'run', '--daemon', '--no-open', projectRoot];
503
506
  if (argvFlags.httpMcp) {
504
507
  args.push('--http-mcp');
505
508
  }
@@ -24,7 +24,7 @@ const { saveTextChange, writeTextChangeAvailable } = require('./text-dispatch');
24
24
  const { persistAppliedVariant } = require('./persist-apply');
25
25
  const agentQueue = require('./agent-queue');
26
26
  const agentRunner = require('./agent-runner');
27
- const { env } = require('./env');
27
+ const { env } = require('../lib/env');
28
28
  const { loadTeamEnvFile } = require('../lib/load-team-env');
29
29
  const { describeEnvironment } = require('../lib/resolve-project');
30
30
  const { readRuntimeManifest } = require('../lib/urls');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahmednawaz/crank",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Internal Motive UX copy iteration: select UI text → Glean variants → MCP apply. Cursor, Replit, Claude.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,11 +30,20 @@
30
30
  "test:parse": "node scripts/test-parse-options.js",
31
31
  "test:resolve": "node scripts/test-resolve-project.js",
32
32
  "prepare:publish": "node scripts/prepare-publish.js",
33
- "publish:team": "node scripts/prepare-publish.js && npm publish --access public"
33
+ "verify:deps": "node scripts/verify-deps.js",
34
+ "publish:team": "node scripts/prepare-publish.js && node scripts/verify-deps.js && npm publish --access public"
34
35
  },
35
36
  "engines": {
36
37
  "node": ">=18"
37
38
  },
39
+ "dependencies": {
40
+ "@cursor/sdk": "^1.0.23",
41
+ "@modelcontextprotocol/sdk": "^1.12.1",
42
+ "cors": "^2.8.5",
43
+ "express": "^4.21.2",
44
+ "ws": "^8.18.0",
45
+ "zod": "^3.24.2"
46
+ },
38
47
  "files": [
39
48
  "bin",
40
49
  "lib",
package/team.env CHANGED
@@ -1,4 +1,4 @@
1
- GLEAN_BASE_URL=https://motive-prod-be.glean.com
2
1
  GLEAN_API_KEY=3ZIlc2VgNezFqr4iuR9PU1pGSZAbEqYOhkI04ec+OeU=
2
+ GLEAN_BASE_URL=https://motive-prod-be.glean.com
3
3
  GLEAN_AGENT_ID=a866095fd53b419ab08338e3559fb7aa
4
4
  GLEAN_STUB=false