pareto-host-nodejs 0.2.54 → 0.2.55

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.
Files changed (34) hide show
  1. package/dist/execute sandboxed/signatures.d.ts +10 -0
  2. package/dist/execute sandboxed/signatures.js +3 -0
  3. package/dist/execute_sandboxed/commands/command_executable.d.ts +0 -0
  4. package/dist/execute_sandboxed/commands/command_executable.js +25 -0
  5. package/dist/execute_sandboxed/commands/smelly_command_executable.d.ts +0 -0
  6. package/dist/execute_sandboxed/commands/smelly_command_executable.js +58 -0
  7. package/dist/execute_sandboxed/queries/query_executable.d.ts +0 -0
  8. package/dist/execute_sandboxed/queries/query_executable.js +63 -0
  9. package/dist/execute_sandboxed/resources.d.ts +0 -0
  10. package/dist/execute_sandboxed/resources.js +15 -0
  11. package/dist/execute_sandboxed/signatures.d.ts +10 -0
  12. package/dist/execute_sandboxed/signatures.js +3 -0
  13. package/dist/execute_unrestricted/resources.d.ts +2 -0
  14. package/dist/execute_unrestricted/resources.js +16 -0
  15. package/dist/execute_unrestricted/signatures.d.ts +10 -0
  16. package/dist/execute_unrestricted/signatures.js +3 -0
  17. package/dist/file_system_sandboxed/commands/chmod.js +3 -3
  18. package/dist/file_system_sandboxed/commands/copy.js +3 -3
  19. package/dist/file_system_sandboxed/commands/make_directory.js +3 -3
  20. package/dist/file_system_sandboxed/signatures.d.ts +0 -0
  21. package/dist/file_system_sandboxed/signatures.js +2 -0
  22. package/dist/file_system_unrestricted/resources.d.ts +2 -0
  23. package/dist/file_system_unrestricted/resources.js +28 -0
  24. package/dist/file_system_unrestricted/signatures.d.ts +20 -0
  25. package/dist/file_system_unrestricted/signatures.js +3 -0
  26. package/dist/index.js +11 -67
  27. package/dist/signatures.d.ts +6 -48
  28. package/dist/stream/resources.d.ts +2 -0
  29. package/dist/stream/resources.js +20 -0
  30. package/dist/stream/signatures.d.ts +14 -0
  31. package/dist/stream/signatures.js +3 -0
  32. package/dist/temp_core.d.ts +8 -0
  33. package/dist/temp_core.js +12 -0
  34. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import * as _pi_temp from '../temp_core';
