@somewhere-cloud/cli 0.38.90 → 0.38.92

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.
@@ -1,35 +1,15 @@
1
- import prompts from 'prompts';
2
- import { ApiClient } from '../lib/client.js';
3
- import { getToken, loadProjectConfig } from '../lib/config.js';
4
- import { teal, warn } from '../lib/output.js';
5
- import { linkExisting } from './init.js';
1
+ import { runInit } from './init.js';
6
2
  /**
7
3
  * `somewhere link` — a discoverable top-level alias for `somewhere init --link`.
8
- * Agents look for `link`; this registers it without forking any logic — it
9
- * reuses linkExisting (which fetches projects, prompts a pick, and writes
10
- * .somewhere.json via saveProjectConfig).
4
+ * Agents look for `link`; it takes init's link options and runs init's own handler
5
+ * with link set, so both commands accept the same flags and behave the same.
11
6
  */
12
7
  export function registerLink(program) {
13
8
  program
14
9
  .command('link')
15
10
  .description('Link this directory to an existing project (alias for `init --link`)')
16
- .action(async () => {
17
- const token = getToken();
18
- const client = new ApiClient(token);
19
- const dir = process.cwd();
20
- const existing = loadProjectConfig(dir);
21
- if (existing) {
22
- warn(`This directory is already linked to ${teal(existing.name)}`);
23
- const { overwrite } = await prompts({
24
- type: 'confirm',
25
- name: 'overwrite',
26
- message: 'Overwrite?',
27
- initial: false,
28
- });
29
- if (!overwrite)
30
- return;
31
- }
32
- await linkExisting(client, dir);
33
- });
11
+ .option('--project <ref>', 'Existing project ID, name, slug, or subdomain')
12
+ .option('--json', 'Print the linked project as JSON')
13
+ .action((opts, command) => runInit({ ...opts, link: true }, command));
34
14
  }
35
15
  //# sourceMappingURL=link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/commands/link.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;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AE,kCAAkC,CAAC;SACpD,MAAM,CAAC,CAAC,IAA0C,EAAE,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AACzH,CAAC"}
@@ -9,6 +9,12 @@ export declare function cliConfigPathForDisplay(): string;
9
9
  * temporary project and invited a new sign-in over the existing one
10
10
  *. */
11
11
  export declare function loadConfig(): CliConfig | null;
12
+ /**
13
+ * Write an owner-only file under a subdirectory of the CLI config root (0700 directory, 0600 file,
14
+ * atomic). For per-preview tool credentials (lib/preview-credential.ts): kept out of the project
15
+ * folder, its source snapshots and Git.
16
+ */
17
+ export declare function writePrivateConfigFile(subdir: string, name: string, body: string): string;
12
18
  export declare function saveConfig(config: CliConfig): void;
13
19
  export declare function clearConfig(): void;
