@dev-ecosystem/core 0.1.0 → 0.2.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/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +424 -4
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/workflow.schema.json +287 -0
- package/dist/schemas/workflow.schema.zod.d.ts +866 -2
- package/dist/schemas/workflow.schema.zod.d.ts.map +1 -1
- package/dist/schemas/workflow.schema.zod.js +249 -0
- package/dist/schemas/workflow.schema.zod.js.map +1 -1
- package/dist/types/adapter.types.d.ts +292 -0
- package/dist/types/adapter.types.d.ts.map +1 -1
- package/dist/types/adapter.types.js +213 -1
- package/dist/types/adapter.types.js.map +1 -1
- package/dist/types/global.types.d.ts +12 -0
- package/dist/types/global.types.d.ts.map +1 -1
- package/dist/types/global.types.js +14 -1
- package/dist/types/global.types.js.map +1 -1
- package/dist/types/workflow.enums.d.ts +275 -0
- package/dist/types/workflow.enums.d.ts.map +1 -0
- package/dist/types/workflow.enums.js +317 -0
- package/dist/types/workflow.enums.js.map +1 -0
- package/dist/types/{workflow.types.d.ts → workflow.interfaces.d.ts} +242 -152
- package/dist/types/workflow.interfaces.d.ts.map +1 -0
- package/dist/types/workflow.interfaces.js +19 -0
- package/dist/types/workflow.interfaces.js.map +1 -0
- package/dist/types/workflow.type.d.ts +141 -0
- package/dist/types/workflow.type.d.ts.map +1 -0
- package/dist/types/workflow.type.js +6 -0
- package/dist/types/workflow.type.js.map +1 -0
- package/package.json +13 -2
- package/dist/types/workflow.types.d.ts.map +0 -1
- package/dist/types/workflow.types.js +0 -90
- package/dist/types/workflow.types.js.map +0 -1
|
@@ -328,6 +328,196 @@
|
|
|
328
328
|
},
|
|
329
329
|
"additionalProperties": true
|
|
330
330
|
},
|
|
331
|
+
"identity": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"description": "Workflow identity and lineage tracking. Reserved for traceability and forking workflows.",
|
|
334
|
+
"properties": {
|
|
335
|
+
"workflowId": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"description": "Unique workflow identifier",
|
|
338
|
+
"examples": ["wf-uuid-1234"]
|
|
339
|
+
},
|
|
340
|
+
"parentWorkflow": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"description": "Parent workflow ID if this was forked",
|
|
343
|
+
"examples": ["wf-uuid-0001"]
|
|
344
|
+
},
|
|
345
|
+
"source": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"description": "Workflow source information",
|
|
348
|
+
"properties": {
|
|
349
|
+
"type": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"enum": ["marketplace", "local", "generated", "api"],
|
|
352
|
+
"description": "Source type"
|
|
353
|
+
},
|
|
354
|
+
"ref": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"description": "Source reference (e.g., marketplace URL)",
|
|
357
|
+
"examples": ["orbyt.marketplace/image-pipeline@1.2.0"]
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"execution": {
|
|
364
|
+
"type": "object",
|
|
365
|
+
"description": "Execution strategy and runtime configuration. Reserved for multi-environment support.",
|
|
366
|
+
"properties": {
|
|
367
|
+
"mode": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"enum": ["local", "docker", "remote", "distributed"],
|
|
370
|
+
"description": "Execution mode"
|
|
371
|
+
},
|
|
372
|
+
"isolation": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"enum": ["process", "container", "vm"],
|
|
375
|
+
"description": "Isolation level"
|
|
376
|
+
},
|
|
377
|
+
"priority": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"enum": ["low", "normal", "high"],
|
|
380
|
+
"description": "Execution priority"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"outputsSchema": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"description": "Schema definition for workflow outputs. Reserved for compile-time validation.",
|
|
387
|
+
"additionalProperties": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"type": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"enum": ["string", "number", "boolean", "array", "object"]
|
|
393
|
+
},
|
|
394
|
+
"required": {
|
|
395
|
+
"type": "boolean"
|
|
396
|
+
},
|
|
397
|
+
"description": {
|
|
398
|
+
"type": "string"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"telemetry": {
|
|
404
|
+
"type": "object",
|
|
405
|
+
"description": "Telemetry and observability controls. Reserved for privacy controls.",
|
|
406
|
+
"properties": {
|
|
407
|
+
"enabled": {
|
|
408
|
+
"type": "boolean",
|
|
409
|
+
"description": "Enable telemetry"
|
|
410
|
+
},
|
|
411
|
+
"level": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"enum": ["minimal", "standard", "verbose"],
|
|
414
|
+
"description": "Telemetry level"
|
|
415
|
+
},
|
|
416
|
+
"redact": {
|
|
417
|
+
"type": "array",
|
|
418
|
+
"items": { "type": "string" },
|
|
419
|
+
"description": "Fields to redact from logs",
|
|
420
|
+
"examples": [["secrets.*", "inputs.password"]]
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"accounting": {
|
|
425
|
+
"type": "object",
|
|
426
|
+
"description": "Cost and usage accounting. Reserved for monetization.",
|
|
427
|
+
"properties": {
|
|
428
|
+
"billable": {
|
|
429
|
+
"type": "boolean",
|
|
430
|
+
"description": "Whether execution is billable"
|
|
431
|
+
},
|
|
432
|
+
"unit": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"enum": ["execution", "step", "minute"],
|
|
435
|
+
"description": "Billing unit"
|
|
436
|
+
},
|
|
437
|
+
"tags": {
|
|
438
|
+
"type": "object",
|
|
439
|
+
"additionalProperties": { "type": "string" },
|
|
440
|
+
"description": "Custom accounting tags",
|
|
441
|
+
"examples": [{ "project": "demo", "customer": "internal" }]
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"compatibility": {
|
|
446
|
+
"type": "object",
|
|
447
|
+
"description": "Version compatibility and engine constraints. Reserved for safe upgrades.",
|
|
448
|
+
"properties": {
|
|
449
|
+
"engine": {
|
|
450
|
+
"type": "object",
|
|
451
|
+
"description": "Engine version requirements",
|
|
452
|
+
"properties": {
|
|
453
|
+
"min": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"description": "Minimum engine version",
|
|
456
|
+
"examples": ["0.4.0"]
|
|
457
|
+
},
|
|
458
|
+
"max": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"description": "Maximum engine version",
|
|
461
|
+
"examples": ["1.x"]
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"adapters": {
|
|
466
|
+
"type": "object",
|
|
467
|
+
"additionalProperties": { "type": "string" },
|
|
468
|
+
"description": "Required adapter versions",
|
|
469
|
+
"examples": [{ "cli.exec": ">=0.2.0" }]
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"failurePolicy": {
|
|
474
|
+
"type": "object",
|
|
475
|
+
"description": "Advanced failure handling semantics. Reserved for complex workflows.",
|
|
476
|
+
"properties": {
|
|
477
|
+
"onStepFailure": {
|
|
478
|
+
"type": "string",
|
|
479
|
+
"enum": ["retry", "skip", "rollback", "isolate", "abort"],
|
|
480
|
+
"description": "Action on step failure"
|
|
481
|
+
},
|
|
482
|
+
"onTimeout": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"enum": ["abort", "retry", "partial"],
|
|
485
|
+
"description": "Action on timeout"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
"rollback": {
|
|
490
|
+
"type": "object",
|
|
491
|
+
"description": "Rollback and compensation configuration. Reserved for transactional workflows.",
|
|
492
|
+
"properties": {
|
|
493
|
+
"enabled": {
|
|
494
|
+
"type": "boolean",
|
|
495
|
+
"description": "Enable rollback"
|
|
496
|
+
},
|
|
497
|
+
"strategy": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"enum": ["reverse", "custom"],
|
|
500
|
+
"description": "Rollback strategy"
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"governance": {
|
|
505
|
+
"type": "object",
|
|
506
|
+
"description": "Governance and team metadata. Reserved for enterprise features.",
|
|
507
|
+
"properties": {
|
|
508
|
+
"reviewers": {
|
|
509
|
+
"type": "array",
|
|
510
|
+
"items": { "type": "string" },
|
|
511
|
+
"description": "Required reviewers",
|
|
512
|
+
"examples": [["team-lead", "security-team"]]
|
|
513
|
+
},
|
|
514
|
+
"approvalRequired": {
|
|
515
|
+
"type": "boolean",
|
|
516
|
+
"description": "Whether approval is required before execution"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"additionalProperties": true
|
|
520
|
+
},
|
|
331
521
|
"workflow": {
|
|
332
522
|
"type": "object",
|
|
333
523
|
"required": ["steps"],
|
|
@@ -436,6 +626,61 @@
|
|
|
436
626
|
"additionalProperties": {
|
|
437
627
|
"type": "string"
|
|
438
628
|
}
|
|
629
|
+
},
|
|
630
|
+
"usage": {
|
|
631
|
+
"type": "object",
|
|
632
|
+
"description": "Step-level usage tracking override. Allows per-step billing customization.",
|
|
633
|
+
"properties": {
|
|
634
|
+
"billable": {
|
|
635
|
+
"type": "boolean",
|
|
636
|
+
"description": "Override workflow billable setting"
|
|
637
|
+
},
|
|
638
|
+
"unit": {
|
|
639
|
+
"type": "string",
|
|
640
|
+
"description": "Billing unit (e.g., 'request', 'execution', 'second')",
|
|
641
|
+
"examples": ["request", "execution", "second", "minute"]
|
|
642
|
+
},
|
|
643
|
+
"weight": {
|
|
644
|
+
"type": "number",
|
|
645
|
+
"minimum": 0,
|
|
646
|
+
"description": "Cost multiplier (default: 1)",
|
|
647
|
+
"default": 1
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
"outputsSchema": {
|
|
652
|
+
"type": "object",
|
|
653
|
+
"description": "Schema definition for step outputs. Reserved for validation.",
|
|
654
|
+
"additionalProperties": {
|
|
655
|
+
"type": "object",
|
|
656
|
+
"properties": {
|
|
657
|
+
"type": {
|
|
658
|
+
"type": "string",
|
|
659
|
+
"enum": ["string", "number", "boolean", "array", "object"]
|
|
660
|
+
},
|
|
661
|
+
"required": {
|
|
662
|
+
"type": "boolean"
|
|
663
|
+
},
|
|
664
|
+
"description": {
|
|
665
|
+
"type": "string"
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"rollback": {
|
|
671
|
+
"type": "object",
|
|
672
|
+
"description": "Step-level rollback logic. Reserved for compensation.",
|
|
673
|
+
"properties": {
|
|
674
|
+
"uses": {
|
|
675
|
+
"type": "string",
|
|
676
|
+
"description": "Rollback action"
|
|
677
|
+
},
|
|
678
|
+
"with": {
|
|
679
|
+
"type": "object",
|
|
680
|
+
"description": "Rollback input parameters",
|
|
681
|
+
"additionalProperties": true
|
|
682
|
+
}
|
|
683
|
+
}
|
|
439
684
|
}
|
|
440
685
|
}
|
|
441
686
|
}
|
|
@@ -479,6 +724,48 @@
|
|
|
479
724
|
}
|
|
480
725
|
}
|
|
481
726
|
}
|
|
727
|
+
},
|
|
728
|
+
"usage": {
|
|
729
|
+
"type": "object",
|
|
730
|
+
"description": "Usage tracking configuration. Engine counts automations and steps, bridges transport to website. Production-ready: minimal, final.",
|
|
731
|
+
"properties": {
|
|
732
|
+
"track": {
|
|
733
|
+
"type": "boolean",
|
|
734
|
+
"description": "Enable usage tracking for this workflow",
|
|
735
|
+
"default": true
|
|
736
|
+
},
|
|
737
|
+
"scope": {
|
|
738
|
+
"type": "string",
|
|
739
|
+
"description": "Aggregation scope for usage counting",
|
|
740
|
+
"enum": ["ecosystem", "component", "workflow"],
|
|
741
|
+
"examples": ["ecosystem", "component", "workflow"]
|
|
742
|
+
},
|
|
743
|
+
"category": {
|
|
744
|
+
"type": "string",
|
|
745
|
+
"description": "Usage category for billing classification",
|
|
746
|
+
"enum": ["automation", "pipeline", "batch", "job"],
|
|
747
|
+
"examples": ["automation", "pipeline", "batch", "job"]
|
|
748
|
+
},
|
|
749
|
+
"billable": {
|
|
750
|
+
"type": "boolean",
|
|
751
|
+
"description": "Whether this workflow is billable",
|
|
752
|
+
"default": true
|
|
753
|
+
},
|
|
754
|
+
"product": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"description": "Product/component identifier for ecosystem aggregation",
|
|
757
|
+
"enum": ["orbyt", "mediaproc", "devforge", "vaulta", "dev-companion"],
|
|
758
|
+
"examples": ["orbyt", "mediaproc", "devforge"]
|
|
759
|
+
},
|
|
760
|
+
"tags": {
|
|
761
|
+
"type": "array",
|
|
762
|
+
"description": "Tags for analytics and grouping",
|
|
763
|
+
"items": {
|
|
764
|
+
"type": "string"
|
|
765
|
+
},
|
|
766
|
+
"examples": [["production", "media-processing"]]
|
|
767
|
+
}
|
|
768
|
+
}
|
|
482
769
|
}
|
|
483
770
|
},
|
|
484
771
|
"additionalProperties": false
|