@baselineos/autonomy 0.1.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/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@baselineos/autonomy",
3
+ "version": "0.1.0",
4
+ "description": "Baseline Autonomy — Autonomous AI Operations Layer",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "dependencies": {
16
+ "@baselineos/protocol-core": "1.0.0"
17
+ },
18
+ "devDependencies": {
19
+ "tsup": "^8.0.0",
20
+ "typescript": "^5.7.0",
21
+ "vitest": "^2.1.0"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "scripts": {
27
+ "build": "tsup src/index.ts --format esm --dts",
28
+ "dev": "tsup src/index.ts --format esm --dts --watch",
29
+ "test": "vitest run",
30
+ "lint": "eslint src/",
31
+ "typecheck": "tsc --noEmit",
32
+ "clean": "rm -rf dist"
33
+ }
34
+ }
@@ -0,0 +1,24 @@
1
+ import { describe, it, expect, afterEach } from 'vitest';
2
+ import { BaselineAutonomySystem } from '../index.js';
3
+
4
+ describe('autonomy', () => {
5
+ let autonomy: BaselineAutonomySystem;
6
+
7
+ afterEach(async () => {
8
+ if (autonomy) {
9
+ await autonomy.shutdown();
10
+ }
11
+ });
12
+
13
+ it('should instantiate BaselineAutonomySystem', () => {
14
+ autonomy = new BaselineAutonomySystem();
15
+ expect(autonomy).toBeDefined();
16
+ });
17
+
18
+ it('should report system status', () => {
19
+ autonomy = new BaselineAutonomySystem();
20
+ const status = autonomy.getSystemStatus();
21
+ expect(status).toBeDefined();
22
+ expect(status.status).toBeDefined();
23
+ });
24
+ });
package/src/index.ts ADDED
@@ -0,0 +1,62 @@
1
+ export { BaselineAutonomySystem, AutonomousAgent } from './system.js';
2
+
3
+ export type {
4
+ SafetyLevel,
5
+ AgentStatus,
6
+ TaskType,
7
+ AgentConfig,
8
+ AgentTask,
9
+ DecisionOption,
10
+ TaskResult,
11
+ PerformanceMetrics,
12
+ LearningModel,
13
+ ViolationFlag,
14
+ SafetyAlert,
15
+ SafetyProtocol,
16
+ AgentType,
17
+ AgentStatusReport,
18
+ SystemStatus,
19
+ } from './system.js';
20
+
21
+ export { AgentLifecycleManager } from './lifecycle.js';
22
+
23
+ export type {
24
+ LifecycleStage,
25
+ AgentDeployment,
26
+ StageHistoryEntry,
27
+ ScalingPolicy,
28
+ RetirementPolicy,
29
+ HealthMonitor,
30
+ ThresholdViolation,
31
+ LifecycleStatus,
32
+ Alert,
33
+ } from './lifecycle.js';
34
+
35
+ export { BaselineAutonomyIntegration } from './integration.js';
36
+
37
+ export type {
38
+ MigrationMode,
39
+ IntegrationPoint,
40
+ MigrationComponentStatus,
41
+ ComparisonResult,
42
+ IntegrationStatus,
43
+ MigrationRecommendation,
44
+ } from './integration.js';
45
+
46
+ export { MastraAutonomyEngine, MastraAutonomousAgent } from './mastra-engine.js';
47
+
48
+ export type {
49
+ SafetyProtocol as MastraSafetyProtocol,
50
+ SafetyCheckResult,
51
+ SafetyMonitoringResult,
52
+ MastraAgentPerformanceMetrics,
53
+ AgentTask as MastraAgentTask,
54
+ TaskResult as MastraTaskResult,
55
+ ReasoningStep,
56
+ ReasoningResult,
57
+ CoordinationPlan,
58
+ CoordinationStep,
59
+ CoordinationResult,
60
+ EngineStatus,
61
+ AgentInfo,
62
+ } from './mastra-engine.js';