@synopackageland/sdk 0.49.4 → 0.49.5
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/context-DWEbBTIr.js +15 -0
- package/dist/index.js +602 -606
- package/dist/native.js +8 -7
- package/dist/src/delegate/use-scope-approval.d.ts +2 -2
- package/dist/src/dsm/service-ports.d.ts +2 -2
- package/dist/vue.js +342 -340
- package/executor-manifest.json +8 -8
- package/package.json +1 -1
- package/spec/protocol/v1/README.md +21 -33
- package/spec/protocol/v1/timeouts.json +10 -10
package/dist/native.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { D as t } from "./context-DWEbBTIr.js";
|
|
2
|
+
function r(e) {
|
|
2
3
|
return ["103", "104", "dsm_103", "dsm_104"].indexOf(String(e)) >= 0;
|
|
3
4
|
}
|
|
4
|
-
const
|
|
5
|
+
const o = `function createRootAccess(options) {
|
|
5
6
|
var API = "SYNO.Core.TaskScheduler";
|
|
6
|
-
var POLL_MS = 500, MAX_POLL_MS = 1000, RUN_LIMIT_MS =
|
|
7
|
+
var POLL_MS = 500, MAX_POLL_MS = 1000, RUN_LIMIT_MS = ${t};
|
|
7
8
|
// The task an authorize just read back as exactly ours, for the run that follows.
|
|
8
9
|
var byOp = {}, running = {}, verified = {};
|
|
9
10
|
// spec/scheduler/v1: the id each task name was last listed with.
|
|
10
11
|
var listed = {};
|
|
11
12
|
var legacy = null, probe = null;
|
|
12
|
-
var versionUnsupported = ${
|
|
13
|
+
var versionUnsupported = ${r.toString()};
|
|
13
14
|
options.tasks.forEach(function (task) { byOp[task.op] = task; });
|
|
14
15
|
|
|
15
16
|
function now() { return options.now ? options.now() : Date.now(); }
|
|
@@ -309,7 +310,7 @@ const r = `function createRootAccess(options) {
|
|
|
309
310
|
return begin(op).then(readOutput);
|
|
310
311
|
}
|
|
311
312
|
};
|
|
312
|
-
}`,
|
|
313
|
+
}`, i = `function createAuthorizationAccess(options) {
|
|
313
314
|
var busy = null;
|
|
314
315
|
function fail(code) { var error = new Error(code); error.code = code; return error; }
|
|
315
316
|
function status() { return options.call("authorization.status").then(function (d) {
|
|
@@ -345,6 +346,6 @@ const r = `function createRootAccess(options) {
|
|
|
345
346
|
}); }};
|
|
346
347
|
}`;
|
|
347
348
|
export {
|
|
348
|
-
|
|
349
|
-
|
|
349
|
+
i as AUTHORIZATION_RUNTIME,
|
|
350
|
+
o as ROOT_RUNTIME
|
|
350
351
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Context } from '../context';
|
|
2
2
|
import type { ScopeSelection } from './long-running';
|
|
3
3
|
import type { CapabilityStatus } from './executor-setup';
|
|
4
4
|
import { type ConfirmFailure } from './use-executor-setup';
|
|
@@ -8,7 +8,7 @@ export interface ScopeDetail {
|
|
|
8
8
|
selection?: ScopeSelection | null;
|
|
9
9
|
mismatch?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const SCOPE_READBACK_MS =
|
|
11
|
+
export declare const SCOPE_READBACK_MS = 300000, SCOPE_READBACK_POLL_MS = 1000;
|
|
12
12
|
export declare function useScopeApproval(props: {
|
|
13
13
|
readonly admin: boolean;
|
|
14
14
|
readonly locale?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Context } from '../context';
|
|
2
2
|
/** One inclusive destination range; a single port has equal bounds. */
|
|
3
3
|
export interface DsmPortRange {
|
|
4
4
|
first: number;
|
|
@@ -20,4 +20,4 @@ export interface DsmPort {
|
|
|
20
20
|
* Uses the window's WebAPI channel when present, otherwise same-origin fetch
|
|
21
21
|
* with the current files token. Missing session, refusal, timeout and malformed
|
|
22
22
|
* replies return []. Names already use the session language. */
|
|
23
|
-
export declare function readDsmPorts(ctx: Pick<Context, 'files' | 'webApi'
|
|
23
|
+
export declare function readDsmPorts(ctx: Pick<Context, 'files' | 'webApi' | 'requestTimeout'>, signal?: AbortSignal): Promise<DsmPort[]>;
|