@feltdb/core 0.7.3 → 0.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/README.md +25 -0
- package/dist/application-development.d.ts +78 -0
- package/dist/application-development.d.ts.map +1 -0
- package/dist/application-development.js +153 -0
- package/dist/application-manifest.d.ts +6 -1
- package/dist/application-manifest.d.ts.map +1 -1
- package/dist/application-manifest.js +10 -3
- package/dist/canonical-application.d.ts +27 -0
- package/dist/canonical-application.d.ts.map +1 -0
- package/dist/canonical-application.js +46 -0
- package/dist/cli/ai-model-config.js +97 -0
- package/dist/cli/cli.js +1 -1
- package/dist/cli/commands.js +664 -120
- package/dist/cli/index.js +1 -1
- package/dist/cli/managed-environment.js +6 -0
- package/dist/cli/managed-project.js +6 -0
- package/dist/cli/proposal-client.js +63 -0
- package/dist/cli/publish-engine.js +165 -0
- package/dist/cli/source-sync.js +183 -0
- package/dist/create/cli.js +11 -2
- package/dist/create/create.js +38 -16
- package/dist/create/managed-account.js +82 -11
- package/dist/create/package-versions.js +1 -1
- package/dist/create/server-source/crates/feltdb/src/application.rs +41 -1
- package/dist/create/server-source/crates/feltdb/src/authority_failover.rs +84 -6
- package/dist/create/server-source/crates/feltdb/src/bin/feltdb_node.rs +126 -38
- package/dist/create/server-source/crates/feltdb/src/distributed_transactions.rs +72 -34
- package/dist/create/server-source/crates/feltdb/src/lib.rs +20 -2
- package/dist/create/server-source/crates/feltdb-server/src/app_state.rs +12 -24
- package/dist/create/server-source/crates/feltdb-server/src/application_contract.rs +11 -3
- package/dist/create/server-source/crates/feltdb-server/src/authenticated_principal.rs +0 -1
- package/dist/create/server-source/crates/feltdb-server/src/certification_harness.rs +23 -22
- package/dist/create/server-source/crates/feltdb-server/src/delegation_token.rs +5 -15
- package/dist/create/server-source/crates/feltdb-server/src/durable_operations.rs +13 -28
- package/dist/create/server-source/crates/feltdb-server/src/identity.rs +111 -3
- package/dist/create/server-source/crates/feltdb-server/src/key_management.rs +28 -7
- package/dist/create/server-source/crates/feltdb-server/src/lib.rs +5 -5
- package/dist/create/server-source/crates/feltdb-server/src/main.rs +1960 -143
- package/dist/create/server-source/crates/feltdb-server/src/managed_diagnostics.rs +10 -30
- package/dist/create/server-source/crates/feltdb-server/src/membership_policy.rs +12 -4
- package/dist/create/server-source/crates/feltdb-server/src/request_telemetry.rs +8 -6
- package/dist/create/server-source/crates/feltdb-server/src/snapshot_cursor.rs +10 -14
- package/dist/create/server-source/crates/feltdb-server/src/tenancy.rs +195 -13
- package/dist/create/server-source/crates/feltdb-server/src/tenant_policies.rs +9 -21
- package/dist/create/server-source/crates/feltdb-server/src/transaction_idempotency.rs +5 -3
- package/dist/create/server-source/crates/feltdb-server/src/transaction_recovery.rs +9 -8
- package/dist/create/server-source/crates/feltdb-server/tests/revision_recovery_integration_test.rs +1 -4
- package/dist/create/template/default-project/README.md +57 -0
- package/dist/create/template/default-project/agents/activity-assistant.ts +18 -0
- package/dist/create/template/default-project/agents/project-assistant.ts +19 -0
- package/dist/create/template/default-project/capabilities/activity-summary.ts +14 -0
- package/dist/create/template/default-project/capabilities/project-search.ts +16 -0
- package/dist/create/template/default-project/capabilities/project-summary.ts +15 -0
- package/dist/create/template/default-project/feltdb.flow +174 -0
- package/dist/create/template/default-project/src/App.tsx +20 -0
- package/dist/create/template/default-project/src/context/AuthContext.tsx +27 -0
- package/dist/create/template/default-project/src/feltdb.ts +87 -0
- package/dist/create/template/default-project/src/index.tsx +14 -0
- package/dist/create/template/default-project/src/pages/Activity.tsx +7 -0
- package/dist/create/template/default-project/src/pages/Agents.tsx +15 -0
- package/dist/create/template/default-project/src/pages/Dashboard.tsx +17 -0
- package/dist/create/template/default-project/src/pages/Invitations.tsx +11 -0
- package/dist/create/template/default-project/src/pages/Projects.tsx +11 -0
- package/dist/create/template/default-project/src/pages/SignIn.tsx +8 -0
- package/dist/create/template/default-project/src/pages/SignUp.tsx +8 -0
- package/dist/create/template/default-project/src/styles-application.css +21 -0
- package/dist/create/template/default-project/src/styles.css +1 -0
- package/dist/create/template/default-project/workflows/agent-assisted-summary.ts +1 -0
- package/dist/create/template/default-project/workflows/invitation.ts +30 -0
- package/dist/create/template/default-project/workflows/project-created.ts +2 -0
- package/dist/db.d.ts +49 -1
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +77 -0
- package/dist/error-codes.d.ts +20 -1
- package/dist/error-codes.d.ts.map +1 -1
- package/dist/error-codes.js +25 -0
- package/dist/flowspec.d.ts +1 -0
- package/dist/flowspec.d.ts.map +1 -1
- package/dist/flowspec.js +66 -11
- package/dist/http-client.d.ts +135 -14
- package/dist/http-client.d.ts.map +1 -1
- package/dist/http-client.js +79 -31
- package/dist/http-db.d.ts +15 -2
- package/dist/http-db.d.ts.map +1 -1
- package/dist/http-db.js +113 -5
- package/dist/index-core.d.ts +5 -0
- package/dist/index-core.d.ts.map +1 -1
- package/dist/index-core.js +5 -0
- package/dist/module-intent.d.ts +37 -0
- package/dist/module-intent.d.ts.map +1 -0
- package/dist/module-intent.js +81 -0
- package/dist/module.d.ts +76 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.js +61 -0
- package/dist/proposal.d.ts +161 -0
- package/dist/proposal.d.ts.map +1 -0
- package/dist/proposal.js +232 -0
- package/dist/studio/app.d.ts +5 -1
- package/dist/studio/app.d.ts.map +1 -1
- package/dist/studio/components/ApplicationDesigner.d.ts +2 -1
- package/dist/studio/components/ApplicationDesigner.d.ts.map +1 -1
- package/dist/studio/components/AskFeltDB.d.ts +21 -0
- package/dist/studio/components/AskFeltDB.d.ts.map +1 -0
- package/dist/studio/components/ContractInspector.d.ts +7 -0
- package/dist/studio/components/ContractInspector.d.ts.map +1 -0
- package/dist/studio/components/ManagedInstancePanel.d.ts.map +1 -1
- package/dist/studio/components/ManagedInstancePanel.js +1 -5
- package/dist/studio/components/ModuleExplorer.d.ts +6 -0
- package/dist/studio/components/ModuleExplorer.d.ts.map +1 -0
- package/dist/studio/components/ProposalBrowser.d.ts +12 -0
- package/dist/studio/components/ProposalBrowser.d.ts.map +1 -0
- package/dist/studio/components/StateExplorer.d.ts +6 -7
- package/dist/studio/components/StateExplorer.d.ts.map +1 -1
- package/dist/studio/components/index.d.ts +4 -0
- package/dist/studio/components/index.d.ts.map +1 -1
- package/dist/studio/components/index.js +4 -4
- package/dist/studio/components-CNSNrmA9.js +2787 -0
- package/dist/studio/index.js +214 -157
- package/dist/studio/studio.css +1 -1
- package/dist/studio/utils/index.d.ts +2 -0
- package/dist/studio/utils/index.d.ts.map +1 -1
- package/dist/studio/utils/index.js +14 -12
- package/dist/studio/utils/managed-instance.d.ts +0 -4
- package/dist/studio/utils/managed-instance.d.ts.map +1 -1
- package/dist/studio/utils/managed-instance.js +0 -4
- package/dist/studio/utils/proposal-api.d.ts +53 -0
- package/dist/studio/utils/proposal-api.d.ts.map +1 -0
- package/dist/studio/utils/proposal-api.js +91 -0
- package/dist/studio/utils/service-api.d.ts +81 -0
- package/dist/studio/utils/service-api.d.ts.map +1 -0
- package/dist/studio/utils/service-api.js +51 -0
- package/dist/studio-app/assets/dist-CCOk39Uc.js +1 -0
- package/dist/studio-app/assets/{feltdb_wasm-DVKsw75S.js → feltdb_wasm-CSB6KVgw.js} +1 -1
- package/dist/studio-app/assets/feltdb_wasm_bg-Dd1fnO9U.wasm +0 -0
- package/dist/studio-app/assets/index-Bncji3aN.js +43 -0
- package/dist/studio-app/assets/{index-C1GWyazR.css → index-yazaWMUN.css} +1 -1
- package/dist/studio-app/assets/lib-B2_7fcn7.js +69 -0
- package/dist/studio-app/assets/worker-CARZ5g7K.js +69 -0
- package/dist/studio-app/index.html +2 -2
- package/dist/wasm/feltdb_wasm_bg.wasm +0 -0
- package/dist/workspace/local-development-authority.d.ts +3 -0
- package/dist/workspace/local-development-authority.d.ts.map +1 -1
- package/dist/workspace/local-development-authority.js +124 -2
- package/package.json +1 -1
- package/dist/studio/components-Dxuhrv8_.js +0 -1832
- package/dist/studio-app/assets/feltdb_wasm_bg-DNyNf0yy.wasm +0 -0
- package/dist/studio-app/assets/index-B5tnmvSD.js +0 -28
package/dist/proposal.js
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { createContractSnapshot, flowSourceHash, validateFlowProposal, } from './application-development.js';
|
|
2
|
+
import { validateResolvedModules } from './module.js';
|
|
3
|
+
export const FELTDB_PROPOSAL_COLLECTION = '_feltdb.Proposal';
|
|
4
|
+
export const FELTDB_PROPOSAL_EVENT_COLLECTION = '_feltdb.ProposalEvent';
|
|
5
|
+
export const FELTDB_PROPOSAL_PREVIEW_COLLECTION = '_feltdb.ProposalPreview';
|
|
6
|
+
export const FELTDB_PROPOSAL_VERSION = 1;
|
|
7
|
+
function redactProposalSecretValues(input) {
|
|
8
|
+
const visit = (value, key = '') => {
|
|
9
|
+
if (value === null || value === undefined)
|
|
10
|
+
return value;
|
|
11
|
+
if (typeof value === 'string')
|
|
12
|
+
return /(?:sk_(?:live|test)_|whsec_|-----BEGIN PRIVATE KEY-----)/.test(value) ? '[REDACTED]' : value;
|
|
13
|
+
if (Array.isArray(value))
|
|
14
|
+
return value.map(item => visit(item));
|
|
15
|
+
if (typeof value === 'object')
|
|
16
|
+
return Object.fromEntries(Object.entries(value).map(([name, child]) => [/secret|password|token|api_?key|credential|private_?key/i.test(name) ? name : name, /secret|password|token|api_?key|credential|private_?key/i.test(name) ? '[REDACTED]' : visit(child, name)]));
|
|
17
|
+
return /secret|password|token|api_?key|credential|private_?key/i.test(key) ? '[REDACTED]' : value;
|
|
18
|
+
};
|
|
19
|
+
return visit(structuredClone(input));
|
|
20
|
+
}
|
|
21
|
+
/** Canonical human diagnostic used by CLI and Studio text surfaces. */
|
|
22
|
+
export function renderProposalDiagnostic(proposal, options = {}) {
|
|
23
|
+
const impact = proposal.module_impact;
|
|
24
|
+
const section = (name, values) => values.length ? [name, ...values.map(value => ` ${value}`)] : [];
|
|
25
|
+
const readiness = options.readiness;
|
|
26
|
+
return [
|
|
27
|
+
`Proposal: ${proposal.id}`,
|
|
28
|
+
proposal.summary,
|
|
29
|
+
`Status ${proposal.status.toUpperCase()}`,
|
|
30
|
+
`Application ${proposal.application_id}`,
|
|
31
|
+
`Environment ${proposal.environment}`,
|
|
32
|
+
`Contract v${proposal.base_contract_version} ${proposal.base_contract_hash}`,
|
|
33
|
+
`Flow ${proposal.base_flow_hash}`,
|
|
34
|
+
...(proposal.parent_proposal_id ? [`Based on ${proposal.parent_proposal_id}`] : []),
|
|
35
|
+
...section('MODULES', proposal.module_versions.map(value => `+ ${value.id} (${value.provider}) ${value.version}`)),
|
|
36
|
+
...section('STATE', impact.models.map(value => `+ ${value}`)),
|
|
37
|
+
...section('RELATIONSHIPS', impact.relationships.map(value => `+ ${value}`)),
|
|
38
|
+
...section('WORKFLOWS', impact.workflows.map(value => `+ ${value}`)),
|
|
39
|
+
...section('EVENTS', impact.events.map(value => `+ ${value}`)),
|
|
40
|
+
...section('CAPABILITIES', impact.capabilities.map(value => `+ ${value}`)),
|
|
41
|
+
...section('AUTHORIZATION', impact.authorization.map(value => `+ ${value}`)),
|
|
42
|
+
...section('CONFIGURATION', [...impact.configuration.map(value => `${value} configuration`), ...impact.secrets.map(value => `${value} required / secret`)]),
|
|
43
|
+
...(readiness ? ['READINESS',
|
|
44
|
+
` ${readiness.stale ? '!' : '✓'} Contract and flow ${readiness.stale ? 'stale' : 'current'}`,
|
|
45
|
+
` ${readiness.blockers.length ? readiness.blockers.join(', ') : 'No blockers'}`] : []),
|
|
46
|
+
...(options.preview ? ['PREVIEW', ' Current → Proposed available', ` ${options.preview.preview_id}`] : []),
|
|
47
|
+
...section('HISTORY', (options.history ?? []).map(value => `✓ ${value.to_status}`)),
|
|
48
|
+
...section('WARNINGS', proposal.warnings.map(value => `! ${value}`)),
|
|
49
|
+
];
|
|
50
|
+
}
|
|
51
|
+
const transitions = {
|
|
52
|
+
proposed: ['validated', 'rejected'], validated: ['previewed', 'rejected'], previewed: ['approved', 'rejected'],
|
|
53
|
+
approved: ['applied', 'expired'], applied: [], rejected: [], expired: [],
|
|
54
|
+
};
|
|
55
|
+
export class FeltDBProposalService {
|
|
56
|
+
store;
|
|
57
|
+
context;
|
|
58
|
+
repositoryAuthority;
|
|
59
|
+
constructor(store, context, repositoryAuthority) {
|
|
60
|
+
this.store = store;
|
|
61
|
+
this.context = context;
|
|
62
|
+
this.repositoryAuthority = repositoryAuthority;
|
|
63
|
+
}
|
|
64
|
+
async create(input) {
|
|
65
|
+
const current = await this.context();
|
|
66
|
+
if (input.application_id !== current.snapshot.application.application_id || input.environment !== current.snapshot.application.environment)
|
|
67
|
+
throw new Error('PROPOSAL_SCOPE_MISMATCH');
|
|
68
|
+
if (input.base_contract_hash !== current.snapshot.contract_hash || input.base_flow_hash !== await flowSourceHash(current.source))
|
|
69
|
+
throw new Error('STALE_PROPOSAL');
|
|
70
|
+
const id = `p_${crypto.randomUUID().replace(/-/g, '')}`;
|
|
71
|
+
const safeInput = redactProposalSecretValues(input);
|
|
72
|
+
const record = { id, application_id: safeInput.application_id, environment: safeInput.environment,
|
|
73
|
+
status: 'proposed', proposal_version: FELTDB_PROPOSAL_VERSION, base_contract_version: current.snapshot.contract_version,
|
|
74
|
+
base_contract_hash: safeInput.base_contract_hash, base_flow_hash: safeInput.base_flow_hash, proposed_flow: safeInput.proposed_flow,
|
|
75
|
+
contract_diff: [], source_plan: { files: [] }, summary: safeInput.summary, warnings: safeInput.warnings ?? [], created_by: safeInput.actor,
|
|
76
|
+
created_at: new Date().toISOString(), expires_at: safeInput.expires_at, metadata: safeInput.metadata ?? {}, parent_proposal_id: safeInput.parent_proposal_id,
|
|
77
|
+
base_module_versions: current.snapshot.modules.map(value => ({ id: value.id, provider: value.provider, version: value.version })),
|
|
78
|
+
module_versions: current.snapshot.modules.map(value => ({ id: value.id, provider: value.provider, version: value.version })),
|
|
79
|
+
module_impact: { modules: [], models: [], relationships: [], events: [], workflows: [], capabilities: [], authorization: [], configuration: [], secrets: [], ownership: {}, state_flow: [] } };
|
|
80
|
+
await this.store.create(FELTDB_PROPOSAL_COLLECTION, id, record);
|
|
81
|
+
await this.event(id, undefined, 'proposed', input.actor);
|
|
82
|
+
return record;
|
|
83
|
+
}
|
|
84
|
+
list() { return this.store.list(FELTDB_PROPOSAL_COLLECTION); }
|
|
85
|
+
async get(id) {
|
|
86
|
+
const value = await this.store.get(FELTDB_PROPOSAL_COLLECTION, id);
|
|
87
|
+
if (!value)
|
|
88
|
+
throw new Error('PROPOSAL_NOT_FOUND');
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
async history(id) {
|
|
92
|
+
return (await this.store.list(FELTDB_PROPOSAL_EVENT_COLLECTION)).filter(value => value.proposal_id === id);
|
|
93
|
+
}
|
|
94
|
+
async readiness(id) {
|
|
95
|
+
const record = await this.get(id);
|
|
96
|
+
const current = await this.context();
|
|
97
|
+
const currentFlowHash = await flowSourceHash(current.source);
|
|
98
|
+
const currentModules = current.snapshot.modules.map(value => ({ id: value.id, provider: value.provider, version: value.version }));
|
|
99
|
+
const blockers = [];
|
|
100
|
+
if (record.base_contract_hash !== current.snapshot.contract_hash)
|
|
101
|
+
blockers.push('contract_changed');
|
|
102
|
+
if (record.base_flow_hash !== currentFlowHash)
|
|
103
|
+
blockers.push('flow_changed');
|
|
104
|
+
if (JSON.stringify(record.base_module_versions ?? []) !== JSON.stringify(currentModules))
|
|
105
|
+
blockers.push('module_versions_changed');
|
|
106
|
+
if (record.expires_at && (typeof record.expires_at === 'number' ? record.expires_at * 1000 : Date.parse(record.expires_at)) <= Date.now())
|
|
107
|
+
blockers.push('expired');
|
|
108
|
+
return { status: record.status, readiness: blockers.length ? 'blocked' : 'ready', blockers, notes: [],
|
|
109
|
+
current_contract_hash: current.snapshot.contract_hash, proposal_contract_hash: record.base_contract_hash,
|
|
110
|
+
current_flow_hash: currentFlowHash, proposal_flow_hash: record.base_flow_hash,
|
|
111
|
+
stale: blockers.some(value => value !== 'expired'), expires_at: record.expires_at };
|
|
112
|
+
}
|
|
113
|
+
async validate(id, actor) {
|
|
114
|
+
const record = await this.get(id);
|
|
115
|
+
this.assertMutable(record, 'proposed');
|
|
116
|
+
const current = await this.context();
|
|
117
|
+
const proposal = { baseContractHash: record.base_contract_hash, baseFlowHash: record.base_flow_hash,
|
|
118
|
+
proposedFlow: record.proposed_flow, summary: record.summary, changes: [], warnings: record.warnings };
|
|
119
|
+
const review = await validateFlowProposal({ proposal, currentFlow: current.source, snapshot: current.snapshot });
|
|
120
|
+
record.contract_diff = [
|
|
121
|
+
...review.diff.added.map(value => `+ ${value}`), ...review.diff.changed.map(value => `~ ${value}`),
|
|
122
|
+
...review.diff.removed.map(value => `- ${value}`),
|
|
123
|
+
];
|
|
124
|
+
record.source_plan = { files: [{ path: 'feltdb.flow', operation: 'modify' }, { path: 'src/feltdb/generated-contract.ts', operation: 'modify' }] };
|
|
125
|
+
record.warnings = [...new Set([...record.warnings, ...review.authorizationChanges.map(value => `Authorization ${value.widening ? 'widened' : 'changed'}: ${value.policy}: ${(value.before ?? []).join(' | ')} -> ${(value.after ?? []).join(' | ')}`)])];
|
|
126
|
+
record.warnings = [...new Set([...record.warnings, ...validateResolvedModules(review.proposedContract.manifest.modules ?? [], record.environment)])];
|
|
127
|
+
record.module_versions = (review.proposedContract.manifest.modules ?? []).map(value => ({ id: value.id, provider: value.provider, version: value.version }));
|
|
128
|
+
const moduleIds = new Set((review.proposedContract.manifest.modules ?? []).map(value => value.id));
|
|
129
|
+
record.module_impact = {
|
|
130
|
+
modules: [...moduleIds],
|
|
131
|
+
models: review.proposedSpec.collections.flatMap(collection => collection.fields.map(field => field.type.startsWith('ref ') ? field.type.slice(4) : '').filter(value => value.includes('.') && moduleIds.has(value.split('.')[0]))),
|
|
132
|
+
relationships: review.proposedSpec.collections.flatMap(collection => collection.fields.filter(field => field.type.startsWith('ref ')).map(field => `${collection.name}.${field.name} -> ${field.type.slice(4)}`)),
|
|
133
|
+
events: review.proposedSpec.triggers.map(value => value.event).filter(value => moduleIds.has(value.split('.')[0])),
|
|
134
|
+
workflows: review.proposedSpec.workflows.map(value => value.name),
|
|
135
|
+
capabilities: review.proposedContract.manifest.capabilities.filter(value => value.provider && moduleIds.has(value.provider)).map(value => value.name),
|
|
136
|
+
authorization: review.proposedSpec.policies.flatMap(value => value.statements.map(statement => `${value.name}: ${statement}`)),
|
|
137
|
+
configuration: (review.proposedContract.manifest.modules ?? []).flatMap(value => value.configuration.map(item => item.name)),
|
|
138
|
+
secrets: (review.proposedContract.manifest.modules ?? []).flatMap(value => value.secrets.map(item => item.name)),
|
|
139
|
+
ownership: Object.fromEntries((review.proposedContract.manifest.modules ?? []).flatMap(value => value.models.map(model => [`${value.id}.${model.name}`, model.ownership]))),
|
|
140
|
+
state_flow: (review.proposedContract.manifest.modules ?? []).flatMap(value => value.reconciliation.map(item => `${item.event} -> ${item.workflow} -> ${item.writes.join(', ')}`)),
|
|
141
|
+
};
|
|
142
|
+
return this.move(record, 'validated', actor);
|
|
143
|
+
}
|
|
144
|
+
async preview(id, actor) {
|
|
145
|
+
const record = await this.get(id);
|
|
146
|
+
this.assertMutable(record, 'validated');
|
|
147
|
+
const current = await this.context();
|
|
148
|
+
const review = await validateFlowProposal({ proposal: { baseContractHash: record.base_contract_hash, baseFlowHash: record.base_flow_hash,
|
|
149
|
+
proposedFlow: record.proposed_flow, summary: record.summary, changes: [], warnings: record.warnings }, currentFlow: current.source, snapshot: current.snapshot });
|
|
150
|
+
const proposed = createContractSnapshot(review.proposedContract, { environment: record.environment, contractVersion: record.base_contract_version + 1 });
|
|
151
|
+
const readiness = await this.readiness(id);
|
|
152
|
+
const now = Date.now();
|
|
153
|
+
const previewId = `pv_${crypto.randomUUID().replace(/-/g, '')}`;
|
|
154
|
+
await this.move(record, 'previewed', actor);
|
|
155
|
+
record.preview_id = previewId;
|
|
156
|
+
await this.store.replace(FELTDB_PROPOSAL_COLLECTION, record.id, record);
|
|
157
|
+
const impact = record.module_impact;
|
|
158
|
+
const artifact = {
|
|
159
|
+
preview_id: previewId, proposal_id: id, application_id: record.application_id, environment: record.environment,
|
|
160
|
+
proposal_hash: record.base_contract_hash, created_at: new Date(now).toISOString(), expires_at: new Date(now + 60 * 60 * 1000).toISOString(), status: 'ready',
|
|
161
|
+
current: current.snapshot, proposed, current_contract: current.snapshot, proposed_contract: proposed,
|
|
162
|
+
semantic_diff: record.contract_diff, state_flow: impact.state_flow, capabilities: proposed.capabilities, workflows: proposed.workflows,
|
|
163
|
+
authorization: proposed.policies, configuration: impact.configuration, secrets: impact.secrets, modules: impact.modules,
|
|
164
|
+
ownership: impact.ownership, relationships: impact.relationships, events: impact.events,
|
|
165
|
+
seeded_records: proposed.schema.map(collection => ({ collection: collection.name, id: `preview_${collection.name.toLowerCase()}`, preview_data: true })),
|
|
166
|
+
data_classification: 'synthetic_preview', external_side_effects: 'simulated', readiness, proposal: record,
|
|
167
|
+
};
|
|
168
|
+
await this.store.create(FELTDB_PROPOSAL_PREVIEW_COLLECTION, previewId, artifact);
|
|
169
|
+
return artifact;
|
|
170
|
+
}
|
|
171
|
+
async getPreview(id) {
|
|
172
|
+
const artifact = await this.store.get(FELTDB_PROPOSAL_PREVIEW_COLLECTION, id);
|
|
173
|
+
if (!artifact)
|
|
174
|
+
throw new Error('PREVIEW_NOT_FOUND');
|
|
175
|
+
if (Date.parse(artifact.expires_at) <= Date.now())
|
|
176
|
+
throw new Error('PREVIEW_EXPIRED');
|
|
177
|
+
const proposal = await this.get(artifact.proposal_id);
|
|
178
|
+
if (proposal.preview_id !== id)
|
|
179
|
+
throw new Error('PREVIEW_INVALIDATED');
|
|
180
|
+
const readiness = await this.readiness(proposal.id);
|
|
181
|
+
if (readiness.stale)
|
|
182
|
+
throw new Error('PREVIEW_INVALIDATED');
|
|
183
|
+
return artifact;
|
|
184
|
+
}
|
|
185
|
+
async transition(id, status, actor, authority, approveAuthorization = false) {
|
|
186
|
+
const record = await this.get(id);
|
|
187
|
+
const expired = record.expires_at && (typeof record.expires_at === 'number' ? record.expires_at * 1000 : Date.parse(record.expires_at)) <= Date.now();
|
|
188
|
+
if (expired && status !== 'expired')
|
|
189
|
+
throw new Error('PROPOSAL_EXPIRED');
|
|
190
|
+
if (status === 'applied' && (!this.repositoryAuthority || authority !== this.repositoryAuthority))
|
|
191
|
+
throw new Error('REPOSITORY_AUTHORITY_REQUIRED');
|
|
192
|
+
if (status === 'approved') {
|
|
193
|
+
if (!record.preview_id)
|
|
194
|
+
throw new Error('PREVIEW_REQUIRED');
|
|
195
|
+
await this.getPreview(record.preview_id);
|
|
196
|
+
const current = await this.context();
|
|
197
|
+
if (record.application_id !== current.snapshot.application.application_id || record.environment !== current.snapshot.application.environment)
|
|
198
|
+
throw new Error('PROPOSAL_SCOPE_MISMATCH');
|
|
199
|
+
if (record.base_contract_hash !== current.snapshot.contract_hash || record.base_flow_hash !== await flowSourceHash(current.source))
|
|
200
|
+
throw new Error('STALE_PROPOSAL');
|
|
201
|
+
}
|
|
202
|
+
if (status === 'approved' && record.warnings.some(value => value.startsWith('Authorization ')) && !approveAuthorization)
|
|
203
|
+
throw new Error('AUTHORIZATION_APPROVAL_REQUIRED');
|
|
204
|
+
if (status === 'approved') {
|
|
205
|
+
record.approved_by = actor;
|
|
206
|
+
record.approved_at = new Date().toISOString();
|
|
207
|
+
}
|
|
208
|
+
if (status === 'applied')
|
|
209
|
+
record.applied_at = new Date().toISOString();
|
|
210
|
+
return this.move(record, status, actor);
|
|
211
|
+
}
|
|
212
|
+
assertMutable(record, status) {
|
|
213
|
+
if (record.status !== status)
|
|
214
|
+
throw new Error(`INVALID_PROPOSAL_TRANSITION: ${record.status}`);
|
|
215
|
+
if (record.expires_at && (typeof record.expires_at === 'number' ? record.expires_at * 1000 : Date.parse(record.expires_at)) <= Date.now())
|
|
216
|
+
throw new Error('PROPOSAL_EXPIRED');
|
|
217
|
+
}
|
|
218
|
+
async move(record, status, actor) {
|
|
219
|
+
if (!transitions[record.status].includes(status))
|
|
220
|
+
throw new Error(`INVALID_PROPOSAL_TRANSITION: ${record.status} -> ${status}`);
|
|
221
|
+
const from = record.status;
|
|
222
|
+
record.status = status;
|
|
223
|
+
await this.store.replace(FELTDB_PROPOSAL_COLLECTION, record.id, record);
|
|
224
|
+
await this.event(record.id, from, status, actor);
|
|
225
|
+
return record;
|
|
226
|
+
}
|
|
227
|
+
async event(proposal, from, to, actor) {
|
|
228
|
+
const event = { id: `pe_${crypto.randomUUID().replace(/-/g, '')}`, proposal_id: proposal,
|
|
229
|
+
from_status: from, to_status: to, actor, created_at: new Date().toISOString(), metadata: {} };
|
|
230
|
+
await this.store.create(FELTDB_PROPOSAL_EVENT_COLLECTION, event.id, event);
|
|
231
|
+
}
|
|
232
|
+
}
|
package/dist/studio/app.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ManagedPublishConfiguration } from './components/ApplicationDesigner';
|
|
3
|
+
import { SourceSyncConfiguration } from './components/AskFeltDB';
|
|
3
4
|
import { StateFirstDB } from '@feltdb/core';
|
|
4
5
|
export interface StudioAppProps {
|
|
5
6
|
db?: StateFirstDB;
|
|
@@ -8,10 +9,13 @@ export interface StudioAppProps {
|
|
|
8
9
|
namespace?: string;
|
|
9
10
|
deploymentRuntime?: string;
|
|
10
11
|
applicationUrl?: string;
|
|
12
|
+
applicationId?: string;
|
|
13
|
+
environment?: string;
|
|
11
14
|
developmentSession?: Record<string, string>;
|
|
12
15
|
managedPublish?: ManagedPublishConfiguration;
|
|
16
|
+
sourceSync?: SourceSyncConfiguration;
|
|
13
17
|
onConnect?: (url: string, token: string) => void;
|
|
14
18
|
}
|
|
15
|
-
export declare function StudioApp({ db, remoteUrl, token, namespace, deploymentRuntime, applicationUrl, developmentSession, managedPublish, onConnect }: StudioAppProps): React.JSX.Element;
|
|
19
|
+
export declare function StudioApp({ db, remoteUrl, token, namespace, deploymentRuntime, applicationUrl, applicationId, environment, developmentSession, managedPublish, sourceSync, onConnect }: StudioAppProps): React.JSX.Element;
|
|
16
20
|
export default StudioApp;
|
|
17
21
|
//# sourceMappingURL=app.d.ts.map
|
package/dist/studio/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,OAA4B,EAAE,KAAK,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,OAA4B,EAAE,KAAK,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACzG,OAAO,EAAa,KAAK,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAMjF,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,WAAW,CAAC;AAEnB,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,YAAY,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAC7C,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,EAAE,SAAc,EAAE,KAAU,EAAE,SAAqB,EAAE,iBAA6B,EAAE,cAAmB,EAAE,aAAkB,EAAE,WAA0B,EAAE,kBAAkB,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,cAAc,qBAqJjQ;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -3,9 +3,10 @@ import { StateFirstDB, FlowSpec } from '@feltdb/core';
|
|
|
3
3
|
export interface ManagedPublishConfiguration {
|
|
4
4
|
url: string;
|
|
5
5
|
namespace: string;
|
|
6
|
-
token
|
|
6
|
+
token?: string;
|
|
7
7
|
environment?: string;
|
|
8
8
|
applicationId?: string;
|
|
9
|
+
publishEndpoint?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface ApplicationDesignerProps {
|
|
11
12
|
db?: StateFirstDB;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationDesigner.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationDesigner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAkB,MAAM,cAAc,CAAC;AAO3E,MAAM,WAAW,2BAA2B;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE;
|
|
1
|
+
{"version":3,"file":"ApplicationDesigner.d.ts","sourceRoot":"","sources":["../../src/components/ApplicationDesigner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAkB,MAAM,cAAc,CAAC;AAO3E,MAAM,WAAW,2BAA2B;IAAG,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE;AACvK,MAAM,WAAW,wBAAwB;IAAG,EAAE,CAAC,EAAE,YAAY,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;CAAE;AAEzM,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,EAAE,SAAqB,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,wBAAwB,qBA6HrI;AACD,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SourceSyncConfiguration {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
webllmEnabled: boolean;
|
|
5
|
+
previewOnly?: boolean;
|
|
6
|
+
token: string;
|
|
7
|
+
aiModel?: {
|
|
8
|
+
provider: 'local-webllm' | 'openai-compatible';
|
|
9
|
+
model: string;
|
|
10
|
+
baseUrl?: string;
|
|
11
|
+
local: boolean;
|
|
12
|
+
credentialRequired: boolean;
|
|
13
|
+
credentialConfigured: boolean;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare function AskFeltDB({ configuration, onApplied, onProposalCreated }: {
|
|
17
|
+
configuration?: SourceSyncConfiguration;
|
|
18
|
+
onApplied?: () => void;
|
|
19
|
+
onProposalCreated?: (proposalId: string) => void;
|
|
20
|
+
}): React.JSX.Element;
|
|
21
|
+
//# sourceMappingURL=AskFeltDB.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AskFeltDB.d.ts","sourceRoot":"","sources":["../../src/components/AskFeltDB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,MAAM,WAAW,uBAAuB;IAAG,OAAO,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,EAAE,cAAc,GAAG,mBAAmB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAC;QAAC,kBAAkB,EAAE,OAAO,CAAC;QAAC,oBAAoB,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE;AAKtS,wBAAgB,SAAS,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE;IAAE,aAAa,CAAC,EAAE,uBAAuB,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,qBA4E/L"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FlowSpec } from '@feltdb/core';
|
|
3
|
+
export declare function ContractInspector({ model, section }: {
|
|
4
|
+
model: FlowSpec | null;
|
|
5
|
+
section: 'schema' | 'policies';
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ContractInspector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContractInspector.d.ts","sourceRoot":"","sources":["../../src/components/ContractInspector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,QAAQ,GAAC,UAAU,CAAA;CAAE,qBAM7G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedInstancePanel.d.ts","sourceRoot":"","sources":["../../src/components/ManagedInstancePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ManagedInstancePanel.d.ts","sourceRoot":"","sources":["../../src/components/ManagedInstancePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAmRxC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -106,11 +106,7 @@ var i = () => {
|
|
|
106
106
|
if (!u) return;
|
|
107
107
|
let t = e.generateEnvContent({
|
|
108
108
|
url: `https://${i}-feltdb.fly.dev`,
|
|
109
|
-
token: u.secret
|
|
110
|
-
namespace: u.namespace,
|
|
111
|
-
applicationId: i,
|
|
112
|
-
revisionId: "v0.5-alpha",
|
|
113
|
-
environment: "staging"
|
|
109
|
+
token: u.secret
|
|
114
110
|
}), n = new Blob([t], { type: "text/plain" }), r = URL.createObjectURL(n), a = document.createElement("a");
|
|
115
111
|
a.href = r, a.download = ".env.local", document.body.appendChild(a), a.click(), document.body.removeChild(a), URL.revokeObjectURL(r);
|
|
116
112
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleExplorer.d.ts","sourceRoot":"","sources":["../../src/components/ModuleExplorer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwB,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEnE,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAA;CAAE,qBAkBnE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SourceSyncConfiguration } from './AskFeltDB';
|
|
3
|
+
export interface ProposalBrowserProps {
|
|
4
|
+
serviceUrl?: string;
|
|
5
|
+
token?: string;
|
|
6
|
+
applicationId: string;
|
|
7
|
+
environment: string;
|
|
8
|
+
applicationName?: string;
|
|
9
|
+
sourceSync?: SourceSyncConfiguration;
|
|
10
|
+
}
|
|
11
|
+
export declare function ProposalBrowser({ serviceUrl, token, applicationId, environment, applicationName, sourceSync }: ProposalBrowserProps): React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=ProposalBrowser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProposalBrowser.d.ts","sourceRoot":"","sources":["../../src/components/ProposalBrowser.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAa,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAItE,MAAM,WAAW,oBAAoB;IAAG,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,uBAAuB,CAAA;CAAE;AAsBzL,wBAAgB,eAAe,CAAC,EAAE,UAAe,EAAE,KAAU,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,oBAAoB,qBA+B7I"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { FlowSpec, StateFirstDB } from '@feltdb/core';
|
|
3
2
|
export interface StateExplorerProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
serviceUrl?: string;
|
|
4
|
+
token?: string;
|
|
5
|
+
applicationId: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
refreshIntervalMs?: number;
|
|
9
8
|
}
|
|
10
|
-
export declare function StateExplorer({
|
|
9
|
+
export declare function StateExplorer({ serviceUrl, token, applicationId, environment, refreshIntervalMs }: StateExplorerProps): React.JSX.Element;
|
|
11
10
|
export default StateExplorer;
|
|
12
11
|
//# sourceMappingURL=StateExplorer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateExplorer.d.ts","sourceRoot":"","sources":["../../src/components/StateExplorer.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"StateExplorer.d.ts","sourceRoot":"","sources":["../../src/components/StateExplorer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,MAAM,WAAW,kBAAkB;IAAG,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE;AA+BnJ,wBAAgB,aAAa,CAAC,EAAE,UAAe,EAAE,KAAU,EAAE,aAAa,EAAE,WAAW,EAAE,iBAA0B,EAAE,EAAE,kBAAkB,qBA2BxI;AACD,eAAe,aAAa,CAAC"}
|
|
@@ -19,6 +19,10 @@ export * from './HealthCenter';
|
|
|
19
19
|
export * from './SettingsPanel';
|
|
20
20
|
export * from './GlobalSearch';
|
|
21
21
|
export * from './ApplicationDesigner';
|
|
22
|
+
export * from './AskFeltDB';
|
|
23
|
+
export * from './ProposalBrowser';
|
|
24
|
+
export * from './ModuleExplorer';
|
|
25
|
+
export * from './ContractInspector';
|
|
22
26
|
export * from './ManagedInstancePanel';
|
|
23
27
|
export * from './KeyManagementPanel';
|
|
24
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { ManagedInstancePanel as
|
|
4
|
-
export {
|
|
1
|
+
import { C as e, S as t, T as n, a as r, b as i, c as a, d as o, f as s, i as c, l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, w as _, x as v } from "../components-CNSNrmA9.js";
|
|
2
|
+
import { t as y } from "../KeyManagementPanel-DZuSeWBK.js";
|
|
3
|
+
import { ManagedInstancePanel as b } from "./ManagedInstancePanel.js";
|
|
4
|
+
export { g as AgentExplorer, r as ApplicationDesigner, c as AskFeltDB, i as CapabilityExplorer, s as ConflictExplorer, h as ContractInspector, f as ExecutionViewer, d as GlobalSearch, a as HealthCenter, y as KeyManagementPanel, b as ManagedInstancePanel, u as ModuleExplorer, t as OperationsExplorer, n as OverviewDashboard, v as PeerMap, p as ProposalBrowser, l as ProvenanceViewer, e as ReferenceExplorer, m as SettingsPanel, _ as StateExplorer, o as WorkflowVisualizer };
|