loopable-cli 0.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/.output/nitro.json +17 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/assets/_connectorId-BWjYn5tm.js +1 -0
- package/.output/public/assets/_loopId-Ds4RkyEc.js +1 -0
- package/.output/public/assets/_taskId-BOzICXDf.js +1 -0
- package/.output/public/assets/alert-Bn9-Zm0l.js +1 -0
- package/.output/public/assets/arrow-left-BF9juV9T.js +1 -0
- package/.output/public/assets/arrow-right-CzqvnOY1.js +1 -0
- package/.output/public/assets/button-HCY6DCY-.js +1 -0
- package/.output/public/assets/connection-status-CYZB8kLy.js +1 -0
- package/.output/public/assets/connector-icon-BZ_MUJV_.js +1 -0
- package/.output/public/assets/connectors-BvzttfSu.js +1 -0
- package/.output/public/assets/connectors-DdJNwRN_.js +1 -0
- package/.output/public/assets/external-link-D46X-bXa.js +1 -0
- package/.output/public/assets/gaps-D-I6xiDc.js +1 -0
- package/.output/public/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/.output/public/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/.output/public/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/.output/public/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/.output/public/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/.output/public/assets/inbox-BUUu9xxE.js +1 -0
- package/.output/public/assets/index-ztzex0FN.js +10 -0
- package/.output/public/assets/loader-CcBl2u8m.js +1 -0
- package/.output/public/assets/loop-form-dB3CLcZb.js +1 -0
- package/.output/public/assets/loops-DRunQrxL.js +1 -0
- package/.output/public/assets/loops-oSdqMd29.js +1 -0
- package/.output/public/assets/manifests-DNMqf7Vi.js +7 -0
- package/.output/public/assets/new-uyFxVjuB.js +1 -0
- package/.output/public/assets/preload-helper-ORbuV86A.js +3 -0
- package/.output/public/assets/runners-DSU3r5Ww.js +1 -0
- package/.output/public/assets/setting-fields-ixkpdBb-.js +3 -0
- package/.output/public/assets/styles-DZL5V1o7.css +2 -0
- package/.output/public/assets/switch-d5ummmHY.js +1 -0
- package/.output/public/assets/task-list-BpOStt9v.js +1 -0
- package/.output/public/assets/tasks-B8MsKgic.js +1 -0
- package/.output/public/assets/trash-2-D6u6NpzO.js +1 -0
- package/.output/public/favicon.svg +9 -0
- package/.output/server/_chunks/ssr-renderer.mjs +26 -0
- package/.output/server/_connectorId-8nb5yOzG.mjs +421 -0
- package/.output/server/_libs/@base-ui/react+[...].mjs +12841 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +14349 -0
- package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
- package/.output/server/_libs/dijkstrajs.mjs +118 -0
- package/.output/server/_libs/drizzle-orm.mjs +4349 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +1361 -0
- package/.output/server/_libs/lucide-react.mjs +911 -0
- package/.output/server/_libs/next-themes.mjs +53 -0
- package/.output/server/_libs/pngjs.mjs +1680 -0
- package/.output/server/_libs/qrcode.mjs +2583 -0
- package/.output/server/_libs/sonner.mjs +955 -0
- package/.output/server/_libs/tailwind-merge.mjs +3380 -0
- package/.output/server/_libs/tanstack__history.mjs +341 -0
- package/.output/server/_libs/ufo.mjs +64 -0
- package/.output/server/_loopId-BsUL1SeL.mjs +272 -0
- package/.output/server/_runtime.mjs +35 -0
- package/.output/server/_ssr/access-zIl15o8y.mjs +42 -0
- package/.output/server/_ssr/agents-Btql102J.mjs +657 -0
- package/.output/server/_ssr/agents-DAOZPgO2.mjs +76 -0
- package/.output/server/_ssr/alert-NEiOCTOl.mjs +37 -0
- package/.output/server/_ssr/callback-CUINvl7M.mjs +62 -0
- package/.output/server/_ssr/client-CKkOfh-s.mjs +335 -0
- package/.output/server/_ssr/connection-status-Bi5peUAk.mjs +31 -0
- package/.output/server/_ssr/connections-qnw2GVlP.mjs +2542 -0
- package/.output/server/_ssr/connector-icon-DZXQLLFo.mjs +37 -0
- package/.output/server/_ssr/connectors-BHNwuIMj.mjs +106 -0
- package/.output/server/_ssr/connectors-C28g0i4c.mjs +83 -0
- package/.output/server/_ssr/createServerRpc-DPDrnFdH.mjs +12 -0
- package/.output/server/_ssr/empty-plugin-adapters-BJ4m9L8g.mjs +5 -0
- package/.output/server/_ssr/gaps-RAFSXLZf.mjs +53 -0
- package/.output/server/_ssr/inbox-k5zHergU.mjs +35 -0
- package/.output/server/_ssr/loop-form-DlObSewZ.mjs +412 -0
- package/.output/server/_ssr/loops-APFcP0y6.mjs +311 -0
- package/.output/server/_ssr/loops-xt2Bn7_q.mjs +222 -0
- package/.output/server/_ssr/new-DfKyd2Wa.mjs +169 -0
- package/.output/server/_ssr/router-3WmpE5b_.mjs +1553 -0
- package/.output/server/_ssr/runners-By-mwc3F.mjs +32 -0
- package/.output/server/_ssr/runners-DI_NxpHC.mjs +116 -0
- package/.output/server/_ssr/runners-DtXs4Q8a.mjs +106 -0
- package/.output/server/_ssr/secrets-Hqti-niS.mjs +199 -0
- package/.output/server/_ssr/setting-fields-8vKFj4df.mjs +92 -0
- package/.output/server/_ssr/ssr.mjs +6605 -0
- package/.output/server/_ssr/start-Bdc2GJUI.mjs +51 -0
- package/.output/server/_ssr/switch-ReNglgH6.mjs +18 -0
- package/.output/server/_ssr/task-list-CUITIqkb.mjs +186 -0
- package/.output/server/_ssr/tasks-SAjNovX6.mjs +110 -0
- package/.output/server/_ssr/tasks-vcoodp_D.mjs +533 -0
- package/.output/server/_tanstack-start-manifest_v-C0cP5F0M.mjs +125 -0
- package/.output/server/_taskId-CXS3lod0.mjs +249 -0
- package/.output/server/index.mjs +541 -0
- package/README.md +81 -0
- package/dist/cli.mjs +165 -0
- package/dist/dispatcher.mjs +9871 -0
- package/dist/runner.mjs +657 -0
- package/drizzle/0000_cold_demogoblin.sql +29 -0
- package/drizzle/0001_fancy_blonde_phantom.sql +13 -0
- package/drizzle/0002_spooky_smiling_tiger.sql +16 -0
- package/drizzle/0003_small_golden_guardian.sql +25 -0
- package/drizzle/0004_wonderful_thunderbolts.sql +39 -0
- package/drizzle/0005_named_workflows.sql +7 -0
- package/drizzle/0006_signals.sql +18 -0
- package/drizzle/0007_review_comments.sql +1 -0
- package/drizzle/0008_held_signals.sql +1 -0
- package/drizzle/0009_work_item_ref.sql +58 -0
- package/drizzle/0010_signal_payload.sql +2 -0
- package/drizzle/0011_rule_poll_cursor.sql +1 -0
- package/drizzle/0012_loops.sql +63 -0
- package/drizzle/0013_loop_owns_action_and_prompt.sql +154 -0
- package/drizzle/0014_loop_poll_every.sql +4 -0
- package/drizzle/0015_machines.sql +10 -0
- package/drizzle/0016_task_machine.sql +1 -0
- package/drizzle/0017_loop_machine.sql +1 -0
- package/drizzle/0018_runners.sql +1 -0
- package/drizzle/0019_task_runner.sql +1 -0
- package/drizzle/0020_loop_runner.sql +1 -0
- package/drizzle/0021_drop_runner_kind.sql +1 -0
- package/drizzle/0022_drop_loop_runner.sql +1 -0
- package/drizzle/0023_shared_host.sql +6 -0
- package/drizzle/meta/0000_snapshot.json +206 -0
- package/drizzle/meta/0001_snapshot.json +284 -0
- package/drizzle/meta/0002_snapshot.json +390 -0
- package/drizzle/meta/0003_snapshot.json +566 -0
- package/drizzle/meta/0004_snapshot.json +633 -0
- package/drizzle/meta/0005_snapshot.json +626 -0
- package/drizzle/meta/0006_snapshot.json +752 -0
- package/drizzle/meta/0007_snapshot.json +759 -0
- package/drizzle/meta/0008_snapshot.json +766 -0
- package/drizzle/meta/0009_snapshot.json +752 -0
- package/drizzle/meta/0010_snapshot.json +766 -0
- package/drizzle/meta/0011_snapshot.json +773 -0
- package/drizzle/meta/0012_snapshot.json +773 -0
- package/drizzle/meta/0013_snapshot.json +817 -0
- package/drizzle/meta/_journal.json +174 -0
- package/package.json +88 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
2
|
+
function r(e) {
|
|
3
|
+
var t, f, n = "";
|
|
4
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
+
var o = e.length;
|
|
7
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
function clsx() {
|
|
12
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
+
return n;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
17
|
+
/**
|
|
18
|
+
* Copyright 2022 Joe Bell. All rights reserved.
|
|
19
|
+
*
|
|
20
|
+
* This file is licensed to you under the Apache License, Version 2.0
|
|
21
|
+
* (the "License"); you may not use this file except in compliance with the
|
|
22
|
+
* License. You may obtain a copy of the License at
|
|
23
|
+
*
|
|
24
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
+
*
|
|
26
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
27
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
28
|
+
* WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
|
|
29
|
+
* License for the specific language governing permissions and limitations under
|
|
30
|
+
* the License.
|
|
31
|
+
*/ var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
32
|
+
var cx = clsx;
|
|
33
|
+
var cva = (base, config) => (props) => {
|
|
34
|
+
var _config_compoundVariants;
|
|
35
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
36
|
+
const { variants, defaultVariants } = config;
|
|
37
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
38
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
39
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
40
|
+
if (variantProp === null) return null;
|
|
41
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
42
|
+
return variants[variant][variantKey];
|
|
43
|
+
});
|
|
44
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
45
|
+
let [key, value] = param;
|
|
46
|
+
if (value === void 0) return acc;
|
|
47
|
+
acc[key] = value;
|
|
48
|
+
return acc;
|
|
49
|
+
}, {});
|
|
50
|
+
return cx(base, getVariantClassNames, config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
51
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
52
|
+
return Object.entries(compoundVariantOptions).every((param) => {
|
|
53
|
+
let [key, value] = param;
|
|
54
|
+
return Array.isArray(value) ? value.includes({
|
|
55
|
+
...defaultVariants,
|
|
56
|
+
...propsWithoutUndefined
|
|
57
|
+
}[key]) : {
|
|
58
|
+
...defaultVariants,
|
|
59
|
+
...propsWithoutUndefined
|
|
60
|
+
}[key] === value;
|
|
61
|
+
}) ? [
|
|
62
|
+
...acc,
|
|
63
|
+
cvClass,
|
|
64
|
+
cvClassName
|
|
65
|
+
] : acc;
|
|
66
|
+
}, []), props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { clsx as n, cva as t };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { t as __commonJSMin } from "../_runtime.mjs";
|
|
2
|
+
//#region node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js
|
|
3
|
+
var require_dijkstra = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
/******************************************************************************
|
|
5
|
+
* Created 2008-08-19.
|
|
6
|
+
*
|
|
7
|
+
* Dijkstra path-finding functions. Adapted from the Dijkstar Python project.
|
|
8
|
+
*
|
|
9
|
+
* Copyright (C) 2008
|
|
10
|
+
* Wyatt Baldwin <self@wyattbaldwin.com>
|
|
11
|
+
* All rights reserved
|
|
12
|
+
*
|
|
13
|
+
* Licensed under the MIT license.
|
|
14
|
+
*
|
|
15
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*****************************************************************************/
|
|
25
|
+
var dijkstra = {
|
|
26
|
+
single_source_shortest_paths: function(graph, s, d) {
|
|
27
|
+
var predecessors = {};
|
|
28
|
+
var costs = {};
|
|
29
|
+
costs[s] = 0;
|
|
30
|
+
var open = dijkstra.PriorityQueue.make();
|
|
31
|
+
open.push(s, 0);
|
|
32
|
+
var closest, u, v, cost_of_s_to_u, adjacent_nodes, cost_of_e, cost_of_s_to_u_plus_cost_of_e, cost_of_s_to_v, first_visit;
|
|
33
|
+
while (!open.empty()) {
|
|
34
|
+
closest = open.pop();
|
|
35
|
+
u = closest.value;
|
|
36
|
+
cost_of_s_to_u = closest.cost;
|
|
37
|
+
adjacent_nodes = graph[u] || {};
|
|
38
|
+
for (v in adjacent_nodes) if (adjacent_nodes.hasOwnProperty(v)) {
|
|
39
|
+
cost_of_e = adjacent_nodes[v];
|
|
40
|
+
cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;
|
|
41
|
+
cost_of_s_to_v = costs[v];
|
|
42
|
+
first_visit = typeof costs[v] === "undefined";
|
|
43
|
+
if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {
|
|
44
|
+
costs[v] = cost_of_s_to_u_plus_cost_of_e;
|
|
45
|
+
open.push(v, cost_of_s_to_u_plus_cost_of_e);
|
|
46
|
+
predecessors[v] = u;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (typeof d !== "undefined" && typeof costs[d] === "undefined") {
|
|
51
|
+
var msg = [
|
|
52
|
+
"Could not find a path from ",
|
|
53
|
+
s,
|
|
54
|
+
" to ",
|
|
55
|
+
d,
|
|
56
|
+
"."
|
|
57
|
+
].join("");
|
|
58
|
+
throw new Error(msg);
|
|
59
|
+
}
|
|
60
|
+
return predecessors;
|
|
61
|
+
},
|
|
62
|
+
extract_shortest_path_from_predecessor_list: function(predecessors, d) {
|
|
63
|
+
var nodes = [];
|
|
64
|
+
var u = d;
|
|
65
|
+
while (u) {
|
|
66
|
+
nodes.push(u);
|
|
67
|
+
predecessors[u];
|
|
68
|
+
u = predecessors[u];
|
|
69
|
+
}
|
|
70
|
+
nodes.reverse();
|
|
71
|
+
return nodes;
|
|
72
|
+
},
|
|
73
|
+
find_path: function(graph, s, d) {
|
|
74
|
+
var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);
|
|
75
|
+
return dijkstra.extract_shortest_path_from_predecessor_list(predecessors, d);
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* A very naive priority queue implementation.
|
|
79
|
+
*/
|
|
80
|
+
PriorityQueue: {
|
|
81
|
+
make: function(opts) {
|
|
82
|
+
var T = dijkstra.PriorityQueue, t = {}, key;
|
|
83
|
+
opts = opts || {};
|
|
84
|
+
for (key in T) if (T.hasOwnProperty(key)) t[key] = T[key];
|
|
85
|
+
t.queue = [];
|
|
86
|
+
t.sorter = opts.sorter || T.default_sorter;
|
|
87
|
+
return t;
|
|
88
|
+
},
|
|
89
|
+
default_sorter: function(a, b) {
|
|
90
|
+
return a.cost - b.cost;
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* Add a new item to the queue and ensure the highest priority element
|
|
94
|
+
* is at the front of the queue.
|
|
95
|
+
*/
|
|
96
|
+
push: function(value, cost) {
|
|
97
|
+
var item = {
|
|
98
|
+
value,
|
|
99
|
+
cost
|
|
100
|
+
};
|
|
101
|
+
this.queue.push(item);
|
|
102
|
+
this.queue.sort(this.sorter);
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* Return the highest priority element in the queue.
|
|
106
|
+
*/
|
|
107
|
+
pop: function() {
|
|
108
|
+
return this.queue.shift();
|
|
109
|
+
},
|
|
110
|
+
empty: function() {
|
|
111
|
+
return this.queue.length === 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
if (typeof module !== "undefined") module.exports = dijkstra;
|
|
116
|
+
}));
|
|
117
|
+
//#endregion
|
|
118
|
+
export { require_dijkstra as t };
|