2
+ import * as d_execute_command_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_command_executable/data";
3
+ import * as d_execute_smelly_command_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_smelly_command_executable/data";
4
+ import * as d_execute_query_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_query_executable/data";
5
+ export type Resources = _pi_temp.Resource_Collection<{
6
+ 'command executable': _pi_temp.Command_Creator<d_execute_command_executable.Error, d_execute_command_executable.Parameters, null>;
7
+ 'smelly command executable': _pi_temp.Command_Creator<d_execute_smelly_command_executable.Error, d_execute_smelly_command_executable.Parameters, null>;
8
+ }, {
9
+ 'query executable': _pi_temp.Query_Creator<d_execute_query_executable.Result, d_execute_query_executable.Error, d_execute_query_executable.Parameters, null>;
10
+ }>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGVjdXRlIHNhbmRib3hlZC9zaWduYXR1cmVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // import * as _pc from 'pareto-core/dist/command'
3
+ // import * as _p from 'pareto-core/dist/assign'
4
+ // import * as _pc_temp from '../../temp_core'
5
+ // import __command from 'pareto-core/dist/__internals/async/command'
6
+ // import __command_promise from 'pareto-core/dist/__internals/async/command_promise'
7
+ // //interface
8
+ // import * as resources from "pareto-resources/dist/interface/resources"
9
+ // //dependencies
10
+ // import { spawn } from "node:child_process"
11
+ // import { Message } from '../../terminal_output'
12
+ // import * as t_path_to_text from "pareto-resources/dist/implementation/manual/transformers/unrestricted_path/text"
13
+ // /**
14
+ // *
15
+ // * The executable being executed is assumed to only cause side effects
16
+ // * and not return any meaningful data, std::out is therefor ignored
17
+ // */
18
+ // export const $$ = _pc_temp.__create_command(
19
+ // (
20
+ // $: {
21
+ // 'program': string,
22
+ // }
23
+ // ) => __command(() => )
24
+ // )
25
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZF9leGVjdXRhYmxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2V4ZWN1dGVfc2FuZGJveGVkL2NvbW1hbmRzL2NvbW1hbmRfZXhlY3V0YWJsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsa0RBQWtEO0FBQ2xELGdEQUFnRDtBQUNoRCw4Q0FBOEM7QUFFOUMscUVBQXFFO0FBQ3JFLHFGQUFxRjtBQUVyRixjQUFjO0FBQ2QseUVBQXlFO0FBRXpFLGlCQUFpQjtBQUNqQiw2Q0FBNkM7QUFDN0Msa0RBQWtEO0FBQ2xELG9IQUFvSDtBQUVwSCxNQUFNO0FBQ04sTUFBTTtBQUNOLHlFQUF5RTtBQUN6RSxzRUFBc0U7QUFDdEUsTUFBTTtBQUNOLCtDQUErQztBQUMvQyxRQUFRO0FBQ1IsZUFBZTtBQUNmLGlDQUFpQztBQUNqQyxZQUFZO0FBQ1osNkJBQTZCO0FBQzdCLElBQUkifQ==
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ // import * as _pc from 'pareto-core/dist/command'
3
+ // import * as _p from 'pareto-core/dist/assign'
4
+ // import __command from 'pareto-core/dist/__internals/async/command'
5
+ // import __command_promise from 'pareto-core/dist/__internals/async/command_promise'
6
+ // //interface
7
+ // import * as resources from "pareto-resources/dist/interface/resources"
8
+ // //dependencies
9
+ // import { spawn } from "node:child_process"
10
+ // import { Message } from '../../terminal_output'
11
+ // import * as t_path_to_text from "pareto-resources/dist/implementation/manual/transformers/unrestricted_path/text"
12
+ // // import { Signature } from "pareto-resources/dist/interface/algorithms/commands/execute_smelly_procedure_executable"
13
+ // /**
14
+ // *
15
+ // * The executable being executed is assumed to only cause side effects
16
+ // * and not return any meaningful data, std::out is therefor ignored
17
+ // */
18
+ // export const $$: resources.commands.execute_smelly_command_executable = __command((
19
+ // $p,
20
+ // ) => {
21
+ // const args = $p.args.__get_raw_copy()
22
+ // return __command_promise({
23
+ // 'execute': (on_success, on_error) => {
24
+ // const child = spawn($p.program, args, {
25
+ // 'cwd': $p['working directory'].__decide(
26
+ // ($) => t_path_to_text.Context_Path($),
27
+ // () => undefined,
28
+ // ),
29
+ // shell: false, // direct execution, no shell
30
+ // stdio: ['pipe', 'pipe', 'pipe'], // explicitly pipe stdin, stdout, stderr
31
+ // })
32
+ // let stderrData = ""
33
+ // let stdoutData = ""
34
+ // child.stdout.on("data", chunk => {
35
+ // stdoutData += chunk.toString("utf8")
36
+ // })
37
+ // child.stderr.on("data", chunk => {
38
+ // stderrData += chunk.toString("utf8")
39
+ // })
40
+ // child.on("error", err => {
41
+ // on_error(['failed to spawn', { message: Message(err.message) }])
42
+ // })
43
+ // child.on("close", exitCode => {
44
+ // //what does an exit code of null even mean?
45
+ // if (exitCode === 0) {
46
+ // on_success()
47
+ // } else {
48
+ // on_error(['non zero exit code', {
49
+ // 'exit code': exitCode === null ? _p.optional.literal.not_set() : _p.optional.literal.set(exitCode),
50
+ // 'stderr': Message(stderrData),
51
+ // 'stdout': Message(stdoutData),
52
+ // }])
53
+ // }
54
+ // })
55
+ // }
56
+ // })
57
+ // })
58
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21lbGx5X2NvbW1hbmRfZXhlY3V0YWJsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9leGVjdXRlX3NhbmRib3hlZC9jb21tYW5kcy9zbWVsbHlfY29tbWFuZ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core/dist/query'
3
+ // import * as _p from 'pareto-core/dist/assign'
4
+ // import __query from 'pareto-core/dist/__internals/async/query'
5
+ // import __query_result from 'pareto-core/dist/__internals/async/__query_result'
6
+ // //interface
7
+ // import * as resources from "pareto-resources/dist/interface/resources"
8
+ // //dependencies
9
+ // import { spawn } from "node:child_process"
10
+ // import { Message } from '../../terminal_output'
11
+ // import * as t_path_to_text from "pareto-resources/dist/implementation/manual/transformers/unrestricted_path/text"
12
+ // /**
13
+ // *
14
+ // * The executable being executed is assumed to be side effect free
15
+ // * There is no way to give guarantees about that though
16
+ // */
17
+ // export const $$: resources.queries.execute_query_executable = __query(
18
+ // ($p,) => {
19
+ // const args = $p.args.__get_raw_copy()
20
+ // return __query_result((on_value, on_error) => {
21
+ // const child = spawn($p.program, args, {
22
+ // 'cwd': $p['working directory'].__decide(
23
+ // ($) => t_path_to_text.Context_Path($),
24
+ // () => undefined,
25
+ // ),
26
+ // shell: false, // ✅ no implicit parsing
27
+ // })
28
+ // let stdoutData = ""
29
+ // let stderrData = ""
30
+ // child.stdout.on("data", chunk => {
31
+ // stdoutData += chunk.toString("utf8")
32
+ // })
33
+ // child.stderr.on("data", chunk => {
34
+ // stderrData += chunk.toString("utf8")
35
+ // })
36
+ // child.on("error", err => {
37
+ // on_error(_p.state.block(() => {
38
+ // if (!(err instanceof Error)) {
39
+ // throw new Error(`Expected an Error instance, got: ${typeof err}`)
40
+ // }
41
+ // return ['failed to spawn', {
42
+ // message: Message(err.message),
43
+ // }]
44
+ // }))
45
+ // })
46
+ // child.on("close", exitCode => {
47
+ // if (exitCode === 0) {
48
+ // on_value({
49
+ // 'stdout': Message(stdoutData),
50
+ // })
51
+ // } else {
52
+ // on_error(_p.state.block(() => {
53
+ // return ['non zero exit code', {
54
+ // 'exit code': exitCode === null ? _p.optional.literal.not_set() : _p.optional.literal.set(exitCode),
55
+ // 'stderr': Message(stderrData),
56
+ // }]
57
+ // }))
58
+ // }
59
+ // })
60
+ // })
61
+ // }
62
+ //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MseURBQXlEO0FBQ3pELHlCQUF5QjtBQUN6QiwyQkFBMkI7QUFDM0Isc0RBQXNEO0FBQ3RELDBEQUEwRDtBQUMxRCxrSUFBa0k7QUFDbEksNkRBQTZEO0FBQzdELDZCQUE2QjtBQUM3QiwwQkFBMEI7QUFDMUIsb0JBQW9CO0FBQ3BCLGlCQUFpQjtBQUNqQixhQUFhO0FBQ2IsUUFBUTtBQUNSLElBQUkifQ==
File without changes
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // import { Resources } from "./signatures"
3
+ // import { $$ as p_execute_command_executable } from "./commands/command_executable"
4
+ // import { $$ as p_execute_smelly_command_executable } from "./commands/smelly_command_executable"
5
+ // import { $$ as q_execute_query_executable } from "./queries/query_executable"
6
+ // export const $: Resources = {
7
+ // 'commands': {
8
+ // 'command executable': () => p_execute_command_executable,
9
+ // 'smelly command executable': () => p_execute_smelly_command_executable,
10
+ // },
11
+ // 'queries': {
12
+ // 'query executable': () => q_execute_query_executable,
13
+ // }
14
+ // }
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2V4ZWN1dGVfc2FuZGJveGVkL3Jlc291cmNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkNBQTJDO0FBRTNDLHFGQUFxRjtBQUNyRixtR0FBbUc7QUFDbkcsZ0ZBQWdGO0FBRWhGLGdDQUFnQztBQUNoQyxvQkFBb0I7QUFDcEIsb0VBQW9FO0FBQ3BFLGtGQUFrRjtBQUVsRixTQUFTO0FBQ1QsbUJBQW1CO0FBQ25CLGdFQUFnRTtBQUNoRSxRQUFRO0FBQ1IsSUFBSSJ9
@@ -0,0 +1,10 @@
1
+ import * as _pi_temp from '../temp_core';
2
+ import * as d_execute_command_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_command_executable/data";
3
+ import * as d_execute_smelly_command_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_smelly_command_executable/data";
4
+ import * as d_execute_query_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_query_executable/data";
5
+ export type Resources = _pi_temp.Resource_Collection<{
6
+ 'command executable': _pi_temp.Command_Creator<d_execute_command_executable.Error, d_execute_command_executable.Parameters, null>;
7
+ 'smelly command executable': _pi_temp.Command_Creator<d_execute_smelly_command_executable.Error, d_execute_smelly_command_executable.Parameters, null>;
8
+ }, {
9
+ 'query executable': _pi_temp.Query_Creator<d_execute_query_executable.Result, d_execute_query_executable.Error, d_execute_query_executable.Parameters, null>;
10
+ }>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGVjdXRlX3NhbmRib3hlZC9zaWduYXR1cmVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -0,0 +1,2 @@
1
+ import { Resources } from "./signatures";
2
+ export declare const $: Resources;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.$ = void 0;
4
+ const command_executable_1 = require("./commands/command_executable");
5
+ const smelly_command_executable_1 = require("./commands/smelly_command_executable");
6
+ const query_executable_1 = require("./queries/query_executable");
7
+ exports.$ = {
8
+ 'commands': {
9
+ 'command executable': () => command_executable_1.$$,
10
+ 'smelly command executable': () => smelly_command_executable_1.$$,
11
+ },
12
+ 'queries': {
13
+ 'query executable': () => query_executable_1.$$,
14
+ }
15
+ };
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2V4ZWN1dGVfdW5yZXN0cmljdGVkL3Jlc291cmNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSxzRUFBa0Y7QUFDbEYsb0ZBQWdHO0FBQ2hHLGlFQUE2RTtBQUVoRSxRQUFBLENBQUMsR0FBYztJQUN4QixVQUFVLEVBQUU7UUFDUixvQkFBb0IsRUFBRSxHQUFHLEVBQUUsQ0FBQyx1QkFBNEI7UUFDeEQsMkJBQTJCLEVBQUUsR0FBRyxFQUFFLENBQUMsOEJBQW1DO0tBRXpFO0lBQ0QsU0FBUyxFQUFFO1FBQ1Asa0JBQWtCLEVBQUUsR0FBRyxFQUFFLENBQUMscUJBQTBCO0tBQ3ZEO0NBQ0osQ0FBQSJ9
@@ -0,0 +1,10 @@
1
+ import * as _pi_temp from '../temp_core';
2
+ import * as d_execute_any_command_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_any_command_executable/data";
3
+ import * as d_execute_any_smelly_command_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_any_smelly_command_executable/data";
4
+ import * as d_execute_any_query_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_any_query_executable/data";
5
+ export type Resources = _pi_temp.Resource_Collection<{
6
+ 'command executable': _pi_temp.Command_Creator<d_execute_any_command_executable.Error, d_execute_any_command_executable.Parameters, null>;
7
+ 'smelly command executable': _pi_temp.Command_Creator<d_execute_any_smelly_command_executable.Error, d_execute_any_smelly_command_executable.Parameters, null>;
8
+ }, {
9
+ 'query executable': _pi_temp.Query_Creator<d_execute_any_query_executable.Result, d_execute_any_query_executable.Error, d_execute_any_query_executable.Parameters, null>;
10
+ }>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGVjdXRlX3VucmVzdHJpY3RlZC9zaWduYXR1cmVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -34,14 +34,14 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.$$ = void 0;
37
- const temp_create_command_1 = require("../../temp_create_command");
37
+ const temp_core_1 = require("../../temp_core");
38
38
  //dependencies
