@heyquilt/seam 0.17.0 → 0.22.0

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/seam.js CHANGED
@@ -44,6 +44,7 @@ Docs: https://seam.heyquilt.com/docs
44
44
  seam events [--webhook <url>] What happened to your squares
45
45
  seam export git <dir> Back to git
46
46
  seam mcp The same commands as MCP tools, for your AI tool
47
+ seam serve Run a Seam server (SEAM_IDENTITY_URL says who is calling)
47
48
 
48
49
  Agents: set SEAM_TOKEN to the agent's key instead of signing in.`
49
50
 
@@ -64,6 +65,11 @@ async function main () {
64
65
  if (cmd === 'logout') { const a = await logout(); return console.log(a ? `Signed out of ${a.account.email}.` : 'Not signed in.') }
65
66
  if (cmd === 'whoami') { const a = readAccount(); if (!a) { process.exitCode = 1; return console.log('Not signed in.') } return console.log(`${a.account.name} (${a.account.email})`) }
66
67
  if (cmd === 'mcp') return mcp()
68
+ // The server is not in the package (it ships the client): it runs from Seam's source or its image.
69
+ if (cmd === 'serve') {
70
+ if (QUILTS === '../lib/quilts') fail('seam serve runs from Seam\'s source: node src/quilts/server.js in the repository, or the Dockerfile.seam image (docs/seam-service.md).')
71
+ return (await quilts('server.js')).serveFromEnv(process.env)
72
+ }
67
73
  const { SEAM_VERBS, runSeamCommand } = await quilts('cli.js')
68
74
  if (!SEAM_VERBS.has(cmd)) fail(`seam: '${cmd}' is not a seam command. See seam help.`)
69
75
  try {
package/lib/account.js CHANGED
@@ -8,7 +8,8 @@ import path from 'node:path'
8
8
  import crypto from 'node:crypto'
9
9
 
10
10
  export const API_URL = 'https://api.heyquilt.com'
11
- export const apiUrl = () => String(process.env.SEAM_API_URL || API_URL).replace(/\/+$/, '')
11
+ // Sign-in lives on the accounts API (Seam's identity service), not on Seam's own server.
12
+ export const apiUrl = () => String(process.env.SEAM_ACCOUNTS_URL || API_URL).replace(/\/+$/, '')
12
13
  export const seamHome = () => process.env.SEAM_HOME || path.join(os.homedir(), '.seam')
13
14
  const accountFile = () => path.join(seamHome(), 'account.json')
14
15
  const identityFile = () => path.join(seamHome(), 'identity.json')
package/lib/quilts/cli.js CHANGED
@@ -10,7 +10,7 @@ import { findBlock, checkout, status as blockStatus, commitFolder, amendFolder,
10
10
  import { describeLog, describeShow, describeDiff, describeBlame, describeStatus, describeMerge, describeWrite, describeSquare, describeSquareStatus, describeEvents, describeTag, describeRelease, describeImport, describeRestore, describeReset, describeClean, describeLive, describeClaims, describeResolutions, describeLiveSet, describeMergeBase, describeGrep, describeBisect, describeCheck, describeReviews, describeReviewed, describeSquareCheck, describePolicy, describeKeys, describeTokens, describeNewToken } from './describe.js'
11
11
  import { signWithLocalKey, localKey, makeLocalKey, signingKeyFile } from './signing.js'
12
12
 
13
- export const API_URL = 'https://api.heyquilt.com'
13
+ export const API_URL = 'https://api.seam.heyquilt.com'
14
14
 
15
15
  /** The verbs `seam` answers. */
16
16
  export const SEAM_VERBS = new Set(['quilts', 'square', 'checkout', 'status', 'commit', 'log', 'show', 'diff', 'merge', 'rebase', 'revert', 'cherry-pick', 'blame', 'resolve', 'cat', 'ls', 'import', 'export', 'events', 'tag', 'release', 'line', 'restore', 'reset', 'clean', 'live', 'bisect', 'grep', 'describe', 'merge-base', 'claim', 'unclaim', 'check', 'resolutions', 'review', 'sign', 'key', 'token'])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyquilt/seam",
3
- "version": "0.17.0",
3
+ "version": "0.22.0",
4
4
  "description": "seam: Quilt Source's command. Git's verbs for source control that runs on the server, built for many agents and people at once.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",