@rhizogrip/spore-cli 1.10.0 → 1.12.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/spore.js +4 -2
- package/package.json +2 -2
package/bin/spore.js
CHANGED
|
@@ -14,7 +14,7 @@ import { basename, resolve } from 'node:path'
|
|
|
14
14
|
|
|
15
15
|
import minimist from 'minimist'
|
|
16
16
|
|
|
17
|
-
import { differingDocs, fork, follow, grantOf, isWorkspace, lastEventSeq, loadEnvironment, mimeOf, readInbox, RUNNING, send, stateOf, stop, turnOfMessage, turnSummary, watch, workspaceFor } from '@rhizogrip/spore'
|
|
17
|
+
import { differingDocs, fork, follow, followingDocs, grantOf, isWorkspace, lastEventSeq, loadEnvironment, mimeOf, readConfig, readInbox, RUNNING, send, stateOf, stop, turnOfMessage, turnSummary, watch, workspaceFor } from '@rhizogrip/spore'
|
|
18
18
|
import { renderHeader } from '../src/dispatch.js'
|
|
19
19
|
|
|
20
20
|
// Detaching is neither success nor failure: the turn is still going, and 0 would claim it
|
|
@@ -412,12 +412,14 @@ const message = (rest.join(' ') || await readStdin()).trim()
|
|
|
412
412
|
if (!message && !attach.length) fail('no message — pass one as an argument or on stdin, or a file with --attach')
|
|
413
413
|
|
|
414
414
|
let differs
|
|
415
|
+
let followed
|
|
415
416
|
try {
|
|
416
417
|
differs = differingDocs(ws)
|
|
418
|
+
followed = followingDocs(readConfig())
|
|
417
419
|
} catch (err) {
|
|
418
420
|
fail(err.detail ? `${err.message} — ${err.detail}` : err.message)
|
|
419
421
|
}
|
|
420
|
-
if (differs.length) console.error(`spore: ${differs.map(d => d.file).join(', ')} differ from what is installed — spore upgrade ${asked}`)
|
|
422
|
+
if (differs.length && !followed) console.error(`spore: ${differs.map(d => d.file).join(', ')} differ from what is installed — spore upgrade ${asked}`)
|
|
421
423
|
|
|
422
424
|
const requestId = argv['request-id'] || undefined
|
|
423
425
|
const after = lastEventSeq(ws)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhizogrip/spore-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Christophe Le Bars",
|
|
6
6
|
"email": "clb@toort.net"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"tui": "node bin/spore.js tui"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@rhizogrip/spore": "1.
|
|
53
|
+
"@rhizogrip/spore": "1.12.0",
|
|
54
54
|
"chalk": "^6.0.1",
|
|
55
55
|
"minimist": "^1.2.8"
|
|
56
56
|
},
|