@north-light/cli 0.3.748 → 0.3.750
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/dist/clients/attach/chrome/canvas-panels.d.ts +2 -0
- package/dist/clients/attach/chrome/canvas-panels.js +1 -1
- package/dist/clients/attach/chrome/roster.d.ts +2 -0
- package/dist/clients/attach/chrome/roster.js +5 -5
- package/dist/clients/attach/chrome/run-facts.d.ts +12 -0
- package/dist/clients/attach/chrome/run-facts.js +1 -0
- package/dist/clients/attach/chrome/widgets.d.ts +3 -1
- package/dist/clients/attach/chrome/widgets.js +1 -1
- package/dist/clients/attach/viewer.js +487 -487
- package/dist/core/canvas/canvas.js +16 -16
- package/dist/core/canvas/schema-pg/036-ledger-holder-app-path.sql +13 -0
- package/dist/core/canvas/schema-version.d.ts +1 -1
- package/dist/core/canvas/schema-version.js +1 -1
- package/dist/core/command.d.ts +1 -1
- package/dist/core/command.js +6 -6
- package/dist/core/grants/owner.d.ts +7 -0
- package/dist/core/grants/owner.js +1 -0
- package/dist/core/graph/reader.js +3 -3
- package/dist/core/import/load/bind.d.ts +1 -1
- package/dist/core/import/load/bind.js +11 -8
- package/dist/core/peer/envelope.js +1 -1
- package/dist/core/peer/stubs.js +1 -1
- package/dist/core/permissions/ceiling.js +10 -10
- package/dist/core/permissions/evaluator.js +2 -2
- package/dist/core/runtime/recap.js +6 -6
- package/dist/core/spaces/permissions.js +1 -1
- package/dist/core/spaces/process.js +1 -1
- package/dist/daemon/api/handlers/providers.d.ts +2 -0
- package/dist/daemon/api/handlers/providers.js +1 -1
- package/dist/daemon/peer/authority.d.ts +1 -1
- package/dist/daemon/peer/authority.js +1 -1
- package/package.json +4 -4
- package/packages/crouter-api/dist/clients/attach/chrome/canvas-panels.js +19 -1
- package/packages/crouter-api/dist/clients/attach/chrome/roster.js +1 -0
- package/packages/crouter-api/dist/clients/attach/chrome/run-facts.js +76 -0
- package/packages/crouter-api/dist/clients/attach/chrome/widgets.js +14 -5
- package/packages/crouter-api/dist/clients/attach/viewer.js +7 -1
- package/packages/crouter-api/dist/core/canvas/canvas.js +2 -1
- package/packages/crouter-api/dist/core/canvas/schema-version.js +1 -1
- package/packages/crouter-api/dist/core/command.js +4 -3
- package/packages/crouter-api/dist/core/grants/owner.js +15 -0
- package/packages/crouter-api/dist/core/graph/reader.js +9 -6
- package/packages/crouter-api/dist/core/peer/envelope.js +2 -1
- package/packages/crouter-api/dist/core/peer/stubs.js +5 -1
- package/packages/crouter-api/dist/core/permissions/ceiling.js +4 -0
- package/packages/crouter-api/dist/core/permissions/evaluator.js +13 -4
- package/packages/crouter-api/dist/core/spaces/permissions.js +10 -4
- package/packages/crouter-api/dist/core/spaces/process.js +5 -3
- package/packages/crouter-api/dist/daemon/api/handlers/providers.js +5 -1
- package/packages/crouter-api/package.json +1 -1
- package/packages/crouter-identity/dist/index.d.ts +8 -0
- package/packages/crouter-identity/dist/index.js +18 -0
- package/packages/crouter-identity/package.json +1 -1
- package/packages/crouter-plugin/package.json +3 -3
- package/runtime.lock.json +14 -14
- package/scripts/lib/install-source.mjs +5 -1
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// is the explicit bypass. A package root that is not a git checkout (the npm package, image builds)
|
|
6
6
|
// is not checked.
|
|
7
7
|
import { spawnSync } from 'node:child_process';
|
|
8
|
+
import { realpathSync } from 'node:fs';
|
|
8
9
|
|
|
9
10
|
export const ALLOW_UNLANDED_FLAG = '--allow-unlanded';
|
|
10
11
|
|
|
@@ -15,7 +16,10 @@ function git(root, args) {
|
|
|
15
16
|
|
|
16
17
|
/** The checkout's commit, branch, and how it differs from origin/main; undefined when `root` is not a git checkout. */
|
|
17
18
|
export function readInstallSource(root) {
|
|
18
|
-
|
|
19
|
+
// Only a checkout whose own top level is `root` counts: the npm package can sit inside an unrelated
|
|
20
|
+
// repo (Homebrew's prefix is one on Apple Silicon).
|
|
21
|
+
const top = git(root, ['rev-parse', '--show-toplevel']);
|
|
22
|
+
if (top === undefined || realpathSync(top) !== realpathSync(root)) return undefined;
|
|
19
23
|
const fetched = spawnSync('git', ['fetch', '--quiet', 'origin', 'main'], { cwd: root, stdio: 'ignore', timeout: 30_000 }).status === 0;
|
|
20
24
|
const commit = git(root, ['rev-parse', 'HEAD']);
|
|
21
25
|
const branch = git(root, ['branch', '--show-current']) || '(detached)';
|