autark-cli 0.1.0 → 0.1.2

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/autark.mjs +7 -8
  2. package/package.json +1 -1
package/autark.mjs CHANGED
@@ -97,13 +97,15 @@ async function productUpsert(rest) {
97
97
  const opts = parseArgs(rest)
98
98
  const slug = required(opts.slug, '--slug')
99
99
  const name = required(opts.name, '--name')
100
- const result = await api('POST', '/v1/products', {
100
+ const body = {
101
101
  slug,
102
102
  name,
103
103
  url: opts.url || '',
104
104
  tagline: opts.tagline || '',
105
- visibility: opts.visibility || 'public',
106
- })
105
+ visibility: opts.visibility || 'private',
106
+ }
107
+ if (opts.brief !== undefined) body.brief = readValue(opts.brief)
108
+ const result = await api('POST', '/v1/products', body)
107
109
  console.log(result.id)
108
110
  }
109
111
 
@@ -306,7 +308,7 @@ function usage() {
306
308
  autark logout clear local credentials
307
309
  autark me show signed-in user
308
310
 
309
- autark product upsert --slug <slug> --name <name> [--url <url>] [--tagline <text>]
311
+ autark product upsert --slug <slug> --name <name> [--url <url>] [--tagline <text>] [--brief @./brief.md] [--visibility private|public]
310
312
  autark product list
311
313
 
312
314
  autark hypothesis create --product <slug> --code H01 --md @./hypothesis.md [--title <t>]
@@ -319,8 +321,5 @@ function usage() {
319
321
  [--agentmail-thread-id <uuid>] [--recipient <email>]
320
322
  [--metadata @./meta.json]
321
323
 
322
- autark context <slug>/<H01>
323
-
324
- ENV:
325
- AUTARK_API_URL override the default Worker URL`)
324
+ autark context <slug>/<H01>`)
326
325
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autark-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for autark — hypothesis-driven product runbooks. Track products, hypotheses, runs, and actions from the terminal.",
5
5
  "type": "module",
6
6
  "license": "MIT",