14
20
  /**
@@ -77,6 +77,21 @@ function writeSecret(path, body) {
77
77
  unlinkSync(tempPath);
78
78
  }
79
79
  }
80
+ /**
81
+ * Write an owner-only file under a subdirectory of the CLI config root (0700 directory, 0600 file,
82
+ * atomic). For per-preview tool credentials (lib/preview-credential.ts): kept out of the project
83
+ * folder, its source snapshots and Git.
84
+ */
85
+ export function writePrivateConfigFile(subdir, name, body) {
86
+ ensureDir();
87
+ const dir = join(CONFIG_DIR, subdir);
88
+ if (!existsSync(dir))
89
+ mkdirSync(dir, { recursive: true, mode: 0o700 });
90
+ chmodSync(dir, 0o700);
91
+ const path = join(dir, name);
92
+ writeSecret(path, body);
93
+ return path;
94
+ }
80
95
  export function saveConfig(config) {
81
96
  ensureDir();
82
97
  writeSecret(CONFIG_PATH, JSON.stringify(config, null, 2) + '\n');
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,YA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mB;IACjC,IAAI,MAAM,GAA4B,EAAE,CAAC;IACzC,IAAI,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;QAChC,IAAI,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAA4B,CAAC;QACzF,CAAC;QAAC,MAAM,CAAC;YACP,4CAA4C;QAC9C,CAAC;IACH,CAAC;IAED,MAAM,OAAO,GAAG,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAA4B,CAAC;IACrE,OAAO,CAAC,SAAS,GAAG,mBAAmB,EAAE,CAAC;IAC1C,MAAM,CAAC,UAAU,GAAG,OAAO,CAAC;IAE5B,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;QAAE,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACxE,aAAa,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;QAAE,OAAO,KAAK,CAAC;IAC/C,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAA4B,CAAC;QAC7F,MAAM,OAAO,GAAG,MAAM,CAAC,UAAiD,CAAC;QACzE,OAAO,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -9,6 +9,6 @@ export declare const PORTABILITY_POINTER = "Data/code export limits: `somewhere
9
9
  export declare const MCP_POINTER = "Use this app from Claude as its signed-in user (MCP tools): `somewhere docs sw.endpoint --section mcp-tools-for-claude`.";
10
10
  /** One line on what a preview cannot do today, so no agent learns it by failing.
11
11
  * Rewrite it when previews gain these (the full list: docs dev-environments). */
12
- export declare const PREVIEW_POINTER = "somewhere preview runs your change on a copy of production data, but sign-in, public reads for visitors, sw.groups, server user lookup, jobs/cron handlers and somewhere test do not work in a preview yet: check those in production after promoting (`somewhere docs dev-environments`).";
13
- export declare const INIT_AGENTS_MD = "# somewhere.cloud project contract\n## Build, deploy, test\n\nEnough to start a typical app: declare access and use the browser client; docs are for exceptions.\n\n| Requirement | Declaration below |\n| --- | --- |\n| Each user sees only their own rows | notes: owner() |\n| Team: owner invites members; members read/write; creator or team owner deletes | tasks: anyOf(owner(), group()); sw.groups endpoints below |\n| Owner/staff record with staff-only child notes | tickets: owner() or appRole(); parent() thread; staff-only notes; staff by verified emailDomain (or grantableBy) |\n| Public pages from private drafts | pages: conditional publicRead |\n| Share one record read-only | shared_notes/note_shares: read-only grant() |\n\ndb/schema.ts is declaration only: imports, constants/spreads, default schema;\nno helpers/expressions. id() is random text; owner() stamps user_id. client.read\nincludes the key. Inside anyOf(), owner() takes only column/read: it stamps the\ncreator, not create/delete options; group() gates placement (non-member create is\nrefused); inside anyOf an operation missing from roles allows no group role. Other fields: timestamp({ default: 'now' }), text({ nullable: true });\nindexes: [['team_id']].\n\n```ts\nimport { schema, table, id, text, owner, group, anyOf, parent, appRole, boolean, grant } from 'somewhere/db';\nexport default schema({\n notes: table({ id: id(), title: text() }, { scope: owner(), client: { read: ['id', 'title'], create: ['title'], update: ['title'], delete: true },\n }),\n tasks: table({ id: id(), team_id: text(), title: text() }, {\n scope: anyOf(owner(), group({ column: 'team_id', roles: { read: ['owner', 'admin', 'member'],\n create: ['owner', 'admin', 'member'], update: ['owner', 'admin', 'member'], delete: ['owner'] } })),\n client: { read: ['id', 'team_id', 'title'], create: ['team_id', 'title'], update: ['title'], delete: true },\n }),\n tickets: table({ id: id(), subject: text() }, {\n scope: anyOf(owner(), appRole({ roles: { read: ['staff'], create: ['staff'], update: ['staff'] } })),\n client: { read: true, create: ['subject'], update: ['subject'] },\n }),\n messages: table({ id: id(), ticket_id: text({ references: 'tickets' }), body: text() }, {\n scope: parent({ via: 'ticket_id' }),\n client: { read: true, create: ['ticket_id', 'body'] },\n }),\n staff_notes: table({ id: id(), ticket_id: text({ references: 'tickets' }), body: text() }, {\n scope: appRole({ roles: { read: ['staff'], create: ['staff'] } }),\n client: { read: true, create: ['ticket_id', 'body'] },\n }),\n pages: table({ id: id(), title: text(), published: boolean({ default: false }) }, {\n scope: owner(), client: { read: ['id', 'title'], create: ['title'], update: ['title'],\n publicRead: { where: { published: true } } },\n }),\n note_shares: table({ id: id(), grantee_id: text(), note_id: text({ references: 'shared_notes', onDelete: 'cascade' }) }, {\n scope: owner(), unique: [['note_id', 'grantee_id']],\n }),\n shared_notes: table({ id: id(), title: text() }, {\n scope: anyOf(owner(), grant({ table: 'note_shares', grantee: 'grantee_id', row: 'note_id', operations: ['read'] })),\n client: { read: ['id', 'title'], create: ['title'], update: ['title'] },\n }),\n}, { appRoles: { staff: { emailDomain: 'staff.example' } } });\n```\n\nWho is staff is your app's decision; the platform enforces what the role may do.\nFirst choice, as above: emailDomain. The role holds once the person verifies an address\nat that domain; no grant code. An email ending alone proves nothing: anyone can sign up\nas anyone@your-domain without owning that mailbox. Without verification, grant only from\nsomething the visitor cannot choose, such as an invitation your app issued, checked inside\nthe sign-up route: single use, bound to one account, its link delivered only to that person:\nsomewhere docs sw.auth --section server-assigned-app-roles-setroles.\nmessages use parent(): owner() would hide staff replies from the customer.\nPublish pages in an owner-checked endpoint. Share with caller-scoped\nsw.db.insert('note_shares', { grantee_id, note_id }); it checks row ownership.\nBrowser calls THROW, not { error }; catch below.\nBrowser list: max 100, paginate after; no order (sort locally or in an endpoint).\n\n```ts\nimport { data } from 'somewhere:data';\nexport async function save(title: string) {\n try { await data.notes.create({ title }); return null; }\n catch (e) { return e instanceof Error ? e.message : 'Save failed'; }\n}\nexport const list = (after?: string) => data.notes.list({ limit: 100, after });\n```\n\nTeams are built-in groups: the platform keeps the team, invitations, roster, removal,\nleaving, last owner. Starting a team needs a signed-in user; joining needs a verified\nemail (a password sign-up joins once it enters its emailed code). The browser cannot call\nsw.groups: pass each call through an endpoint. A parent() child's delete follows the task\n(creator or team owner), so \"comment author or team owner deletes\" is an endpoint.\nStaff making others staff: appRoles { staff: { grantableBy: ['staff'] } } and\nsw.groups.appRoles.grant(request, userId, 'staff') in an endpoint (never to oneself).\nComplete apps and specs: somewhere docs sw.groups --section team-example or staff-example.\n\n```ts\n// api/teams.ts \u2014 GET my teams (completes invitations to me); POST starts one I own\nconst refusal = (e: { code: string; message: string; status: number }) =>\n Response.json({ error: e.code, message: e.message }, { status: e.status });\nexport const GET = sw.endpoint({ auth: 'required', handler: async ({ request }, sw) => {\n const page = await sw.groups.list(request, { limit: 100 });\n return page.error ? refusal(page.error) : { teams: page.data.items, next_cursor: page.data.next_cursor };\n} });\nexport default sw.endpoint({ auth: 'required', body: { name: 'string' }, handler: async ({ request, body }, sw) => {\n const made = await sw.groups.create(request, { name: body.name });\n return made.error ? refusal(made.error) : { id: made.data.id };\n} });\n```\n\n```ts\n// api/teams/[id]/invitations.ts \u2014 owners invite; others 403; a member's address 409 ALREADY_MEMBER\nexport default sw.endpoint({ auth: 'required', body: { email: 'string' }, handler: async ({ request, params, body }, sw) => {\n const sent = await sw.groups.invite(request, params.id, { email: body.email, role: 'member', redirect_uri: '/' });\n return sent.error ? Response.json({ error: sent.error.code }, { status: sent.error.status }) : { delivery: sent.data.delivery };\n} });\n```\n\nSame shape: sw.groups.get/members(request, id), remove(request, id, userId), leave(request, id)\n(last owner: 409 LAST_OWNER), delete(request, id) by owners.\n\nDo not hand-write access to app-read/write data: declare who may read/write it.\nserverOnly() fits job/import/audit/counter state.\nGrant ledgers use owner() without browser writes. Undeclarable: arbitrary predicates\n(e.g. expiry) or per-role writable fields (split tables or check that write).\n\nBuild src/pages/HomePage.tsx; routes src/App.tsx + src/routes.ts; auth src/auth/hooks.ts.\nAuth is wired: keep api/auth/[...path].ts; src/config.ts controls providers.\napi/notes/[id]/sub.ts \u2192 params.id; underscore files are helpers. POST: default export;\nGET/DELETE: named exports.\n\n```ts\nexport const GET = sw.endpoint({ auth: 'required', handler: async (_, sw) => sw.db.from('notes', { limit: 100 }) });\n```\n\nsw.db applies caller scopes; sw.db.server bypasses them: authorize first.\nCaller-scoped sw.db.insert needs no client.create grant: client limits only the browser.\nReads: from(table, { where, columns, order: [['id', 'asc']], limit, offset }).\nFilter: { id: { in: ids } }; unique: [['a', 'b']] in schema.\nWrites: insert(table, values), update(table, { where, set }), remove(table, { where }).\ntx takes an ARRAY of write intents, never a callback; pre-generate related IDs.\n\nBrowser: fetch(path, { method: 'POST', credentials: 'same-origin',\nheaders: { 'content-type': 'application/json' }, body: JSON.stringify(values) }).\nAccess cookies refresh automatically. Cookie-auth POST/PATCH/DELETE from scripts\nneed Origin equal to the app URL.\n\nTest with an ordinary Playwright script: the journeys you changed and your access boundaries.\nRun it only after a successful deploy: npx @somewhere-cloud/cli deploy && node tests/app-check.mjs\n(the starter's short example; one result file, and the exit code is the verdict). Rerun only to answer a question.\nHelpers from @somewhere-cloud/cli/script (import or require): openAppTest() then app.signUp/signIn/signOut(page)\nthrough your form, app.data(page, { table, operation, id, values, where }) as that person,\napp.expectRefused(page, request, { allowed: ownerPage }), captureResponses, dataReady, launchOptions.\nA rebuilt sign-in form keeps data-sw-auth=\"email\", \"password\", \"sign-up\", \"sign-in\" on its controls,\nor pass app.signUp(page, { form: { email, password, signUp, signIn } }) with your own selectors.\nDeploy raw source, no frontend build; type errors stop upload.\nEmail-domain role: app.signUp(page, { domain: 'staff.example' }), then app.verify(page, person).\nThe complete team spec, with removal and leaving: somewhere docs sw.groups --section team-example.\nDiagnose with somewhere errors and somewhere logs.\n\nOn demand:\n- Server paging: `somewhere docs sw.db --section server-read-paging`\n\n## Testing shared access\n\nWith the team endpoints above, the owner invites a fixture by email; test users are verified,\nso its next GET /api/teams shows the team. A test user who still owns a team is not deleted:\ndelete the team last (api/teams/[id].ts DELETE: sw.groups.delete). Group calls take\nabout a second, so raise the timeout:\n\n```ts\n// tests/team.spec.ts\nimport { test, expect } from '@somewhere-cloud/cli/testing';\ntest.describe.configure({ timeout: 90_000 });\ntest('owner invites a second user by email', async ({ newUser }) => {\n const [owner, bob] = await Promise.all([newUser(), newUser()]);\n const { id } = await (await owner.request.post('/api/teams', { data: { name: 'Shared team' } })).json();\n expect((await owner.request.post(`/api/teams/${id}/invitations`, { data: { email: bob.email } })).ok()).toBeTruthy();\n const { teams } = await (await bob.request.get('/api/teams')).json();\n expect(teams).toContainEqual(expect.objectContaining({ id, role: 'member' }));\n expect((await owner.request.delete(`/api/teams/${id}`)).status()).toBe(204);\n});\n```\n\nTask-specific skills: `.agents/skills/`. Inspect/update with somewhere skills status/update.\nData/code export limits: `somewhere docs portability`.\nUse this app from Claude as its signed-in user (MCP tools): `somewhere docs sw.endpoint --section mcp-tools-for-claude`.\nsomewhere preview runs your change on a copy of production data, but sign-in, public reads for visitors, sw.groups, server user lookup, jobs/cron handlers and somewhere test do not work in a preview yet: check those in production after promoting (`somewhere docs dev-environments`).\n";
12
+ export declare const PREVIEW_POINTER = "somewhere preview runs your change on a copy of production data with its own sign-in: a preview starts with no users (sign up in it or `somewhere preview user-add`), its sign-in mail is captured (`somewhere preview mail`), and rows private to a production user stay hidden from preview users. Teams and roles, server user lookup, jobs/cron handlers and somewhere test do not work in a preview yet: check those in production after promoting (`somewhere docs dev-environments`).";
13
+ export declare const INIT_AGENTS_MD = "# somewhere.cloud project contract\n## Build, deploy, test\n\nEnough to start a typical app: declare access and use the browser client; docs are for exceptions.\n\n| Requirement | Declaration below |\n| --- | --- |\n| Each user sees only their own rows | notes: owner() |\n| Team: owner invites members; members read/write; creator or team owner deletes | tasks: anyOf(owner(), group()); sw.groups endpoints below |\n| Owner/staff record with staff-only child notes | tickets: owner() or appRole(); parent() thread; staff-only notes; staff by verified emailDomain (or grantableBy) |\n| Public pages from private drafts | pages: conditional publicRead |\n| Share one record read-only | shared_notes/note_shares: read-only grant() |\n\ndb/schema.ts is declaration only: imports, constants/spreads, default schema;\nno helpers/expressions. id() is random text; owner() stamps user_id. client.read\nincludes the key. Inside anyOf(), owner() takes only column/read: it stamps the\ncreator, not create/delete options; group() gates placement (non-member create is\nrefused); inside anyOf an operation missing from roles allows no group role. Other fields: timestamp({ default: 'now' }), text({ nullable: true });\nindexes: [['team_id']].\n\n```ts\nimport { schema, table, id, text, owner, group, anyOf, parent, appRole, boolean, grant } from 'somewhere/db';\nexport default schema({\n notes: table({ id: id(), title: text() }, { scope: owner(), client: { read: ['id', 'title'], create: ['title'], update: ['title'], delete: true },\n }),\n tasks: table({ id: id(), team_id: text(), title: text() }, {\n scope: anyOf(owner(), group({ column: 'team_id', roles: { read: ['owner', 'admin', 'member'],\n create: ['owner', 'admin', 'member'], update: ['owner', 'admin', 'member'], delete: ['owner'] } })),\n client: { read: ['id', 'team_id', 'title'], create: ['team_id', 'title'], update: ['title'], delete: true },\n }),\n tickets: table({ id: id(), subject: text() }, {\n scope: anyOf(owner(), appRole({ roles: { read: ['staff'], create: ['staff'], update: ['staff'] } })),\n client: { read: true, create: ['subject'], update: ['subject'] },\n }),\n messages: table({ id: id(), ticket_id: text({ references: 'tickets' }), body: text() }, {\n scope: parent({ via: 'ticket_id' }),\n client: { read: true, create: ['ticket_id', 'body'] },\n }),\n staff_notes: table({ id: id(), ticket_id: text({ references: 'tickets' }), body: text() }, {\n scope: appRole({ roles: { read: ['staff'], create: ['staff'] } }),\n client: { read: true, create: ['ticket_id', 'body'] },\n }),\n pages: table({ id: id(), title: text(), published: boolean({ default: false }) }, {\n scope: owner(), client: { read: ['id', 'title'], create: ['title'], update: ['title'],\n publicRead: { where: { published: true } } },\n }),\n note_shares: table({ id: id(), grantee_id: text(), note_id: text({ references: 'shared_notes', onDelete: 'cascade' }) }, {\n scope: owner(), unique: [['note_id', 'grantee_id']],\n }),\n shared_notes: table({ id: id(), title: text() }, {\n scope: anyOf(owner(), grant({ table: 'note_shares', grantee: 'grantee_id', row: 'note_id', operations: ['read'] })),\n client: { read: ['id', 'title'], create: ['title'], update: ['title'] },\n }),\n}, { appRoles: { staff: { emailDomain: 'staff.example' } } });\n```\n\nWho is staff is your app's decision; the platform enforces what the role may do.\nFirst choice, as above: emailDomain. The role holds once the person verifies an address\nat that domain; no grant code. An email ending alone proves nothing: anyone can sign up\nas anyone@your-domain without owning that mailbox. Without verification, grant only from\nsomething the visitor cannot choose, such as an invitation your app issued, checked inside\nthe sign-up route: single use, bound to one account, its link delivered only to that person:\nsomewhere docs sw.auth --section server-assigned-app-roles-setroles.\nmessages use parent(): owner() would hide staff replies from the customer.\nPublish pages in an owner-checked endpoint. Share with caller-scoped\nsw.db.insert('note_shares', { grantee_id, note_id }); it checks row ownership.\nBrowser calls THROW, not { error }; catch below.\nBrowser list: max 100, paginate after; no order (sort locally or in an endpoint).\n\n```ts\nimport { data } from 'somewhere:data';\nexport async function save(title: string) {\n try { await data.notes.create({ title }); return null; }\n catch (e) { return e instanceof Error ? e.message : 'Save failed'; }\n}\nexport const list = (after?: string) => data.notes.list({ limit: 100, after });\n```\n\nTeams are built-in groups: the platform keeps the team, invitations, roster, removal,\nleaving, last owner. Starting a team needs a signed-in user; joining needs a verified\nemail (a password sign-up joins once it enters its emailed code). The browser cannot call\nsw.groups: pass each call through an endpoint. A parent() child's delete follows the task\n(creator or team owner), so \"comment author or team owner deletes\" is an endpoint.\nStaff making others staff: appRoles { staff: { grantableBy: ['staff'] } } and\nsw.groups.appRoles.grant(request, userId, 'staff') in an endpoint (never to oneself).\nComplete apps and specs: somewhere docs sw.groups --section team-example or staff-example.\n\n```ts\n// api/teams.ts \u2014 GET my teams (completes invitations to me); POST starts one I own\nconst refusal = (e: { code: string; message: string; status: number }) =>\n Response.json({ error: e.code, message: e.message }, { status: e.status });\nexport const GET = sw.endpoint({ auth: 'required', handler: async ({ request }, sw) => {\n const page = await sw.groups.list(request, { limit: 100 });\n return page.error ? refusal(page.error) : { teams: page.data.items, next_cursor: page.data.next_cursor };\n} });\nexport default sw.endpoint({ auth: 'required', body: { name: 'string' }, handler: async ({ request, body }, sw) => {\n const made = await sw.groups.create(request, { name: body.name });\n return made.error ? refusal(made.error) : { id: made.data.id };\n} });\n```\n\n```ts\n// api/teams/[id]/invitations.ts \u2014 owners invite; others 403; a member's address 409 ALREADY_MEMBER\nexport default sw.endpoint({ auth: 'required', body: { email: 'string' }, handler: async ({ request, params, body }, sw) => {\n const sent = await sw.groups.invite(request, params.id, { email: body.email, role: 'member', redirect_uri: '/' });\n return sent.error ? Response.json({ error: sent.error.code }, { status: sent.error.status }) : { delivery: sent.data.delivery };\n} });\n```\n\nSame shape: sw.groups.get/members(request, id), remove(request, id, userId), leave(request, id)\n(last owner: 409 LAST_OWNER), delete(request, id) by owners.\n\nDo not hand-write access to app-read/write data: declare who may read/write it.\nserverOnly() fits job/import/audit/counter state.\nGrant ledgers use owner() without browser writes. Undeclarable: arbitrary predicates\n(e.g. expiry) or per-role writable fields (split tables or check that write).\n\nBuild src/pages/HomePage.tsx; routes src/App.tsx + src/routes.ts; auth src/auth/hooks.ts.\nAuth is wired: keep api/auth/[...path].ts; src/config.ts controls providers.\napi/notes/[id]/sub.ts \u2192 params.id; underscore files are helpers. POST: default export;\nGET/DELETE: named exports.\n\n```ts\nexport const GET = sw.endpoint({ auth: 'required', handler: async (_, sw) => sw.db.from('notes', { limit: 100 }) });\n```\n\nsw.db applies caller scopes; sw.db.server bypasses them: authorize first.\nCaller-scoped sw.db.insert needs no client.create grant: client limits only the browser.\nReads: from(table, { where, columns, order: [['id', 'asc']], limit, offset }).\nFilter: { id: { in: ids } }; unique: [['a', 'b']] in schema.\nWrites: insert(table, values), update(table, { where, set }), remove(table, { where }).\ntx takes an ARRAY of write intents, never a callback; pre-generate related IDs.\n\nBrowser: fetch(path, { method: 'POST', credentials: 'same-origin',\nheaders: { 'content-type': 'application/json' }, body: JSON.stringify(values) }).\nAccess cookies refresh automatically. Cookie-auth POST/PATCH/DELETE from scripts\nneed Origin equal to the app URL.\n\nTest with an ordinary Playwright script: the journeys you changed and your access boundaries.\nRun it only after a successful deploy: npx @somewhere-cloud/cli deploy && node tests/app-check.mjs\n(the starter's short example; one result file, and the exit code is the verdict). Rerun only to answer a question.\nHelpers from @somewhere-cloud/cli/script (import or require): openAppTest() then app.signUp/signIn/signOut(page)\nthrough your form, app.data(page, { table, operation, id, values, where }) as that person,\napp.expectRefused(page, request, { allowed: ownerPage }), captureResponses, dataReady, launchOptions.\nA rebuilt sign-in form keeps data-sw-auth=\"email\", \"password\", \"sign-up\", \"sign-in\" on its controls,\nor pass app.signUp(page, { form: { email, password, signUp, signIn } }) with your own selectors.\nDeploy raw source, no frontend build; type errors stop upload.\nEmail-domain role: app.signUp(page, { domain: 'staff.example' }), then app.verify(page, person).\nThe complete team spec, with removal and leaving: somewhere docs sw.groups --section team-example.\nDiagnose with somewhere errors and somewhere logs.\n\nOn demand:\n- Server paging: `somewhere docs sw.db --section server-read-paging`\n\n## Testing shared access\n\nWith the team endpoints above, the owner invites a fixture by email; test users are verified,\nso its next GET /api/teams shows the team. A test user who still owns a team is not deleted:\ndelete the team last (api/teams/[id].ts DELETE: sw.groups.delete). Group calls take\nabout a second, so raise the timeout:\n\n```ts\n// tests/team.spec.ts\nimport { test, expect } from '@somewhere-cloud/cli/testing';\ntest.describe.configure({ timeout: 90_000 });\ntest('owner invites a second user by email', async ({ newUser }) => {\n const [owner, bob] = await Promise.all([newUser(), newUser()]);\n const { id } = await (await owner.request.post('/api/teams', { data: { name: 'Shared team' } })).json();\n expect((await owner.request.post(`/api/teams/${id}/invitations`, { data: { email: bob.email } })).ok()).toBeTruthy();\n const { teams } = await (await bob.request.get('/api/teams')).json();\n expect(teams).toContainEqual(expect.objectContaining({ id, role: 'member' }));\n expect((await owner.request.delete(`/api/teams/${id}`)).status()).toBe(204);\n});\n```\n\nTask-specific skills: `.agents/skills/`. Inspect/update with somewhere skills status/update.\nData/code export limits: `somewhere docs portability`.\nUse this app from Claude as its signed-in user (MCP tools): `somewhere docs sw.endpoint --section mcp-tools-for-claude`.\nsomewhere preview runs your change on a copy of production data with its own sign-in: a preview starts with no users (sign up in it or `somewhere preview user-add`), its sign-in mail is captured (`somewhere preview mail`), and rows private to a production user stay hidden from preview users. Teams and roles, server user lookup, jobs/cron handlers and somewhere test do not work in a preview yet: check those in production after promoting (`somewhere docs dev-environments`).\n";
14
14
  export declare const INIT_CLAUDE_MD = "Read AGENTS.md for project instructions.\n";
@@ -185,7 +185,7 @@ export const PORTABILITY_POINTER = 'Data/code export limits: `somewhere docs por
185
185
  export const MCP_POINTER = 'Use this app from Claude as its signed-in user (MCP tools): `somewhere docs sw.endpoint --section mcp-tools-for-claude`.';
186
186
  /** One line on what a preview cannot do today, so no agent learns it by failing.
187
187
  * Rewrite it when previews gain these (the full list: docs dev-environments). */
188
- export const PREVIEW_POINTER = 'somewhere preview runs your change on a copy of production data, but sign-in, public reads for visitors, sw.groups, server user lookup, jobs/cron handlers and somewhere test do not work in a preview yet: check those in production after promoting (`somewhere docs dev-environments`).';
188
+ export const PREVIEW_POINTER = 'somewhere preview runs your change on a copy of production data with its own sign-in: a preview starts with no users (sign up in it or `somewhere preview user-add`), its sign-in mail is captured (`somewhere preview mail`), and rows private to a production user stay hidden from preview users. Teams and roles, server user lookup, jobs/cron handlers and somewhere test do not work in a preview yet: check those in production after promoting (`somewhere docs dev-environments`).';
189
189
  export const INIT_AGENTS_MD = `# somewhere.cloud project contract\n${AGENT_WORKFLOW}\n${SKILLS_POINTER}\n${PORTABILITY_POINTER}\n${MCP_POINTER}\n${PREVIEW_POINTER}\n`;
190
190
  export const INIT_CLAUDE_MD = 'Read AGENTS.md for project instructions.\n';
191
191
  //# sourceMappingURL=init-agent-guide.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"init-agent-guide.js","sourceRoot":"","sources":["../../src/lib/init-agent-guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBA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M,cAAc,GAAG,2BAA2B,UAAU,0DAA0D,CAAC;AAE9H,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C;;+EAE+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,wDAAwD,CAAC;AAE5F,6EAA6E;AAC7E,MAAM,CAAC,MAAM,WAAW,GAAG,0HAA0H,CAAC;AAEtJ;kFACkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG,8dAA8d,CAAC;AAE9f,MAAM,CAAC,MAAM,cAAc,GAAG,uCAAuC,cAAc,KAAK,cAAc,KAAK,mBAAmB,KAAK,WAAW,KAAK,eAAe,IAAI,CAAC;AACvK,MAAM,CAAC,MAAM,cAAc,GAAG,4CAA4C,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { ApiClient } from './client.js';
2
+ export declare function loadPreviewCredential(projectId: string, previewSessionId: string): string | null;
3
+ export declare function forgetPreviewCredential(projectId: string, previewSessionId: string): void;
4
+ /** Mint a fresh credential for this preview under the caller's own sign-in and store it privately. */
5
+ export declare function mintPreviewCredential(client: ApiClient, projectId: string, previewSessionId: string): Promise<string>;
6
+ /** A client that carries ONLY the preview credential: no stored-login refresh, no fallback. */
7
+ export declare function previewToolClient(credential: string): {
8
+ call<T>(method: string, path: string, body?: unknown, query?: Record<string, string | number | undefined>): Promise<T>;
9
+ };
10
+ /** True when the platform refused the credential itself (closed, promoted, expired or revoked preview). */
11
+ export declare function isDeadPreviewCredential(err: unknown): boolean;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * The preview tool credential: a separate, revocable credential for ONE open preview, minted by
3
+ * the platform when this CLI opens or continues that preview (under your own sign-in, as a
4
+ * developer operation), and dead when the preview closes, is promoted or expires.
5
+ *
6
+ * It acts only on that preview's users, test users and captured mail. Preview tool commands send
7
+ * this credential and nothing else: they never fall back to your own sign-in, and the platform
8
+ * refuses your sign-in on those routes and this credential everywhere else.
9
+ *
10
+ * Stored owner-only under the CLI config directory (previews/<project>__<preview>.json), never in
11
+ * the project folder, so it stays out of source uploads and Git, and is never printed.
12
+ */
13
+ import { existsSync, readFileSync, unlinkSync } from 'node:fs';
14
+ import { join } from 'node:path';
15
+ import { ApiClient, CliApiError } from './client.js';
16
+ import { cliConfigDir, writePrivateConfigFile } from './config.js';
17
+ const SUBDIR = 'previews';
18
+ const fileName = (projectId, previewSessionId) => `${projectId}__${previewSessionId}.json`;
19
+ export function loadPreviewCredential(projectId, previewSessionId) {
20
+ const path = join(cliConfigDir(), SUBDIR, fileName(projectId, previewSessionId));
21
+ if (!existsSync(path))
22
+ return null;
23
+ try {
24
+ const stored = JSON.parse(readFileSync(path, 'utf8'));
25
+ return stored.project_id === projectId && stored.preview_session_id === previewSessionId && typeof stored.credential === 'string'
26
+ ? stored.credential : null;
27
+ }
28
+ catch {
29
+ return null;
30
+ }
31
+ }
32
+ export function forgetPreviewCredential(projectId, previewSessionId) {
33
+ const path = join(cliConfigDir(), SUBDIR, fileName(projectId, previewSessionId));
34
+ if (existsSync(path))
35
+ unlinkSync(path);
36
+ }
37
+ /** Mint a fresh credential for this preview under the caller's own sign-in and store it privately. */
38
+ export async function mintPreviewCredential(client, projectId, previewSessionId) {
39
+ const minted = await client.call('POST', `/projects/${encodeURIComponent(projectId)}/preview/tool-credential`, { preview_session_id: previewSessionId });
40
+ if (!minted || typeof minted.credential !== 'string' || !minted.credential.startsWith('swpt.')) {
41
+ throw new Error('The platform did not return a preview credential.');
42
+ }
43
+ const stored = { credential: minted.credential, project_id: projectId, preview_session_id: previewSessionId, minted_at: new Date().toISOString() };
44
+ writePrivateConfigFile(SUBDIR, fileName(projectId, previewSessionId), JSON.stringify(stored, null, 2) + '\n');
45
+ return minted.credential;
46
+ }
47
+ /** A client that carries ONLY the preview credential: no stored-login refresh, no fallback. */
48
+ export function previewToolClient(credential) {
49
+ const client = new ApiClient(credential);
50
+ return { call: (method, path, body, query) => client.call(method, path, body, query, { refresh: false }) };
51
+ }
52
+ /** True when the platform refused the credential itself (closed, promoted, expired or revoked preview). */
53
+ export function isDeadPreviewCredential(err) {
54
+ return err instanceof CliApiError && (err.code === 'PREVIEW_CREDENTIAL_INVALID' || err.code === 'PREVIEW_CREDENTIAL_REQUIRED');
55
+ }
56
+ //# sourceMappingURL=preview-credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-credential.js","sourceRoot":"","sources":["../../src/lib/preview-credential.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,MAAM,GAAG,UAAU,CAAC;AAC1B,MAAM,QAAQ,GAAG,CAAC,SAAiB,EAAE,gBAAwB,EAAE,EAAE,CAAC,GAAG,SAAS,KAAK,gBAAgB,OAAO,CAAC;AAS3G,MAAM,UAAU,qBAAqB,CAAC,SAAiB,EAAE,gBAAwB;IAC/E,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC;IACjF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACnC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAA4B,CAAC;QACjF,OAAO,MAAM,CAAC,UAAU,KAAK,SAAS,IAAI,MAAM,CAAC,kBAAkB,KAAK,gBAAgB,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,QAAQ;YAC/H,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/B,C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MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC;IACzC,OAAO,EAAE,IAAI,EAAE,CAAI,MAAc,EAAE,IAAY,EAAE,IAAc,EAAE,KAAmD,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAI,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAC3L,CAAC;AAED,2GAA2G;AAC3G,MAAM,UAAU,uBAAuB,CAAC,GAAY;IAClD,OAAO,GAAG,YAAY,WAAW,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,4BAA4B,IAAI,GAAG,CAAC,IAAI,KAAK,6BAA6B,CAAC,CAAC;AACjI,CAAC"}
@@ -1,8 +1,8 @@
1
1
  export const BUNDLED_SKILLS_PACK = {
2
2
  "schema": 1,
3
3
  "name": "somewhere-skills",
4
- "version": "1+3de6f61d06b1",
5
- "sha256": "3de6f61d06b1c660fceba8f8ac8f09a6367c5410cbea4ddccd9b6098669cb68d",
4
+ "version": "1+72668929bf30",
5
+ "sha256": "72668929bf3068c989ba4a687157edcf92aba0391fe89c066ba71a8f637bf0c6",
6
6
  "files": [
7
7
  {
8
8
  "path": "deploy-verify-loop/SKILL.md",
@@ -36,8 +36,8 @@ export const BUNDLED_SKILLS_PACK = {
36
36
  },
37
37
  {
38
38
  "path": "design/SKILL.md",
39
- "sha256": "30ae56053da63ed2eb1b0ea5d52109dadb547eebb9eb312017dfcd1a8bfaeeab",
40
- "content": "---\nname: design\ndescription: Before building or changing a page, form, list or layout: the UI kit in src/ui, the tokens, and the mistakes that make a page look unfinished.\n---\n\n# Build pages that look finished\n\n## The starter is a system\n\nThe starter is a small design system, and pages built with it look finished; pages built around it look like a form from 2009.\n\n| `src/ui/` | The UI kit: `Button`, `TextField`, `SelectField`, `TextareaField`, `CheckboxField`, `FormRow`, `Card`, `Table`, `Stat`, `Badge`, `Tabs`, `Dialog`, `Notice`, `Skeleton`, `Stack`, `Grid`, `Inline`, `PageHeader`; plus `AppShell` (the frame), `AuthCard` (sign-in) and `feedback.tsx` (`Alert`, `EmptyState`). |\n| `src/pages/HomePage.tsx` | A worked example of the kit: a header with the one main action, a stat row, a table in a card, a dialog form. Copy its shape. |\n\n## Rules\n\n- Every control is a kit component. A bare `<input>`, `<select>` or `<button>` in a page renders with browser defaults next to styled controls; use `TextField`, `SelectField` and `Button`.\n- Never write a colour, font or size in a page: every value is a token such as `var(--color-accent)` or `var(--space-4)`. A missing token goes in `tokens.css`, in both the light and the dark block.\n- Never restyle a tag globally (`select { … }`, `input { … }`). Add a class at the end of `app.css`.\n- One h1 and one primary `Button` per page, both in `PageHeader`; everything else is secondary, quiet or a link. Two primary buttons means neither is.\n- Cards group peers: a list, a form, two to four `Stat`s in a `Grid`. A page that is nothing but identical cards has no hierarchy; the main number goes in the header and the rest in a `Table`.\n- Empty, loading and error are states to design, not afterthoughts: `EmptyState` with one action, `Skeleton` while loading, `Notice` with a retry when a request fails. Design the empty state before the populated one.\n- Everything reflows at phone width: `Grid` and `FormRow` stack their children, and a `Table` scrolls inside its `Card` instead of widening the page.\n\n## The sign-in page\n\n`AuthCard` has two slots: `providers` above the email form and `children` below it. Nothing is added as a sibling of the card: its two-column grid holds exactly the intro and the form, and a third child lands in its own row.\n\n## Before deploy\n\nAfter deploying, run `somewhere verify` and check the live page at desktop and phone size; its layout line reports contrast, overflow and tap targets under 44px, and each is a regression.\n\n## Failure 1: it is all cards\n\nA page that is six white boxes with the same shadow: move the main number into `PageHeader`, group the peers into one `Card` with a `Table`, and put the form in a `Dialog` behind the primary button.\n\n## Failure 2: an unstyled select\n\nA `<select>` with the browser's grey box and square arrow: it is not a `SelectField`.\n\nSources (`somewhere docs <topic>`): design-system.\n"
39
+ "sha256": "8997906b1cda1df7c52d3329f3348b14a9d7cfe5ea6a33163a8bdb0ab5cba968",
40
+ "content": "---\nname: design\ndescription: Before building or changing a page, form, list or layout: the UI kit in src/ui, the tokens, and the mistakes that make a page look unfinished.\n---\n\n# Build pages that look finished\n\n## The starter is a system\n\nThe starter is a small design system, and pages built with it look finished; pages built around it look like a form from 2009.\n\n| `src/ui/` | The UI kit: `Button`, `TextField`, `SelectField`, `TextareaField`, `CheckboxField`, `FormRow`, `Card`, `Table`, `Stat`, `Badge`, `Tabs`, `Dialog`, `Notice`, `Skeleton`, `Stack`, `Grid`, `Inline`, `PageHeader`; plus `AppShell` (the frame), `AuthCard` (sign-in) and `feedback.tsx` (`Alert`, `EmptyState`). |\n| `src/pages/HomePage.tsx` | A worked example of the kit: a header with the one main action, a stat row, a table in a card, a dialog form. Copy its shape. |\n\n## Rules\n\n- Every control is a kit component. A bare `<input>`, `<select>` or `<button>` in a page renders with browser defaults next to styled controls; use `TextField`, `SelectField` and `Button`.\n- Never write a colour, font or size in a page: every value is a token such as `var(--color-accent)` or `var(--space-4)`. A missing token goes in `tokens.css`, in both the light and the dark block.\n- Never restyle a tag globally (`select { … }`, `input { … }`). Add a class at the end of `app.css`.\n- One h1 and one primary `Button` per page, both in `PageHeader`; everything else is secondary, quiet or a link. Two primary buttons means neither is.\n- Cards group peers: a list, a form, two to four `Stat`s in a `Grid`. A page that is nothing but identical cards has no hierarchy; the main number goes in the header and the rest in a `Table`.\n- Empty, loading and error are states to design, not afterthoughts: `EmptyState` with one action, `Skeleton` while loading, `Notice` with a retry when a request fails. Design the empty state before the populated one.\n- Everything reflows at phone width: `Grid` and `FormRow` stack their children, and a `Table` stacks each row as label and value lines on a phone, so nothing scrolls sideways.\n\n## The sign-in page\n\n`AuthCard` has two slots: `providers` above the email form and `children` below it. Nothing is added as a sibling of the card: its two-column grid holds exactly the intro and the form, and a third child lands in its own row.\n\n## Before deploy\n\nAfter deploying, run `somewhere verify` and check the live page at desktop and phone size; its layout line reports contrast, overflow and tap targets below 24px (the WCAG 2.2 AA minimum), and each is a regression; targets between 24 and 44px are listed as a note.\n\n## Failure 1: it is all cards\n\nA page that is six white boxes with the same shadow: move the main number into `PageHeader`, group the peers into one `Card` with a `Table`, and put the form in a `Dialog` behind the primary button.\n\n## Failure 2: an unstyled select\n\nA `<select>` with the browser's grey box and square arrow: it is not a `SelectField`.\n\nSources (`somewhere docs <topic>`): design-system.\n"
41
41
  }
42
42
  ]
43
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"skills-pack.generated.js","sourceRoot":"","sources":["../../src/lib/skills-pack.generated.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,QAAQ,EAAE,CAAC;IACX,MAAM,EAAE,kBAAkB;IAC1B,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,kEAAkE;IAC5E,OAAO,EAAE;QACP;YACE,MAAM,EAAE,6BAA6B;YACrC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,mnEAAmnE;SAC/nE;QACD;YACE,MAAM,EAAE,yBAAyB;YACjC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,22EAA22E;SACv3E;QACD;YACE,MAAM,EAAE,wBAAwB;YAChC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,miGAAmiG;SAC/iG;QACD;YACE,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,s2DAAs2D;SACl3D;QACD;YACE,MAAM,EAAE,kCAAkC;YAC1C,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,wzEAAwzE;SACp0E;QACD;YACE,MAAM,EAAE,+BAA+B;YACvC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,82DAA82D;SAC13D;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,44FAA44F;SACx5F;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"skills-pack.generated.js","sourceRoot":"","sources":["../../src/lib/skills-pack.generated.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,QAAQ,EAAE,CAAC;IACX,MAAM,EAAE,kBAAkB;IAC1B,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,kEAAkE;IAC5E,OAAO,EAAE;QACP;YACE,MAAM,EAAE,6BAA6B;YACrC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,mnEAAmnE;SAC/nE;QACD;YACE,MAAM,EAAE,yBAAyB;YACjC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,22EAA22E;SACv3E;QACD;YACE,MAAM,EAAE,wBAAwB;YAChC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,miGAAmiG;SAC/iG;QACD;YACE,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,s2DAAs2D;SACl3D;QACD;YACE,MAAM,EAAE,kCAAkC;YAC1C,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,wzEAAwzE;SACp0E;QACD;YACE,MAAM,EAAE,+BAA+B;YACvC,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,82DAA82D;SAC13D;QACD;YACE,MAAM,EAAE,iBAAiB;YACzB,QAAQ,EAAE,kEAAkE;YAC5E,SAAS,EAAE,k/FAAk/F;SAC9/F;KACF;CACF,CAAC"}
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@somewhere-cloud/cli",
3
- "version": "0.38.90",
3
+ "version": "0.38.92",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@somewhere-cloud/cli",
9
- "version": "0.38.90",
9
+ "version": "0.38.92",
10
10
  "bundleDependencies": [
11
11
  "@modelcontextprotocol/sdk",
12
12
  "chokidar",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@somewhere-cloud/cli",
3
- "version": "0.38.90",
3
+ "version": "0.38.92",
4
4
  "description": "CLI for somewhere.cloud — auth, projects, deploy, pull, promote, db, logs, env, MCP bridge.",
5
5
  "keywords": [
6
6
  "somewhere",
@@ -43,7 +43,7 @@
43
43
  "worker/src/utils/db-schema-deploy/schema-constants.ts": "9742bc649f494963af4ae2039a1d6062cc6dbe087285bdf470f6ee71d9f76aac",
44
44
  "worker/src/utils/db-schema-deploy/schema-ownership.ts": "e6c811a87bc657707be3518dfe547c6d97718ac073108b126eb7f791c9c08202",
45
45
  "worker/src/utils/dev-health-class.ts": "fd430f31b9c8469f3d90e118fd8c75d1836ebcf705c1f9e93915ffa53a4cb066",
46
- "worker/src/utils/errors.ts": "fcc62f5ad26d31ac3487fcca125bd1dae152ca62d801cd38df3c36a8fe36a3c1",
46
+ "worker/src/utils/errors.ts": "f9d22810c285d2a512d258853bdd17cf9c1445c3983d51f3adbbcede273ac07d",
47
47
  "worker/src/utils/event-log.ts": "0c36483fa84c42ce607d195f1ded527ab4383d58808a63353d3cadef81d93948",
48
48
  "worker/src/utils/feed-kinds.ts": "91fbe5df2edf31a0b08d2450b64a07d659cf02a9ccdb74a008785260d14a971b",
49
49
  "worker/src/utils/journey-segment.ts": "b1d27c58bea03a791193d7120d88d232ea1c8374d6f25f72cd86b5b8c33c73a1",