@principles/host-runtime 2.2.2 → 3.0.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/dist/active-principle-prompt.d.ts +88 -3
- package/dist/active-principle-prompt.js +132 -41
- package/dist/adaptive-journal-reconciliation.js +1 -1
- package/dist/adaptive-principle-revalidation.d.ts +1 -1
- package/dist/adaptive-principle-revalidation.js +1 -1
- package/dist/behavior-example-pack-assembler.d.ts +2 -2
- package/dist/behavior-example-pack-assembler.js +6 -6
- package/dist/behavior-history.d.ts +1 -1
- package/dist/behavior-history.js +1 -1
- package/dist/cli-recovery-probe.d.ts +1 -1
- package/dist/codex-artificer-trusted-facts.d.ts +1 -1
- package/dist/codex-rule-context-provider.d.ts +1 -1
- package/dist/codex-rule-context-provider.js +1 -1
- package/dist/codex-worker-status.js +1 -1
- package/dist/design-gate-facts.d.ts +1 -1
- package/dist/design-gate-facts.js +1 -1
- package/dist/evaluator-runtime-context.d.ts +1 -1
- package/dist/evaluator-runtime-context.js +1 -1
- package/dist/governance-observation-store.js +1 -1
- package/dist/governance-signal-admission.d.ts +2 -2
- package/dist/governance-signal-admission.js +3 -3
- package/dist/host-liveness-contract.d.ts +1 -1
- package/dist/host-tool-declaration.d.ts +1 -1
- package/dist/host-tool-declaration.js +1 -1
- package/dist/host-tool-semantic-resolver.d.ts +1 -1
- package/dist/host-tool-semantic-resolver.js +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +33 -15
- package/dist/internalization-consumer-cycle.d.ts +2 -2
- package/dist/internalization-consumer-cycle.js +2 -2
- package/dist/internalization-consumer-governance.d.ts +1 -1
- package/dist/internalization-consumer-governance.js +1 -1
- package/dist/intervention-evidence-ingress.d.ts +1 -1
- package/dist/intervention-evidence-ingress.js +1 -1
- package/dist/pd-config.d.ts +1 -1
- package/dist/pd-config.js +1 -1
- package/dist/product-telemetry/consent-store.js +1 -1
- package/dist/product-telemetry/exporter.d.ts +1 -1
- package/dist/product-telemetry/milestone-readers.d.ts +1 -1
- package/dist/product-telemetry/service.d.ts +1 -1
- package/dist/product-telemetry/service.js +1 -1
- package/dist/product-telemetry/workspace-scope.js +1 -1
- package/dist/production-pain-evidence.d.ts +1 -1
- package/dist/production-pain-evidence.js +3 -3
- package/dist/production-rulehost-gate.d.ts +1 -1
- package/dist/production-rulehost-gate.js +3 -3
- package/dist/prompt-activation-authority.d.ts +1 -1
- package/dist/prompt-activation-deliverability.d.ts +26 -16
- package/dist/prompt-activation-deliverability.js +60 -30
- package/dist/prompt-injection-budget-observation.d.ts +16 -5
- package/dist/prompt-injection-budget-observation.js +23 -9
- package/dist/prompt-injection-projection.d.ts +106 -49
- package/dist/prompt-injection-projection.js +190 -212
- package/dist/prompt-injection-status.d.ts +1 -1
- package/dist/prompt-injection-status.js +17 -8
- package/dist/signal-classifier.d.ts +2 -2
- package/dist/signal-classifier.js +3 -3
- package/dist/workbuddy-rule-context-provider.d.ts +1 -1
- package/dist/workbuddy-rule-context-provider.js +1 -1
- package/dist/workbuddy-worker-status.js +1 -1
- package/dist/workspace-behavior-evidence.d.ts +1 -1
- package/dist/workspace-behavior-evidence.js +2 -2
- package/dist/workspace-telemetry-emitter.d.ts +1 -1
- package/dist/workspace-telemetry-emitter.js +1 -1
- package/package.json +3 -3
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
*
|
|
8
8
|
* The classifier contract is core-owned: `buildLlmPrompt`,
|
|
9
9
|
* `signal-classification-output-v2` and `resolveLlmClassificationPayload`
|
|
10
|
-
* come from `@principles/core/runtime
|
|
10
|
+
* come from `@principles/core/runtime`. This module only owns acquisition:
|
|
11
11
|
* reading the signalCollector runtime profile and calling the adapter.
|
|
12
12
|
*
|
|
13
13
|
* No second model runtime is introduced (ADR-0029: pi-ai is the only backend).
|
|
14
14
|
*/
|
|
15
15
|
import path from 'node:path';
|
|
16
|
-
import { PiAiRuntimeAdapter, SIGNAL_CLASSIFIER_SYSTEM_PROMPT, buildLlmPrompt, resolveLlmClassificationPayload, safeStringifyPreview, } from '@principles/core/runtime
|
|
16
|
+
import { PiAiRuntimeAdapter, SIGNAL_CLASSIFIER_SYSTEM_PROMPT, buildLlmPrompt, resolveLlmClassificationPayload, safeStringifyPreview, } from '@principles/core/runtime';
|
|
17
17
|
import { loadPdConfigForPlugin } from './pd-config.js';
|
|
18
18
|
/**
|
|
19
19
|
* The Stage-2 structured-output contract this classifier requests. It MUST stay
|
|
20
20
|
* in sync with the registry key in
|
|
21
|
-
* packages/principles-core/src/runtime
|
|
21
|
+
* packages/principles-core/src/runtime/adapter/output-schema-registry.ts:
|
|
22
22
|
* the adapter fails loud (`output_invalid`) on an unregistered ref, and the
|
|
23
23
|
* catch below would silently degrade Stage 2 to "no classification".
|
|
24
24
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ToolSemanticRegistry } from '@principles/core/runtime
|
|
1
|
+
import { type ToolSemanticRegistry } from '@principles/core/runtime';
|
|
2
2
|
import type { RuleContextProvider } from './production-rulehost-gate.js';
|
|
3
3
|
export interface WorkbuddyRuleContextProviderOptions {
|
|
4
4
|
/** The WorkBuddy governance workspace whose trajectory database is authoritative. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { computeBehaviorFacts, } from '@principles/core/runtime
|
|
2
|
+
import { computeBehaviorFacts, } from '@principles/core/runtime';
|
|
3
3
|
import { assembleBehaviorHistory } from './behavior-history.js';
|
|
4
4
|
import { readWorkspaceRuleContextRowsBefore } from './workspace-behavior-evidence.js';
|
|
5
5
|
const HISTORY_LIMIT = 100;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import * as fs from 'node:fs';
|
|
16
16
|
import * as path from 'node:path';
|
|
17
17
|
import { loadPdConfigForPlugin } from './pd-config.js';
|
|
18
|
-
import { computeFeatureFlagsFromConfig } from '@principles/core/runtime
|
|
18
|
+
import { computeFeatureFlagsFromConfig } from '@principles/core/runtime';
|
|
19
19
|
function directoryExists(dir) {
|
|
20
20
|
try {
|
|
21
21
|
return fs.statSync(dir).isDirectory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BehaviorEvidencePort, ToolSemanticRegistry } from '@principles/core/runtime
|
|
1
|
+
import type { BehaviorEvidencePort, ToolSemanticRegistry } from '@principles/core/runtime';
|
|
2
2
|
import type { RuleHostContextRow } from '@principles/core/trajectory-types';
|
|
3
3
|
/** Lazy storage access: missing labels need no DB, and a failed open remains observable. */
|
|
4
4
|
export declare function createWorkspaceBehaviorEvidencePort(workspaceDir: string, toolSemantics?: ToolSemanticRegistry): BehaviorEvidencePort;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import Database from 'better-sqlite3';
|
|
5
|
-
import { SqliteConnection } from '@principles/core/runtime
|
|
6
|
-
import { createOwnerEvidenceScopeError } from '@principles/core/runtime
|
|
5
|
+
import { SqliteConnection } from '@principles/core/runtime';
|
|
6
|
+
import { createOwnerEvidenceScopeError } from '@principles/core/runtime/internalization/evidence-readiness';
|
|
7
7
|
import { BehaviorExamplePackAssembler } from './behavior-example-pack-assembler.js';
|
|
8
8
|
import { resolveWorkspaceHostToolSemantics } from './host-tool-semantic-resolver.js';
|
|
9
9
|
function record(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StoreEventEmitter, type TelemetryEvent } from '@principles/core/runtime
|
|
1
|
+
import { StoreEventEmitter, type TelemetryEvent } from '@principles/core/runtime';
|
|
2
2
|
export type WorkspaceTelemetryPersistFailureSink = (detailJson: string) => void;
|
|
3
3
|
export declare class WorkspaceTelemetryEmitter extends StoreEventEmitter {
|
|
4
4
|
private readonly upstream;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { appendFileSync, mkdirSync } from 'node:fs';
|
|
2
2
|
import { dirname, join } from 'node:path';
|
|
3
|
-
import { StoreEventEmitter } from '@principles/core/runtime
|
|
3
|
+
import { StoreEventEmitter } from '@principles/core/runtime';
|
|
4
4
|
/**
|
|
5
5
|
* PRI-634 A3 — workspace-scoped durable observability for critical runner
|
|
6
6
|
* telemetry (host-neutral; PRI-624 Slice C final integration).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/host-runtime",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"lint": "eslint \"src/**/*.ts\""
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@principles/core": "^
|
|
34
|
+
"@principles/core": "^5.1.0",
|
|
35
35
|
"@principles/install-layout": "^0.4.0",
|
|
36
36
|
"better-sqlite3": "^13.0.3",
|
|
37
37
|
"js-yaml": "^5.4.3"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"url": "git+https://github.com/csuzngjh/principles.git"
|
|
50
50
|
},
|
|
51
51
|
"license": "Apache-2.0",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "9656a64563e073c92aa8da0373ea96249de1a71b"
|
|
53
53
|
}
|