@wowok/agent-mcp 2.6.1 → 2.6.3
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/customer/info-puzzle.d.ts +1 -1
- package/dist/customer/info-puzzle.js +4 -2
- package/dist/customer/risk-assessment.js +26 -4
- package/dist/customer/types.d.ts +2 -0
- package/dist/examples/guard-template-balance-check.json +38 -0
- package/dist/examples/guard-template-time-lock.json +39 -0
- package/dist/examples/machine-template-7node-rental.json +114 -0
- package/dist/examples/rental-ziroom-machine-create.json +137 -0
- package/dist/examples/rental-ziroom-permission-create.json +35 -0
- package/dist/examples/rental-ziroom-service-create.json +80 -0
- package/dist/examples/retail-myshop-service-create.json +88 -0
- package/dist/extensions/capability-manifest.js +24 -24
- package/dist/extensions/constraint-registry.js +18 -18
- package/dist/extensions/metric-registry.js +14 -14
- package/dist/extensions/mode-evaluator.js +16 -16
- package/dist/extensions/modes.js +131 -45
- package/dist/extensions/registry.d.ts +2 -0
- package/dist/extensions/registry.js +63 -30
- package/dist/extensions/types.d.ts +1 -0
- package/dist/index.js +50 -0
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +72 -0
- package/dist/knowledge/fund-layer.js +420 -0
- package/dist/knowledge/guard-render.d.ts +57 -0
- package/dist/knowledge/guard-render.js +700 -0
- package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
- package/dist/knowledge/guard-submission-prompt.js +171 -0
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-render.d.ts +41 -0
- package/dist/knowledge/machine-render.js +565 -0
- package/dist/knowledge/machine-templates.js +4 -4
- package/dist/knowledge/reward-confirm.js +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.js +9 -9
- package/dist/knowledge/reward-templates.js +2 -2
- package/dist/knowledge/service-confirm.d.ts +1 -1
- package/dist/knowledge/service-confirm.js +3 -3
- package/dist/knowledge/service-context.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +3 -3
- package/dist/knowledge/service-templates.js +2 -2
- package/dist/knowledge/service-translation.d.ts +1 -1
- package/dist/knowledge/service-translation.js +7 -7
- package/dist/project/deployment-bridge.js +6 -5
- package/dist/project/deployment-doc.js +5 -5
- package/dist/project/edit-planner.d.ts +123 -0
- package/dist/project/edit-planner.js +1371 -0
- package/dist/project/evaluation.js +314 -14
- package/dist/project/graph-builder.js +6 -1
- package/dist/project/handlers.d.ts +99 -2
- package/dist/project/handlers.js +358 -16
- package/dist/project/stage-gate.js +4 -4
- package/dist/schema/call/allocation.js +2 -2
- package/dist/schema/call/arbitration.js +19 -6
- package/dist/schema/call/contact.js +2 -2
- package/dist/schema/call/demand.js +2 -2
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +1975 -777
- package/dist/schema/call/machine.js +50 -4
- package/dist/schema/call/order.js +3 -6
- package/dist/schema/call/permission.js +2 -2
- package/dist/schema/call/repository.js +2 -2
- package/dist/schema/call/reward.js +3 -3
- package/dist/schema/call/semantic.js +7 -1
- package/dist/schema/call/service.d.ts +180 -8
- package/dist/schema/call/service.js +82 -27
- package/dist/schema/call/treasury.js +3 -3
- package/dist/schema/common/index.d.ts +2 -0
- package/dist/schema/common/index.js +46 -10
- package/dist/schema/local/index.js +5 -1
- package/dist/schema/operations.d.ts +755 -176
- package/dist/schema/operations.js +43 -7
- package/dist/schema/project/index.d.ts +969 -6
- package/dist/schema/project/index.js +268 -4
- package/dist/schema/query/index.d.ts +217 -0
- package/dist/schema/query/index.js +63 -33
- package/dist/schema/schema-query/index.d.ts +53 -3
- package/dist/schema/schema-query/index.js +17 -2
- package/dist/schema/utils/node-parser.js +13 -0
- package/dist/schema/utils/object-type-utils.d.ts +12 -0
- package/dist/schema/utils/object-type-utils.js +35 -0
- package/dist/schema/utils/permission-machine-check.d.ts +49 -0
- package/dist/schema/utils/permission-machine-check.js +121 -0
- package/dist/schema/utils/skills-recommendation.d.ts +2 -0
- package/dist/schema/utils/skills-recommendation.js +76 -0
- package/dist/schema-query/index.d.ts +14 -1
- package/dist/schema-query/index.js +104 -2
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +2820 -0
- package/dist/schemas/onchain_operations.schema.json +115 -53
- package/dist/schemas/onchain_operations_allocation.schema.json +5 -5
- package/dist/schemas/onchain_operations_arbitration.schema.json +9 -7
- package/dist/schemas/onchain_operations_contact.schema.json +3 -3
- package/dist/schemas/onchain_operations_demand.schema.json +3 -3
- package/dist/schemas/onchain_operations_gen_passport.schema.json +2 -2
- package/dist/schemas/onchain_operations_guard.schema.json +1 -1
- package/dist/schemas/onchain_operations_machine.schema.json +4 -4
- package/dist/schemas/onchain_operations_order.schema.json +3 -3
- package/dist/schemas/onchain_operations_payment.schema.json +1 -1
- package/dist/schemas/onchain_operations_permission.schema.json +2 -2
- package/dist/schemas/onchain_operations_progress.schema.json +1 -1
- package/dist/schemas/onchain_operations_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_repository.schema.json +3 -3
- package/dist/schemas/onchain_operations_reward.schema.json +6 -6
- package/dist/schemas/onchain_operations_service.schema.json +77 -17
- package/dist/schemas/onchain_operations_treasury.schema.json +4 -4
- package/dist/schemas/onchain_table_data.output.json +1 -1
- package/dist/schemas/onchain_table_data.schema.json +10 -9
- package/dist/schemas/project_operation.output.json +1026 -7
- package/dist/schemas/project_operation.schema.json +46 -4
- package/dist/schemas/query_toolkit.output.json +15 -15
- package/dist/schemas/query_toolkit.schema.json +3 -3
- package/dist/schemas/schema_query.output.json +64 -1
- package/dist/schemas/schema_query.schema.json +3 -2
- package/dist/schemas/wowok_buildin_info.output.json +81 -8
- package/dist/schemas/wowok_buildin_info.schema.json +46 -2
- package/dist/tools/handlers/onchain.js +571 -6
- package/dist/tools/handlers/project.js +25 -2
- package/dist/tools/handlers/schema-query.js +24 -1
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +177 -6
- package/package.json +2 -2
|
@@ -165,13 +165,13 @@ export function listRewardTemplates() {
|
|
|
165
165
|
export function suggestRewardTemplate(intent) {
|
|
166
166
|
const lower = intent.toLowerCase();
|
|
167
167
|
if (lower.includes("wonder") || lower.includes("praise") || lower.includes("thumbs_up")
|
|
168
|
-
|| lower.includes("
|
|
168
|
+
|| lower.includes("praise") || lower.includes("positive review")
|
|
169
169
|
|| lower.includes("satisfaction reward")) {
|
|
170
170
|
return getRewardTemplate("wonder_praise");
|
|
171
171
|
}
|
|
172
172
|
if (lower.includes("feedback") || lower.includes("review collection")
|
|
173
173
|
|| lower.includes("no_wonder") || lower.includes("thumbs_down")
|
|
174
|
-
|| lower.includes("
|
|
174
|
+
|| lower.includes("complaint") || lower.includes("both sentiment")) {
|
|
175
175
|
return getRewardTemplate("wonder_feedback");
|
|
176
176
|
}
|
|
177
177
|
if (lower.includes("first order") || lower.includes("new") || lower.includes("first")) {
|
|
@@ -111,7 +111,7 @@ export interface ServiceJsonForConfirm {
|
|
|
111
111
|
};
|
|
112
112
|
compensation_fund_withdraw?: unknown;
|
|
113
113
|
compensation_fund_receive?: unknown;
|
|
114
|
-
|
|
114
|
+
setting_lock_duration_add?: number;
|
|
115
115
|
order_new?: {
|
|
116
116
|
buy: {
|
|
117
117
|
items: Array<{
|
|
@@ -263,7 +263,7 @@ function adaptRiskAssessment(input) {
|
|
|
263
263
|
order_allocators: input.service_json.order_allocators,
|
|
264
264
|
buy_guard: input.service_json.buy_guard,
|
|
265
265
|
compensation_fund_add: input.service_json.compensation_fund_add,
|
|
266
|
-
|
|
266
|
+
setting_lock_duration_add: input.service_json.setting_lock_duration_add,
|
|
267
267
|
compensation_fund_receive: input.service_json.compensation_fund_receive,
|
|
268
268
|
owner_receive: input.service_json.owner_receive,
|
|
269
269
|
pause: input.service_json.pause,
|
|
@@ -761,8 +761,8 @@ function generateConfirmationText(input, checklist, assessment) {
|
|
|
761
761
|
lines.push(`- Compensation fund deposit: ${data.compensation_fund_add.balance}`);
|
|
762
762
|
if (data.compensation_fund_withdraw)
|
|
763
763
|
lines.push(`- ⚠️ Compensation fund withdraw (requires paused + lock expired)`);
|
|
764
|
-
if (data.
|
|
765
|
-
lines.push(`- Setting lock +${data.
|
|
764
|
+
if (data.setting_lock_duration_add !== undefined)
|
|
765
|
+
lines.push(`- Setting lock +${data.setting_lock_duration_add}ms`);
|
|
766
766
|
if (data.order_new)
|
|
767
767
|
lines.push(`- ⚠️ ORDER NEW (8-stage flow, stock deducted at quote)`);
|
|
768
768
|
if (data.builder)
|
|
@@ -58,7 +58,7 @@ export function buildServiceContext(input) {
|
|
|
58
58
|
order_allocators: input.service_json.order_allocators,
|
|
59
59
|
buy_guard: input.service_json.buy_guard,
|
|
60
60
|
compensation_fund_add: input.service_json.compensation_fund_add,
|
|
61
|
-
|
|
61
|
+
setting_lock_duration_add: input.service_json.setting_lock_duration_add,
|
|
62
62
|
compensation_fund_receive: input.service_json.compensation_fund_receive,
|
|
63
63
|
owner_receive: input.service_json.owner_receive,
|
|
64
64
|
pause: input.service_json.pause,
|
|
@@ -15,7 +15,7 @@ export const SERVICE_PERMISSIONS = [
|
|
|
15
15
|
{ index: 314, name: "SERVICE_COMPENSATION_FUND_WITHDRAW", description: "Withdraw compensation fund (lock_duration)", governed_operation: "service::compensation_fund_withdraw", post_publish_mutability: "locked_by_duration" },
|
|
16
16
|
{ index: 315, name: "SERVICE_COMPENSATION_FUND_DEPOSIT", description: "Deposit to compensation fund", governed_operation: "service::compensation_fund_add", post_publish_mutability: "mutable" },
|
|
17
17
|
{ index: 316, name: "SERVICE_COMPENSATION_FUND_RECEIVE", description: "Receive compensation fund (lock_duration)", governed_operation: "service::compensation_fund_receive", post_publish_mutability: "locked_by_duration" },
|
|
18
|
-
{ index: 317, name: "
|
|
18
|
+
{ index: 317, name: "SERVICE_COMPENSATION_LOCK_DURATION_ADD", description: "Extend setting_lock_duration (only-increase)", governed_operation: "service::setting_lock_duration_add", post_publish_mutability: "mutable" },
|
|
19
19
|
{ index: 318, name: "SERVICE_REWARD", description: "Add/remove Reward references (locked)", governed_operation: "service::reward_add/remove/clear", post_publish_mutability: "locked_by_duration" },
|
|
20
20
|
{ index: 319, name: "SERVICE_OWNER_RECEIVE", description: "Receive Payment/objects to owner", governed_operation: "service::owner_receive", post_publish_mutability: "mutable" },
|
|
21
21
|
{ index: 320, name: "SERVICE_UM", description: "Bind/unbind Contact as UM", governed_operation: "service::um_set/um_none", post_publish_mutability: "mutable" },
|
|
@@ -65,7 +65,7 @@ export interface ServiceRiskCheckContext {
|
|
|
65
65
|
compensation_fund_add?: {
|
|
66
66
|
balance: string | number;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
setting_lock_duration_add?: number;
|
|
69
69
|
compensation_fund_receive?: unknown;
|
|
70
70
|
owner_receive?: unknown;
|
|
71
71
|
pause?: boolean;
|
|
@@ -370,18 +370,18 @@ const R_S_4_02 = {
|
|
|
370
370
|
category: "lifecycle",
|
|
371
371
|
trigger: "setting_lock_duration add — only-increase mechanism",
|
|
372
372
|
check: (ctx) => {
|
|
373
|
-
if (ctx.
|
|
373
|
+
if (ctx.setting_lock_duration_add === undefined)
|
|
374
374
|
return null;
|
|
375
375
|
return {
|
|
376
376
|
id: "R-S-4-02",
|
|
377
377
|
level: "MEDIUM",
|
|
378
378
|
category: "lifecycle",
|
|
379
379
|
title: "setting_lock_duration can only INCREASE",
|
|
380
|
-
description: `Adding ${ctx.
|
|
380
|
+
description: `Adding ${ctx.setting_lock_duration_add} ms to setting_lock_duration. New value = old + input (safe_add). Cannot be decreased — protects customers from owner reducing lock to withdraw compensation_fund faster.`,
|
|
381
381
|
affected_stakeholders: ["owner", "customer"],
|
|
382
382
|
scenario: "Owner extends lock period to build trust",
|
|
383
383
|
mitigation: "Ensure extension is intentional. Lock affects rewards/compensation_fund_withdraw/compensation_fund_receive.",
|
|
384
|
-
evidence: `add_ms=${ctx.
|
|
384
|
+
evidence: `add_ms=${ctx.setting_lock_duration_add}`,
|
|
385
385
|
};
|
|
386
386
|
},
|
|
387
387
|
};
|
|
@@ -191,7 +191,7 @@ export const SERVICE_TEMPLATES = [
|
|
|
191
191
|
permission: p.permission_address,
|
|
192
192
|
arbitrations: { op: "add", objects: p.arbitration_addresses },
|
|
193
193
|
compensation_fund_add: { balance: p.compensation_fund_balance },
|
|
194
|
-
|
|
194
|
+
setting_lock_duration_add: p.setting_lock_duration_ms,
|
|
195
195
|
sales: { op: "add", sales: p.service_items },
|
|
196
196
|
order_allocators: [
|
|
197
197
|
{
|
|
@@ -234,7 +234,7 @@ export const SERVICE_TEMPLATES = [
|
|
|
234
234
|
permission: p.permission_address,
|
|
235
235
|
arbitrations: { op: "add", objects: p.arbitration_addresses },
|
|
236
236
|
compensation_fund_add: { balance: p.initial_deposit },
|
|
237
|
-
|
|
237
|
+
setting_lock_duration_add: p.lock_duration_ms,
|
|
238
238
|
sales: { op: "add", sales: p.service_items },
|
|
239
239
|
order_allocators: [
|
|
240
240
|
{
|
|
@@ -185,10 +185,10 @@ export const SEMANTIC_TO_SCHEMA_RULES = [
|
|
|
185
185
|
pattern_name: "Extend setting_lock_duration",
|
|
186
186
|
semantic_intent: "Add milliseconds to setting_lock_duration (only-increase mechanism)",
|
|
187
187
|
match_keywords: ["setting_lock_duration", "lock_duration", "lock period", "extend lock"],
|
|
188
|
-
schema_fields: ["object", "
|
|
188
|
+
schema_fields: ["object", "setting_lock_duration_add"],
|
|
189
189
|
example_json: {
|
|
190
190
|
object: "0xSERVICE_ADDRESS",
|
|
191
|
-
|
|
191
|
+
setting_lock_duration_add: 2592000000,
|
|
192
192
|
},
|
|
193
193
|
reverse_explanation: "Only-increase (safe_add). Default 2592000000ms (30 days). Affects rewards/compensation_fund_withdraw/compensation_fund_receive mutability windows.",
|
|
194
194
|
},
|
|
@@ -315,8 +315,8 @@ export const SCHEMA_TO_SEMANTIC_RULES = [
|
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
element_type: "field",
|
|
318
|
-
type_name: "
|
|
319
|
-
semantic_explanation: "Extend setting_lock_duration (only-increase, safe_add). Index 317 (
|
|
318
|
+
type_name: "setting_lock_duration_add",
|
|
319
|
+
semantic_explanation: "Extend setting_lock_duration (only-increase, safe_add). Index 317 (SERVICE_COMPENSATION_LOCK_DURATION_ADD).",
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
element_type: "field",
|
|
@@ -454,7 +454,7 @@ export const SERVICE_CONSTRAINT_RULES = [
|
|
|
454
454
|
id: "MC-S-16",
|
|
455
455
|
category: "lifecycle",
|
|
456
456
|
rule: `setting_lock_duration only-increase (safe_add) — cannot be decreased; protects customers`,
|
|
457
|
-
applies_to: ["
|
|
457
|
+
applies_to: ["setting_lock_duration_add"],
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
id: "MC-S-17",
|
|
@@ -572,8 +572,8 @@ export function explainServiceCallData(data) {
|
|
|
572
572
|
if (data.compensation_fund_receive) {
|
|
573
573
|
lines.push(`- Compensation fund receive (locked by duration)`);
|
|
574
574
|
}
|
|
575
|
-
if (data.
|
|
576
|
-
lines.push(`- Setting lock duration +${data.
|
|
575
|
+
if (data.setting_lock_duration_add !== undefined) {
|
|
576
|
+
lines.push(`- Setting lock duration +${data.setting_lock_duration_add}ms (only-increase)`);
|
|
577
577
|
}
|
|
578
578
|
if (data.order_new) {
|
|
579
579
|
const o = data.order_new;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LocalProject } from "@wowok/wowok";
|
|
2
2
|
import { generateDeploymentDoc, validateDeploymentDoc } from "./deployment-doc.js";
|
|
3
|
+
import { isObjectOfType, shortTypeName } from "../schema/utils/object-type-utils.js";
|
|
3
4
|
export async function generateDeploymentDocFromProject(projectId, network, detailLevel) {
|
|
4
5
|
const project = await LocalProject.Instance().getProject(projectId);
|
|
5
6
|
if (!project) {
|
|
@@ -26,7 +27,7 @@ export async function generateDeploymentDocFromProject(projectId, network, detai
|
|
|
26
27
|
(o.objectAddress.startsWith("draft:") ? "draft" : "deployed");
|
|
27
28
|
const config = meta.config ?? undefined;
|
|
28
29
|
const publishRequired = meta.publish_required ??
|
|
29
|
-
(objectType
|
|
30
|
+
(isObjectOfType(objectType, "service") || isObjectOfType(objectType, "machine"));
|
|
30
31
|
return {
|
|
31
32
|
entry_id: `${objectType}:${o.objectName || o.objectAddress || o.id}`,
|
|
32
33
|
object_type: normalizeObjectType(objectType),
|
|
@@ -35,7 +36,7 @@ export async function generateDeploymentDocFromProject(projectId, network, detai
|
|
|
35
36
|
? o.objectAddress : undefined,
|
|
36
37
|
publish_required: publishRequired,
|
|
37
38
|
description: meta.description ??
|
|
38
|
-
(status === "draft" ? "[
|
|
39
|
+
(status === "draft" ? "[blueprint] pending on-chain" : "[on-chain]"),
|
|
39
40
|
config,
|
|
40
41
|
status,
|
|
41
42
|
};
|
|
@@ -85,10 +86,10 @@ export async function generateDeploymentDocFromProject(projectId, network, detai
|
|
|
85
86
|
return { markdown, validation };
|
|
86
87
|
}
|
|
87
88
|
function normalizeObjectType(raw) {
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
89
|
+
const short = shortTypeName(raw).toLowerCase();
|
|
90
|
+
if (short === "arbitration")
|
|
90
91
|
return "arb";
|
|
91
|
-
return
|
|
92
|
+
return short;
|
|
92
93
|
}
|
|
93
94
|
function buildTopoSteps(objects, edges, network) {
|
|
94
95
|
const typeOrder = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { join } from "path";
|
|
2
2
|
const STANDARD_TOPO_ORDER = [
|
|
3
|
-
"permission", "treasury", "allocation", "guard", "machine",
|
|
4
|
-
"
|
|
3
|
+
"permission", "treasury", "allocation", "service", "guard", "machine",
|
|
4
|
+
"order", "progress", "arb", "reward",
|
|
5
5
|
"proof", "repository", "demand", "contact",
|
|
6
6
|
"personal", "payment",
|
|
7
7
|
];
|
|
@@ -230,7 +230,7 @@ function renderNetworkSection(sectionNum, network, input) {
|
|
|
230
230
|
data: {
|
|
231
231
|
object: objectData,
|
|
232
232
|
description: isDraft
|
|
233
|
-
? `${stepDescription(step)} [
|
|
233
|
+
? `${stepDescription(step)} [blueprint: generated from ${input.industry} industry template]`
|
|
234
234
|
: stepDescription(step),
|
|
235
235
|
status: isDraft ? "draft" : "deployed",
|
|
236
236
|
},
|
|
@@ -1028,8 +1028,8 @@ function renderProjectReadme(input, relations) {
|
|
|
1028
1028
|
lines.push("| stage 4 (steps) | stage 5 (substeps) | Steps must be defined before substep tracing |");
|
|
1029
1029
|
lines.push("");
|
|
1030
1030
|
lines.push("## §8 Gas / Faucet Rules", "");
|
|
1031
|
-
lines.push("- testnet: gas is free (faucet) — encourage experimentation
|
|
1032
|
-
lines.push("- mainnet: gas is real —
|
|
1031
|
+
lines.push("- testnet: gas is free (faucet) — encourage experimentation, rollback is costless");
|
|
1032
|
+
lines.push("- mainnet: gas is real — re-running after rollback incurs real cost, WARN before rollback");
|
|
1033
1033
|
lines.push("- Reversibility is determined by object lifecycle (§3.2), NOT by network");
|
|
1034
1034
|
lines.push("");
|
|
1035
1035
|
lines.push("## §9 Stage Subdirectory Index", "");
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
import { type MachineNodeForRender, type MachineEdgeForRender } from "../knowledge/machine-render.js";
|
|
3
|
+
import { type GuardNodeForRender } from "../knowledge/guard-render.js";
|
|
4
|
+
import type { ProjectOperationInputSchema } from "../schema/project/index.js";
|
|
5
|
+
type ProjectInput = z.infer<typeof ProjectOperationInputSchema>;
|
|
6
|
+
export declare function handlePlanObjectEdit(v: ProjectInput): Promise<{
|
|
7
|
+
action: "plan_object_edit";
|
|
8
|
+
plan_id: string;
|
|
9
|
+
object_kind: "guard" | "machine";
|
|
10
|
+
object_address: string;
|
|
11
|
+
object_name: string | null;
|
|
12
|
+
expected_hash: string;
|
|
13
|
+
diff: {
|
|
14
|
+
added: string[];
|
|
15
|
+
removed: string[];
|
|
16
|
+
modified: string[];
|
|
17
|
+
summary: string;
|
|
18
|
+
};
|
|
19
|
+
warnings: {
|
|
20
|
+
id: string;
|
|
21
|
+
description: string;
|
|
22
|
+
impact: string;
|
|
23
|
+
}[];
|
|
24
|
+
blocking_errors: {
|
|
25
|
+
id: string;
|
|
26
|
+
description: string;
|
|
27
|
+
impact: string;
|
|
28
|
+
}[];
|
|
29
|
+
can_apply: boolean;
|
|
30
|
+
prepared_call: unknown;
|
|
31
|
+
expires_at: string;
|
|
32
|
+
summary: string;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function handleApplyObjectEdit(v: ProjectInput): Promise<{
|
|
35
|
+
action: "apply_object_edit";
|
|
36
|
+
plan_id: string;
|
|
37
|
+
applied: boolean;
|
|
38
|
+
hash_match: boolean;
|
|
39
|
+
prepared_call: null;
|
|
40
|
+
error: string;
|
|
41
|
+
next_step: string;
|
|
42
|
+
} | {
|
|
43
|
+
action: "apply_object_edit";
|
|
44
|
+
plan_id: string;
|
|
45
|
+
applied: boolean;
|
|
46
|
+
hash_match: boolean;
|
|
47
|
+
prepared_call: unknown;
|
|
48
|
+
error: null;
|
|
49
|
+
next_step: string;
|
|
50
|
+
}>;
|
|
51
|
+
export declare function handlePatchMachineNodes(v: ProjectInput): Promise<{
|
|
52
|
+
action: "patch_machine_nodes";
|
|
53
|
+
machine_address: string;
|
|
54
|
+
machine_name: string | null;
|
|
55
|
+
operations_applied: number;
|
|
56
|
+
operations_failed: {
|
|
57
|
+
operation: string;
|
|
58
|
+
error: string;
|
|
59
|
+
}[];
|
|
60
|
+
patched_nodes: MachineNodeForRender[];
|
|
61
|
+
patched_edges: MachineEdgeForRender[];
|
|
62
|
+
diff: {
|
|
63
|
+
added: string[];
|
|
64
|
+
removed: string[];
|
|
65
|
+
modified: string[];
|
|
66
|
+
summary: string;
|
|
67
|
+
};
|
|
68
|
+
warnings: {
|
|
69
|
+
id: string;
|
|
70
|
+
description: string;
|
|
71
|
+
impact: string;
|
|
72
|
+
}[];
|
|
73
|
+
blocking_errors: {
|
|
74
|
+
id: string;
|
|
75
|
+
description: string;
|
|
76
|
+
impact: string;
|
|
77
|
+
}[];
|
|
78
|
+
can_apply: boolean;
|
|
79
|
+
prepared_call: unknown;
|
|
80
|
+
summary: string;
|
|
81
|
+
}>;
|
|
82
|
+
export declare function handlePatchGuardTree(v: ProjectInput): Promise<{
|
|
83
|
+
action: "patch_guard_tree";
|
|
84
|
+
guard_address: string;
|
|
85
|
+
guard_name: string | null;
|
|
86
|
+
operations_applied: number;
|
|
87
|
+
operations_failed: {
|
|
88
|
+
operation: string;
|
|
89
|
+
error: string;
|
|
90
|
+
}[];
|
|
91
|
+
patched_root: GuardNodeForRender;
|
|
92
|
+
patched_table: {
|
|
93
|
+
identifier: number;
|
|
94
|
+
name?: string;
|
|
95
|
+
value_type: string | number;
|
|
96
|
+
b_submission: boolean;
|
|
97
|
+
value?: unknown;
|
|
98
|
+
}[];
|
|
99
|
+
patched_rely: {
|
|
100
|
+
guards: string[];
|
|
101
|
+
logic_or?: boolean;
|
|
102
|
+
} | null;
|
|
103
|
+
diff: {
|
|
104
|
+
added: string[];
|
|
105
|
+
removed: string[];
|
|
106
|
+
modified: string[];
|
|
107
|
+
summary: string;
|
|
108
|
+
};
|
|
109
|
+
warnings: {
|
|
110
|
+
id: string;
|
|
111
|
+
description: string;
|
|
112
|
+
impact: string;
|
|
113
|
+
}[];
|
|
114
|
+
blocking_errors: {
|
|
115
|
+
id: string;
|
|
116
|
+
description: string;
|
|
117
|
+
impact: string;
|
|
118
|
+
}[];
|
|
119
|
+
can_apply: boolean;
|
|
120
|
+
prepared_call: unknown;
|
|
121
|
+
summary: string;
|
|
122
|
+
}>;
|
|
123
|
+
export {};
|