@nexusclawhq/cli 0.3.53 → 0.3.55

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.
Files changed (63) hide show
  1. package/dist/build-info.json +4 -4
  2. package/dist/nexus-cli/src/cli.js +0 -0
  3. package/dist/nexus-cli/src/commands/source/pull.js +10 -5
  4. package/dist/nexus-cli/src/commands/source/pull.js.map +1 -1
  5. package/dist/nexus-cli/src/services/api-client.js +5 -1
  6. package/dist/nexus-cli/src/services/api-client.js.map +1 -1
  7. package/dist/nexus-cli/src/services/workforce-bundle-remote.d.ts +1 -1
  8. package/dist/tsconfig.tsbuildinfo +1 -1
  9. package/package.json +1 -1
  10. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.schemas.d.ts +0 -38
  11. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.schemas.js +0 -502
  12. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.schemas.js.map +0 -1
  13. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.types.d.ts +0 -191
  14. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.types.js +0 -3
  15. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.types.js.map +0 -1
  16. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.schemas.d.ts +0 -4
  17. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.schemas.js +0 -53
  18. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.schemas.js.map +0 -1
  19. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.types.d.ts +0 -37
  20. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.types.js +0 -3
  21. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/context-selection.types.js.map +0 -1
  22. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/contract-versions.d.ts +0 -19
  23. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/contract-versions.js +0 -42
  24. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/contract-versions.js.map +0 -1
  25. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.schemas.d.ts +0 -12
  26. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.schemas.js +0 -161
  27. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.schemas.js.map +0 -1
  28. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.types.d.ts +0 -44
  29. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.types.js +0 -3
  30. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/controlled-memory.types.js.map +0 -1
  31. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.schemas.d.ts +0 -5
  32. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.schemas.js +0 -81
  33. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.schemas.js.map +0 -1
  34. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.types.d.ts +0 -61
  35. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.types.js +0 -3
  36. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/goal-snapshot.types.js.map +0 -1
  37. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/index.d.ts +0 -15
  38. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/index.js +0 -32
  39. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/index.js.map +0 -1
  40. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.schemas.d.ts +0 -9
  41. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.schemas.js +0 -170
  42. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.schemas.js.map +0 -1
  43. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.types.d.ts +0 -98
  44. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.types.js +0 -3
  45. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/proactive-decision.types.js.map +0 -1
  46. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.schemas.d.ts +0 -21
  47. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.schemas.js +0 -157
  48. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.schemas.js.map +0 -1
  49. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.types.d.ts +0 -47
  50. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.types.js +0 -3
  51. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/success-evaluation.types.js.map +0 -1
  52. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.schemas.d.ts +0 -19
  53. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.schemas.js +0 -177
  54. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.schemas.js.map +0 -1
  55. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.types.d.ts +0 -66
  56. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.types.js +0 -3
  57. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/training-evidence.types.js.map +0 -1
  58. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-runtime/index.d.ts +0 -53
  59. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-runtime/index.js +0 -42
  60. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-runtime/index.js.map +0 -1
  61. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-workforce-learning/index.d.ts +0 -743
  62. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-workforce-learning/index.js +0 -1261
  63. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-workforce-learning/index.js.map +0 -1
