@lobu/runtime-device 20.2.0 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.json +1 -1
- package/dist/dependencies.bun.lock +44 -38
- package/npm-shrinkwrap.json +277 -231
- package/package.json +1 -1
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.d.ts +7 -2
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +77 -79
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +41 -29
- package/vendor/cli/dist/commands/_lib/apply/client.js +33 -47
- package/vendor/cli/dist/commands/_lib/apply/deployment.d.ts +1 -1
- package/vendor/cli/dist/commands/_lib/apply/deployment.js +2 -3
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +47 -13
- package/vendor/cli/dist/commands/_lib/apply/desired-state.js +106 -7
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +14 -7
- package/vendor/cli/dist/commands/_lib/apply/diff.js +42 -29
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +2 -3
- package/vendor/cli/dist/commands/_lib/apply/render.js +2 -0
- package/vendor/cli/dist/commands/_lib/apply/rollback-cmd.js +3 -3
- package/vendor/cli/dist/commands/_lib/connector-loader.d.ts +5 -1
- package/vendor/cli/dist/commands/_lib/connector-loader.js +1 -1
- package/vendor/cli/dist/commands/_lib/ensure-deps-installed.d.ts +15 -26
- package/vendor/cli/dist/commands/_lib/ensure-deps-installed.js +227 -136
- package/vendor/cli/dist/commands/_lib/view-bundler.d.ts +33 -0
- package/vendor/cli/dist/commands/_lib/view-bundler.js +211 -0
- package/vendor/cli/dist/commands/_lib/view-reapply.d.ts +60 -0
- package/vendor/cli/dist/commands/_lib/view-reapply.js +182 -0
- package/vendor/cli/dist/commands/dev.d.ts +14 -5
- package/vendor/cli/dist/commands/dev.js +56 -8
- package/vendor/cli/dist/commands/init.d.ts +1 -1
- package/vendor/cli/dist/commands/init.js +4 -4
- package/vendor/cli/dist/commands/memory/_lib/schema.d.ts +0 -1
- package/vendor/cli/dist/commands/memory/_lib/schema.js +0 -9
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +0 -2
- package/vendor/cli/dist/config/define.d.ts +25 -8
- package/vendor/cli/dist/config/define.js +24 -0
- package/vendor/cli/dist/connectors/README.md +15 -16
- package/vendor/cli/dist/connectors/github.ts +274 -193
- package/vendor/cli/dist/connectors/google_calendar.ts +54 -160
- package/vendor/cli/dist/connectors/google_drive.ts +106 -131
- package/vendor/cli/dist/connectors/google_gmail.ts +53 -30
- package/vendor/cli/dist/connectors/hackernews.ts +2 -5
- package/vendor/cli/dist/connectors/jira.ts +71 -27
- package/vendor/cli/dist/connectors/linear.ts +55 -21
- package/vendor/cli/dist/connectors/microsoft_outlook.ts +151 -110
- package/vendor/cli/dist/connectors/postgres.ts +19 -11
- package/vendor/cli/dist/connectors/producthunt.ts +11 -7
- package/vendor/cli/dist/connectors/reddit.ts +36 -6
- package/vendor/cli/dist/connectors/rss.ts +2 -2
- package/vendor/cli/dist/connectors/whatsapp_web.ts +5 -4
- package/vendor/cli/dist/connectors/x.ts +32 -17
- package/vendor/cli/dist/connectors/youtube.ts +18 -5
- package/vendor/cli/dist/internal/connector-compiler.d.ts +1 -1
- package/vendor/cli/dist/internal/connector-compiler.js +216 -17
- package/vendor/cli/dist/providers.json +0 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/package.json +2 -1
- package/vendor/connector-sdk/dist/connector-runtime.d.ts +4 -6
- package/vendor/connector-sdk/dist/connector-runtime.js +3 -5
- package/vendor/connector-sdk/dist/connector-types.d.ts +28 -15
- package/vendor/connector-sdk/dist/define-connector.d.ts +4 -1
- package/vendor/connector-sdk/dist/define-connector.js +4 -1
- package/vendor/connector-sdk/dist/http-client.d.ts +18 -7
- package/vendor/connector-sdk/dist/http-client.js +15 -13
- package/vendor/connector-sdk/dist/index.d.ts +1 -1
- package/vendor/connector-sdk/dist/retry.d.ts +15 -3
- package/vendor/connector-sdk/dist/retry.js +40 -64
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/agent-turn/guest-entry.js +122 -10
- package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +78 -10
- package/vendor/connector-worker/dist/agent-turn/types.d.ts +34 -4
- package/vendor/connector-worker/dist/compile/index.d.ts +21 -2
- package/vendor/connector-worker/dist/compile/index.js +41 -8
- package/vendor/connector-worker/dist/compile/source-capture.d.ts +10 -0
- package/vendor/connector-worker/dist/compile/source-capture.js +108 -0
- package/vendor/connector-worker/dist/daemon/agent-turn.js +97 -10
- package/vendor/connector-worker/dist/daemon/automation.d.ts +1 -1
- package/vendor/connector-worker/dist/daemon/client.d.ts +4 -1
- package/vendor/connector-worker/dist/daemon/client.js +3 -0
- package/vendor/connector-worker/dist/daemon/executor.d.ts +0 -1
- package/vendor/connector-worker/dist/daemon/executor.js +46 -51
- package/vendor/connector-worker/dist/daemon/start.js +6 -2
- package/vendor/connector-worker/dist/executor/interface.d.ts +19 -9
- package/vendor/connector-worker/dist/executor/isolate.js +85 -28
- package/vendor/connector-worker/dist/self-check/index.js +15 -13
- package/vendor/connector-worker/package.json +1 -1
- package/vendor/core/dist/agent-policy.js +3 -0
- package/vendor/core/dist/connector-query-errors.d.ts +3 -3
- package/vendor/core/dist/connector-query-errors.js +8 -3
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +12 -1
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +0 -10
- package/vendor/core/dist/contracts/tools/manage-automations.js +0 -33
- package/vendor/core/dist/contracts/tools/manage-classifiers.d.ts +4 -34
- package/vendor/core/dist/contracts/tools/manage-classifiers.js +13 -44
- package/vendor/core/dist/contracts/tools/manage-connections.d.ts +24 -0
- package/vendor/core/dist/contracts/tools/manage-connections.js +13 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +15 -25
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +3 -5
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +0 -9
- package/vendor/core/dist/contracts/tools/manage-entity.js +0 -6
- package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +11 -0
- package/vendor/core/dist/contracts/tools/manage-feeds.js +12 -1
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +47 -6
- package/vendor/core/dist/contracts/tools/manage-operations.js +36 -1
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +293 -0
- package/vendor/core/dist/contracts/tools/manage-views.js +203 -0
- package/vendor/core/dist/contracts/tools/source-files-schema.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/source-files-schema.js +19 -0
- package/vendor/core/dist/contracts/tools/source-files.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/source-files.js +55 -0
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +20 -0
- package/vendor/core/dist/contracts/tools/view-attach.js +45 -0
- package/vendor/core/dist/contracts/tools/view-content-hash.d.ts +37 -0
- package/vendor/core/dist/contracts/tools/view-content-hash.js +58 -0
- package/vendor/core/dist/contracts/tools/view-path.d.ts +18 -0
- package/vendor/core/dist/contracts/tools/view-path.js +24 -0
- package/vendor/core/dist/contracts/worker/protocol.d.ts +90 -8
- package/vendor/core/dist/contracts/worker/protocol.js +70 -10
- package/vendor/core/dist/index.d.ts +1 -1
- package/vendor/core/dist/provider-config-types.d.ts +0 -9
- package/vendor/core/dist/reserved.d.ts +3 -3
- package/vendor/core/dist/reserved.js +9 -1
- package/vendor/core/dist/sdk-compat.d.ts +1 -1
- package/vendor/core/dist/utils/secret-redaction.js +2 -0
- package/vendor/core/package.json +30 -5
- package/vendor/core/dist/contracts/tools/manage-view-templates.d.ts +0 -165
- package/vendor/core/dist/contracts/tools/manage-view-templates.js +0 -130
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { type Static } from "@sinclair/typebox";
|
|
2
|
-
import type { ActionInput } from "./action-input";
|
|
3
|
-
export declare const ViewTemplateVersionRowSchema: import("@sinclair/typebox").TObject<{
|
|
4
|
-
id: import("@sinclair/typebox").TInteger;
|
|
5
|
-
version: import("@sinclair/typebox").TInteger;
|
|
6
|
-
tab_name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
7
|
-
tab_order: import("@sinclair/typebox").TInteger;
|
|
8
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
9
|
-
change_notes: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
10
|
-
created_by: import("@sinclair/typebox").TString;
|
|
11
|
-
created_by_username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
12
|
-
created_at: import("@sinclair/typebox").TString;
|
|
13
|
-
}>;
|
|
14
|
-
export type ViewTemplateVersionRow = Static<typeof ViewTemplateVersionRowSchema>;
|
|
15
|
-
export declare const ViewTemplateTabInfoSchema: import("@sinclair/typebox").TObject<{
|
|
16
|
-
tab_name: import("@sinclair/typebox").TString;
|
|
17
|
-
tab_order: import("@sinclair/typebox").TInteger;
|
|
18
|
-
current_version: import("@sinclair/typebox").TInteger;
|
|
19
|
-
current_version_id: import("@sinclair/typebox").TInteger;
|
|
20
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const SetViewTemplateAction: import("@sinclair/typebox").TObject<{
|
|
23
|
-
action: import("@sinclair/typebox").TLiteral<"set">;
|
|
24
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
25
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
26
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
27
|
-
tab_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
28
|
-
tab_order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
29
|
-
change_notes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
|
-
}>;
|
|
31
|
-
export declare const GetViewTemplateAction: import("@sinclair/typebox").TObject<{
|
|
32
|
-
action: import("@sinclair/typebox").TLiteral<"get">;
|
|
33
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
34
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
35
|
-
tab_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
36
|
-
}>;
|
|
37
|
-
export declare const RollbackViewTemplateAction: import("@sinclair/typebox").TObject<{
|
|
38
|
-
action: import("@sinclair/typebox").TLiteral<"rollback">;
|
|
39
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
40
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
41
|
-
version: import("@sinclair/typebox").TNumber;
|
|
42
|
-
tab_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
43
|
-
}>;
|
|
44
|
-
export declare const RemoveViewTemplateTabAction: import("@sinclair/typebox").TObject<{
|
|
45
|
-
action: import("@sinclair/typebox").TLiteral<"remove_tab">;
|
|
46
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
47
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
48
|
-
tab_name: import("@sinclair/typebox").TString;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const ClearViewTemplateAction: import("@sinclair/typebox").TObject<{
|
|
51
|
-
action: import("@sinclair/typebox").TLiteral<"clear">;
|
|
52
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
53
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
54
|
-
}>;
|
|
55
|
-
export declare const ManageViewTemplatesSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
56
|
-
action: import("@sinclair/typebox").TLiteral<"set">;
|
|
57
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
58
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
59
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
60
|
-
tab_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
61
|
-
tab_order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
62
|
-
change_notes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
63
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
64
|
-
action: import("@sinclair/typebox").TLiteral<"get">;
|
|
65
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
66
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
67
|
-
tab_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
68
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
69
|
-
action: import("@sinclair/typebox").TLiteral<"rollback">;
|
|
70
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
71
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
72
|
-
version: import("@sinclair/typebox").TNumber;
|
|
73
|
-
tab_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
74
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
75
|
-
action: import("@sinclair/typebox").TLiteral<"remove_tab">;
|
|
76
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
77
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
78
|
-
tab_name: import("@sinclair/typebox").TString;
|
|
79
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
80
|
-
action: import("@sinclair/typebox").TLiteral<"clear">;
|
|
81
|
-
resource_type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"entity_type">, import("@sinclair/typebox").TLiteral<"entity">]>;
|
|
82
|
-
resource_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber]>;
|
|
83
|
-
}>]>;
|
|
84
|
-
export type ManageViewTemplatesArgs = Static<typeof ManageViewTemplatesSchema>;
|
|
85
|
-
export type ViewTemplateGetInput = ActionInput<ManageViewTemplatesArgs, "get">;
|
|
86
|
-
export type ViewTemplateSetInput = ActionInput<ManageViewTemplatesArgs, "set">;
|
|
87
|
-
export type ViewTemplateRollbackInput = ActionInput<ManageViewTemplatesArgs, "rollback">;
|
|
88
|
-
export type ViewTemplateRemoveTabInput = ActionInput<ManageViewTemplatesArgs, "remove_tab">;
|
|
89
|
-
/**
|
|
90
|
-
* Result of `manage_view_templates` — discriminated union keyed on `action`.
|
|
91
|
-
* TypeBox-first: `Static<>` derives the TS type from the same schema exposed as
|
|
92
|
-
* the tool's `outputSchema`.
|
|
93
|
-
*/
|
|
94
|
-
export declare const ManageViewTemplatesResultSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
95
|
-
action: import("@sinclair/typebox").TLiteral<"set">;
|
|
96
|
-
version: import("@sinclair/typebox").TObject<{
|
|
97
|
-
id: import("@sinclair/typebox").TInteger;
|
|
98
|
-
version: import("@sinclair/typebox").TInteger;
|
|
99
|
-
tab_name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
100
|
-
tab_order: import("@sinclair/typebox").TInteger;
|
|
101
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
102
|
-
change_notes: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
103
|
-
created_by: import("@sinclair/typebox").TString;
|
|
104
|
-
created_by_username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
105
|
-
created_at: import("@sinclair/typebox").TString;
|
|
106
|
-
}>;
|
|
107
|
-
message: import("@sinclair/typebox").TString;
|
|
108
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
109
|
-
action: import("@sinclair/typebox").TLiteral<"get">;
|
|
110
|
-
default_tab: import("@sinclair/typebox").TObject<{
|
|
111
|
-
current: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
112
|
-
id: import("@sinclair/typebox").TInteger;
|
|
113
|
-
version: import("@sinclair/typebox").TInteger;
|
|
114
|
-
tab_name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
115
|
-
tab_order: import("@sinclair/typebox").TInteger;
|
|
116
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
117
|
-
change_notes: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
118
|
-
created_by: import("@sinclair/typebox").TString;
|
|
119
|
-
created_by_username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
120
|
-
created_at: import("@sinclair/typebox").TString;
|
|
121
|
-
}>, import("@sinclair/typebox").TNull]>;
|
|
122
|
-
history: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
123
|
-
id: import("@sinclair/typebox").TInteger;
|
|
124
|
-
version: import("@sinclair/typebox").TInteger;
|
|
125
|
-
tab_name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
126
|
-
tab_order: import("@sinclair/typebox").TInteger;
|
|
127
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
128
|
-
change_notes: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
129
|
-
created_by: import("@sinclair/typebox").TString;
|
|
130
|
-
created_by_username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
131
|
-
created_at: import("@sinclair/typebox").TString;
|
|
132
|
-
}>>;
|
|
133
|
-
}>;
|
|
134
|
-
tabs: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
135
|
-
tab_name: import("@sinclair/typebox").TString;
|
|
136
|
-
tab_order: import("@sinclair/typebox").TInteger;
|
|
137
|
-
current_version: import("@sinclair/typebox").TInteger;
|
|
138
|
-
current_version_id: import("@sinclair/typebox").TInteger;
|
|
139
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
140
|
-
}>>;
|
|
141
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
142
|
-
action: import("@sinclair/typebox").TLiteral<"rollback">;
|
|
143
|
-
version: import("@sinclair/typebox").TObject<{
|
|
144
|
-
id: import("@sinclair/typebox").TInteger;
|
|
145
|
-
version: import("@sinclair/typebox").TInteger;
|
|
146
|
-
tab_name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
147
|
-
tab_order: import("@sinclair/typebox").TInteger;
|
|
148
|
-
json_template: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
149
|
-
change_notes: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
150
|
-
created_by: import("@sinclair/typebox").TString;
|
|
151
|
-
created_by_username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
152
|
-
created_at: import("@sinclair/typebox").TString;
|
|
153
|
-
}>;
|
|
154
|
-
message: import("@sinclair/typebox").TString;
|
|
155
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
156
|
-
action: import("@sinclair/typebox").TLiteral<"remove_tab">;
|
|
157
|
-
success: import("@sinclair/typebox").TBoolean;
|
|
158
|
-
message: import("@sinclair/typebox").TString;
|
|
159
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
160
|
-
action: import("@sinclair/typebox").TLiteral<"clear">;
|
|
161
|
-
success: import("@sinclair/typebox").TBoolean;
|
|
162
|
-
message: import("@sinclair/typebox").TString;
|
|
163
|
-
}>]>;
|
|
164
|
-
export type ManageViewTemplatesResult = Static<typeof ManageViewTemplatesResultSchema>;
|
|
165
|
-
//# sourceMappingURL=manage-view-templates.d.ts.map
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageViewTemplatesResultSchema = exports.ManageViewTemplatesSchema = exports.ClearViewTemplateAction = exports.RemoveViewTemplateTabAction = exports.RollbackViewTemplateAction = exports.GetViewTemplateAction = exports.SetViewTemplateAction = exports.ViewTemplateTabInfoSchema = exports.ViewTemplateVersionRowSchema = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
// ============================================
|
|
6
|
-
// View template versioning types + helpers
|
|
7
|
-
// ============================================
|
|
8
|
-
exports.ViewTemplateVersionRowSchema = typebox_1.Type.Object({
|
|
9
|
-
id: typebox_1.Type.Integer(),
|
|
10
|
-
version: typebox_1.Type.Integer(),
|
|
11
|
-
tab_name: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
12
|
-
tab_order: typebox_1.Type.Integer(),
|
|
13
|
-
json_template: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
|
|
14
|
-
change_notes: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
15
|
-
created_by: typebox_1.Type.String(),
|
|
16
|
-
created_by_username: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
17
|
-
created_at: typebox_1.Type.String(),
|
|
18
|
-
});
|
|
19
|
-
exports.ViewTemplateTabInfoSchema = typebox_1.Type.Object({
|
|
20
|
-
tab_name: typebox_1.Type.String(),
|
|
21
|
-
tab_order: typebox_1.Type.Integer(),
|
|
22
|
-
current_version: typebox_1.Type.Integer(),
|
|
23
|
-
current_version_id: typebox_1.Type.Integer(),
|
|
24
|
-
json_template: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown()),
|
|
25
|
-
});
|
|
26
|
-
// ============================================
|
|
27
|
-
// Input Schema (union of per-action variants)
|
|
28
|
-
// ============================================
|
|
29
|
-
//
|
|
30
|
-
// The wire schema flattens this union into ONE MCP object and merges duplicate
|
|
31
|
-
// properties first-occurrence-wins, so a property carried by more than one
|
|
32
|
-
// variant must read true for every one of them.
|
|
33
|
-
const ResourceType = typebox_1.Type.Union([typebox_1.Type.Literal("entity_type"), typebox_1.Type.Literal("entity")], { description: "Type of resource: entity_type or entity" });
|
|
34
|
-
const ResourceId = typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Number()], {
|
|
35
|
-
description: "Resource identifier: entity type slug (string) or entity id (number)",
|
|
36
|
-
});
|
|
37
|
-
const TabName = typebox_1.Type.String({
|
|
38
|
-
description: "Tab name. Omit for the default/overview tab; required for `remove_tab`. `get` returns the default tab and every named tab whether or not it is given.",
|
|
39
|
-
});
|
|
40
|
-
exports.SetViewTemplateAction = typebox_1.Type.Object({
|
|
41
|
-
action: typebox_1.Type.Literal("set", {
|
|
42
|
-
description: "Create a new version of a view template / tab.",
|
|
43
|
-
}),
|
|
44
|
-
resource_type: ResourceType,
|
|
45
|
-
resource_id: ResourceId,
|
|
46
|
-
json_template: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown(), {
|
|
47
|
-
description: '[set] The JSON template content. May include a data_sources key: { "data_sources": { "name": { "query": "SELECT ... FROM entities" } }, ...template }. Queries run against org-scoped virtual tables. Use {{entityId}} for current entity context.',
|
|
48
|
-
}),
|
|
49
|
-
tab_name: typebox_1.Type.Optional(TabName),
|
|
50
|
-
tab_order: typebox_1.Type.Optional(typebox_1.Type.Number({ description: "[set] Sort order for tabs (default 0)" })),
|
|
51
|
-
change_notes: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[set] Notes describing the change" })),
|
|
52
|
-
});
|
|
53
|
-
exports.GetViewTemplateAction = typebox_1.Type.Object({
|
|
54
|
-
action: typebox_1.Type.Literal("get", {
|
|
55
|
-
description: "Fetch current default + tabs + history.",
|
|
56
|
-
}),
|
|
57
|
-
resource_type: ResourceType,
|
|
58
|
-
resource_id: ResourceId,
|
|
59
|
-
tab_name: typebox_1.Type.Optional(TabName),
|
|
60
|
-
});
|
|
61
|
-
exports.RollbackViewTemplateAction = typebox_1.Type.Object({
|
|
62
|
-
action: typebox_1.Type.Literal("rollback", {
|
|
63
|
-
description: "Roll back to a prior version.",
|
|
64
|
-
}),
|
|
65
|
-
resource_type: ResourceType,
|
|
66
|
-
resource_id: ResourceId,
|
|
67
|
-
version: typebox_1.Type.Number({
|
|
68
|
-
description: "[rollback] Version number to rollback to",
|
|
69
|
-
}),
|
|
70
|
-
tab_name: typebox_1.Type.Optional(TabName),
|
|
71
|
-
});
|
|
72
|
-
exports.RemoveViewTemplateTabAction = typebox_1.Type.Object({
|
|
73
|
-
action: typebox_1.Type.Literal("remove_tab", { description: "Delete a named tab." }),
|
|
74
|
-
resource_type: ResourceType,
|
|
75
|
-
resource_id: ResourceId,
|
|
76
|
-
tab_name: TabName,
|
|
77
|
-
});
|
|
78
|
-
exports.ClearViewTemplateAction = typebox_1.Type.Object({
|
|
79
|
-
action: typebox_1.Type.Literal("clear", {
|
|
80
|
-
description: "Null the default (non-tab) template.",
|
|
81
|
-
}),
|
|
82
|
-
resource_type: ResourceType,
|
|
83
|
-
resource_id: ResourceId,
|
|
84
|
-
});
|
|
85
|
-
exports.ManageViewTemplatesSchema = typebox_1.Type.Union([
|
|
86
|
-
exports.SetViewTemplateAction,
|
|
87
|
-
exports.GetViewTemplateAction,
|
|
88
|
-
exports.RollbackViewTemplateAction,
|
|
89
|
-
exports.RemoveViewTemplateTabAction,
|
|
90
|
-
exports.ClearViewTemplateAction,
|
|
91
|
-
]);
|
|
92
|
-
// ============================================
|
|
93
|
-
// Result Types
|
|
94
|
-
// ============================================
|
|
95
|
-
/**
|
|
96
|
-
* Result of `manage_view_templates` — discriminated union keyed on `action`.
|
|
97
|
-
* TypeBox-first: `Static<>` derives the TS type from the same schema exposed as
|
|
98
|
-
* the tool's `outputSchema`.
|
|
99
|
-
*/
|
|
100
|
-
exports.ManageViewTemplatesResultSchema = typebox_1.Type.Union([
|
|
101
|
-
typebox_1.Type.Object({
|
|
102
|
-
action: typebox_1.Type.Literal("set"),
|
|
103
|
-
version: exports.ViewTemplateVersionRowSchema,
|
|
104
|
-
message: typebox_1.Type.String(),
|
|
105
|
-
}),
|
|
106
|
-
typebox_1.Type.Object({
|
|
107
|
-
action: typebox_1.Type.Literal("get"),
|
|
108
|
-
default_tab: typebox_1.Type.Object({
|
|
109
|
-
current: typebox_1.Type.Union([exports.ViewTemplateVersionRowSchema, typebox_1.Type.Null()]),
|
|
110
|
-
history: typebox_1.Type.Array(exports.ViewTemplateVersionRowSchema),
|
|
111
|
-
}),
|
|
112
|
-
tabs: typebox_1.Type.Array(exports.ViewTemplateTabInfoSchema),
|
|
113
|
-
}),
|
|
114
|
-
typebox_1.Type.Object({
|
|
115
|
-
action: typebox_1.Type.Literal("rollback"),
|
|
116
|
-
version: exports.ViewTemplateVersionRowSchema,
|
|
117
|
-
message: typebox_1.Type.String(),
|
|
118
|
-
}),
|
|
119
|
-
typebox_1.Type.Object({
|
|
120
|
-
action: typebox_1.Type.Literal("remove_tab"),
|
|
121
|
-
success: typebox_1.Type.Boolean(),
|
|
122
|
-
message: typebox_1.Type.String(),
|
|
123
|
-
}),
|
|
124
|
-
typebox_1.Type.Object({
|
|
125
|
-
action: typebox_1.Type.Literal("clear"),
|
|
126
|
-
success: typebox_1.Type.Boolean(),
|
|
127
|
-
message: typebox_1.Type.String(),
|
|
128
|
-
}),
|
|
129
|
-
]);
|
|
130
|
-
//# sourceMappingURL=manage-view-templates.js.map
|