Skip to content

Commit d23e7a0

Browse files
committed
fix: refresh adapters for local global installs
1 parent f02ca33 commit d23e7a0

3 files changed

Lines changed: 66 additions & 5 deletions

File tree

scripts/lib/npm-lifecycle-adapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ function classifyNpmLifecycleInstall(options = {}) {
110110
if (!isPostinstall) return noOp('not-postinstall')
111111
if (truthy(env.DEVCODEX_SKIP_POSTINSTALL)) return noOp('skip-env')
112112
if (truthy(env.DEVCODEX_POSTINSTALL_CHILD)) return noOp('child-process')
113-
if (!force && isSourceCheckout(packageRoot, fsImpl, pathImpl)) return noOp('source-checkout')
114113
if (!force && ci) return noOp('ci')
115114
if (globalInstall) {
116115
return {
@@ -122,6 +121,7 @@ function classifyNpmLifecycleInstall(options = {}) {
122121
command: { internal: GLOBAL_INTERNAL_ACTION }
123122
}
124123
}
124+
if (!force && isSourceCheckout(packageRoot, fsImpl, pathImpl)) return noOp('source-checkout')
125125

126126
if (!fsImpl.existsSync(initCwd)) return noOp('target-missing')
127127
if (!declaresDevCodexDependency(initCwd, fsImpl, pathImpl)) {

scripts/test-npm-lifecycle-adapter.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ assert.strictEqual(classify({ DEVCODEX_SKIP_POSTINSTALL: '1' }).reason, 'skip-en
8686
assert.strictEqual(classify({ DEVCODEX_POSTINSTALL_CHILD: '1' }).reason, 'child-process')
8787
assert.strictEqual(classify({}, transitiveWorkspace).reason, 'transitive-or-indirect')
8888

89+
const sourceGlobalDecision = classify({ npm_config_global: 'true', INIT_CWD: workspace }, workspace, sourceRoot)
90+
assert.strictEqual(sourceGlobalDecision.action, 'execute')
91+
assert.strictEqual(sourceGlobalDecision.scope, 'global-install')
92+
assert.strictEqual(sourceGlobalDecision.reason, 'global-install-postinstall')
93+
8994
const workspaceDecision = classify({ INIT_CWD: workspace })
9095
assert.strictEqual(workspaceDecision.action, 'noop')
9196
assert.strictEqual(workspaceDecision.scope, 'workspace-install')

skills/portfolio.json

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"pluginDigest": "f85d1fcc1384827999ead09f5ee2051295d2a3890315ce0b2c83ac5a9c63ab82",
1212
"portfolioEvidence": "skills/portfolio-evidence.json",
1313
"portfolioEvidenceDigest": "8364a73c66ed2ec9787cdb9300223278d128a45b689a2b8deda0d1f03189f42b",
14-
"consumerInventoryFileCount": 571,
15-
"consumerInventoryDigest": "084199a17dbd42b5915759bf670bc264cf7f2eeced440890ad6bc0260c7df56e",
16-
"consumerProjectionDigest": "015e3a862e7bec7ba391e4c23130a4bcf932add703b387ec0726f2a46c02533a",
17-
"portfolioInputDigest": "41c85079ae0c5c13f40a5b4fa14ef831269a8a6e95b88a97e7aa23ba390fbb9b"
14+
"consumerInventoryFileCount": 583,
15+
"consumerInventoryDigest": "f9f3a7c659643326a28a719fece1e53422162b8ea018fe554de2e32cf40a29cb",
16+
"consumerProjectionDigest": "caf9280bf2a1ab0f4e5c9776e3fc1354d8a8896a8249ba9b1789bbc5337be71d",
17+
"portfolioInputDigest": "a4eb999a892aad1c01f3d6036beba941a545fe9dcad669c0e80de8738d84f622"
1818
},
1919
"ordering": "skills.id asc; graph edges from/to asc",
2020
"summary": {
@@ -11904,6 +11904,10 @@
1190411904
"path": "scripts/lib/intent-consistency.js",
1190511905
"role": "current"
1190611906
},
11907+
{
11908+
"path": "scripts/lib/summary-type-canon.js",
11909+
"role": "current"
11910+
},
1190711911
{
1190811912
"path": "scripts/lib/test-hooks-runtime-bootstrap-layout.js",
1190911913
"role": "current"
@@ -13134,6 +13138,10 @@
1313413138
"path": "scripts/lib/evidence-freshness-receipt.js",
1313513139
"role": "current"
1313613140
},
13141+
{
13142+
"path": "scripts/lib/global-host-config.js",
13143+
"role": "current"
13144+
},
1313713145
{
1313813146
"path": "scripts/lib/host-parity-scorecard.js",
1313913147
"role": "current"
@@ -13158,6 +13166,10 @@
1315813166
"path": "scripts/lib/skill-portfolio-utils.js",
1315913167
"role": "current"
1316013168
},
13169+
{
13170+
"path": "scripts/lib/summary-type-canon.js",
13171+
"role": "current"
13172+
},
1316113173
{
1316213174
"path": "scripts/lib/test-hooks-runtime-bootstrap-layout.js",
1316313175
"role": "current"
@@ -13242,6 +13254,10 @@
1324213254
"path": "scripts/test-context-read-contract.js",
1324313255
"role": "current"
1324413256
},
13257+
{
13258+
"path": "scripts/test-global-host-config.js",
13259+
"role": "current"
13260+
},
1324513261
{
1324613262
"path": "scripts/test-governance-intake.js",
1324713263
"role": "current"
@@ -13552,6 +13568,7 @@
1355213568
"scripts/test-completion-report-ecr-check.js",
1355313569
"scripts/test-context-binding.js",
1355413570
"scripts/test-context-read-contract.js",
13571+
"scripts/test-global-host-config.js",
1355513572
"scripts/test-governance-intake.js",
1355613573
"scripts/test-governance-status-summary.js",
1355713574
"scripts/test-hooks-runtime.js",
@@ -13622,6 +13639,7 @@
1362213639
"scripts/test-completion-report-ecr-check.js",
1362313640
"scripts/test-context-binding.js",
1362413641
"scripts/test-context-read-contract.js",
13642+
"scripts/test-global-host-config.js",
1362513643
"scripts/test-governance-intake.js",
1362613644
"scripts/test-governance-status-summary.js",
1362713645
"scripts/test-hooks-runtime.js",
@@ -14229,6 +14247,14 @@
1422914247
"path": "scripts/lib/discipline-execution-probe.js",
1423014248
"role": "current"
1423114249
},
14250+
{
14251+
"path": "scripts/lib/global-host-config-transaction.js",
14252+
"role": "current"
14253+
},
14254+
{
14255+
"path": "scripts/lib/global-host-config.js",
14256+
"role": "current"
14257+
},
1423214258
{
1423314259
"path": "scripts/lib/grok-workspace-launcher.js",
1423414260
"role": "current"
@@ -14245,6 +14271,10 @@
1424514271
"path": "scripts/lib/host-parity-scorecard.js",
1424614272
"role": "current"
1424714273
},
14274+
{
14275+
"path": "scripts/lib/npm-lifecycle-adapter.js",
14276+
"role": "current"
14277+
},
1424814278
{
1424914279
"path": "scripts/lib/project-knowledge-store.js",
1425014280
"role": "current"
@@ -14373,6 +14403,10 @@
1437314403
"path": "scripts/plan-absorption-candidates.js",
1437414404
"role": "current"
1437514405
},
14406+
{
14407+
"path": "scripts/postinstall.js",
14408+
"role": "current"
14409+
},
1437614410
{
1437714411
"path": "scripts/project-analysis-state.js",
1437814412
"role": "current"
@@ -14433,6 +14467,10 @@
1443314467
"path": "scripts/test-execution-chain-evolution.js",
1443414468
"role": "current"
1443514469
},
14470+
{
14471+
"path": "scripts/test-global-host-config.js",
14472+
"role": "current"
14473+
},
1443614474
{
1443714475
"path": "scripts/test-governance-intake.js",
1443814476
"role": "current"
@@ -14465,6 +14503,10 @@
1446514503
"path": "scripts/test-migrate-layout.js",
1446614504
"role": "current"
1446714505
},
14506+
{
14507+
"path": "scripts/test-npm-lifecycle-adapter.js",
14508+
"role": "current"
14509+
},
1446814510
{
1446914511
"path": "scripts/test-project-knowledge-store.js",
1447014512
"role": "current"
@@ -14752,6 +14794,7 @@
1475214794
"scripts/test-discipline-execution-probe.js",
1475314795
"scripts/test-evidence-freshness-receipt.js",
1475414796
"scripts/test-execution-chain-evolution.js",
14797+
"scripts/test-global-host-config.js",
1475514798
"scripts/test-governance-intake.js",
1475614799
"scripts/test-governance-status-summary.js",
1475714800
"scripts/test-hooks-runtime.js",
@@ -14760,6 +14803,7 @@
1476014803
"scripts/test-markdown-structure.js",
1476114804
"scripts/test-mcp-servers.js",
1476214805
"scripts/test-migrate-layout.js",
14806+
"scripts/test-npm-lifecycle-adapter.js",
1476314807
"scripts/test-project-knowledge-store.js",
1476414808
"scripts/test-project-knowledge-v2.js",
1476514809
"scripts/test-repair-prevention-assessment.js",
@@ -14832,6 +14876,7 @@
1483214876
"scripts/test-discipline-execution-probe.js",
1483314877
"scripts/test-evidence-freshness-receipt.js",
1483414878
"scripts/test-execution-chain-evolution.js",
14879+
"scripts/test-global-host-config.js",
1483514880
"scripts/test-governance-intake.js",
1483614881
"scripts/test-governance-status-summary.js",
1483714882
"scripts/test-hooks-runtime.js",
@@ -14840,6 +14885,7 @@
1484014885
"scripts/test-markdown-structure.js",
1484114886
"scripts/test-mcp-servers.js",
1484214887
"scripts/test-migrate-layout.js",
14888+
"scripts/test-npm-lifecycle-adapter.js",
1484314889
"scripts/test-project-knowledge-store.js",
1484414890
"scripts/test-project-knowledge-v2.js",
1484514891
"scripts/test-repair-prevention-assessment.js",
@@ -20507,6 +20553,10 @@
2050720553
"path": "scripts/lib/external-review-claim-verification.js",
2050820554
"role": "current"
2050920555
},
20556+
{
20557+
"path": "scripts/lib/global-host-config.js",
20558+
"role": "current"
20559+
},
2051020560
{
2051120561
"path": "scripts/lib/governance-status-summary.js",
2051220562
"role": "current"
@@ -20643,6 +20693,10 @@
2064320693
"path": "scripts/test-skill-sidecar-contract.js",
2064420694
"role": "current"
2064520695
},
20696+
{
20697+
"path": "scripts/test-summary-type-canon.js",
20698+
"role": "current"
20699+
},
2064620700
{
2064720701
"path": "scripts/test-visible-output-contract.js",
2064820702
"role": "current"
@@ -20832,6 +20886,7 @@
2083220886
"scripts/test-runtime-state-index.js",
2083320887
"scripts/test-skill-portfolio.js",
2083420888
"scripts/test-skill-sidecar-contract.js",
20889+
"scripts/test-summary-type-canon.js",
2083520890
"scripts/test-visible-output-contract.js",
2083620891
"scripts/validate-profile.js",
2083720892
"scripts/validate.js"
@@ -20895,6 +20950,7 @@
2089520950
"scripts/test-runtime-state-index.js",
2089620951
"scripts/test-skill-portfolio.js",
2089720952
"scripts/test-skill-sidecar-contract.js",
20953+
"scripts/test-summary-type-canon.js",
2089820954
"scripts/test-visible-output-contract.js",
2089920955
"scripts/validate-profile.js",
2090020956
"scripts/validate.js"

0 commit comments

Comments
 (0)