@@ -1,81 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.executionGoalSnapshotSchema = void 0;
4
- exports.validateExecutionGoalSnapshot = validateExecutionGoalSnapshot;
5
- const cognitive_policy_schemas_1 = require("./cognitive-policy.schemas");
6
- exports.executionGoalSnapshotSchema = {
7
- $schema: 'https://json-schema.org/draft/2020-12/schema',
8
- $id: 'schema://nexusclaw/execution-goal-snapshot/v1',
9
- type: 'object',
10
- additionalProperties: false,
11
- required: [
12
- 'schemaVersion',
13
- 'snapshotId',
14
- 'workspaceId',
15
- 'executionId',
16
- 'agentId',
17
- 'lineage',
18
- 'trigger',
19
- 'task',
20
- 'resolvedCriteria',
21
- 'createdAt',
22
- 'digest',
23
- ],
24
- properties: {
25
- schemaVersion: { const: 'execution-goal-snapshot/v1' },
26
- snapshotId: { type: 'string', minLength: 1 },
27
- workspaceId: { type: 'string', minLength: 1 },
28
- executionId: { type: 'string', minLength: 1 },
29
- agentId: { type: 'string', minLength: 1 },
30
- lineage: {
31
- type: 'object',
32
- additionalProperties: false,
33
- required: [
34
- 'releaseSetId',
35
- 'agentVersionId',
36
- 'bundleDigest',
37
- 'cognitivePolicyDigest',
38
- 'successContractId',
39
- 'successContractDigest',
40
- ],
41
- properties: {
42
- releaseSetId: { type: 'string', minLength: 1 },
43
- agentVersionId: { type: 'string', minLength: 1 },
44
- bundleDigest: { type: 'string', pattern: cognitive_policy_schemas_1.COGNITION_SHA256_PATTERN },
45
- cognitivePolicyDigest: { type: 'string', pattern: cognitive_policy_schemas_1.COGNITION_SHA256_PATTERN },
46
- successContractId: { type: 'string', minLength: 1 },
47
- successContractDigest: { type: 'string', pattern: cognitive_policy_schemas_1.COGNITION_SHA256_PATTERN },
48
- },
49
- },
50
- trigger: { type: 'object' },
51
- task: { type: 'object' },
52
- resolvedCriteria: { type: 'array' },
53
- createdAt: { type: 'string', minLength: 1 },
54
- digest: { type: 'string', pattern: cognitive_policy_schemas_1.COGNITION_SHA256_PATTERN },
55
- },
56
- };
57
- function validateExecutionGoalSnapshot(value) {
58
- const issues = (0, cognitive_policy_schemas_1.findForbiddenCognitionPayload)(value);
59
- const row = value;
60
- if (!row ||
61
- row.schemaVersion !== 'execution-goal-snapshot/v1' ||
62
- !row.snapshotId ||
63
- !row.workspaceId ||
64
- !row.executionId ||
65
- !row.agentId ||
66
- !row.lineage?.releaseSetId ||
67
- !row.lineage.agentVersionId ||
68
- !row.lineage.bundleDigest ||
69
- !row.lineage.cognitivePolicyDigest ||
70
- !row.lineage.successContractDigest) {
71
- issues.push({
72
- code: 'GOAL_SNAPSHOT_REQUIRED',
73
- jsonPath: '/',
74
- message: 'Goal identity and exact lineage are required',
75
- });
76
- }
77
- return issues.length
78
- ? { valid: false, issues }
79
- : { valid: true, value: value, issues };
80
- }
81
- //# sourceMappingURL=goal-snapshot.schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"goal-snapshot.schemas.js","sourceRoot":"","sources":["../../src/ai-employee-cognition/goal-snapshot.schemas.ts"],"names":[],"mappings":";;;AA4DA,sEA2BC;AArFD,yEAIoC;AAEvB,QAAA,2BAA2B,GAAoB;IAC1D,OAAO,EAAE,8CAA8C;IACvD,GAAG,EAAE,+CAA+C;IACpD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE;QACR,eAAe;QACf,YAAY;QACZ,aAAa;QACb,aAAa;QACb,SAAS;QACT,SAAS;QACT,SAAS;QACT,MAAM;QACN,kBAAkB;QAClB,WAAW;QACX,QAAQ;KACT;IACD,UAAU,EAAE;QACV,aAAa,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE;QACtD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QAC5C,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QAC7C,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QACzC,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE;gBACR,cAAc;gBACd,gBAAgB;gBAChB,cAAc;gBACd,uBAAuB;gBACvB,mBAAmB;gBACnB,uBAAuB;aACxB;YACD,UAAU,EAAE;gBACV,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;gBAC9C,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;gBAChD,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mDAAwB,EAAE;gBACn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IACL,CAAC;IACD,OAAO,MAAM,CAAC,MAAM;QAClB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;QAC1B,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAgC,EAAE,MAAM,EAAE,CAAC;AACvE,CAAC"}
@@ -1,61 +0,0 @@
1
- import type { EmployeeSuccessContractV1, SuccessCriterionV1, TypedEvidenceRefV1, VersionedRefV1 } from './cognitive-policy.types';
2
- import type { Sha256Digest } from '../agent-executable-assets/canonical-hash';
3
- export interface ExecutionGoalSnapshotV1 {
4
- schemaVersion: 'execution-goal-snapshot/v1';
5
- snapshotId: string;
6
- workspaceId: string;
7
- executionId: string;
8
- agentId: string;
9
- lineage: {
10
- releaseSetId: string;
11
- agentVersionId: string;
12
- bundleDigest: Sha256Digest;
13
- cognitivePolicyDigest: Sha256Digest;
14
- successContractId: string;
15
- successContractDigest: Sha256Digest;
16
- };
17
- trigger: {
18
- source: 'user' | 'schedule' | 'event' | 'approval' | 'opportunity' | 'agent_test';
19
- sourceRef?: string;
20
- confirmedBy?: string;
21
- };
22
- task: {
23
- objectiveCodes: string[];
24
- statement: string;
25
- scopeRefs: Array<{
26
- objectName: string;
27
- recordId: string;
28
- version?: string;
29
- }>;
30
- nonGoals: string[];
31
- stopConditions: string[];
32
- };
33
- resolvedCriteria: Array<{
34
- criterionCode: string;
35
- target: SuccessCriterionV1['target'];
36
- baselineRefs: TypedEvidenceRefV1[];
37
- observationStartsAt: string;
38
- observationEndsAt: string;
39
- attributionEndsAt: string;
40
- evaluatorVersion: string;
41
- }>;
42
- createdAt: string;
43
- digest: Sha256Digest;
44
- }
45
- export interface CognitiveExecutionInputV1 {
46
- schemaVersion: 'cognitive-execution-input/v1';
47
- workspaceId: string;
48
- executionId: string;
49
- agentId: string;
50
- agentVersionId: string;
51
- releaseSetId: string;
52
- principalDigest: Sha256Digest;
53
- goalSnapshotRef: VersionedRefV1;
54
- successContract: EmployeeSuccessContractV1;
55
- contextPolicyDigest: Sha256Digest;
56
- worldStateSnapshotRef?: VersionedRefV1;
57
- budgets: {
58
- totalInputTokens: number;
59
- bySource: Record<string, number>;
60
- };
61
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=goal-snapshot.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"goal-snapshot.types.js","sourceRoot":"","sources":["../../src/ai-employee-cognition/goal-snapshot.types.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- export * from './contract-versions';
2
- export * from './cognitive-policy.types';
3
- export * from './cognitive-policy.schemas';
4
- export * from './goal-snapshot.types';
5
- export * from './goal-snapshot.schemas';
6
- export * from './context-selection.types';
7
- export * from './context-selection.schemas';
8
- export * from './success-evaluation.types';
9
- export * from './success-evaluation.schemas';
10
- export * from './controlled-memory.types';
11
- export * from './controlled-memory.schemas';
12
- export * from './proactive-decision.types';
13
- export * from './proactive-decision.schemas';
14
- export * from './training-evidence.types';
15
- export * from './training-evidence.schemas';
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./contract-versions"), exports);
18
- __exportStar(require("./cognitive-policy.types"), exports);
19
- __exportStar(require("./cognitive-policy.schemas"), exports);
20
- __exportStar(require("./goal-snapshot.types"), exports);
21
- __exportStar(require("./goal-snapshot.schemas"), exports);
22
- __exportStar(require("./context-selection.types"), exports);
23
- __exportStar(require("./context-selection.schemas"), exports);
24
- __exportStar(require("./success-evaluation.types"), exports);
25
- __exportStar(require("./success-evaluation.schemas"), exports);
26
- __exportStar(require("./controlled-memory.types"), exports);
27
- __exportStar(require("./controlled-memory.schemas"), exports);
28
- __exportStar(require("./proactive-decision.types"), exports);
29
- __exportStar(require("./proactive-decision.schemas"), exports);
30
- __exportStar(require("./training-evidence.types"), exports);
31
- __exportStar(require("./training-evidence.schemas"), exports);
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ai-employee-cognition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,2DAAyC;AACzC,6DAA2C;AAC3C,wDAAsC;AACtC,0DAAwC;AACxC,4DAA0C;AAC1C,8DAA4C;AAC5C,6DAA2C;AAC3C,+DAA6C;AAC7C,4DAA0C;AAC1C,8DAA4C;AAC5C,6DAA2C;AAC3C,+DAA6C;AAC7C,4DAA0C;AAC1C,8DAA4C"}
@@ -1,9 +0,0 @@
1
- import type { AgentOpportunityProposalV1, DecisionCandidateV1, OpportunityAggregateStatusV1 } from './proactive-decision.types';
2
- import { type CognitionValidationResultV1 } from './cognitive-policy.schemas';
3
- import type { AnySchemaObject } from 'ajv';
4
- export declare const decisionCandidateSchema: AnySchemaObject;
5
- export declare const agentOpportunityProposalSchema: AnySchemaObject;
6
- export declare const OPPORTUNITY_STATUS_TRANSITIONS: Readonly<Record<OpportunityAggregateStatusV1, readonly OpportunityAggregateStatusV1[]>>;
7
- export declare function canTransitionOpportunityStatus(from: OpportunityAggregateStatusV1, to: OpportunityAggregateStatusV1): boolean;
8
- export declare function validateDecisionCandidate(value: unknown): CognitionValidationResultV1<DecisionCandidateV1>;
9
- export declare function validateOpportunityProposal(value: unknown): CognitionValidationResultV1<AgentOpportunityProposalV1>;
@@ -1,170 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OPPORTUNITY_STATUS_TRANSITIONS = exports.agentOpportunityProposalSchema = exports.decisionCandidateSchema = void 0;
4
- exports.canTransitionOpportunityStatus = canTransitionOpportunityStatus;
5
- exports.validateDecisionCandidate = validateDecisionCandidate;
6
- exports.validateOpportunityProposal = validateOpportunityProposal;
7
- const cognitive_policy_schemas_1 = require("./cognitive-policy.schemas");
8
- exports.decisionCandidateSchema = {
9
- $schema: 'https://json-schema.org/draft/2020-12/schema',
10
- $id: 'schema://nexusclaw/decision-candidate/v1',
11
- type: 'object',
12
- additionalProperties: false,
13
- required: [
14
- 'candidateId',
15
- 'objectiveCodes',
16
- 'target',
17
- 'expectedImpact',
18
- 'estimatedCost',
19
- 'uncertainty',
20
- 'assumptions',
21
- 'requiredEvidence',
22
- 'riskSignals',
23
- 'stopAlternative',
24
- ],
25
- properties: {
26
- candidateId: { type: 'string', minLength: 1 },
27
- objectiveCodes: { type: 'array', items: { type: 'string' } },
28
- target: { type: 'object' },
29
- canonicalInputHash: { type: 'string' },
30
- redactedInputPreview: { type: 'string' },
31
- expectedImpact: { type: 'object' },
32
- estimatedCost: { type: 'object' },
33
- uncertainty: { type: 'number', minimum: 0, maximum: 1 },
34
- assumptions: { type: 'array', items: { type: 'string' } },
35
- requiredEvidence: { type: 'array' },
36
- riskSignals: { type: 'array', items: { type: 'string' } },
37
- stopAlternative: { enum: ['no_action', 'ask', 'handoff'] },
38
- },
39
- };
40
- exports.agentOpportunityProposalSchema = {
41
- $schema: 'https://json-schema.org/draft/2020-12/schema',
42
- $id: 'schema://nexusclaw/agent-opportunity-proposal/v1',
43
- type: 'object',
44
- additionalProperties: false,
45
- required: [
46
- 'schemaVersion',
47
- 'proposalId',
48
- 'workspaceId',
49
- 'agentId',
50
- 'agentVersionId',
51
- 'releaseSetId',
52
- 'cognitivePolicyDigest',
53
- 'wakeId',
54
- 'goalGapAssessmentId',
55
- 'selectedCandidate',
56
- 'valueAssessment',
57
- 'stateFingerprint',
58
- 'decisionKeyHash',
59
- 'expiresAt',
60
- 'createdAt',
61
- 'digest',
62
- ],
63
- properties: {
64
- schemaVersion: { const: 'agent-opportunity-proposal/v1' },
65
- proposalId: { type: 'string', minLength: 1 },
66
- workspaceId: { type: 'string', minLength: 1 },
67
- agentId: { type: 'string', minLength: 1 },
68
- agentVersionId: { type: 'string', minLength: 1 },
69
- releaseSetId: { type: 'string', minLength: 1 },
70
- cognitivePolicyDigest: { type: 'string' },
71
- wakeId: { type: 'string', minLength: 1 },
72
- goalGapAssessmentId: { type: 'string', minLength: 1 },
73
- selectedCandidate: exports.decisionCandidateSchema,
74
- valueAssessment: { type: 'object' },
75
- stateFingerprint: { type: 'string' },
76
- decisionKeyHash: { type: 'string' },
77
- expiresAt: { type: 'string' },
78
- createdAt: { type: 'string' },
79
- digest: { type: 'string' },
80
- },
81
- };
82
- exports.OPPORTUNITY_STATUS_TRANSITIONS = {
83
- observed: ['recommended', 'no_op', 'failed'],
84
- recommended: ['confirmed', 'rejected', 'stale', 'expired'],
85
- confirmed: ['approval_requested', 'dispatched', 'stale', 'failed'],
86
- approval_requested: ['dispatched', 'stale', 'expired', 'failed'],
87
- dispatched: [],
88
- stale: [],
89
- expired: [],
90
- rejected: [],
91
- no_op: [],
92
- failed: [],
93
- };
94
- function canTransitionOpportunityStatus(from, to) {
95
- return exports.OPPORTUNITY_STATUS_TRANSITIONS[from].includes(to);
96
- }
97
- function validateDecisionCandidate(value) {
98
- const issues = (0, cognitive_policy_schemas_1.findForbiddenCognitionPayload)(value);
99
- const candidate = value;
100
- if (!candidate ||
101
- !candidate.candidateId ||
102
- !Array.isArray(candidate.objectiveCodes) ||
103
- !candidate.target ||
104
- typeof candidate.uncertainty !== 'number') {
105
- issues.push({
106
- code: 'DECISION_CANDIDATE_INVALID',
107
- jsonPath: '/',
108
- message: 'Candidate identity, objectives, target, and uncertainty are required',
109
- });
110
- }
111
- const rawTarget = candidate?.target;
112
- if (rawTarget && 'functionRevisionId' in rawTarget) {
113
- issues.push({
114
- code: 'COGNITION_FORBIDDEN_FIELD',
115
- jsonPath: '/target/functionRevisionId',
116
- message: 'The release-scoped registry owns function revision resolution',
117
- });
118
- }
119
- if (candidate?.target?.kind === 'tool' &&
120
- (!candidate.target.releaseSetId ||
121
- !candidate.target.toolName ||
122
- !candidate.target.descriptorHash)) {
123
- issues.push({
124
- code: 'DECISION_TARGET_NOT_EXACT',
125
- jsonPath: '/target',
126
- message: 'Tool target requires release set, canonical tool name, and descriptor hash',
127
- });
128
- }
129
- if (candidate?.target?.kind === 'flow' &&
130
- (!candidate.target.releaseSetId ||
131
- !candidate.target.canonicalKey ||
132
- !candidate.target.flowVersionId ||
133
- !candidate.target.checksum)) {
134
- issues.push({
135
- code: 'DECISION_TARGET_NOT_EXACT',
136
- jsonPath: '/target',
137
- message: 'Flow target requires exact release and revision identity',
138
- });
139
- }
140
- return issues.length
141
- ? { valid: false, issues }
142
- : { valid: true, value: value, issues };
143
- }
144
- function validateOpportunityProposal(value) {
145
- const issues = (0, cognitive_policy_schemas_1.findForbiddenCognitionPayload)(value);
146
- const proposal = value;
147
- if (!proposal ||
148
- proposal.schemaVersion !== 'agent-opportunity-proposal/v1' ||
149
- !proposal.workspaceId ||
150
- !proposal.agentVersionId ||
151
- !proposal.releaseSetId ||
152
- !proposal.stateFingerprint ||
153
- !proposal.decisionKeyHash) {
154
- issues.push({
155
- code: 'OPPORTUNITY_PROPOSAL_INVALID',
156
- jsonPath: '/',
157
- message: 'Proposal identity and exact state/release lineage are required',
158
- });
159
- }
160
- if (proposal?.selectedCandidate) {
161
- issues.push(...validateDecisionCandidate(proposal.selectedCandidate).issues.map((entry) => ({
162
- ...entry,
163
- jsonPath: `/selectedCandidate${entry.jsonPath}`,
164
- })));
165
- }
166
- return issues.length
167
- ? { valid: false, issues }
168
- : { valid: true, value: value, issues };
169
- }
170
- //# sourceMappingURL=proactive-decision.schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proactive-decision.schemas.js","sourceRoot":"","sources":["../../src/ai-employee-cognition/proactive-decision.schemas.ts"],"names":[],"mappings":";;;AAsGA,wEAKC;AAED,8DAsDC;AAED,kEA+BC;AA/LD,yEAGoC;AAGvB,QAAA,uBAAuB,GAAoB;IACtD,OAAO,EAAE,8CAA8C;IACvD,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE;QACR,aAAa;QACb,gBAAgB;QAChB,QAAQ;QACR,gBAAgB;QAChB,eAAe;QACf,aAAa;QACb,aAAa;QACb,kBAAkB;QAClB,aAAa;QACb,iBAAiB;KAClB;IACD,UAAU,EAAE;QACV,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QAC7C,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QAC5D,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,kBAAkB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtC,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxC,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClC,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACvD,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;QACzD,gBAAgB,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QACnC,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAA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,MAAM,EAAE,CAAC;AACnE,CAAC;AAED,SAAgB,2BAA2B,CACzC,KAAc;IAEd,MAAM,MAAM,GAAG,IAAA,wDAA6B,EAAC,KAAK,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,KAAmD,CAAC;IACrE,IACE,CAAC,QAAQ;QACT,QAAQ,CAAC,aAAa,KAAK,+BAA+B;QAC1D,CAAC,QAAQ,CAAC,WAAW;QACrB,CAAC,QAAQ,CAAC,cAAc;QACxB,CAAC,QAAQ,CAAC,YAAY;QACtB,CAAC,QAAQ,CAAC,gBAAgB;QAC1B,CAAC,QAAQ,CAAC,eAAe,EACzB,CAAC;QACD,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,8BAA8B;YACpC,QAAQ,EAAE,GAAG;YACb,OAAO,EAAE,gEAAgE;SAC1E,CAAC,CAAC;IACL,CAAC;IACD,IAAI,QAAQ,EAAE,iBAAiB,EAAE,CAAC;QAChC,MAAM,CAAC,IAAI,CACT,GAAG,yBAAyB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YAC9E,GAAG,KAAK;YACR,QAAQ,EAAE,qBAAqB,KAAK,CAAC,QAAQ,EAAE;SAChD,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,MAAM;QAClB,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;QAC1B,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAmC,EAAE,MAAM,EAAE,CAAC;AAC1E,CAAC"}
@@ -1,98 +0,0 @@
1
- import type { TypedEvidenceRefV1, VersionedRefV1 } from './cognitive-policy.types';
2
- import type { Sha256Digest } from '../agent-executable-assets/canonical-hash';
3
- export interface ProactiveWakeSignalV1 {
4
- schemaVersion: 'proactive-wake-signal/v1';
5
- wakeId: string;
6
- workspaceId: string;
7
- agentId: string;
8
- source: 'human_event' | 'business_event' | 'outcome_change' | 'approval_change' | 'commitment_due' | 'heartbeat';
9
- sourceRef: string;
10
- causalRootId: string;
11
- parentDecisionId?: string;
12
- emittedAt: string;
13
- digest: Sha256Digest;
14
- }
15
- export interface GoalGapAssessmentV1 {
16
- schemaVersion: 'goal-gap-assessment/v1';
17
- assessmentId: string;
18
- wakeId: string;
19
- goalSnapshotRef: VersionedRefV1;
20
- worldStateRef: VersionedRefV1;
21
- gaps: Array<{
22
- objectiveCode: string;
23
- currentValue?: number;
24
- targetValue?: number;
25
- severity: number;
26
- evidenceRefs: TypedEvidenceRefV1[];
27
- }>;
28
- noGapReason?: string;
29
- stateFingerprint: Sha256Digest;
30
- digest: Sha256Digest;
31
- }
32
- export type OpportunityTargetV1 = {
33
- kind: 'tool';
34
- releaseSetId: string;
35
- toolName: string;
36
- descriptorHash: Sha256Digest;
37
- } | {
38
- kind: 'flow';
39
- releaseSetId: string;
40
- canonicalKey: string;
41
- flowVersionId: string;
42
- checksum: Sha256Digest;
43
- } | {
44
- kind: 'no_action';
45
- } | {
46
- kind: 'human_handoff';
47
- };
48
- export interface DecisionCandidateV1 {
49
- candidateId: string;
50
- objectiveCodes: string[];
51
- target: OpportunityTargetV1;
52
- canonicalInputHash?: Sha256Digest;
53
- redactedInputPreview?: string;
54
- expectedImpact: Record<string, number>;
55
- estimatedCost: {
56
- tokens?: number;
57
- minorUnits?: number;
58
- latencyMs?: number;
59
- humanEffort?: number;
60
- };
61
- uncertainty: number;
62
- assumptions: string[];
63
- requiredEvidence: TypedEvidenceRefV1[];
64
- riskSignals: string[];
65
- stopAlternative: 'no_action' | 'ask' | 'handoff';
66
- }
67
- export interface ActionValueAssessmentV1 {
68
- candidateId: string;
69
- hardGate: 'passed' | 'blocked' | 'needs_review';
70
- criterionDelta: Record<string, number>;
71
- confidence: number;
72
- uncertainty: number;
73
- effectiveRisk: 'L0' | 'L1' | 'L2' | 'L3' | 'L4';
74
- recommendedDisposition: 'observe' | 'recommend' | 'confirm' | 'bounded_execute' | 'handoff' | 'reject';
75
- rationaleSummary: string;
76
- policyVersion: string;
77
- providerStamp?: string;
78
- }
79
- export interface AgentOpportunityProposalV1 {
80
- schemaVersion: 'agent-opportunity-proposal/v1';
81
- proposalId: string;
82
- workspaceId: string;
83
- agentId: string;
84
- agentVersionId: string;
85
- releaseSetId: string;
86
- cognitivePolicyDigest: Sha256Digest;
87
- wakeId: string;
88
- goalGapAssessmentId: string;
89
- selectedCandidate: DecisionCandidateV1;
90
- valueAssessment: ActionValueAssessmentV1;
91
- stateFingerprint: Sha256Digest;
92
- decisionKeyHash: Sha256Digest;
93
- expiresAt: string;
94
- createdAt: string;
95
- digest: Sha256Digest;
96
- }
97
- export type OpportunityAggregateStatusV1 = 'observed' | 'recommended' | 'confirmed' | 'approval_requested' | 'dispatched' | 'stale' | 'expired' | 'rejected' | 'no_op' | 'failed';
98
- export type OpportunityUiTransitionV1 = 'confirm_once' | 'reject' | 'open_execution' | 'open_tool_approval';
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=proactive-decision.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proactive-decision.types.js","sourceRoot":"","sources":["../../src/ai-employee-cognition/proactive-decision.types.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- import type { EvaluationLifecycleV1, SuccessEvaluationRecordV1 } from './success-evaluation.types';
2
- import type { EmployeeSuccessContractV1, TypedEvidenceRefV1 } from './cognitive-policy.types';
3
- import type { AnySchemaObject } from 'ajv';
4
- export declare const successEvaluationRecordSchema: AnySchemaObject;
5
- export declare const EVALUATION_LIFECYCLE_TRANSITIONS: Readonly<Record<EvaluationLifecycleV1, readonly EvaluationLifecycleV1[]>>;
6
- export declare function canTransitionEvaluationLifecycle(from: EvaluationLifecycleV1, to: EvaluationLifecycleV1): boolean;
7
- export interface CriterionEvidenceInputV1 {
8
- criterionCode: string;
9
- status: 'passed' | 'failed' | 'partial' | 'missing' | 'not_due';
10
- normalizedScore?: number;
11
- evidenceRefs: TypedEvidenceRefV1[];
12
- confidence: number;
13
- }
14
- export declare function scoreSuccessEvaluationVector(input: {
15
- contract: EmployeeSuccessContractV1;
16
- criteria: CriterionEvidenceInputV1[];
17
- laggingWindowComplete: boolean;
18
- requiredHumanReviewComplete: boolean;
19
- }): Pick<SuccessEvaluationRecordV1, 'lifecycle' | 'decision' | 'hardGatePassed' | 'softUtility' | 'evidenceCompleteness'> & {
20
- effectiveNormalizedWeights: Record<string, number>;
21
- };