@deftai/directive-types 0.98.1 → 0.100.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/document.d.ts +6 -0
- package/dist/document.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/policy.d.ts +15 -1
- package/dist/policy.js +1 -0
- package/package.json +1 -1
- package/schemas/vbrief-core-0.6.schema.json +5 -0
- package/schemas/xbrief-core-0.8.schema.json +5 -0
package/dist/document.d.ts
CHANGED
|
@@ -13,12 +13,18 @@ export interface VBriefInfo {
|
|
|
13
13
|
readonly timezone?: string;
|
|
14
14
|
readonly [key: `x-${string}`]: unknown;
|
|
15
15
|
}
|
|
16
|
+
/** Optional PlanItem effort estimate (#1581). Time anchors: S <2h, M 2-4h, L 1-2d, XL needs breakdown. */
|
|
17
|
+
export declare const PLAN_ITEM_EFFORTS: readonly ["S", "M", "L", "XL"];
|
|
18
|
+
/** S/M/L/XL effort band for scope plan items (#1581). */
|
|
19
|
+
export type PlanItemEffort = (typeof PLAN_ITEM_EFFORTS)[number];
|
|
16
20
|
/** Nested plan item (`PlanItem` in vbrief-core.schema.json). */
|
|
17
21
|
export interface PlanItem {
|
|
18
22
|
readonly id?: string;
|
|
19
23
|
readonly uid?: string;
|
|
20
24
|
readonly title: string;
|
|
21
25
|
readonly status: Status;
|
|
26
|
+
/** Optional effort band; omit is valid. XL must not activate until broken into S/M/L (#1581). */
|
|
27
|
+
readonly effort?: PlanItemEffort;
|
|
22
28
|
readonly narrative?: Readonly<Record<string, string>>;
|
|
23
29
|
readonly items?: readonly PlanItem[];
|
|
24
30
|
/** @deprecated Prefer `items`. Retained for schema compatibility. */
|
package/dist/document.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ACCEPTED_VBRIEF_VERSIONS, EXTENSION_KEY_PATTERN, LEGACY_VBRIEF_CORE_SCHEMA_ID, LEGACY_VBRIEF_VERSION, TYPES_PACKAGE, VBRIEF_CORE_SCHEMA_ID, VBRIEF_REFERENCE_PREFIX, VBRIEF_VERSION, type VBriefVersion, XBRIEF_REFERENCE_PREFIX, } from "./constants.js";
|
|
2
|
-
export type
|
|
2
|
+
export { type EngineInfo, PLAN_ITEM_EFFORTS, type Plan, type PlanArchitecture, type PlanItem, type PlanItemEffort, type VBriefDocument, type VBriefInfo, } from "./document.js";
|
|
3
3
|
export { collectExtensionProperties, type ExtensionKey, isExtensionKey, } from "./extension.js";
|
|
4
4
|
export { GATE_EXIT_CONFIG_ERROR, GATE_EXIT_OK, GATE_EXIT_VIOLATION, type GateExitCode, type GateResult, } from "./gate.js";
|
|
5
5
|
export { type HotfixCriteria, type PlanPolicy, type ProjectionProviderExpectation, type ProjectionProviderPolicy, REGISTERED_POLICY_FIELD_NAMES, type TriageScopeRule, } from "./policy.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ACCEPTED_VBRIEF_VERSIONS, EXTENSION_KEY_PATTERN, LEGACY_VBRIEF_CORE_SCHEMA_ID, LEGACY_VBRIEF_VERSION, TYPES_PACKAGE, VBRIEF_CORE_SCHEMA_ID, VBRIEF_REFERENCE_PREFIX, VBRIEF_VERSION, XBRIEF_REFERENCE_PREFIX, } from "./constants.js";
|
|
2
|
+
export { PLAN_ITEM_EFFORTS, } from "./document.js";
|
|
2
3
|
export { collectExtensionProperties, isExtensionKey, } from "./extension.js";
|
|
3
4
|
export { GATE_EXIT_CONFIG_ERROR, GATE_EXIT_OK, GATE_EXIT_VIOLATION, } from "./gate.js";
|
|
4
5
|
export { REGISTERED_POLICY_FIELD_NAMES, } from "./policy.js";
|
package/dist/policy.d.ts
CHANGED
|
@@ -73,6 +73,20 @@ export interface PlanPolicy {
|
|
|
73
73
|
readonly autoDeployOnMerge?: boolean;
|
|
74
74
|
/** Structural hotfix eligibility thresholds (#1193). */
|
|
75
75
|
readonly hotfixCriteria?: HotfixCriteria;
|
|
76
|
+
/**
|
|
77
|
+
* Ceremony dial (#3214): scale session ritual / gate depth by task size ×
|
|
78
|
+
* model tier × project shape. Selection policy over rapid strategy + #3014
|
|
79
|
+
* minimal profile pointers — not a new subsystem.
|
|
80
|
+
*/
|
|
81
|
+
readonly ceremonyDial?: {
|
|
82
|
+
/** When false, always use standard (full) ceremony. Default true. */
|
|
83
|
+
readonly enabled?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Force ritual depth. One of minimal|rapid|standard|elevated.
|
|
86
|
+
* null/omit → matrix selection from session inputs.
|
|
87
|
+
*/
|
|
88
|
+
readonly override?: "minimal" | "rapid" | "standard" | "elevated" | null;
|
|
89
|
+
};
|
|
76
90
|
readonly [key: `x-${string}`]: unknown;
|
|
77
91
|
}
|
|
78
92
|
export interface ProjectionProviderExpectation {
|
|
@@ -88,5 +102,5 @@ export interface ProjectionProviderPolicy {
|
|
|
88
102
|
readonly [key: `x-${string}`]: unknown;
|
|
89
103
|
}
|
|
90
104
|
/** Canonical dotted policy field names registered by the directive engine. */
|
|
91
|
-
export declare const REGISTERED_POLICY_FIELD_NAMES: readonly ["plan.policy.allowDirectCommitsToMaster", "plan.policy.wipCap", "plan.policy.sessionRitualStalenessHours", "plan.policy.triageScope", "plan.policy.triageScopeIgnores", "plan.policy.triageRankingLabels", "plan.policy.triageAutoClassify", "plan.policy.triageHoldMarkers", "plan.policy.triageLabelMirror", "plan.policy.swarmSubagentBackend", "plan.policy.engineSkewWindow", "plan.policy.requireHumanMerge", "plan.policy.hotfixCriteria", "plan.policy.autoDeployOnMerge"];
|
|
105
|
+
export declare const REGISTERED_POLICY_FIELD_NAMES: readonly ["plan.policy.allowDirectCommitsToMaster", "plan.policy.wipCap", "plan.policy.sessionRitualStalenessHours", "plan.policy.triageScope", "plan.policy.triageScopeIgnores", "plan.policy.triageRankingLabels", "plan.policy.triageAutoClassify", "plan.policy.triageHoldMarkers", "plan.policy.triageLabelMirror", "plan.policy.swarmSubagentBackend", "plan.policy.engineSkewWindow", "plan.policy.requireHumanMerge", "plan.policy.hotfixCriteria", "plan.policy.autoDeployOnMerge", "plan.policy.ceremonyDial"];
|
|
92
106
|
//# sourceMappingURL=policy.d.ts.map
|
package/dist/policy.js
CHANGED
package/package.json
CHANGED
|
@@ -509,6 +509,11 @@
|
|
|
509
509
|
"critical"
|
|
510
510
|
]
|
|
511
511
|
},
|
|
512
|
+
"effort": {
|
|
513
|
+
"type": "string",
|
|
514
|
+
"enum": ["S", "M", "L", "XL"],
|
|
515
|
+
"description": "Optional effort estimate with time anchors: S <2h, M half-day (2-4h), L 1-2 days, XL needs breakdown into S/M/L before activation. Omitted items still validate."
|
|
516
|
+
},
|
|
512
517
|
"dueDate": {
|
|
513
518
|
"$ref": "#/$defs/dateTime"
|
|
514
519
|
},
|
|
@@ -318,6 +318,11 @@
|
|
|
318
318
|
"critical"
|
|
319
319
|
]
|
|
320
320
|
},
|
|
321
|
+
"effort": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"enum": ["S", "M", "L", "XL"],
|
|
324
|
+
"description": "Optional effort estimate with time anchors: S <2h, M half-day (2-4h), L 1-2 days, XL needs breakdown into S/M/L before activation. Omitted items still validate."
|
|
325
|
+
},
|
|
321
326
|
"dueDate": {
|
|
322
327
|
"$ref": "#/$defs/dateTime"
|
|
323
328
|
},
|