create-principles-disciple 1.147.5 → 1.147.7
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/_release/product-identity.json +1 -1
- package/codex-adapter/package.json +1 -1
- package/console/dist/server/models/HealthCheckModel.d.ts +0 -1
- package/console/dist/server/models/HealthCheckModel.js +0 -54
- package/console/dist/server/types/index.d.ts +1 -9
- package/console/dist/web/assets/app.js +18 -18
- package/core/dist/index.d.ts +1 -1
- package/core/dist/index.d.ts.map +1 -1
- package/core/dist/index.js +1 -1
- package/core/dist/index.js.map +1 -1
- package/core/dist/prompt-builder/index.d.ts +0 -1
- package/core/dist/prompt-builder/index.d.ts.map +1 -1
- package/core/dist/prompt-builder/index.js +0 -1
- package/core/dist/prompt-builder/index.js.map +1 -1
- package/core/dist/runtime-v2/adapter/output-schema-registry.js +2 -2
- package/core/dist/runtime-v2/control-plane-triage.d.ts +1 -1
- package/core/dist/runtime-v2/control-plane-triage.d.ts.map +1 -1
- package/core/dist/runtime-v2/control-plane-triage.js +0 -15
- package/core/dist/runtime-v2/control-plane-triage.js.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.d.ts +3 -6
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.d.ts.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.js +5 -10
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.js.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/source-descriptors.d.ts +2 -1
- package/core/dist/runtime-v2/evidence-triage/source-descriptors.d.ts.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/source-descriptors.js +3 -8
- package/core/dist/runtime-v2/evidence-triage/source-descriptors.js.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/types.d.ts +1 -1
- package/core/dist/runtime-v2/evidence-triage/types.d.ts.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/types.js +0 -1
- package/core/dist/runtime-v2/evidence-triage/types.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +4 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js +3 -8
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/core/dist/runtime-v2/golden-trace.d.ts.map +1 -1
- package/core/dist/runtime-v2/golden-trace.js +0 -1
- package/core/dist/runtime-v2/golden-trace.js.map +1 -1
- package/core/dist/runtime-v2/index.d.ts +5 -9
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +4 -8
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-run-correlation.d.ts +1 -1
- package/core/dist/runtime-v2/internalization/artificer-run-correlation.js +1 -1
- package/core/dist/runtime-v2/internalization/consumer-evidence-preflight.d.ts +1 -1
- package/core/dist/runtime-v2/internalization/evidence-readiness.js +1 -1
- package/core/dist/runtime-v2/internalization/owner-evidence-recovery.d.ts +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +1 -1
- package/core/dist/runtime-v2/operator-health-read-model.d.ts +0 -2
- package/core/dist/runtime-v2/operator-health-read-model.d.ts.map +1 -1
- package/core/dist/runtime-v2/operator-health-read-model.js +1 -55
- package/core/dist/runtime-v2/operator-health-read-model.js.map +1 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-domain.d.ts +1 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-domain.js +1 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-proposal.d.ts +1 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-proposal.js +1 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-retrieval.d.ts +1 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-retrieval.js +1 -1
- package/core/dist/runtime-v2/signal-collector/confidence-gate.d.ts +1 -5
- package/core/dist/runtime-v2/signal-collector/confidence-gate.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/confidence-gate.js +0 -9
- package/core/dist/runtime-v2/signal-collector/confidence-gate.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/keyword-stage.d.ts +2 -2
- package/core/dist/runtime-v2/signal-collector/keyword-stage.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/keyword-stage.js +6 -10
- package/core/dist/runtime-v2/signal-collector/keyword-stage.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.js +3 -4
- package/core/dist/runtime-v2/signal-collector/llm-stage.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/signal-collector.js +4 -4
- package/core/dist/runtime-v2/signal-collector/signal-collector.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/types.d.ts +6 -8
- package/core/dist/runtime-v2/signal-collector/types.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/types.js +6 -6
- package/core/dist/runtime-v2/signal-collector/types.js.map +1 -1
- package/core/dist/runtime-v2/trajectory-schema.d.ts +25 -5
- package/core/dist/runtime-v2/trajectory-schema.d.ts.map +1 -1
- package/core/dist/runtime-v2/trajectory-schema.js +58 -2
- package/core/dist/runtime-v2/trajectory-schema.js.map +1 -1
- package/core/dist/runtime-v2/types/event-types.d.ts +0 -35
- package/core/dist/runtime-v2/types/event-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-types.js +0 -19
- package/core/dist/runtime-v2/types/event-types.js.map +1 -1
- package/core/dist/runtime-v2/types/index.d.ts +2 -2
- package/core/dist/runtime-v2/types/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/index.js +1 -1
- package/core/dist/runtime-v2/types/index.js.map +1 -1
- package/core/dist/trajectory-types.d.ts +0 -2
- package/core/dist/trajectory-types.d.ts.map +1 -1
- package/core/package.json +1 -1
- package/dist/installer.d.ts +0 -7
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +112 -28
- package/dist/installer.js.map +1 -1
- package/dist/mvp-config.d.ts +2 -2
- package/dist/mvp-config.d.ts.map +1 -1
- package/dist/mvp-config.js +4 -2
- package/dist/mvp-config.js.map +1 -1
- package/host-runtime/dist/governance-signal-admission.d.ts +0 -2
- package/host-runtime/dist/governance-signal-admission.js +14 -15
- package/host-runtime/dist/production-pain-evidence.d.ts +1 -1
- package/host-runtime/dist/production-pain-evidence.js +42 -7
- package/host-runtime/dist/production-rulehost-gate.d.ts +0 -1
- package/host-runtime/dist/production-rulehost-gate.js +3 -4
- package/host-runtime/dist/signal-classifier.d.ts +8 -0
- package/host-runtime/dist/signal-classifier.js +10 -2
- package/host-runtime/package.json +1 -1
- package/package.json +3 -3
- package/pd-cli/dist/commands/pain-evidence.d.ts +2 -4
- package/pd-cli/dist/commands/pain-evidence.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-evidence.js +2 -4
- package/pd-cli/dist/commands/pain-evidence.js.map +1 -1
- package/pd-cli/dist/commands/runtime-canary.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-canary.js +2 -68
- package/pd-cli/dist/commands/runtime-canary.js.map +1 -1
- package/pd-cli/dist/commands/runtime-diagnostics-export.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-diagnostics-export.js +1 -25
- package/pd-cli/dist/commands/runtime-diagnostics-export.js.map +1 -1
- package/pd-cli/dist/commands/runtime-health-snapshot.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-health-snapshot.js +0 -9
- package/pd-cli/dist/commands/runtime-health-snapshot.js.map +1 -1
- package/pd-cli/dist/index.js +0 -9
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/pd-mcp-server/dist/version.d.ts +1 -1
- package/pd-mcp-server/dist/version.js +1 -1
- package/pd-mcp-server/package.json +1 -1
- package/plugin/dist/bundle.js +492 -481
- package/plugin/dist/config/defaults/runtime.d.ts +0 -4
- package/plugin/dist/core/config.d.ts +0 -35
- package/plugin/dist/core/pain.d.ts +0 -1
- package/plugin/dist/core/session-tracker.d.ts +3 -51
- package/plugin/dist/core/signal-collector-host.d.ts +5 -13
- package/plugin/dist/core/signal-keyword-store.d.ts +2 -2
- package/plugin/dist/core/trajectory.d.ts +0 -2
- package/plugin/dist/governance-audit.js +2 -2
- package/plugin/dist/hooks/after-tool-call-helpers.d.ts +5 -12
- package/plugin/dist/hooks/after-tool-call-types.d.ts +0 -2
- package/plugin/dist/hooks/gate-block-helper.d.ts +1 -1
- package/plugin/dist/hooks/gate.d.ts +3 -4
- package/plugin/dist/hooks/pain.d.ts +4 -4
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/dist/rulehost-evidence.js +45 -45
- package/plugin/dist/templates/pain_settings.json +0 -46
- package/plugin/dist/types/event-types.d.ts +1 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/plugin/templates/pain_settings.json +0 -46
- package/release-manager/dist/installer.js +112 -28
- package/release-manager/dist/mvp-config.js +4 -2
- package/release-manager/package.json +1 -1
- package/workbuddy-adapter/package.json +1 -1
- package/core/dist/prompt-builder/attitude-directive.d.ts +0 -7
- package/core/dist/prompt-builder/attitude-directive.d.ts.map +0 -1
- package/core/dist/prompt-builder/attitude-directive.js +0 -39
- package/core/dist/prompt-builder/attitude-directive.js.map +0 -1
- package/core/dist/runtime-v2/gfi/gfi-kernel.d.ts +0 -12
- package/core/dist/runtime-v2/gfi/gfi-kernel.d.ts.map +0 -1
- package/core/dist/runtime-v2/gfi/gfi-kernel.js +0 -148
- package/core/dist/runtime-v2/gfi/gfi-kernel.js.map +0 -1
- package/core/dist/runtime-v2/gfi/gfi-policy.d.ts +0 -3
- package/core/dist/runtime-v2/gfi/gfi-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/gfi/gfi-policy.js +0 -23
- package/core/dist/runtime-v2/gfi/gfi-policy.js.map +0 -1
- package/core/dist/runtime-v2/gfi/gfi-read-model.d.ts +0 -78
- package/core/dist/runtime-v2/gfi/gfi-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/gfi/gfi-read-model.js +0 -129
- package/core/dist/runtime-v2/gfi/gfi-read-model.js.map +0 -1
- package/core/dist/runtime-v2/gfi/gfi-types.d.ts +0 -70
- package/core/dist/runtime-v2/gfi/gfi-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/gfi/gfi-types.js +0 -2
- package/core/dist/runtime-v2/gfi/gfi-types.js.map +0 -1
- package/core/dist/runtime-v2/gfi/index.d.ts +0 -6
- package/core/dist/runtime-v2/gfi/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/gfi/index.js +0 -4
- package/core/dist/runtime-v2/gfi/index.js.map +0 -1
- package/pd-cli/dist/commands/runtime-gfi-snapshot.d.ts +0 -7
- package/pd-cli/dist/commands/runtime-gfi-snapshot.d.ts.map +0 -1
- package/pd-cli/dist/commands/runtime-gfi-snapshot.js +0 -101
- package/pd-cli/dist/commands/runtime-gfi-snapshot.js.map +0 -1
package/dist/installer.js
CHANGED
|
@@ -1553,6 +1553,11 @@ export async function checkBuiltPlugin(pluginDir) {
|
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
|
+
function filesystemErrorCode(error) {
|
|
1557
|
+
if (typeof error !== 'object' || error === null || !Object.hasOwn(error, 'code'))
|
|
1558
|
+
return undefined;
|
|
1559
|
+
return error.code;
|
|
1560
|
+
}
|
|
1556
1561
|
/**
|
|
1557
1562
|
* PRI-1102: a target that exists as a DANGLING link (an interrupted install
|
|
1558
1563
|
* left a reparse point whose target is gone) is not a directory the installer
|
|
@@ -1574,14 +1579,23 @@ export async function preparePluginInstallTarget(targetDir) {
|
|
|
1574
1579
|
throw new Error(`Cannot inspect plugin install target ${targetDir}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
1575
1580
|
}
|
|
1576
1581
|
if (stats !== undefined && stats.isSymbolicLink()) {
|
|
1577
|
-
let
|
|
1582
|
+
let targetAbsent = false;
|
|
1578
1583
|
try {
|
|
1579
1584
|
realpathSync(targetDir);
|
|
1580
1585
|
}
|
|
1581
|
-
catch {
|
|
1582
|
-
|
|
1586
|
+
catch (error) {
|
|
1587
|
+
const code = filesystemErrorCode(error);
|
|
1588
|
+
if (code !== 'ENOENT' && code !== 'ENOTDIR') {
|
|
1589
|
+
// EACCES/EPERM/... means the link target may still be a live install
|
|
1590
|
+
// this process cannot read. Removing the link would destroy it, so
|
|
1591
|
+
// fail closed and let the caller report the refusal.
|
|
1592
|
+
throw new Error(`Cannot resolve plugin install target ${targetDir}: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
|
|
1593
|
+
}
|
|
1594
|
+
// Confirmed absent target (ENOENT/ENOTDIR) — the link itself is the
|
|
1595
|
+
// residue of an interrupted install.
|
|
1596
|
+
targetAbsent = true;
|
|
1583
1597
|
}
|
|
1584
|
-
if (
|
|
1598
|
+
if (targetAbsent) {
|
|
1585
1599
|
// fs-extra's remove unlinks the reparse point instead of traversing it.
|
|
1586
1600
|
await fse.remove(targetDir);
|
|
1587
1601
|
logger.warn(`Removed dangling link at ${targetDir} (target missing) — rebuilding the plugin install directory.`);
|
|
@@ -1589,35 +1603,105 @@ export async function preparePluginInstallTarget(targetDir) {
|
|
|
1589
1603
|
}
|
|
1590
1604
|
await fse.ensureDir(targetDir);
|
|
1591
1605
|
}
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1606
|
+
function restoredTreeRequirements() {
|
|
1607
|
+
return [
|
|
1608
|
+
// The runtime root itself (type + link resolution only).
|
|
1609
|
+
{ dir: getPdRuntimeDir(), entries: [], openClawOnly: false },
|
|
1610
|
+
{
|
|
1611
|
+
dir: getInstalledConsoleDir(),
|
|
1612
|
+
entries: [path.join('dist', 'server.js'), path.join('dist', 'web', 'index.html')],
|
|
1613
|
+
openClawOnly: false,
|
|
1614
|
+
},
|
|
1615
|
+
{ dir: getInstalledPdCliDir(), entries: [path.join('dist', 'index.js')], openClawOnly: false },
|
|
1616
|
+
{ dir: getInstalledPluginDir(), entries: [path.join('dist', 'bundle.js'), 'openclaw.plugin.json'], openClawOnly: false },
|
|
1617
|
+
{
|
|
1618
|
+
dir: getPluginExtDir(),
|
|
1619
|
+
entries: [path.join('dist', 'bundle.js'), 'openclaw.plugin.json', 'package.json'],
|
|
1620
|
+
openClawOnly: true,
|
|
1621
|
+
},
|
|
1622
|
+
];
|
|
1623
|
+
}
|
|
1624
|
+
function describeRestoredDirGap(dir, gaps) {
|
|
1625
|
+
let stats;
|
|
1626
|
+
try {
|
|
1627
|
+
stats = lstatSync(dir, { throwIfNoEntry: false });
|
|
1628
|
+
}
|
|
1629
|
+
catch (error) {
|
|
1630
|
+
gaps.push(`${dir} (unreadable: ${error instanceof Error ? error.message : String(error)})`);
|
|
1631
|
+
return false;
|
|
1632
|
+
}
|
|
1633
|
+
if (stats === undefined) {
|
|
1634
|
+
gaps.push(`${dir} (missing)`);
|
|
1635
|
+
return false;
|
|
1636
|
+
}
|
|
1637
|
+
if (stats.isSymbolicLink()) {
|
|
1603
1638
|
try {
|
|
1604
|
-
|
|
1639
|
+
realpathSync(dir);
|
|
1605
1640
|
}
|
|
1606
1641
|
catch (error) {
|
|
1607
|
-
|
|
1608
|
-
|
|
1642
|
+
const code = filesystemErrorCode(error);
|
|
1643
|
+
gaps.push(`${dir} (${code === 'ENOENT' || code === 'ENOTDIR' ? 'dangling link' : 'unresolvable link'})`);
|
|
1644
|
+
return false;
|
|
1609
1645
|
}
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1646
|
+
}
|
|
1647
|
+
else if (!stats.isDirectory()) {
|
|
1648
|
+
gaps.push(`${dir} (not a directory)`);
|
|
1649
|
+
return false;
|
|
1650
|
+
}
|
|
1651
|
+
return true;
|
|
1652
|
+
}
|
|
1653
|
+
function describeRestoredEntryGap(entry, gaps) {
|
|
1654
|
+
let stats;
|
|
1655
|
+
try {
|
|
1656
|
+
stats = lstatSync(entry, { throwIfNoEntry: false });
|
|
1657
|
+
}
|
|
1658
|
+
catch (error) {
|
|
1659
|
+
gaps.push(`${entry} (unreadable: ${error instanceof Error ? error.message : String(error)})`);
|
|
1660
|
+
return;
|
|
1661
|
+
}
|
|
1662
|
+
if (stats === undefined) {
|
|
1663
|
+
gaps.push(`${entry} (missing)`);
|
|
1664
|
+
return;
|
|
1665
|
+
}
|
|
1666
|
+
if (stats.isSymbolicLink()) {
|
|
1667
|
+
try {
|
|
1668
|
+
realpathSync(entry);
|
|
1613
1669
|
}
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1670
|
+
catch (error) {
|
|
1671
|
+
const code = filesystemErrorCode(error);
|
|
1672
|
+
gaps.push(`${entry} (${code === 'ENOENT' || code === 'ENOTDIR' ? 'dangling link' : 'unresolvable link'})`);
|
|
1673
|
+
return;
|
|
1674
|
+
}
|
|
1675
|
+
// realpath only proves the target EXISTS. The entry is consumed as a file
|
|
1676
|
+
// at runtime, so a link to a directory is just as unusable as a missing
|
|
1677
|
+
// file path. stat follows the link and reports the target type.
|
|
1678
|
+
let targetStats;
|
|
1679
|
+
try {
|
|
1680
|
+
targetStats = statSync(entry);
|
|
1681
|
+
}
|
|
1682
|
+
catch (error) {
|
|
1683
|
+
const code = filesystemErrorCode(error);
|
|
1684
|
+
gaps.push(`${entry} (${code === 'ENOENT' || code === 'ENOTDIR' ? 'dangling link' : 'unresolvable link'})`);
|
|
1685
|
+
return;
|
|
1686
|
+
}
|
|
1687
|
+
if (!targetStats.isFile()) {
|
|
1688
|
+
gaps.push(`${entry} (not a file)`);
|
|
1689
|
+
}
|
|
1690
|
+
return;
|
|
1691
|
+
}
|
|
1692
|
+
if (!stats.isFile()) {
|
|
1693
|
+
gaps.push(`${entry} (not a file)`);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
export function describeRestoredStateGaps() {
|
|
1697
|
+
const gaps = [];
|
|
1698
|
+
for (const requirement of restoredTreeRequirements()) {
|
|
1699
|
+
if (requirement.openClawOnly && !installsOpenClaw(activeHostTarget))
|
|
1700
|
+
continue;
|
|
1701
|
+
if (!describeRestoredDirGap(requirement.dir, gaps))
|
|
1702
|
+
continue;
|
|
1703
|
+
for (const entry of requirement.entries) {
|
|
1704
|
+
describeRestoredEntryGap(path.join(requirement.dir, entry), gaps);
|
|
1621
1705
|
}
|
|
1622
1706
|
}
|
|
1623
1707
|
return gaps;
|