@somewhere-tech/cli 0.37.7 → 0.37.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.
@@ -12,9 +12,7 @@ extend it using the README file map. Minimal/bare starters omit auth.
12
12
  URL, claim URL, and expiry. Login is needed for account-owned operations,
13
13
  the email test inbox and cron. On a hosted VM, after consent, \`somewhere login\` prints a
14
14
  code a human approves in their browser; the machine stays signed in.
15
- Ask \`somewhere advisor "<question>"\` how to build or fix it. For a reference,
16
- use \`somewhere docs <topic> --section <id>\`
17
- (MCP: \`advisor({ question })\`, \`docs({ topic })\`, \`catalog\`).
15
+ For a reference, use \`somewhere docs <topic> --section <id>\` (MCP: \`docs({ topic })\`, \`catalog\`).
18
16
 
19
17
  After every change:
20
18
  1. \`somewhere typecheck\`, then \`somewhere deploy\` (do not build first). Deploy
@@ -53,13 +51,14 @@ Functions: a bare \`export default async function (req, sw)\` returning a
53
51
  \`params.id\` there, \`sw.params.id\` bare. \`somewhere typecheck\` types bare
54
52
  handlers as \`(req: Request, sw: SomewhereRuntimeContext)\`.
55
53
 
56
- Data: tables in \`db/schema.ts\` — \`owner()\` (each user's own rows; no auth
57
- guard), \`shared()\` or \`serverOnly()\` — with a \`client\` block for browser
58
- access via \`somewhere:data\`; a custom endpoint enforces its own caller policy.
59
- \`sw.db.from\` / \`insert\` / \`update\` / \`remove\` return \`{ data: rows[], count,
54
+ Data: tables in \`db/schema.ts\` — \`owner()\` (normal data operations use the
55
+ signed-in user's rows), \`shared()\` or \`serverOnly()\` — with a \`client\` block for browser
56
+ access via \`somewhere:data\`; authorize custom endpoints.
57
+ Structured queries: \`sw.db.from\` / \`insert\` / \`update\` / \`remove\` return \`{ data: rows[], count,
60
58
  changes }\`; \`where: { a: 1, b: { in: ids }, c: { gte: 2 }, d: null }\` (one
61
- operator per column). Raw \`sw.db.query(sql, params)\` runs as written (add \`WHERE
62
- user_id = ?\`; managed projects refuse it). Independent reads: one \`Promise.all\`.`;
59
+ operator per column). Raw SQL \`sw.db.query(sql, params)\` runs as written (add \`WHERE
60
+ user_id = ?\`; managed projects refuse it). Use \`sw.db.server.query\` for managed
61
+ raw access; authorize the caller in your function. Parallel reads: \`Promise.all\`.`;
63
62
  export const SKILLS_POINTER = `Skills: \`${SKILLS_DIR}/\` — `
64
63
  + skillNames(BUNDLED_SKILLS_PACK).map((name) => `\`${name}\``).join(', ')
65
64
  + '. Read the skill that matches the task. `somewhere skills status` inspects the installed pack; `somewhere skills update` updates unmodified files.';
@@ -1 +1 @@
1
- {"version":3,"file":"init-agent-guide.js","sourceRoot":"","sources":["../../src/lib/init-agent-guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE1D,0EAA0E;AAC1E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oFAyDsD,CAAC;AAErF,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,UAAU,QAAQ;MACzD,UAAU,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;MACvE,oJAAoJ,CAAC;AAEzJ,MAAM,CAAC,MAAM,cAAc,GAAG,sCAAsC,cAAc,KAAK,cAAc,IAAI,CAAC;AAC1G,MAAM,CAAC,MAAM,cAAc,GAAG,4CAA4C,CAAC"}
1
+ {"version":3,"file":"init-agent-guide.js","sourceRoot":"","sources":["../../src/lib/init-agent-guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE1D,0EAA0E;AAC1E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oFAwDsD,CAAC;AAErF,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,UAAU,QAAQ;MACzD,UAAU,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;MACvE,oJAAoJ,CAAC;AAEzJ,MAAM,CAAC,MAAM,cAAc,GAAG,sCAAsC,cAAc,KAAK,cAAc,IAAI,CAAC;AAC1G,MAAM,CAAC,MAAM,cAAc,GAAG,4CAA4C,CAAC"}
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@somewhere-tech/cli",
3
- "version": "0.37.7",
3
+ "version": "0.37.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@somewhere-tech/cli",
9
- "version": "0.37.7",
9
+ "version": "0.37.8",
10
10
  "bundleDependencies": [
11
11
  "@modelcontextprotocol/sdk",
12
12
  "chokidar",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@somewhere-tech/cli",
3
- "version": "0.37.7",
3
+ "version": "0.37.8",
4
4
  "description": "CLI for somewhere.tech — auth, projects, deploy, pull, promote, db, logs, env, MCP bridge.",
5
5
  "keywords": [
6
6
  "somewhere",