@ixo/editor 6.6.0 → 6.8.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/action-manifest.json +7 -7
- package/dist/{chunk-EULL3QTC.js → chunk-ABM3ZZIX.js} +442 -699
- package/dist/chunk-ABM3ZZIX.js.map +1 -0
- package/dist/{chunk-DZMEWZ5Z.js → chunk-VPMDJE6B.js} +2 -2
- package/dist/{chunk-QXSJ2QRD.js → chunk-ZE2EEZH6.js} +3013 -2467
- package/dist/chunk-ZE2EEZH6.js.map +1 -0
- package/dist/core/index.d.ts +178 -15
- package/dist/core/index.js +42 -2
- package/dist/core/index.js.map +1 -1
- package/dist/{graphql-client-D9Xzs0mM.d.ts → graphql-client-TT4tb5P6.d.ts} +1 -1
- package/dist/{index-C70b-Yd0.d.ts → index-D0S6jY7O.d.ts} +30 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/mantine/index.d.ts +28 -4
- package/dist/mantine/index.js +4 -2
- package/dist/mantine/index.js.map +1 -1
- package/dist/nodeContext-C-BsYuYi.d.ts +45 -0
- package/dist/{store-BS2HJhJR.d.ts → store-BIt_Vdjw.d.ts} +3 -5
- package/package.json +1 -1
- package/dist/chunk-EULL3QTC.js.map +0 -1
- package/dist/chunk-QXSJ2QRD.js.map +0 -1
- /package/dist/{chunk-DZMEWZ5Z.js.map → chunk-VPMDJE6B.js.map} +0 -0
package/dist/core/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a5 as ActionDefinition, a6 as ActionEventDefinition, a7 as OutputSchemaField, a8 as ActionServices, a9 as ActionProofDeclaration, aa as RunRecordDetails, ab as CompiledBlock, v as CompiledFlow, ac as CompiledEdge, Z as FlowAgentCommand, $ as FlowAgentContext, ad as ActionHandlers, _ as FlowAgentCommandResult, a0 as FlowAgentExecutor, a2 as FlowAgentNodeSnapshot, ae as FlowAgentBlockerCause, a3 as FlowAgentPublicNodeState } from '../store-
|
|
2
|
-
export { aP as AcquireFlowAgentLeaseParams, ag as ActionContext, at as ActionResult, b1 as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, ak as BidService, X as BuildFlowAgentContextParams, ar as CarbonService, al as ClaimService, am as CollectionService, an as CollectionUsersService, b4 as CompiledFlowNode, C as CompilerRegistry, b0 as ConditionRef, aQ as CreateAgentCommandParams, ai as EmailService, as as EntityService, aR as EvaluateFlowAgentPolicyParams, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, aH as FailedListenerRun, Y as FlowAgentActor, aU as FlowAgentCommandBase, aV as FlowAgentCommandStatus, aW as FlowAgentCommandType, a1 as FlowAgentLease, aX as FlowAgentLedgerEvent, aY as FlowAgentLedgerEventType, aZ as FlowAgentMaps, aS as FlowAgentOrchestratorOptions, a_ as FlowAgentPolicyDecision, a$ as FlowAgentRunPhase, x as FlowAgentService, aT as FlowAgentServiceOptions, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, ah as HttpService, ap as IntegrationsService, ao as MatrixCredentialService, M as MergeResult, N as NodeActionResult, aj as NotifyService, aq as OracleService, aG as PendingInvocation, aF as RUN_RECORD_AUDIT_TYPE, R as ReadFlowOptions, q as ReadFlowResult, b3 as RuntimeRef, S as SetupFlowOptions, p as SetupFlowResult, b2 as TTLConstraint, b5 as TriggerSpec, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, au as appendRunRecord, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, aI as canMatches, G as cleanupExpiredFlowAgentLeases, af as clearRuntimeForTemplateClone, l as compileBaseUcanFlow, aJ as computeAgentCommandId, aE as computePendingInvocationId, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, aB as findFailedListenersForSourceRun, k as getActiveEditor, K as getFlowAgentMaps, ax as getOrCreateBlockPendingMap, aw as getPendingInvocationsMap, i as isAuthorized, aK as isCapabilityMatch, aL as isExternalMutation, b6 as isRuntimeRef, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, az as queuePendingInvocation, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, ay as readPendingInvocations, Q as readQueuedAgentCommands, av as readRunRecords, T as releaseFlowAgentLease, aA as removePendingInvocation, aC as replayFailedListenerRun, aM as requiredCapabilityForCommand, aN as resourceMatches, j as setActiveEditor, s as setupFlowFromBaseUcan, aD as snapshotInputRefs, U as tickFlowAgent, aO as updateAgentCommand, V as validateAgentCommand, W as validateFlowAgentLease } from '../store-
|
|
3
|
-
import { a4 as FlowNodeRuntimeState, j as StoredInvocation, a5 as IxoEditorType, f as UcanService, U as UcanDelegationStore, S as StoredDelegation, I as InvocationStore, a6 as FlowMetadata, a7 as FlowNode } from '../index-
|
|
4
|
-
export {
|
|
1
|
+
import { a5 as ActionDefinition, a6 as ActionEventDefinition, a7 as OutputSchemaField, a8 as ActionServices, a9 as ActionProofDeclaration, aa as RunRecordDetails, ab as CompiledBlock, v as CompiledFlow, ac as CompiledEdge, Z as FlowAgentCommand, $ as FlowAgentContext, ad as ActionHandlers, _ as FlowAgentCommandResult, a0 as FlowAgentExecutor, a2 as FlowAgentNodeSnapshot, ae as FlowAgentBlockerCause, a3 as FlowAgentPublicNodeState } from '../store-BIt_Vdjw.js';
|
|
2
|
+
export { aP as AcquireFlowAgentLeaseParams, ag as ActionContext, at as ActionResult, b1 as ActorConstraint, A as AuthorizationResult, B as BaseUcanFlow, ak as BidService, X as BuildFlowAgentContextParams, ar as CarbonService, al as ClaimService, am as CollectionService, an as CollectionUsersService, b4 as CompiledFlowNode, C as CompilerRegistry, b0 as ConditionRef, aQ as CreateAgentCommandParams, ai as EmailService, as as EntityService, aR as EvaluateFlowAgentPolicyParams, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, aH as FailedListenerRun, Y as FlowAgentActor, aU as FlowAgentCommandBase, aV as FlowAgentCommandStatus, aW as FlowAgentCommandType, a1 as FlowAgentLease, aX as FlowAgentLedgerEvent, aY as FlowAgentLedgerEventType, aZ as FlowAgentMaps, aS as FlowAgentOrchestratorOptions, a_ as FlowAgentPolicyDecision, a$ as FlowAgentRunPhase, x as FlowAgentService, aT as FlowAgentServiceOptions, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, ah as HttpService, ap as IntegrationsService, ao as MatrixCredentialService, M as MergeResult, N as NodeActionResult, aj as NotifyService, aq as OracleService, aG as PendingInvocation, aF as RUN_RECORD_AUDIT_TYPE, R as ReadFlowOptions, q as ReadFlowResult, b3 as RuntimeRef, S as SetupFlowOptions, p as SetupFlowResult, b2 as TTLConstraint, b5 as TriggerSpec, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, au as appendRunRecord, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, aI as canMatches, G as cleanupExpiredFlowAgentLeases, af as clearRuntimeForTemplateClone, l as compileBaseUcanFlow, aJ as computeAgentCommandId, aE as computePendingInvocationId, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, aB as findFailedListenersForSourceRun, k as getActiveEditor, K as getFlowAgentMaps, ax as getOrCreateBlockPendingMap, aw as getPendingInvocationsMap, i as isAuthorized, aK as isCapabilityMatch, aL as isExternalMutation, b6 as isRuntimeRef, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, az as queuePendingInvocation, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, ay as readPendingInvocations, Q as readQueuedAgentCommands, av as readRunRecords, T as releaseFlowAgentLease, aA as removePendingInvocation, aC as replayFailedListenerRun, aM as requiredCapabilityForCommand, aN as resourceMatches, j as setActiveEditor, s as setupFlowFromBaseUcan, aD as snapshotInputRefs, U as tickFlowAgent, aO as updateAgentCommand, V as validateAgentCommand, W as validateFlowAgentLease } from '../store-BIt_Vdjw.js';
|
|
3
|
+
import { a4 as FlowNodeRuntimeState, j as StoredInvocation, a5 as IxoEditorType, f as UcanService, U as UcanDelegationStore, S as StoredDelegation, I as InvocationStore, a6 as FlowMetadata, a7 as FlowNode } from '../index-D0S6jY7O.js';
|
|
4
|
+
export { ag as ActionReadBackMetadata, a9 as ClaimCollectionURI, an as CreateDelegationParams, ao as CreateInvocationParams, am as CreateRootDelegationParams, a8 as DID, D as DelegationChainValidationResult, k as DelegationGrant, aa as EvaluationStatus, ak as ExecutionWithInvocationResult, al as FindProofsResult, ac as FlowNodeAuthzExtension, ah as FlowNodeBase, ai as InvocationRequest, aj as InvocationResult, ab as LinkedClaim, ad as NodeServiceReport, ae as NodeState, af as ReadBackTerminalState, i as UcanCapability, g as UcanServiceConfig, h as UcanServiceHandlers, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService } from '../index-D0S6jY7O.js';
|
|
5
|
+
export { b as NODE_CONTEXT_MAP_NAME, c as NODE_CONTEXT_OVERRIDES_MAP_NAME, a as NodeContextFieldProvenance, N as NodeContextRecord, i as isNodeContextRecord } from '../nodeContext-C-BsYuYi.js';
|
|
5
6
|
import * as Y from 'yjs';
|
|
6
|
-
import { Doc } from 'yjs';
|
|
7
|
+
import { Doc, Map } from 'yjs';
|
|
7
8
|
import 'matrix-js-sdk';
|
|
8
9
|
import '@blocknote/core';
|
|
9
10
|
import 'react';
|
|
@@ -110,6 +111,63 @@ declare function getAllCanMappings(): ReadonlyArray<{
|
|
|
110
111
|
type: string;
|
|
111
112
|
}>;
|
|
112
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Service-verb `can` grammar for contracted helper oracles.
|
|
116
|
+
*
|
|
117
|
+
* The `can` vocabulary has two tiers:
|
|
118
|
+
*
|
|
119
|
+
* 1. **Action cans** (`<namespace>/<verb>`, e.g. `claim/evaluate`) — the
|
|
120
|
+
* identity of an execution contract. They map 1:1 to registry action types
|
|
121
|
+
* (see `canMapping.ts`) and name the thing the flow engine actually runs.
|
|
122
|
+
* 2. **Service cans** (`<action can>/<service verb>`, e.g.
|
|
123
|
+
* `claim/evaluate/report`) — the name of a contracted helper service scoped
|
|
124
|
+
* to an action. A helper oracle holding a service-can delegation does NOT
|
|
125
|
+
* execute the action; it performs a service about it (produce a report,
|
|
126
|
+
* format output, advise). The delegation is a **work contract** — inputs
|
|
127
|
+
* passed by value, receipt returned by value — not a grant of system
|
|
128
|
+
* authority over the action or its resources.
|
|
129
|
+
*
|
|
130
|
+
* Attenuation rule: flow-document authority covers `<can>/*` service verbs —
|
|
131
|
+
* a principal authorized over the flow may contract any service verb under the
|
|
132
|
+
* cans that flow uses. A narrow execution grant (e.g. `claim/evaluate` alone)
|
|
133
|
+
* does not expand into service verbs, and a service-verb grant (e.g.
|
|
134
|
+
* `claim/evaluate/report`) does not expand into execution.
|
|
135
|
+
*
|
|
136
|
+
* Generic action-agnostic services (e.g. `flow/diagnose`) are their own tier
|
|
137
|
+
* with their own vocabulary and are intentionally NOT expressible through this
|
|
138
|
+
* helper — `diagnose` is not a `ServiceVerb`.
|
|
139
|
+
*/
|
|
140
|
+
/** The closed set of service verbs a helper oracle can be contracted for. */
|
|
141
|
+
declare const SERVICE_VERBS: readonly ["report", "format", "advise"];
|
|
142
|
+
type ServiceVerb = (typeof SERVICE_VERBS)[number];
|
|
143
|
+
/**
|
|
144
|
+
* Compose a service can from an action can and a service verb.
|
|
145
|
+
*
|
|
146
|
+
* `serviceCan('claim/evaluate', 'report')` → `'claim/evaluate/report'`.
|
|
147
|
+
*
|
|
148
|
+
* @throws when `can` is not a valid action-can shape (`<namespace>/<verb>`),
|
|
149
|
+
* when `can` is already a service can (no service-of-service composition), or
|
|
150
|
+
* when `verb` is not in {@link SERVICE_VERBS} — the vocabulary is closed at
|
|
151
|
+
* runtime too, not only at the type level, so untyped callers (JS, decoded
|
|
152
|
+
* config) cannot mint capabilities outside it.
|
|
153
|
+
*/
|
|
154
|
+
declare function serviceCan(can: string, verb: ServiceVerb): string;
|
|
155
|
+
/**
|
|
156
|
+
* Parse a service can back into its action can and service verb.
|
|
157
|
+
*
|
|
158
|
+
* `parseServiceCan('claim/evaluate/report')` →
|
|
159
|
+
* `{ actionCan: 'claim/evaluate', verb: 'report' }`.
|
|
160
|
+
*
|
|
161
|
+
* Returns `null` when the last segment is not a known {@link ServiceVerb} or
|
|
162
|
+
* the prefix is not a valid action-can shape. Plain action cans
|
|
163
|
+
* (`claim/evaluate`) and generic-tier cans (`flow/diagnose`) both return
|
|
164
|
+
* `null` — they are not service cans.
|
|
165
|
+
*/
|
|
166
|
+
declare function parseServiceCan(value: string): {
|
|
167
|
+
actionCan: string;
|
|
168
|
+
verb: ServiceVerb;
|
|
169
|
+
} | null;
|
|
170
|
+
|
|
113
171
|
declare function buildServicesFromHandlers(handlers: any): ActionServices;
|
|
114
172
|
|
|
115
173
|
/**
|
|
@@ -523,17 +581,122 @@ interface ClassifyNodeStateInput {
|
|
|
523
581
|
* legacy behavior (completed = Done).
|
|
524
582
|
*/
|
|
525
583
|
completionVerification?: CompletionVerification;
|
|
526
|
-
/**
|
|
527
|
-
* Whether this block's action is a repeatable ('many') capability. A
|
|
528
|
-
* repeatable block that has fired (`completed`) is classified 'Active', not
|
|
529
|
-
* 'Done' — it is a standing capability, never a finished task. See
|
|
530
|
-
* `ActionDefinition.cardinality`.
|
|
531
|
-
*/
|
|
532
|
-
isRepeatable?: boolean;
|
|
533
584
|
}
|
|
534
585
|
declare function classifyBlockerCause(block: unknown, runtime: FlowNodeRuntimeState): FlowAgentBlockerCause | undefined;
|
|
535
|
-
declare function classifyNodeState({ block, runtime, now, pendingInvocationCount, completionVerification
|
|
536
|
-
declare function snapshotNode(block: unknown, runtime: FlowNodeRuntimeState, now: number, pendingInvocationCount?: number, completionVerification?: CompletionVerification
|
|
586
|
+
declare function classifyNodeState({ block, runtime, now, pendingInvocationCount, completionVerification }: ClassifyNodeStateInput): FlowAgentPublicNodeState;
|
|
587
|
+
declare function snapshotNode(block: unknown, runtime: FlowNodeRuntimeState, now: number, pendingInvocationCount?: number, completionVerification?: CompletionVerification): FlowAgentNodeSnapshot;
|
|
588
|
+
|
|
589
|
+
type XeroWorkKind = 'invoice.create' | 'payment.create';
|
|
590
|
+
type XeroWorkStatus = 'pending' | 'failed' | 'completed' | 'cancelled';
|
|
591
|
+
interface XeroWorkAttempt {
|
|
592
|
+
at: number;
|
|
593
|
+
byDid?: string;
|
|
594
|
+
payload: Record<string, any>;
|
|
595
|
+
error?: string;
|
|
596
|
+
result?: Record<string, any>;
|
|
597
|
+
}
|
|
598
|
+
interface XeroWorkSource {
|
|
599
|
+
claimId: string;
|
|
600
|
+
evaluationBlockId: string;
|
|
601
|
+
deedDid: string;
|
|
602
|
+
collectionId: string;
|
|
603
|
+
invoiceWorkItemId?: string;
|
|
604
|
+
}
|
|
605
|
+
interface XeroWorkProvenance {
|
|
606
|
+
createdAt: number;
|
|
607
|
+
createdByDid?: string;
|
|
608
|
+
templateBlockId: string;
|
|
609
|
+
templateInputsSnapshot?: unknown;
|
|
610
|
+
evaluationOutput?: Record<string, any>;
|
|
611
|
+
claimSnapshot?: Record<string, any>;
|
|
612
|
+
}
|
|
613
|
+
interface XeroWorkItem {
|
|
614
|
+
id: string;
|
|
615
|
+
kind: XeroWorkKind;
|
|
616
|
+
status: XeroWorkStatus;
|
|
617
|
+
assignedBlockId: string;
|
|
618
|
+
idempotencyKey: string;
|
|
619
|
+
source: XeroWorkSource;
|
|
620
|
+
originalPayload: Record<string, any>;
|
|
621
|
+
reviewPayload: Record<string, any>;
|
|
622
|
+
submittedPayload?: Record<string, any>;
|
|
623
|
+
provenance: XeroWorkProvenance;
|
|
624
|
+
attempts: XeroWorkAttempt[];
|
|
625
|
+
result?: Record<string, any>;
|
|
626
|
+
error?: {
|
|
627
|
+
message: string;
|
|
628
|
+
at: number;
|
|
629
|
+
};
|
|
630
|
+
completedAt?: number;
|
|
631
|
+
completedByDid?: string;
|
|
632
|
+
}
|
|
633
|
+
declare const XERO_WORK_ITEMS_MAP_NAME = "xeroWorkItems";
|
|
634
|
+
type XeroWorkItemFilter = {
|
|
635
|
+
kind?: XeroWorkKind;
|
|
636
|
+
assignedBlockId?: string;
|
|
637
|
+
statuses?: XeroWorkStatus[];
|
|
638
|
+
};
|
|
639
|
+
/**
|
|
640
|
+
* Resolve the work-items map from a raw Y.Doc. Flow-manager (and any other
|
|
641
|
+
* consumer holding the doc rather than an editor instance) goes through this.
|
|
642
|
+
*/
|
|
643
|
+
declare function getXeroWorkItemsMap(doc: Doc): Map<XeroWorkItem>;
|
|
644
|
+
declare function buildXeroInvoiceWorkKey(params: {
|
|
645
|
+
flowId: string;
|
|
646
|
+
evaluationBlockId: string;
|
|
647
|
+
claimId: string;
|
|
648
|
+
}): string;
|
|
649
|
+
declare function buildXeroPaymentWorkKey(params: {
|
|
650
|
+
flowId: string;
|
|
651
|
+
evaluationBlockId: string;
|
|
652
|
+
claimId: string;
|
|
653
|
+
invoiceWorkItemId: string;
|
|
654
|
+
}): string;
|
|
655
|
+
declare function findXeroWorkItems(map: Map<XeroWorkItem> | null | undefined, filter?: XeroWorkItemFilter): XeroWorkItem[];
|
|
656
|
+
/**
|
|
657
|
+
* Idempotencykey-deduped upsert. An existing item with the same
|
|
658
|
+
* `idempotencyKey` is merged (never resurrecting a `completed` item);
|
|
659
|
+
* otherwise the item is stored as given.
|
|
660
|
+
*/
|
|
661
|
+
declare function upsertXeroWorkItem(map: Map<XeroWorkItem> | null | undefined, next: XeroWorkItem): XeroWorkItem;
|
|
662
|
+
declare function updateXeroWorkReviewPayload(map: Map<XeroWorkItem> | null | undefined, itemId: string, reviewPayload: Record<string, any>): XeroWorkItem | null;
|
|
663
|
+
/**
|
|
664
|
+
* Record a failed attempt and flip the item to `failed`. Refuses to downgrade
|
|
665
|
+
* a `completed` item — a late/duplicate failure receipt must never erase a
|
|
666
|
+
* recorded success.
|
|
667
|
+
*/
|
|
668
|
+
declare function markXeroWorkFailed(map: Map<XeroWorkItem> | null | undefined, itemId: string, params: {
|
|
669
|
+
byDid?: string;
|
|
670
|
+
payload: Record<string, any>;
|
|
671
|
+
error: string;
|
|
672
|
+
at?: number;
|
|
673
|
+
}): XeroWorkItem | null;
|
|
674
|
+
/**
|
|
675
|
+
* Record a successful attempt and flip the item to `completed`. Idempotent:
|
|
676
|
+
* an already-completed item is returned unchanged — the first recorded result
|
|
677
|
+
* wins and is never overwritten.
|
|
678
|
+
*/
|
|
679
|
+
declare function markXeroWorkCompleted(map: Map<XeroWorkItem> | null | undefined, itemId: string, params: {
|
|
680
|
+
byDid?: string;
|
|
681
|
+
payload: Record<string, any>;
|
|
682
|
+
result: Record<string, any>;
|
|
683
|
+
at?: number;
|
|
684
|
+
}): XeroWorkItem | null;
|
|
685
|
+
declare function findXeroWorkItemsForEditor(editor: any, filter: XeroWorkItemFilter): XeroWorkItem[];
|
|
686
|
+
declare function upsertXeroWorkItemForEditor(editor: any, next: XeroWorkItem): XeroWorkItem;
|
|
687
|
+
declare function updateXeroWorkReviewPayloadForEditor(editor: any, itemId: string, reviewPayload: Record<string, any>): XeroWorkItem | null;
|
|
688
|
+
declare function markXeroWorkFailedForEditor(editor: any, itemId: string, params: {
|
|
689
|
+
byDid?: string;
|
|
690
|
+
payload: Record<string, any>;
|
|
691
|
+
error: string;
|
|
692
|
+
at?: number;
|
|
693
|
+
}): XeroWorkItem | null;
|
|
694
|
+
declare function markXeroWorkCompletedForEditor(editor: any, itemId: string, params: {
|
|
695
|
+
byDid?: string;
|
|
696
|
+
payload: Record<string, any>;
|
|
697
|
+
result: Record<string, any>;
|
|
698
|
+
at?: number;
|
|
699
|
+
}): XeroWorkItem | null;
|
|
537
700
|
|
|
538
701
|
/**
|
|
539
702
|
* Compute an IPFS-compatible CID for arbitrary content.
|
|
@@ -662,4 +825,4 @@ declare function createOracleInitFlowTemplate(): {
|
|
|
662
825
|
nodes: FlowNode[];
|
|
663
826
|
};
|
|
664
827
|
|
|
665
|
-
export { ActionDefinition, ActionHandlers, type ActionManifest, type ActionManifestEntry, ActionServices, type AddFlowNodeOptions, type BlockConditionInput, type ClassifyNodeStateInput, CompiledBlock, CompiledEdge, CompiledFlow, type CompletionVerification, type CompletionVerificationStatus, type EvaluatorOperator, type ExecuteFlowAgentCoreCommandOptions, type ExecuteQueuedFlowAgentCoreCommandsOptions, FlowAgentBlockerCause, FlowAgentCommand, FlowAgentCommandResult, FlowAgentContext, FlowAgentExecutor, FlowAgentNodeSnapshot, FlowAgentPublicNodeState, type FlowDocumentNode, type FlowDocumentRead, FlowNode, FlowNodeRuntimeState, type FlowVersionString, InvocationStore, LATEST_VERSION, type ManifestProofDeclaration, OutputSchemaField, PROOF_MISSING_CODE, type ProofValidationResult, RunRecordDetails, STEP_COMPLETED_EVENT, STEP_COMPLETED_EVENT_NAME, StoredDelegation, StoredInvocation, type TriggerResolutionContext, UcanDelegationStore, UcanService, VERSION_MANIFEST, type VersionPolicy, addFlowNode, buildBlockConditionsProp, buildServicesFromHandlers, canToType, classifyBlockerCause, classifyNodeState, computeCID, computeJsonCID, createOracleInitFlowTemplate, executeFlowAgentCoreCommand, executeQueuedFlowAgentCoreCommands, generateActionManifest, getAction, getActionByCan, getActionForBlock, getAliasEntries, getAllActions, getAllCanMappings, getEventsForBlock, getOutputSchemaForBlock, getVersionPolicy, hasAction, isTempUcanEnforcementDisabled, isVerifiedCompletion, isVersionAtLeast, oracleInitSurveySchema, readBlocksFromFragment, readFlowDocument, reconcilePendingInvocations, registerAction, removeBlockFromFragment, removeFlowNode, reorderFlowNodes, replaceBlockInFragment, resetStepRuntime, resolveRuntimeRefs, setBlockProps, setFormAnswers, setTempUcanEnforcementDisabled, snapshotNode, swapFlowBlocks, toEvaluatorOperator, typeToCan, updateNodeRuntime, validateActionProof, verifyCompletion, writeCompiledBlocksToFragment, writeRunRecordAndReconcile };
|
|
828
|
+
export { ActionDefinition, ActionHandlers, type ActionManifest, type ActionManifestEntry, ActionServices, type AddFlowNodeOptions, type BlockConditionInput, type ClassifyNodeStateInput, CompiledBlock, CompiledEdge, CompiledFlow, type CompletionVerification, type CompletionVerificationStatus, type EvaluatorOperator, type ExecuteFlowAgentCoreCommandOptions, type ExecuteQueuedFlowAgentCoreCommandsOptions, FlowAgentBlockerCause, FlowAgentCommand, FlowAgentCommandResult, FlowAgentContext, FlowAgentExecutor, FlowAgentNodeSnapshot, FlowAgentPublicNodeState, type FlowDocumentNode, type FlowDocumentRead, FlowNode, FlowNodeRuntimeState, type FlowVersionString, InvocationStore, LATEST_VERSION, type ManifestProofDeclaration, OutputSchemaField, PROOF_MISSING_CODE, type ProofValidationResult, RunRecordDetails, SERVICE_VERBS, STEP_COMPLETED_EVENT, STEP_COMPLETED_EVENT_NAME, type ServiceVerb, StoredDelegation, StoredInvocation, type TriggerResolutionContext, UcanDelegationStore, UcanService, VERSION_MANIFEST, type VersionPolicy, XERO_WORK_ITEMS_MAP_NAME, type XeroWorkAttempt, type XeroWorkItem, type XeroWorkItemFilter, type XeroWorkKind, type XeroWorkProvenance, type XeroWorkSource, type XeroWorkStatus, addFlowNode, buildBlockConditionsProp, buildServicesFromHandlers, buildXeroInvoiceWorkKey, buildXeroPaymentWorkKey, canToType, classifyBlockerCause, classifyNodeState, computeCID, computeJsonCID, createOracleInitFlowTemplate, executeFlowAgentCoreCommand, executeQueuedFlowAgentCoreCommands, findXeroWorkItems, findXeroWorkItemsForEditor, generateActionManifest, getAction, getActionByCan, getActionForBlock, getAliasEntries, getAllActions, getAllCanMappings, getEventsForBlock, getOutputSchemaForBlock, getVersionPolicy, getXeroWorkItemsMap, hasAction, isTempUcanEnforcementDisabled, isVerifiedCompletion, isVersionAtLeast, markXeroWorkCompleted, markXeroWorkCompletedForEditor, markXeroWorkFailed, markXeroWorkFailedForEditor, oracleInitSurveySchema, parseServiceCan, readBlocksFromFragment, readFlowDocument, reconcilePendingInvocations, registerAction, removeBlockFromFragment, removeFlowNode, reorderFlowNodes, replaceBlockInFragment, resetStepRuntime, resolveRuntimeRefs, serviceCan, setBlockProps, setFormAnswers, setTempUcanEnforcementDisabled, snapshotNode, swapFlowBlocks, toEvaluatorOperator, typeToCan, updateNodeRuntime, updateXeroWorkReviewPayload, updateXeroWorkReviewPayloadForEditor, upsertXeroWorkItem, upsertXeroWorkItemForEditor, validateActionProof, verifyCompletion, writeCompiledBlocksToFragment, writeRunRecordAndReconcile };
|
package/dist/core/index.js
CHANGED
|
@@ -8,15 +8,19 @@ import {
|
|
|
8
8
|
setFormAnswers,
|
|
9
9
|
swapFlowBlocks,
|
|
10
10
|
updateNodeRuntime
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-VPMDJE6B.js";
|
|
12
12
|
import {
|
|
13
13
|
FlowAgentService,
|
|
14
14
|
LATEST_VERSION,
|
|
15
|
+
NODE_CONTEXT_MAP_NAME,
|
|
16
|
+
NODE_CONTEXT_OVERRIDES_MAP_NAME,
|
|
15
17
|
PROOF_MISSING_CODE,
|
|
16
18
|
RUN_RECORD_AUDIT_TYPE,
|
|
19
|
+
SERVICE_VERBS,
|
|
17
20
|
STEP_COMPLETED_EVENT,
|
|
18
21
|
STEP_COMPLETED_EVENT_NAME,
|
|
19
22
|
VERSION_MANIFEST,
|
|
23
|
+
XERO_WORK_ITEMS_MAP_NAME,
|
|
20
24
|
acquireFlowAgentLease,
|
|
21
25
|
appendAgentLedgerEvent,
|
|
22
26
|
appendRunRecord,
|
|
@@ -25,6 +29,8 @@ import {
|
|
|
25
29
|
buildFlowAgentContext,
|
|
26
30
|
buildFlowNodeFromBlock,
|
|
27
31
|
buildServicesFromHandlers,
|
|
32
|
+
buildXeroInvoiceWorkKey,
|
|
33
|
+
buildXeroPaymentWorkKey,
|
|
28
34
|
canMatches,
|
|
29
35
|
canToType,
|
|
30
36
|
classifyBlockerCause,
|
|
@@ -48,6 +54,8 @@ import {
|
|
|
48
54
|
executeQueuedAgentCommands,
|
|
49
55
|
executeQueuedFlowAgentCoreCommands,
|
|
50
56
|
findFailedListenersForSourceRun,
|
|
57
|
+
findXeroWorkItems,
|
|
58
|
+
findXeroWorkItemsForEditor,
|
|
51
59
|
generateActionManifest,
|
|
52
60
|
getAction,
|
|
53
61
|
getActionByCan,
|
|
@@ -62,15 +70,22 @@ import {
|
|
|
62
70
|
getOutputSchemaForBlock,
|
|
63
71
|
getPendingInvocationsMap,
|
|
64
72
|
getVersionPolicy,
|
|
73
|
+
getXeroWorkItemsMap,
|
|
65
74
|
hasAction,
|
|
66
75
|
isAuthorized,
|
|
67
76
|
isCapabilityMatch,
|
|
68
77
|
isExternalMutation,
|
|
78
|
+
isNodeContextRecord,
|
|
69
79
|
isRuntimeRef,
|
|
70
80
|
isTempUcanEnforcementDisabled,
|
|
71
81
|
isVerifiedCompletion,
|
|
72
82
|
isVersionAtLeast,
|
|
83
|
+
markXeroWorkCompleted,
|
|
84
|
+
markXeroWorkCompletedForEditor,
|
|
85
|
+
markXeroWorkFailed,
|
|
86
|
+
markXeroWorkFailedForEditor,
|
|
73
87
|
mergeCompiledFlows,
|
|
88
|
+
parseServiceCan,
|
|
74
89
|
planRalphLoopCommands,
|
|
75
90
|
queueAgentCommand,
|
|
76
91
|
queuePendingInvocation,
|
|
@@ -93,6 +108,7 @@ import {
|
|
|
93
108
|
requiredCapabilityForCommand,
|
|
94
109
|
resolveRuntimeRefs,
|
|
95
110
|
resourceMatches,
|
|
111
|
+
serviceCan,
|
|
96
112
|
setActiveEditor,
|
|
97
113
|
setTempUcanEnforcementDisabled,
|
|
98
114
|
setupFlowFromBaseUcan,
|
|
@@ -102,13 +118,17 @@ import {
|
|
|
102
118
|
toEvaluatorOperator,
|
|
103
119
|
typeToCan,
|
|
104
120
|
updateAgentCommand,
|
|
121
|
+
updateXeroWorkReviewPayload,
|
|
122
|
+
updateXeroWorkReviewPayloadForEditor,
|
|
123
|
+
upsertXeroWorkItem,
|
|
124
|
+
upsertXeroWorkItemForEditor,
|
|
105
125
|
validateActionProof,
|
|
106
126
|
validateAgentCommand,
|
|
107
127
|
validateFlowAgentLease,
|
|
108
128
|
verifyCompletion,
|
|
109
129
|
writeCompiledBlocksToFragment,
|
|
110
130
|
writeRunRecordAndReconcile
|
|
111
|
-
} from "../chunk-
|
|
131
|
+
} from "../chunk-ABM3ZZIX.js";
|
|
112
132
|
import {
|
|
113
133
|
computeCID,
|
|
114
134
|
computeJsonCID
|
|
@@ -496,11 +516,15 @@ function createOracleInitFlowTemplate() {
|
|
|
496
516
|
export {
|
|
497
517
|
FlowAgentService,
|
|
498
518
|
LATEST_VERSION,
|
|
519
|
+
NODE_CONTEXT_MAP_NAME,
|
|
520
|
+
NODE_CONTEXT_OVERRIDES_MAP_NAME,
|
|
499
521
|
PROOF_MISSING_CODE,
|
|
500
522
|
RUN_RECORD_AUDIT_TYPE,
|
|
523
|
+
SERVICE_VERBS,
|
|
501
524
|
STEP_COMPLETED_EVENT,
|
|
502
525
|
STEP_COMPLETED_EVENT_NAME,
|
|
503
526
|
VERSION_MANIFEST,
|
|
527
|
+
XERO_WORK_ITEMS_MAP_NAME,
|
|
504
528
|
acquireFlowAgentLease,
|
|
505
529
|
addFlowNode,
|
|
506
530
|
appendAgentLedgerEvent,
|
|
@@ -510,6 +534,8 @@ export {
|
|
|
510
534
|
buildFlowAgentContext,
|
|
511
535
|
buildFlowNodeFromBlock,
|
|
512
536
|
buildServicesFromHandlers,
|
|
537
|
+
buildXeroInvoiceWorkKey,
|
|
538
|
+
buildXeroPaymentWorkKey,
|
|
513
539
|
canMatches,
|
|
514
540
|
canToType,
|
|
515
541
|
classifyBlockerCause,
|
|
@@ -536,6 +562,8 @@ export {
|
|
|
536
562
|
executeQueuedAgentCommands,
|
|
537
563
|
executeQueuedFlowAgentCoreCommands,
|
|
538
564
|
findFailedListenersForSourceRun,
|
|
565
|
+
findXeroWorkItems,
|
|
566
|
+
findXeroWorkItemsForEditor,
|
|
539
567
|
generateActionManifest,
|
|
540
568
|
getAction,
|
|
541
569
|
getActionByCan,
|
|
@@ -550,16 +578,23 @@ export {
|
|
|
550
578
|
getOutputSchemaForBlock,
|
|
551
579
|
getPendingInvocationsMap,
|
|
552
580
|
getVersionPolicy,
|
|
581
|
+
getXeroWorkItemsMap,
|
|
553
582
|
hasAction,
|
|
554
583
|
isAuthorized,
|
|
555
584
|
isCapabilityMatch,
|
|
556
585
|
isExternalMutation,
|
|
586
|
+
isNodeContextRecord,
|
|
557
587
|
isRuntimeRef,
|
|
558
588
|
isTempUcanEnforcementDisabled,
|
|
559
589
|
isVerifiedCompletion,
|
|
560
590
|
isVersionAtLeast,
|
|
591
|
+
markXeroWorkCompleted,
|
|
592
|
+
markXeroWorkCompletedForEditor,
|
|
593
|
+
markXeroWorkFailed,
|
|
594
|
+
markXeroWorkFailedForEditor,
|
|
561
595
|
mergeCompiledFlows,
|
|
562
596
|
oracleInitSurveySchema,
|
|
597
|
+
parseServiceCan,
|
|
563
598
|
planRalphLoopCommands,
|
|
564
599
|
queueAgentCommand,
|
|
565
600
|
queuePendingInvocation,
|
|
@@ -586,6 +621,7 @@ export {
|
|
|
586
621
|
resetStepRuntime,
|
|
587
622
|
resolveRuntimeRefs,
|
|
588
623
|
resourceMatches,
|
|
624
|
+
serviceCan,
|
|
589
625
|
setActiveEditor,
|
|
590
626
|
setBlockProps,
|
|
591
627
|
setFormAnswers,
|
|
@@ -599,6 +635,10 @@ export {
|
|
|
599
635
|
typeToCan,
|
|
600
636
|
updateAgentCommand,
|
|
601
637
|
updateNodeRuntime,
|
|
638
|
+
updateXeroWorkReviewPayload,
|
|
639
|
+
updateXeroWorkReviewPayloadForEditor,
|
|
640
|
+
upsertXeroWorkItem,
|
|
641
|
+
upsertXeroWorkItemForEditor,
|
|
602
642
|
validateActionProof,
|
|
603
643
|
validateAgentCommand,
|
|
604
644
|
validateFlowAgentLease,
|
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/templates/oracleInitFlow.ts"],"sourcesContent":["import type { FlowMetadata } from '../types/editor';\nimport type { FlowNode } from '../types/authorization';\n\n// ---------------------------------------------------------------------------\n// SurveyJS schema for the oracle configuration form\n// ---------------------------------------------------------------------------\n\nexport const oracleInitSurveySchema = {\n title: 'Oracle Configuration',\n description: 'Provide the details needed to initialise a new oracle on the IXO network.',\n logoPosition: 'right',\n pages: [\n {\n name: 'basicInfo',\n title: 'Basic Information',\n elements: [\n {\n type: 'text',\n name: 'projectName',\n title: 'Project Name',\n description: 'Used as the folder name — no spaces or special characters.',\n isRequired: true,\n validators: [\n {\n type: 'regex',\n text: 'Only lowercase letters, numbers, and hyphens are allowed (no spaces or special characters).',\n regex: '^[a-z0-9]+(-[a-z0-9]+)*$',\n },\n ],\n },\n {\n type: 'text',\n name: 'pin',\n title: 'PIN',\n description: 'A 6-digit PIN used to secure wallet operations.',\n isRequired: true,\n inputType: 'password',\n maxLength: 6,\n validators: [\n {\n type: 'regex',\n text: 'PIN must be exactly 6 digits.',\n regex: '^\\\\d{6}$',\n },\n ],\n },\n ],\n },\n {\n name: 'oracleDetails',\n title: 'Oracle Details',\n elements: [\n {\n type: 'text',\n name: 'oracleName',\n title: 'Oracle Name',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'orgName',\n title: 'Organisation Name',\n isRequired: true,\n },\n {\n type: 'comment',\n name: 'description',\n title: 'Description',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'location',\n title: 'Location',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'logoUrl',\n title: 'Logo URL',\n isRequired: true,\n inputType: 'url',\n validators: [{ type: 'url' }],\n },\n {\n type: 'text',\n name: 'coverImageUrl',\n title: 'Cover Image URL',\n isRequired: true,\n inputType: 'url',\n validators: [{ type: 'url' }],\n },\n ],\n },\n {\n name: 'serviceConfig',\n title: 'Service Configuration',\n elements: [\n {\n type: 'text',\n name: 'apiUrl',\n title: 'API URL',\n isRequired: true,\n inputType: 'url',\n defaultValue: 'http://localhost:4000',\n validators: [{ type: 'url' }],\n },\n {\n type: 'text',\n name: 'price',\n title: 'Price',\n description: 'Service price in IXO tokens (minimum 1).',\n isRequired: true,\n inputType: 'number',\n defaultValue: 100,\n validators: [\n {\n type: 'numeric',\n text: 'Price must be at least 1.',\n minValue: 1,\n },\n ],\n },\n {\n type: 'dropdown',\n name: 'llmModel',\n title: 'LLM Model',\n isRequired: true,\n choices: [\n { value: 'kimi-k2.5', text: 'Kimi K2.5' },\n { value: 'claude-sonnet', text: 'Claude Sonnet' },\n { value: 'gpt-4o', text: 'GPT-4o' },\n { value: 'gemini-2.5', text: 'Gemini 2.5' },\n { value: 'llama-4', text: 'Llama 4' },\n { value: 'custom', text: 'Custom' },\n ],\n },\n {\n type: 'comment',\n name: 'opening',\n title: 'Opening Message',\n description: 'The greeting or introduction the agent uses when starting a conversation.',\n isRequired: false,\n },\n {\n type: 'comment',\n name: 'communicationStyle',\n title: 'Communication Style',\n description: 'How the agent should communicate (e.g. formal, friendly, concise).',\n isRequired: false,\n },\n {\n type: 'comment',\n name: 'capabilities',\n title: 'What can the agent do?',\n description: 'Describe what this agent is capable of doing for users.',\n isRequired: false,\n },\n ],\n },\n ],\n};\n\n// ---------------------------------------------------------------------------\n// Template generator\n// ---------------------------------------------------------------------------\n\nexport function createOracleInitFlowTemplate(): {\n metadata: FlowMetadata;\n nodes: FlowNode[];\n} {\n const metadata: FlowMetadata = {\n '@context': 'https://schema.ixo.world/flow/v1',\n _type: 'flow/oracle-init',\n schema_version: '1.0.0',\n doc_id: '',\n title: 'Oracle Init Flow',\n createdAt: new Date().toISOString(),\n createdBy: '',\n flowOwnerDid: '',\n };\n\n const nodes: FlowNode[] = [\n // ------------------------------------------------------------------\n // [1] Form — collects all oracle configuration\n // ------------------------------------------------------------------\n {\n id: 'oracle-form',\n type: 'form',\n props: {\n title: 'Oracle Configuration',\n description: 'Enter the details for your new oracle.',\n icon: 'checklist',\n surveySchema: JSON.stringify(oracleInitSurveySchema),\n },\n },\n\n // ------------------------------------------------------------------\n // [2] Skills — skill/MCP configuration\n // ------------------------------------------------------------------\n {\n id: 'oracle-skills',\n type: 'skills',\n props: {\n title: 'Oracle Skills & MCP Servers',\n description: 'Configure skills and MCP servers for the oracle.',\n icon: 'tools',\n skills: '[]',\n entityDid: '',\n mcpServers: '[]',\n status: 'pending',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-form',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [3] Action — Generate & Fund Wallet\n // Generates a new wallet and funds it in one step.\n // ------------------------------------------------------------------\n {\n id: 'oracle-wallet',\n type: 'action',\n props: {\n title: 'Generate & Fund Wallet',\n description: 'Generate a new IXO wallet and fund it with tokens.',\n icon: 'bolt',\n actionType: 'qi/wallet.generateAndFund',\n inputs: JSON.stringify({}),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-skills',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [4] Action — Create Identity (IID + Matrix)\n // Creates the on-chain IID document, then registers the Matrix account.\n // ------------------------------------------------------------------\n {\n id: 'oracle-identity',\n type: 'action',\n props: {\n title: 'Create Identity',\n description: 'Create on-chain DID document and register Matrix account.',\n icon: 'bolt',\n actionType: 'qi/identity.create',\n inputs: JSON.stringify({\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n did: '{{oracle-wallet.output.did}}',\n address: '{{oracle-wallet.output.address}}',\n pubKey: '{{oracle-wallet.output.pubKey}}',\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-wallet',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [5] Action — Create Oracle Entity\n // On-chain entity creation with P-256 encryption key.\n // ------------------------------------------------------------------\n {\n id: 'oracle-entity-create',\n type: 'action',\n props: {\n title: 'Create Oracle Entity',\n description: 'Create the oracle entity on the IXO network.',\n icon: 'bolt',\n actionType: 'qi/entity.createOracle',\n inputs: JSON.stringify({\n // Wallet outputs\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n address: '{{oracle-wallet.output.address}}',\n did: '{{oracle-wallet.output.did}}',\n pubKey: '{{oracle-wallet.output.pubKey}}',\n // Matrix outputs (from identity block)\n matrixAccessToken: '{{oracle-identity.output.matrixAccessToken}}',\n matrixRoomId: '{{oracle-identity.output.matrixRoomId}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-identity',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [6] Action — Configure Oracle (contract + secrets + config)\n // Creates the user↔oracle DM room, encrypts secrets, stores config.\n // ------------------------------------------------------------------\n {\n id: 'oracle-configure',\n type: 'action',\n props: {\n title: 'Configure Oracle',\n description: 'Contract oracle, encrypt secrets, and store configuration.',\n icon: 'bolt',\n actionType: 'qi/oracle.configureOracle',\n inputs: JSON.stringify({\n // Contract input\n oracleEntityDid: '{{oracle-entity-create.output.entityDid}}',\n // Secrets routing (matrixRoomId comes from contract phase, not inputs)\n publicKeyMultibase: '{{oracle-entity-create.output.encryptionPublicKeyMultibase}}',\n verificationMethodId: '{{oracle-entity-create.output.encryptionVerificationMethodId}}',\n // Fresh mxLogin params\n matrixHomeServerUrl: '{{oracle-identity.output.matrixHomeServerUrl}}',\n matrixUsername: '{{oracle-identity.output.matrixUserId}}',\n // Sensitive plaintext values\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n matrixPassword: '{{oracle-identity.output.matrixPassword}}',\n matrixRecoveryPhrase: '{{oracle-identity.output.matrixRecoveryPhrase}}',\n // MCP auth secrets (already JWE-encrypted by skills block FlowDetail)\n mcpAuthSecrets: '{{oracle-skills.output.mcpAuthSecrets}}',\n // Skills outputs\n skills: '{{oracle-skills.output.skills}}',\n mcpServers: '{{oracle-skills.output.mcpServers}}',\n // Identifiers\n matrixUserId: '{{oracle-identity.output.matrixUserId}}',\n matrixAccountRoomId: '{{oracle-identity.output.matrixRoomId}}',\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n oracleAddress: '{{oracle-wallet.output.address}}',\n oracleDid: '{{oracle-wallet.output.did}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-entity-create',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [7] Action — Deploy Oracle (setup + start)\n // Clones repo, writes config, builds, then starts the process.\n // ------------------------------------------------------------------\n {\n id: 'oracle-deploy',\n type: 'action',\n props: {\n title: 'Deploy Oracle',\n description: 'Set up environment and start the oracle process.',\n icon: 'bolt',\n actionType: 'qi/oracle.deploy',\n inputs: JSON.stringify({\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n roomId: '{{oracle-configure.output.userOracleRoomId}}',\n skills: '{{oracle-skills.output.skills}}',\n mcpServers: '{{oracle-skills.output.mcpServers}}',\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n matrixPassword: '{{oracle-identity.output.matrixPassword}}',\n matrixRecoveryPhrase: '{{oracle-identity.output.matrixRecoveryPhrase}}',\n matrixUsername: '{{oracle-identity.output.matrixUserId}}',\n matrixAccountRoomId: '{{oracle-identity.output.matrixRoomId}}',\n freshAccessToken: '{{oracle-configure.output.freshAccessToken}}',\n openRouterApiKey: '{{oracle-configure.output.openRouterApiKeyPlaintext}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-configure',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [8] Secrets — display credentials and download\n // ------------------------------------------------------------------\n {\n id: 'oracle-secrets',\n type: 'secrets',\n props: {\n title: 'Oracle Credentials',\n description: 'Download your oracle credentials after setup is complete.',\n icon: 'key',\n downloadEndpoint: '',\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-deploy',\n requiredStatus: 'approved',\n },\n },\n ];\n\n return { metadata, nodes };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,IAAM,yBAAyB;AAAA,EACpC,OAAO;AAAA,EACP,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,UAAU;AAAA,QACR;AAAA,UACE,MAAM;AAAA,UACN,MAAM;AAAA,UACN,OAAO;AAAA,UACP,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,YAAY;AAAA,YACV;AAAA,cACE,MAAM;AAAA,cACN,MAAM;AAAA,cACN,OAAO;AAAA,YACT;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,MAAM;AAAA,UACN,OAAO;AAAA,UACP,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,WAAW;AAAA,UACX,WAAW;AAAA,UACX,YAAY;AAAA,YACV;AAAA,cACE,MAAM;AAAA,cACN,MAAM;AAAA,cACN,OAAO;AAAA,YACT;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,UAAU;AAAA,QACR;AAAA,UACE,MAAM;AAAA,UACN,MAAM;AAAA,UACN,OAAO;AAAA,UACP,YAAY;AAAA,QACd;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,MAAM;AAAA,UACN,OAAO;AAAA,UACP,YAAY;AAAA,QACd;AAAA,QACA;AAAA,UACE,MAAM;A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O;AAAA,QACL,OAAO;AAAA,QACP,aAAa;AAAA,QACb,MAAM;AAAA,QACN,kBAAkB;AAAA,QAClB,WAAW;AAAA,MACb;AAAA,MACA,qBAAqB;AAAA,QACnB,gBAAgB;AAAA,QAChB,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAEA,SAAO,EAAE,UAAU,MAAM;AAC3B;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/core/templates/oracleInitFlow.ts"],"sourcesContent":["import type { FlowMetadata } from '../types/editor';\nimport type { FlowNode } from '../types/authorization';\n\n// ---------------------------------------------------------------------------\n// SurveyJS schema for the oracle configuration form\n// ---------------------------------------------------------------------------\n\nexport const oracleInitSurveySchema = {\n title: 'Oracle Configuration',\n description: 'Provide the details needed to initialise a new oracle on the IXO network.',\n logoPosition: 'right',\n pages: [\n {\n name: 'basicInfo',\n title: 'Basic Information',\n elements: [\n {\n type: 'text',\n name: 'projectName',\n title: 'Project Name',\n description: 'Used as the folder name — no spaces or special characters.',\n isRequired: true,\n validators: [\n {\n type: 'regex',\n text: 'Only lowercase letters, numbers, and hyphens are allowed (no spaces or special characters).',\n regex: '^[a-z0-9]+(-[a-z0-9]+)*$',\n },\n ],\n },\n {\n type: 'text',\n name: 'pin',\n title: 'PIN',\n description: 'A 6-digit PIN used to secure wallet operations.',\n isRequired: true,\n inputType: 'password',\n maxLength: 6,\n validators: [\n {\n type: 'regex',\n text: 'PIN must be exactly 6 digits.',\n regex: '^\\\\d{6}$',\n },\n ],\n },\n ],\n },\n {\n name: 'oracleDetails',\n title: 'Oracle Details',\n elements: [\n {\n type: 'text',\n name: 'oracleName',\n title: 'Oracle Name',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'orgName',\n title: 'Organisation Name',\n isRequired: true,\n },\n {\n type: 'comment',\n name: 'description',\n title: 'Description',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'location',\n title: 'Location',\n isRequired: true,\n },\n {\n type: 'text',\n name: 'logoUrl',\n title: 'Logo URL',\n isRequired: true,\n inputType: 'url',\n validators: [{ type: 'url' }],\n },\n {\n type: 'text',\n name: 'coverImageUrl',\n title: 'Cover Image URL',\n isRequired: true,\n inputType: 'url',\n validators: [{ type: 'url' }],\n },\n ],\n },\n {\n name: 'serviceConfig',\n title: 'Service Configuration',\n elements: [\n {\n type: 'text',\n name: 'apiUrl',\n title: 'API URL',\n isRequired: true,\n inputType: 'url',\n defaultValue: 'http://localhost:4000',\n validators: [{ type: 'url' }],\n },\n {\n type: 'text',\n name: 'price',\n title: 'Price',\n description: 'Service price in IXO tokens (minimum 1).',\n isRequired: true,\n inputType: 'number',\n defaultValue: 100,\n validators: [\n {\n type: 'numeric',\n text: 'Price must be at least 1.',\n minValue: 1,\n },\n ],\n },\n {\n type: 'dropdown',\n name: 'llmModel',\n title: 'LLM Model',\n isRequired: true,\n choices: [\n { value: 'kimi-k2.5', text: 'Kimi K2.5' },\n { value: 'claude-sonnet', text: 'Claude Sonnet' },\n { value: 'gpt-4o', text: 'GPT-4o' },\n { value: 'gemini-2.5', text: 'Gemini 2.5' },\n { value: 'llama-4', text: 'Llama 4' },\n { value: 'custom', text: 'Custom' },\n ],\n },\n {\n type: 'comment',\n name: 'opening',\n title: 'Opening Message',\n description: 'The greeting or introduction the agent uses when starting a conversation.',\n isRequired: false,\n },\n {\n type: 'comment',\n name: 'communicationStyle',\n title: 'Communication Style',\n description: 'How the agent should communicate (e.g. formal, friendly, concise).',\n isRequired: false,\n },\n {\n type: 'comment',\n name: 'capabilities',\n title: 'What can the agent do?',\n description: 'Describe what this agent is capable of doing for users.',\n isRequired: false,\n },\n ],\n },\n ],\n};\n\n// ---------------------------------------------------------------------------\n// Template generator\n// ---------------------------------------------------------------------------\n\nexport function createOracleInitFlowTemplate(): {\n metadata: FlowMetadata;\n nodes: FlowNode[];\n} {\n const metadata: FlowMetadata = {\n '@context': 'https://schema.ixo.world/flow/v1',\n _type: 'flow/oracle-init',\n schema_version: '1.0.0',\n doc_id: '',\n title: 'Oracle Init Flow',\n createdAt: new Date().toISOString(),\n createdBy: '',\n flowOwnerDid: '',\n };\n\n const nodes: FlowNode[] = [\n // ------------------------------------------------------------------\n // [1] Form — collects all oracle configuration\n // ------------------------------------------------------------------\n {\n id: 'oracle-form',\n type: 'form',\n props: {\n title: 'Oracle Configuration',\n description: 'Enter the details for your new oracle.',\n icon: 'checklist',\n surveySchema: JSON.stringify(oracleInitSurveySchema),\n },\n },\n\n // ------------------------------------------------------------------\n // [2] Skills — skill/MCP configuration\n // ------------------------------------------------------------------\n {\n id: 'oracle-skills',\n type: 'skills',\n props: {\n title: 'Oracle Skills & MCP Servers',\n description: 'Configure skills and MCP servers for the oracle.',\n icon: 'tools',\n skills: '[]',\n entityDid: '',\n mcpServers: '[]',\n status: 'pending',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-form',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [3] Action — Generate & Fund Wallet\n // Generates a new wallet and funds it in one step.\n // ------------------------------------------------------------------\n {\n id: 'oracle-wallet',\n type: 'action',\n props: {\n title: 'Generate & Fund Wallet',\n description: 'Generate a new IXO wallet and fund it with tokens.',\n icon: 'bolt',\n actionType: 'qi/wallet.generateAndFund',\n inputs: JSON.stringify({}),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-skills',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [4] Action — Create Identity (IID + Matrix)\n // Creates the on-chain IID document, then registers the Matrix account.\n // ------------------------------------------------------------------\n {\n id: 'oracle-identity',\n type: 'action',\n props: {\n title: 'Create Identity',\n description: 'Create on-chain DID document and register Matrix account.',\n icon: 'bolt',\n actionType: 'qi/identity.create',\n inputs: JSON.stringify({\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n did: '{{oracle-wallet.output.did}}',\n address: '{{oracle-wallet.output.address}}',\n pubKey: '{{oracle-wallet.output.pubKey}}',\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-wallet',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [5] Action — Create Oracle Entity\n // On-chain entity creation with P-256 encryption key.\n // ------------------------------------------------------------------\n {\n id: 'oracle-entity-create',\n type: 'action',\n props: {\n title: 'Create Oracle Entity',\n description: 'Create the oracle entity on the IXO network.',\n icon: 'bolt',\n actionType: 'qi/entity.createOracle',\n inputs: JSON.stringify({\n // Wallet outputs\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n address: '{{oracle-wallet.output.address}}',\n did: '{{oracle-wallet.output.did}}',\n pubKey: '{{oracle-wallet.output.pubKey}}',\n // Matrix outputs (from identity block)\n matrixAccessToken: '{{oracle-identity.output.matrixAccessToken}}',\n matrixRoomId: '{{oracle-identity.output.matrixRoomId}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-identity',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [6] Action — Configure Oracle (contract + secrets + config)\n // Creates the user↔oracle DM room, encrypts secrets, stores config.\n // ------------------------------------------------------------------\n {\n id: 'oracle-configure',\n type: 'action',\n props: {\n title: 'Configure Oracle',\n description: 'Contract oracle, encrypt secrets, and store configuration.',\n icon: 'bolt',\n actionType: 'qi/oracle.configureOracle',\n inputs: JSON.stringify({\n // Contract input\n oracleEntityDid: '{{oracle-entity-create.output.entityDid}}',\n // Secrets routing (matrixRoomId comes from contract phase, not inputs)\n publicKeyMultibase: '{{oracle-entity-create.output.encryptionPublicKeyMultibase}}',\n verificationMethodId: '{{oracle-entity-create.output.encryptionVerificationMethodId}}',\n // Fresh mxLogin params\n matrixHomeServerUrl: '{{oracle-identity.output.matrixHomeServerUrl}}',\n matrixUsername: '{{oracle-identity.output.matrixUserId}}',\n // Sensitive plaintext values\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n matrixPassword: '{{oracle-identity.output.matrixPassword}}',\n matrixRecoveryPhrase: '{{oracle-identity.output.matrixRecoveryPhrase}}',\n // MCP auth secrets (already JWE-encrypted by skills block FlowDetail)\n mcpAuthSecrets: '{{oracle-skills.output.mcpAuthSecrets}}',\n // Skills outputs\n skills: '{{oracle-skills.output.skills}}',\n mcpServers: '{{oracle-skills.output.mcpServers}}',\n // Identifiers\n matrixUserId: '{{oracle-identity.output.matrixUserId}}',\n matrixAccountRoomId: '{{oracle-identity.output.matrixRoomId}}',\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n oracleAddress: '{{oracle-wallet.output.address}}',\n oracleDid: '{{oracle-wallet.output.did}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-entity-create',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [7] Action — Deploy Oracle (setup + start)\n // Clones repo, writes config, builds, then starts the process.\n // ------------------------------------------------------------------\n {\n id: 'oracle-deploy',\n type: 'action',\n props: {\n title: 'Deploy Oracle',\n description: 'Set up environment and start the oracle process.',\n icon: 'bolt',\n actionType: 'qi/oracle.deploy',\n inputs: JSON.stringify({\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n roomId: '{{oracle-configure.output.userOracleRoomId}}',\n skills: '{{oracle-skills.output.skills}}',\n mcpServers: '{{oracle-skills.output.mcpServers}}',\n mnemonic: '{{oracle-wallet.output.mnemonic}}',\n matrixPassword: '{{oracle-identity.output.matrixPassword}}',\n matrixRecoveryPhrase: '{{oracle-identity.output.matrixRecoveryPhrase}}',\n matrixUsername: '{{oracle-identity.output.matrixUserId}}',\n matrixAccountRoomId: '{{oracle-identity.output.matrixRoomId}}',\n freshAccessToken: '{{oracle-configure.output.freshAccessToken}}',\n openRouterApiKey: '{{oracle-configure.output.openRouterApiKeyPlaintext}}',\n // Form outputs — whole blob, action parses & destructures\n formAnswers: '{{oracle-form.output.form.answers}}',\n }),\n requiresConfirmation: '',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-configure',\n requiredStatus: 'approved',\n },\n },\n\n // ------------------------------------------------------------------\n // [8] Secrets — display credentials and download\n // ------------------------------------------------------------------\n {\n id: 'oracle-secrets',\n type: 'secrets',\n props: {\n title: 'Oracle Credentials',\n description: 'Download your oracle credentials after setup is complete.',\n icon: 'key',\n downloadEndpoint: '',\n entityDid: '{{oracle-entity-create.output.entityDid}}',\n },\n activationCondition: {\n upstreamNodeId: 'oracle-deploy',\n requiredStatus: 'approved',\n },\n },\n ];\n\n return { metadata, nodes };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,IAAM,yBAAyB;AAAA,EACpC,OAAO;AAAA,EACP,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,UAAU;AAAA,QACR;AAAA,UACE,MAAM;AAAA,UACN,MAAM;AAAA,UACN,OAAO;AAAA,UACP,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,YAAY;AAAA,YACV;AAAA,cACE,MAAM;AAAA,cACN,MAAM;AAAA,cACN,OAAO;AAAA,YACT;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,MAAM;AAAA,UACN,OAAO;AAAA,UACP,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,WAAW;AAAA,UACX,WAAW;AAAA,UACX,YAAY;AAAA,YACV;AAAA,cACE,MAAM;AAAA,cACN,MAAM;AAAA,cACN,OAAO;AAAA,YACT;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA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AA,UAClB,kBAAkB;AAAA;AAAA,UAElB,aAAa;AAAA,QACf,CAAC;AAAA,QACD,sBAAsB;AAAA,MACxB;AAAA,MACA,qBAAqB;AAAA,QACnB,gBAAgB;AAAA,QAChB,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA;AAAA;AAAA;AAAA,IAKA;AAAA,MACE,IAAI;AAAA,MACJ,MAAM;AAAA,MACN,OAAO;AAAA,QACL,OAAO;AAAA,QACP,aAAa;AAAA,QACb,MAAM;AAAA,QACN,kBAAkB;AAAA,QAClB,WAAW;AAAA,MACb;AAAA,MACA,qBAAqB;AAAA,QACnB,gBAAgB;AAAA,QAChB,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAEA,SAAO,EAAE,UAAU,MAAM;AAC3B;","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _blocknote_core from '@blocknote/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ap as IxoBlockProps, l as IxoEditorOptions, a5 as IxoEditorType, p as IxoCollaborativeEditorOptions, w as BlocknoteHandlers, y as BlockRequirements, aw as UnlMapConfig, as as DynamicListDataProvider, at as DynamicListPanelRenderer, au as DomainCardRenderer, a3 as Translate, k as DelegationGrant } from './index-D0S6jY7O.js';
|
|
3
3
|
import { Text, Doc, Map, Array as Array$1 } from 'yjs';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import * as _tiptap_core from '@tiptap/core';
|
|
@@ -4910,6 +4910,16 @@ interface ActionReadBackMetadata {
|
|
|
4910
4910
|
};
|
|
4911
4911
|
[key: string]: any;
|
|
4912
4912
|
}
|
|
4913
|
+
/**
|
|
4914
|
+
* One advisory report from a contracted helper oracle, landed by the flow
|
|
4915
|
+
* manager under `runtime[blockId].serviceReports[serviceRole]`.
|
|
4916
|
+
*/
|
|
4917
|
+
interface NodeServiceReport {
|
|
4918
|
+
output: Record<string, unknown>;
|
|
4919
|
+
oracleDid: string;
|
|
4920
|
+
invocationId: string;
|
|
4921
|
+
receivedAt: number;
|
|
4922
|
+
}
|
|
4913
4923
|
interface FlowNodeRuntimeState {
|
|
4914
4924
|
state?: NodeState;
|
|
4915
4925
|
output?: Record<string, any>;
|
|
@@ -4968,6 +4978,13 @@ interface FlowNodeRuntimeState {
|
|
|
4968
4978
|
/** Per-instance user-typed values that need to survive reload (e.g. encrypted API keys
|
|
4969
4979
|
* the user entered into a form-style action block). Action blocks own the shape. */
|
|
4970
4980
|
userInputs?: Record<string, any>;
|
|
4981
|
+
/**
|
|
4982
|
+
* Advisory oracle reports written by the flow manager, keyed by service
|
|
4983
|
+
* role (e.g. 'evaluation-report'). Service receipts are NOT execution
|
|
4984
|
+
* results: they never touch the node's own state/output and are optional
|
|
4985
|
+
* input to the human decision, not a blocker.
|
|
4986
|
+
*/
|
|
4987
|
+
serviceReports?: Record<string, NodeServiceReport>;
|
|
4971
4988
|
claimId?: string;
|
|
4972
4989
|
submittedByDid?: DID;
|
|
4973
4990
|
evaluationStatus?: EvaluationStatus;
|
|
@@ -5492,6 +5509,18 @@ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema
|
|
|
5492
5509
|
* @internal
|
|
5493
5510
|
*/
|
|
5494
5511
|
_yRuntime?: Map<any>;
|
|
5512
|
+
/**
|
|
5513
|
+
* Y.Map for per-node semantic context records written by the flow manager
|
|
5514
|
+
* (keyed by block/node id, see NodeContextRecord)
|
|
5515
|
+
* @internal
|
|
5516
|
+
*/
|
|
5517
|
+
_yNodeContext?: Map<any>;
|
|
5518
|
+
/**
|
|
5519
|
+
* Y.Map for per-field human overrides on node context records, keyed
|
|
5520
|
+
* `${nodeId}:${field}` (see NODE_CONTEXT_OVERRIDES_MAP_NAME)
|
|
5521
|
+
* @internal
|
|
5522
|
+
*/
|
|
5523
|
+
_yNodeContextOverrides?: Map<any>;
|
|
5495
5524
|
/**
|
|
5496
5525
|
* Y.Map for storing capability delegations
|
|
5497
5526
|
* @internal
|
|
@@ -5856,4 +5885,4 @@ interface IxoEditorConfig {
|
|
|
5856
5885
|
tableHandles: boolean;
|
|
5857
5886
|
}
|
|
5858
5887
|
|
|
5859
|
-
export { type MatrixRoom as $, AuthzExecActionTypes as A, BlocknoteProvider as B, type VoteResponse as C, type DelegationChainValidationResult as D, type VoteInfo as E, type Vote as F, type User as G, type Addr as H, type InvocationStore as I, type Uint128 as J, type Expiration as K, type Status as L, type Threshold as M, type Votes as N, type CosmosMsgForEmpty as O, type ProposalResponse as P, type ProposalAction as Q, type ListProtocolDeedsWithTemplatesParams as R, type StoredDelegation as S, type Timestamp as T, type UcanDelegationStore as U, ValidatorActionType as V, type ProtocolDeedWithTemplates as W, type ProtocolTemplateSummary as X, type ImportProtocolTemplatesToSpaceParams as Y, type ImportProtocolTemplateResult as Z, type MatrixPrivacySettings as _, createMemoryUcanDelegationStore as a, type MatrixSpace as a0, type MatrixSubspace as a1, type MatrixSpaceStructure as a2, type Translate as a3, type FlowNodeRuntimeState as a4, type IxoEditorType as a5, type FlowMetadata as a6, type FlowNode as a7, type DID as a8, type ClaimCollectionURI as a9, type EvaluationStatus as aa, type LinkedClaim as ab, type FlowNodeAuthzExtension as ac, type
|
|
5888
|
+
export { type MatrixRoom as $, AuthzExecActionTypes as A, BlocknoteProvider as B, type VoteResponse as C, type DelegationChainValidationResult as D, type VoteInfo as E, type Vote as F, type User as G, type Addr as H, type InvocationStore as I, type Uint128 as J, type Expiration as K, type Status as L, type Threshold as M, type Votes as N, type CosmosMsgForEmpty as O, type ProposalResponse as P, type ProposalAction as Q, type ListProtocolDeedsWithTemplatesParams as R, type StoredDelegation as S, type Timestamp as T, type UcanDelegationStore as U, ValidatorActionType as V, type ProtocolDeedWithTemplates as W, type ProtocolTemplateSummary as X, type ImportProtocolTemplatesToSpaceParams as Y, type ImportProtocolTemplateResult as Z, type MatrixPrivacySettings as _, createMemoryUcanDelegationStore as a, type MatrixSpace as a0, type MatrixSubspace as a1, type MatrixSpaceStructure as a2, type Translate as a3, type FlowNodeRuntimeState as a4, type IxoEditorType as a5, type FlowMetadata as a6, type FlowNode as a7, type DID as a8, type ClaimCollectionURI as a9, type EvaluationStatus as aa, type LinkedClaim as ab, type FlowNodeAuthzExtension as ac, type NodeServiceReport as ad, type NodeState as ae, type ReadBackTerminalState as af, type ActionReadBackMetadata as ag, type FlowNodeBase as ah, type InvocationRequest as ai, type InvocationResult as aj, type ExecutionWithInvocationResult as ak, type FindProofsResult as al, type CreateRootDelegationParams as am, type CreateDelegationParams as an, type CreateInvocationParams as ao, type IxoBlockProps as ap, type VisualizationRenderer as aq, type DynamicListData as ar, type DynamicListDataProvider as as, type DynamicListPanelRenderer as at, type DomainCardRenderer as au, type DomainCardData as av, type UnlMapConfig as aw, createInvocationStore as b, createUcanDelegationStore as c, createMemoryInvocationStore as d, createUcanService as e, type UcanService as f, type UcanServiceConfig as g, type UcanServiceHandlers as h, type UcanCapability as i, type StoredInvocation as j, type DelegationGrant as k, type IxoEditorOptions as l, type IxoEditorTheme as m, type IxoEditorConfig as n, type IxoCollaborativeUser as o, type IxoCollaborativeEditorOptions as p, blockSpecs as q, getExtraSlashMenuItems as r, useBlocknoteHandlers as s, useTranslate as t, useBlocknoteContext as u, StakeType as v, type BlocknoteHandlers as w, type BlocknoteContextValue as x, type BlockRequirements as y, type SingleChoiceProposal as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { q as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, B as BlockPresenceUser, i as CheckboxBlockProps, g as CheckboxBlockSpec, C as CoverImage, c as CoverImageProps, D as DevUcanGrantButton, v as Entity, w as EntityResponse, f as EntitySigningSetup, x as EntityVariables, E as EvaluationTab, e as EvaluationTabState, F as FlowPermissionsPanel, n as FlowStepRefProps, l as FlowStepRefSpec, G as GrantPermissionModal, y as GraphQLClient, M as GraphQLRequest, J as GraphQLResponse, H as HttpMethod, I as IxoEditor, b as IxoEditorProps, K as KeyValuePair, k as ListBlockProps, j as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, o as OverviewBlockProps, p as ProposalBlockProps, P as ProposalBlockSpec, t as getEntity, m as inlineContentSpecs, z as ixoGraphQLClient, r as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, s as useTrackBlockFocus } from './graphql-client-
|
|
2
|
-
export { A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, Z as FlowAgentCommand, _ as FlowAgentCommandResult, $ as FlowAgentContext, a0 as FlowAgentExecutor, a1 as FlowAgentLease, a2 as FlowAgentNodeSnapshot, a3 as FlowAgentPublicNodeState, x as FlowAgentService, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, t as ReadableEditor, S as SetupFlowOptions, p as SetupFlowResult, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, G as cleanupExpiredFlowAgentLeases, l as compileBaseUcanFlow, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, V as validateAgentCommand, W as validateFlowAgentLease } from './store-
|
|
1
|
+
export { q as ApiRequestBlockProps, h as ApiRequestBlockSpec, A as AuthorizationTab, d as AuthorizationTabState, B as BlockPresenceUser, i as CheckboxBlockProps, g as CheckboxBlockSpec, C as CoverImage, c as CoverImageProps, D as DevUcanGrantButton, v as Entity, w as EntityResponse, f as EntitySigningSetup, x as EntityVariables, E as EvaluationTab, e as EvaluationTabState, F as FlowPermissionsPanel, n as FlowStepRefProps, l as FlowStepRefSpec, G as GrantPermissionModal, y as GraphQLClient, M as GraphQLRequest, J as GraphQLResponse, H as HttpMethod, I as IxoEditor, b as IxoEditorProps, K as KeyValuePair, k as ListBlockProps, j as ListBlockSettings, L as ListBlockSpec, O as OverviewBlock, o as OverviewBlockProps, p as ProposalBlockProps, P as ProposalBlockSpec, t as getEntity, m as inlineContentSpecs, z as ixoGraphQLClient, r as useBlockPresence, a as useCreateCollaborativeIxoEditor, u as useCreateIxoEditor, s as useTrackBlockFocus } from './graphql-client-TT4tb5P6.js';
|
|
2
|
+
export { A as AuthorizationResult, B as BaseUcanFlow, X as BuildFlowAgentContextParams, v as CompiledFlow, C as CompilerRegistry, E as ExecuteNodeParams, f as ExecutionContext, d as ExecutionOutcome, Y as FlowAgentActor, Z as FlowAgentCommand, _ as FlowAgentCommandResult, $ as FlowAgentContext, a0 as FlowAgentExecutor, a1 as FlowAgentLease, a2 as FlowAgentNodeSnapshot, a3 as FlowAgentPublicNodeState, x as FlowAgentService, a4 as FlowAgentTickResult, u as FlowCapability, F as FlowRuntimeStateManager, w as FlowStrategy, M as MergeResult, N as NodeActionResult, R as ReadFlowOptions, q as ReadFlowResult, t as ReadableEditor, S as SetupFlowOptions, p as SetupFlowResult, y as acquireFlowAgentLease, z as appendAgentLedgerEvent, a as buildAuthzFromProps, D as buildFlowAgentContext, b as buildFlowNodeFromBlock, G as cleanupExpiredFlowAgentLeases, l as compileBaseUcanFlow, H as createAgentCommand, c as createRuntimeStateManager, o as decompileToBaseUcanFlow, I as evaluateFlowAgentPolicy, e as executeNode, J as executeQueuedAgentCommands, k as getActiveEditor, K as getFlowAgentMaps, i as isAuthorized, n as mergeCompiledFlows, L as planRalphLoopCommands, O as queueAgentCommand, P as readAgentLedgerEvents, m as readCompiledFlowFromYDoc, h as readFlow, r as readFlowAsBaseUcan, g as readFlowFromEditor, Q as readQueuedAgentCommands, T as releaseFlowAgentLease, j as setActiveEditor, s as setupFlowFromBaseUcan, U as tickFlowAgent, V as validateAgentCommand, W as validateFlowAgentLease } from './store-BIt_Vdjw.js';
|
|
3
3
|
export { Block, BlockNoteEditor, BlockNoteSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, PartialBlock } from '@blocknote/core';
|
|
4
|
-
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, w as BlocknoteHandlers, B as BlocknoteProvider, O as CosmosMsgForEmpty, D as DelegationChainValidationResult, k as DelegationGrant, K as Expiration, Z as ImportProtocolTemplateResult, Y as ImportProtocolTemplatesToSpaceParams, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, R as ListProtocolDeedsWithTemplatesParams, _ as MatrixPrivacySettings, $ as MatrixRoom, a0 as MatrixSpace, a2 as MatrixSpaceStructure, a1 as MatrixSubspace, Q as ProposalAction, P as ProposalResponse, W as ProtocolDeedWithTemplates, X as ProtocolTemplateSummary, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, S as StoredDelegation, j as StoredInvocation, M as Threshold, T as Timestamp, a3 as Translate, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, J as Uint128, G as User, V as ValidatorActionType, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers, t as useTranslate } from './index-
|
|
4
|
+
export { H as Addr, A as AuthzExecActionTypes, y as BlockRequirements, x as BlocknoteContextValue, w as BlocknoteHandlers, B as BlocknoteProvider, O as CosmosMsgForEmpty, D as DelegationChainValidationResult, k as DelegationGrant, K as Expiration, Z as ImportProtocolTemplateResult, Y as ImportProtocolTemplatesToSpaceParams, I as InvocationStore, p as IxoCollaborativeEditorOptions, o as IxoCollaborativeUser, n as IxoEditorConfig, l as IxoEditorOptions, m as IxoEditorTheme, R as ListProtocolDeedsWithTemplatesParams, _ as MatrixPrivacySettings, $ as MatrixRoom, a0 as MatrixSpace, a2 as MatrixSpaceStructure, a1 as MatrixSubspace, Q as ProposalAction, P as ProposalResponse, W as ProtocolDeedWithTemplates, X as ProtocolTemplateSummary, z as SingleChoiceProposal, v as StakeType, v as StakeTypeValue, L as Status, S as StoredDelegation, j as StoredInvocation, M as Threshold, T as Timestamp, a3 as Translate, i as UcanCapability, U as UcanDelegationStore, f as UcanService, g as UcanServiceConfig, h as UcanServiceHandlers, J as Uint128, G as User, V as ValidatorActionType, F as Vote, E as VoteInfo, C as VoteResponse, N as Votes, q as blockSpecs, b as createInvocationStore, d as createMemoryInvocationStore, a as createMemoryUcanDelegationStore, c as createUcanDelegationStore, e as createUcanService, r as getExtraSlashMenuItems, u as useBlocknoteContext, s as useBlocknoteHandlers, t as useTranslate } from './index-D0S6jY7O.js';
|
|
5
5
|
export { CloneDocumentResult, cloneDocument } from '@ixo/matrix-crdt';
|
|
6
6
|
import 'yjs';
|
|
7
7
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
useCreateIxoEditor,
|
|
31
31
|
useTrackBlockFocus,
|
|
32
32
|
useTranslate
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-ZE2EEZH6.js";
|
|
34
|
+
import "./chunk-VPMDJE6B.js";
|
|
35
35
|
import {
|
|
36
36
|
FlowAgentService,
|
|
37
37
|
acquireFlowAgentLease,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
tickFlowAgent,
|
|
71
71
|
validateAgentCommand,
|
|
72
72
|
validateFlowAgentLease
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ABM3ZZIX.js";
|
|
74
74
|
|
|
75
75
|
// src/index.ts
|
|
76
76
|
import { cloneDocument } from "@ixo/matrix-crdt";
|