39
39
  const c_unrestricted = __importStar(require("../../file_system_unrestricted/commands/chmod"));
40
40
  const t_sandboxed_path_to_unrestricted_path = __importStar(require("pareto-resources/dist/implementation/manual/transformers/unrestricted_path/sandboxed_path"));
41
- exports.$$ = (0, temp_create_command_1.__create_command)(($x) => ($p) => c_unrestricted.$$.execute({
41
+ exports.$$ = (0, temp_core_1.__create_command)(($x) => ($p) => c_unrestricted.$$.execute({
42
42
  'mode': $p.mode,
43
43
  'path': t_sandboxed_path_to_unrestricted_path.Node_Path($p.path, {
44
44
  'context': $x.context,
45
45
  }),
46
46
  }, ($) => $));
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2htb2QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZmlsZV9zeXN0ZW1fc2FuZGJveGVkL2NvbW1hbmRzL2NobW9kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLG1FQUE0RDtBQU01RCxjQUFjO0FBQ2QsOEZBQStFO0FBQy9FLGlLQUFrSjtBQUdySSxRQUFBLEVBQUUsR0FBRyxJQUFBLHNDQUFnQixFQUM5QixDQUNJLEVBRUMsRUFDSCxFQUFFLENBQUMsQ0FBQyxFQUE2QixFQUFFLEVBQUUsQ0FBQyxjQUFjLENBQUMsRUFBRSxD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importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.$$ = void 0;
37
- const temp_create_command_1 = require("../../temp_create_command");
37
+ const temp_core_1 = require("../../temp_core");
38
38
  //dependencies
39
39
  const c_unrestricted = __importStar(require("../../file_system_unrestricted/commands/copy"));
40
40
  const t_sandboxed_path_to_unrestricted_path = __importStar(require("pareto-resources/dist/implementation/manual/transformers/unrestricted_path/sandboxed_path"));
41
- exports.$$ = (0, temp_create_command_1.__create_command)(($x) => ($p) => c_unrestricted.$$.execute({
41
+ exports.$$ = (0, temp_core_1.__create_command)(($x) => ($p) => c_unrestricted.$$.execute({
42
42
  'options': $p.options,
43
43
  'target': t_sandboxed_path_to_unrestricted_path.Node_Path($p.target, {
44
44
  'context': $x['target context'],
@@ -47,4 +47,4 @@ exports.$$ = (0, temp_create_command_1.__create_command)(($x) => ($p) => c_unres
47
47
  'context': $x['source context'],
48
48
  }),
49
49
  }, ($) => $));
50
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29weS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9maWxlX3N5c3RlbV9zYW5kYm94ZWQvY29tbWFuZHMvY29weS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxtRUFBNEQ7QUFNNUQsY0FBYztBQUNkLDZGQUE4RTtBQUM5RSxpS0FBa0o7QUFHckksUUFBQSxFQUFFLEdBQUcsSUFBQSxzQ0FBZ0IsRUFDOUIsQ0FDSSxFQUdDLEVBQ0gsRUFBRSxDQUFDLENBQUMsRUFBNkIsRUFBRSxFQUFFLENBQUMsY0FBYyxDQUFDLEVBQUUsQ0FBQyxPQUFPLENBQzdEO0lBQ0ksU0FBUyxFQUFFLEVBQUUsQ0FBQyxPQUFPO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2xDLENBQ0o7SUFDRCxRQUFRLEVBQUUscUNBQXFDLENBQUMsU0FBUyxDQUNyRCxFQUFFLENBQUMsTUFBTSxFQUNUO1FBQ0ksU0FBUyxFQUFFLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQztLQUNsQyxDQUNKO0NBQ0osRUFDRCxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUNYLENBQ0osQ0FBQSJ9
@@ -34,14 +34,14 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.$$ = void 0;
37
- const temp_create_command_1 = require("../../temp_create_command");
37
+ const temp_core_1 = require("../../temp_core");
38
38
  //dependencies
39
39
  const c_unrestricted = __importStar(require("../../file_system_unrestricted/commands/make_directory"));
40
40
  const t_sandboxed_path_to_unrestricted_path = __importStar(require("pareto-resources/dist/implementation/manual/transformers/unrestricted_path/sandboxed_path"));
41
- exports.$$ = (0, temp_create_command_1.__create_command)(($x) => ($p) => c_unrestricted.$$.execute({
41
+ exports.$$ = (0, temp_core_1.__create_command)(($x) => ($p) => c_unrestricted.$$.execute({
42
42
  'delete existing': $p['delete existing'],
43
43
  'path': t_sandboxed_path_to_unrestricted_path.Node_Path($p.path, {
44
44
  'context': $x.context,
45
45
  }),
46
46
  }, ($) => $));
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFrZV9kaXJlY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZmlsZV9zeXN0ZW1fc2FuZGJveGVkL2NvbW1hbmRzL21ha2VfZGlyZWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLG1FQUE0RDtBQU01RCxjQUFjO0FBQ2QsdUdBQXdGO0FB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NBQVMsQ0FDbkQsRUFBRSxDQUFDLElBQUksRUFDUDtRQUNJLFNBQVMsRUFBRSxFQUFFLENBQUMsT0FBTztLQUN4QixDQUNKO0NBQ0osRUFDRCxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUNYLENBQ0osQ0FBQSJ9
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maWxlX3N5c3RlbV9zYW5kYm94ZWQvc2lnbmF0dXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,2 @@
1
+ import { Resources } from "./signatures";
2
+ export declare const $: Resources;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.$ = void 0;
4
+ const chmod_1 = require("./commands/chmod");
5
+ const copy_1 = require("./commands/copy");
6
+ const make_directory_1 = require("./commands/make_directory");
7
+ const remove_1 = require("./commands/remove");
8
+ const write_file_1 = require("./commands/write_file");
9
+ const read_directory_1 = require("./queries/read_directory");
10
+ const read_file_1 = require("./queries/read_file");
11
+ // import { $$ as q_fs_unrestricted_stat } from "./queries/stat"
12
+ const stat_possible_node_1 = require("./queries/stat_possible_node");
13
+ exports.$ = {
14
+ 'commands': {
15
+ 'chmod': () => chmod_1.$$,
16
+ 'copy': () => copy_1.$$,
17
+ 'make directory': () => make_directory_1.$$,
18
+ 'remove': () => remove_1.$$,
19
+ 'write file': () => write_file_1.$$,
20
+ },
21
+ 'queries': {
22
+ 'read directory': () => read_directory_1.$$,
23
+ 'read file': () => read_file_1.$$,
24
+ // 'stat': () => q_fs_unrestricted_stat,
25
+ 'stat possible node': () => stat_possible_node_1.$$,
26
+ }
27
+ };
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ZpbGVfc3lzdGVtX3VucmVzdHJpY3RlZC9yZXNvdXJjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsNENBQWdFO0FBQ2hFLDBDQUE4RDtBQUM5RCw4REFBa0Y7QUFDbEYsOENBQWtFO0FBQ2xFLHNEQUEwRTtBQUUxRSw2REFBaUY7QUFDakYsbURBQXVFO0FBQ3ZFLGdFQUFnRTtBQUNoRSxxRUFBeUY7QUFFNUUsUUFBQSxDQUFDLEdBQWM7SUFDeEIsVUFBVSxFQUFFO1FBQ1IsT0FBTyxFQUFFLEdBQUcsRUFBRSxDQUFDLFVBQXVCO1FBQ3RDLE1BQU0sRUFBRSxHQUFHLEVBQUUsQ0FBQyxTQUFzQjtRQUNwQyxnQkFBZ0IsRUFBRSxHQUFHLEVBQUUsQ0FBQyxtQkFBZ0M7UUFDeEQsUUFBUSxFQUFFLEdBQUcsRUFBRSxDQUFDLFdBQXdCO1FBQ3hDLFlBQVksRUFBRSxHQUFHLEVBQUUsQ0FBQyxlQUE0QjtLQUVuRDtJQUNELFNBQVMsRUFBRTtRQUNQLGdCQUFnQixFQUFFLEdBQUcsRUFBRSxDQUFDLG1CQUFnQztRQUN4RCxXQUFXLEVBQUUsR0FBRyxFQUFFLENBQUMsY0FBMkI7UUFDOUMsd0NBQXdDO1FBQ3hDLG9CQUFvQixFQUFFLEdBQUcsRUFBRSxDQUFDLHVCQUFvQztLQUNuRTtDQUNKLENBQUEifQ==
@@ -0,0 +1,20 @@
1
+ import * as _pi_temp from '../temp_core';
2
+ import * as d_chmod from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_chmod/data";
3
+ import * as d_copy from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_copy/data";
4
+ import * as d_make_directory from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_make_directory/data";
5
+ import * as d_read_directory from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_read_directory/data";
6
+ import * as d_read_file from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_read_file/data";
7
+ import * as d_remove from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_remove/data";
8
+ import * as d_stat_possible_node from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_stat_possible_node/data";
9
+ import * as d_write_file from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_write_file/data";
10
+ export type Resources = _pi_temp.Resource_Collection<{
11
+ 'chmod': _pi_temp.Command_Creator<d_chmod.Error, d_chmod.Parameters, null>;
12
+ 'copy': _pi_temp.Command_Creator<d_copy.Error, d_copy.Parameters, null>;
13
+ 'make directory': _pi_temp.Command_Creator<d_make_directory.Error, d_make_directory.Parameters, null>;
14
+ 'remove': _pi_temp.Command_Creator<d_remove.Error, d_remove.Parameters, null>;
15
+ 'write file': _pi_temp.Command_Creator<d_write_file.Error, d_write_file.Parameters, null>;
16
+ }, {
17
+ 'read directory': _pi_temp.Query_Creator<d_read_directory.Result, d_read_directory.Error, d_read_directory.Parameters, null>;
18
+ 'read file': _pi_temp.Query_Creator<d_read_file.Result, d_read_file.Error, d_read_file.Parameters, null>;
19
+ 'stat possible node': _pi_temp.Query_Creator<d_stat_possible_node.Result, d_stat_possible_node.Error, d_stat_possible_node.Parameters, null>;
20
+ }>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9maWxlX3N5c3RlbV91bnJlc3RyaWN0ZWQvc2lnbmF0dXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
package/dist/index.js CHANGED
@@ -39,22 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.run_main_command = void 0;
40
40
  const _p = __importStar(require("pareto-core/dist/assign"));
41
41
  __exportStar(require("./signatures"), exports);
42
- const command_executable_1 = require("./execute_unrestricted/commands/command_executable");
43
- const smelly_command_executable_1 = require("./execute_unrestricted/commands/smelly_command_executable");
44
- const chmod_1 = require("./file_system_unrestricted/commands/chmod");
45
- const copy_1 = require("./file_system_unrestricted/commands/copy");
46
- const make_directory_1 = require("./file_system_unrestricted/commands/make_directory");
47
- const remove_1 = require("./file_system_unrestricted/commands/remove");
48
- const write_file_1 = require("./file_system_unrestricted/commands/write_file");
49
- const log_1 = require("./stream/commands/log");
50
- const log_error_1 = require("./stream/commands/log_error");
51
- const write_to_stderr_1 = require("./stream/commands/write_to_stderr");
52
- const write_to_stdout_1 = require("./stream/commands/write_to_stdout");
53
- const query_executable_1 = require("./execute_unrestricted/queries/query_executable");
54
- const get_instream_data_1 = require("./stream/queries/get_instream_data");
55
- const read_directory_1 = require("./file_system_unrestricted/queries/read_directory");
56
- const read_file_1 = require("./file_system_unrestricted/queries/read_file");
57
- const stat_possible_node_1 = require("./file_system_unrestricted/queries/stat_possible_node");
42
+ const resources_1 = require("./execute_unrestricted/resources");
43
+ // import { $ as r_execute_sandboxed } from "./execute_sandboxed/resources"
44
+ const resources_2 = require("./stream/resources");
45
+ const resources_3 = require("./file_system_unrestricted/resources");
46
+ //import { $ as r_filesystem_sandboxed } from "./file_system_sandboxed/resources" --- IGNORE ---
58
47
  /**
59
48
  * Runs a program main function, passing command line arguments (excluding
60
49
  * `node` and the script name), and setting the process exit code to the
@@ -62,56 +51,11 @@ const stat_possible_node_1 = require("./file_system_unrestricted/queries/stat_po
62
51
  */
63
52
  const run_main_command = (get_main) => {
64
53
  get_main({
65
- 'execute unrestricted': {
66
- 'commands': {
67
- 'command executable': () => command_executable_1.$$,
68
- 'smelly command executable': () => smelly_command_executable_1.$$,
69
- },
70
- 'queries': {
71
- 'query executable': () => query_executable_1.$$,
72
- }
73
- },
74
- 'stream': {
75
- 'commands': {
76
- 'log error': () => log_error_1.$$,
77
- 'log': () => log_1.$$,
78
- 'write to stderr': () => write_to_stderr_1.$$,
79
- 'write to stdout': () => write_to_stdout_1.$$,
80
- },
81
- 'queries': {
82
- 'get instream data': () => get_instream_data_1.$$,
83
- }
84
- },
85
- // 'filesystem sandboxed': {
86
- // 'commands': {
87
- // 'chmod': p_fs_sandboxed_chmod,
88
- // 'copy': p_fs_sandboxed_copy,
89
- // 'make directory': p_fs_sandboxed_make_directory,
90
- // 'remove': p_fs_sandboxed_remove,
91
- // 'write file': p_fs_sandboxed_write_file,
92
- // },
93
- // 'queries': {
94
- // 'read directory': q_fs_sandboxed_read_directory,
95
- // 'read file': q_fs_sandboxed_read_file,
96
- // // 'stat': q_fs_sandboxed_stat,
97
- // 'stat possible node': q_fs_sandboxed_stat_possible_node,
98
- // }
99
- // },
100
- 'filesystem unrestricted': {
101
- 'commands': {
102
- 'chmod': () => chmod_1.$$,
103
- 'copy': () => copy_1.$$,
104
- 'make directory': () => make_directory_1.$$,
105
- 'remove': () => remove_1.$$,
106
- 'write file': () => write_file_1.$$,
107
- },
108
- 'queries': {
109
- 'read directory': () => read_directory_1.$$,
110
- 'read file': () => read_file_1.$$,
111
- // 'stat': () => q_fs_unrestricted_stat,
112
- 'stat possible node': () => stat_possible_node_1.$$,
113
- }
114
- },
54
+ 'execute unrestricted': resources_1.$,
55
+ // 'execute sandboxed': r_execute_sandboxed,
56
+ 'stream': resources_2.$,
57
+ 'filesystem unrestricted': resources_3.$,
58
+ //'filesystem sandboxed': r_filesystem_sandboxed,
115
59
  }).execute({
116
60
  'arguments': _p.list.literal(process.argv.slice(2))
117
61
  }, ($) => $).__start(() => {
@@ -120,4 +64,4 @@ const run_main_command = (get_main) => {
120
64
  });
121
65
  };
122
66
  exports.run_main_command = run_main_command;
123
- //# sourceMappingURL=data:application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0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO0tBQ3RELEVBQ0QsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FDWCxDQUFDLE9BQU8sQ0FDTCxHQUFHLEVBQUU7SUFDTCxDQUFDLEVBQ0QsQ0FBQyxDQUFDLEVBQUUsRUFBRTtRQUNGLE9BQU8sQ0FBQyxRQUFRLEdBQUcsQ0FBQyxDQUFDLFdBQVcsQ0FBQyxDQUFBO0lBQ3JDLENBQUMsQ0FDSixDQUFBO0FBQ0wsQ0FBQyxDQUFBO0FBckJZLFFBQUEsZ0JBQWdCLG9CQXFCNUIifQ==
@@ -1,53 +1,11 @@
1
1
  import * as _pi from 'pareto-core/dist/interface';
2
- import * as d_chmod from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_chmod/data";
3
- import * as d_copy from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_copy/data";
4
- import * as d_execute_any_command_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_any_command_executable/data";
5
- import * as d_execute_any_smelly_command_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_any_smelly_command_executable/data";
6
- import * as d_execute_any_query_executable from "pareto-resources/dist/interface/generated/liana/schemas/execute_any_query_executable/data";
7
- import * as d_get_instream_data from "pareto-resources/dist/interface/generated/liana/schemas/stream_get_instream_data/data";
8
- import * as d_log from "pareto-resources/dist/interface/generated/liana/schemas/stream_log/data";
9
- import * as d_log_error from "pareto-resources/dist/interface/generated/liana/schemas/stream_log_error/data";
10
- import * as d_make_directory from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_make_directory/data";
11
- import * as d_read_directory from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_read_directory/data";
12
- import * as d_read_file from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_read_file/data";
13
- import * as d_remove from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_remove/data";
14
- import * as d_stat_possible_node from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_stat_possible_node/data";
15
- import * as d_write_file from "pareto-resources/dist/interface/generated/liana/schemas/fs_unrestricted_write_file/data";
16
- import * as d_write_to_stderr from "pareto-resources/dist/interface/generated/liana/schemas/stream_write_to_stderr/data";
17
- import * as d_write_to_stdout from "pareto-resources/dist/interface/generated/liana/schemas/stream_write_to_stdout/data";
2
+ import * as d_filesystem_unrestricted from "./file_system_unrestricted/signatures";
3
+ import * as d_filesystem_stream from "./stream/signatures";
4
+ import * as d_execute_unrestricted from "./execute_unrestricted/signatures";
18
5
  import * as d_main from "pareto-resources/dist/interface/to_be_generated/temp_main";
19
- type Temp_Command_Creator<Error, Parameters, Creator_Parameters> = ($x: Creator_Parameters) => _pi.Command<Error, Parameters>;
20
- type Temp_Query_Creator<Output, Error, Parameters, Creator_Parameters> = ($x: Creator_Parameters) => _pi.Query<Output, Error, Parameters>;
21
- export type Resource_Collection<Commands, Queries> = {
22
- 'commands': Commands;
23
- 'queries': Queries;
24
- };
25
6
  export type Available_Standard_Resources = {
26
- 'filesystem unrestricted': Resource_Collection<{
27
- 'chmod': Temp_Command_Creator<d_chmod.Error, d_chmod.Parameters, null>;
28
- 'copy': Temp_Command_Creator<d_copy.Error, d_copy.Parameters, null>;
29
- 'make directory': Temp_Command_Creator<d_make_directory.Error, d_make_directory.Parameters, null>;
30
- 'remove': Temp_Command_Creator<d_remove.Error, d_remove.Parameters, null>;
31
- 'write file': Temp_Command_Creator<d_write_file.Error, d_write_file.Parameters, null>;
32
- }, {
33
- 'read directory': Temp_Query_Creator<d_read_directory.Result, d_read_directory.Error, d_read_directory.Parameters, null>;
34
- 'read file': Temp_Query_Creator<d_read_file.Result, d_read_file.Error, d_read_file.Parameters, null>;
35
- 'stat possible node': Temp_Query_Creator<d_stat_possible_node.Result, d_stat_possible_node.Error, d_stat_possible_node.Parameters, null>;
36
- }>;
37
- 'stream': Resource_Collection<{
38
- 'log error': Temp_Command_Creator<null, d_log_error.Parameters, null>;
39
- 'log': Temp_Command_Creator<null, d_log.Parameters, null>;
40
- 'write to stderr': Temp_Command_Creator<null, d_write_to_stderr.Parameters, null>;
41
- 'write to stdout': Temp_Command_Creator<null, d_write_to_stdout.Parameters, null>;
42
- }, {
43
- 'get instream data': Temp_Query_Creator<d_get_instream_data.Result, null, d_get_instream_data.Parameters, null>;
44
- }>;
45
- 'execute unrestricted': Resource_Collection<{
46
- 'command executable': Temp_Command_Creator<d_execute_any_command_executable.Error, d_execute_any_command_executable.Parameters, null>;
47
- 'smelly command executable': Temp_Command_Creator<d_execute_any_smelly_command_executable.Error, d_execute_any_smelly_command_executable.Parameters, null>;
48
- }, {
49
- 'query executable': Temp_Query_Creator<d_execute_any_query_executable.Result, d_execute_any_query_executable.Error, d_execute_any_query_executable.Parameters, null>;
50
- }>;
7
+ 'filesystem unrestricted': d_filesystem_unrestricted.Resources;
8
+ 'stream': d_filesystem_stream.Resources;
9
+ 'execute unrestricted': d_execute_unrestricted.Resources;
51
10
  };
52
11
  export type main = (get_main: ($r: Available_Standard_Resources) => _pi.Command<d_main.Error, d_main.Parameters>) => void;
53
- export {};
@@ -0,0 +1,2 @@
1
+ import { Resources } from "./signatures";
2
+ export declare const $: Resources;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.$ = void 0;
4
+ const log_error_1 = require("./commands/log_error");
5
+ const log_1 = require("./commands/log");
6
+ const write_to_stderr_1 = require("./commands/write_to_stderr");
7
+ const write_to_stdout_1 = require("./commands/write_to_stdout");
8
+ const get_instream_data_1 = require("./queries/get_instream_data");
9
+ exports.$ = {
10
+ 'commands': {
11
+ 'log error': () => log_error_1.$$,
12
+ 'log': () => log_1.$$,
13
+ 'write to stderr': () => write_to_stderr_1.$$,
14
+ 'write to stdout': () => write_to_stdout_1.$$,
15
+ },
16
+ 'queries': {
17
+ 'get instream data': () => get_instream_data_1.$$,
18
+ }
19
+ };
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3N0cmVhbS9yZXNvdXJjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsb0RBQStEO0FBQy9ELHdDQUFtRDtBQUNuRCxnRUFBMkU7QUFDM0UsZ0VBQTJFO0FBRTNFLG1FQUE4RTtBQUVqRSxRQUFBLENBQUMsR0FBYztJQUN4QixVQUFVLEVBQUU7UUFDUixXQUFXLEVBQUUsR0FBRyxFQUFFLENBQUMsY0FBa0I7UUFDckMsS0FBSyxFQUFFLEdBQUcsRUFBRSxDQUFDLFFBQVk7UUFDekIsaUJBQWlCLEVBQUUsR0FBRyxFQUFFLENBQUMsb0JBQXdCO1FBQ2pELGlCQUFpQixFQUFFLEdBQUcsRUFBRSxDQUFDLG9CQUF3QjtLQUVwRDtJQUNELFNBQVMsRUFBRTtRQUNQLG1CQUFtQixFQUFFLEdBQUcsRUFBRSxDQUFDLHNCQUEwQjtLQUN4RDtDQUNKLENBQUEifQ==
@@ -0,0 +1,14 @@
1
+ import * as _pi_temp from '../temp_core';
2
+ import * as d_get_instream_data from "pareto-resources/dist/interface/generated/liana/schemas/stream_get_instream_data/data";
3
+ import * as d_log from "pareto-resources/dist/interface/generated/liana/schemas/stream_log/data";
4
+ import * as d_log_error from "pareto-resources/dist/interface/generated/liana/schemas/stream_log_error/data";
5
+ import * as d_write_to_stderr from "pareto-resources/dist/interface/generated/liana/schemas/stream_write_to_stderr/data";
6
+ import * as d_write_to_stdout from "pareto-resources/dist/interface/generated/liana/schemas/stream_write_to_stdout/data";
7
+ export type Resources = _pi_temp.Resource_Collection<{
8
+ 'log error': _pi_temp.Command_Creator<null, d_log_error.Parameters, null>;
9
+ 'log': _pi_temp.Command_Creator<null, d_log.Parameters, null>;
10
+ 'write to stderr': _pi_temp.Command_Creator<null, d_write_to_stderr.Parameters, null>;
11
+ 'write to stdout': _pi_temp.Command_Creator<null, d_write_to_stdout.Parameters, null>;
12
+ }, {
13
+ 'get instream data': _pi_temp.Query_Creator<d_get_instream_data.Result, null, d_get_instream_data.Parameters, null>;
14
+ }>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdHJlYW0vc2lnbmF0dXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,8 @@
1
+ import * as _pi from 'pareto-core/dist/interface';
2
+ export declare const __create_command: <Error, Command_Parameters, Creator_Parameters>(command_creator: (parameters: Creator_Parameters) => ($p: Command_Parameters) => _pi.Command_Promise<Error>) => ($x: Creator_Parameters) => _pi.Command<Error, Command_Parameters>;
3
+ export type Command_Creator<Error, Parameters, Creator_Parameters> = ($x: Creator_Parameters) => _pi.Command<Error, Parameters>;
4
+ export type Query_Creator<Output, Error, Parameters, Creator_Parameters> = ($x: Creator_Parameters) => _pi.Query<Output, Error, Parameters>;
5
+ export type Resource_Collection<Commands, Queries> = {
6
+ 'commands': Commands;
7
+ 'queries': Queries;
8
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.__create_command = void 0;
7
+ const command_1 = __importDefault(require("pareto-core/dist/__internals/async/command"));
8
+ const __create_command = (command_creator) => {
9
+ return ($x) => (0, command_1.default)(command_creator($x));
10
+ };
11
+ exports.__create_command = __create_command;
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcF9jb3JlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3RlbXBfY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFDQSx5RkFBa0U7QUFHM0QsTUFBTSxnQkFBZ0IsR0FBRyxDQUs1QixlQUEyRyxFQUN6QyxFQUFFO0lBQ3BFLE9BQU8sQ0FBQyxFQUFzQixFQUFFLEVBQUUsQ0FBQyxJQUFBLGlCQUFTLEVBQ3hDLGVBQWUsQ0FBQyxFQUFFLENBQUMsQ0FDdEIsQ0FBQTtBQUNMLENBQUMsQ0FBQTtBQVZZLFFBQUEsZ0JBQWdCLG9CQVU1QiJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pareto-host-nodejs",
3
- "version": "0.2.54",
3
+ "version": "0.2.55",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "the exupery core package for creating a main function in a nodejs host environment",