@ptkl/toolkit 1.4.4 → 1.5.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/README.md +14 -1
- package/dist/commands/__tests__/capabilities.test.js +83 -0
- package/dist/commands/__tests__/componentRunAs.test.js +65 -0
- package/dist/commands/__tests__/forge-bundle-layout.test.js +46 -0
- package/dist/commands/__tests__/forge-bundle-path.test.js +29 -0
- package/dist/commands/__tests__/forge-variables.test.js +16 -0
- package/dist/commands/__tests__/role.test.js +83 -0
- package/dist/commands/__tests__/runAs.test.js +63 -0
- package/dist/commands/__tests__/thunder.test.js +46 -0
- package/dist/commands/component.js +9 -3
- package/dist/commands/forge.js +106 -135
- package/dist/commands/functions.js +11 -5
- package/dist/commands/integrations/payments.js +11 -7
- package/dist/commands/role.js +45 -54
- package/dist/commands/satellite.js +0 -5
- package/dist/commands/thunder.js +19 -12
- package/dist/commands/workflow.js +10 -4
- package/dist/lib/__tests__/apiError.test.js +14 -0
- package/dist/lib/__tests__/apiErrorCapabilities.test.js +23 -0
- package/dist/lib/__tests__/forgeDevKernelPlugin.test.js +34 -0
- package/dist/lib/__tests__/forgeDevServiceExec.test.js +61 -0
- package/dist/lib/__tests__/forgeDevServiceServer.test.js +113 -0
- package/dist/lib/__tests__/forgeDevToken.test.js +85 -0
- package/dist/lib/__tests__/runIdentity.test.js +101 -0
- package/dist/lib/__tests__/thunder.test.js +101 -0
- package/dist/lib/apiError.js +83 -1
- package/dist/lib/forgeDevKernelPlugin.js +90 -4
- package/dist/lib/forgeDevServiceExec.js +49 -0
- package/dist/lib/forgeDevServiceServer.js +163 -0
- package/dist/lib/forgeDevToken.js +126 -0
- package/dist/lib/oauth/ScopePreset.js +4 -3
- package/dist/lib/oauth/__tests__/oauth.test.js +6 -3
- package/dist/lib/runIdentity.js +51 -0
- package/dist/lib/thunder.js +98 -0
- package/package.json +2 -2
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
const MAX_AGE_MS = 15 * 60 * 1000;
|
|
2
|
+
/**
|
|
3
|
+
* The forge app token a dev session runs as. One mint flow shared by the browser prelude and the
|
|
4
|
+
* dev service server: preflight for the revision, then mint. With submittedSource the actor is
|
|
5
|
+
* scoped to what the developer could do and nothing more, and it is NOT refreshable — a 401
|
|
6
|
+
* means mint again (renew()), never refresh. Without it the token is a normal view session.
|
|
7
|
+
*/
|
|
8
|
+
export class ForgeDevToken {
|
|
9
|
+
appRef;
|
|
10
|
+
env;
|
|
11
|
+
userToken;
|
|
12
|
+
submittedSource;
|
|
13
|
+
host;
|
|
14
|
+
token = '';
|
|
15
|
+
mintedAt = 0;
|
|
16
|
+
revisionValue = '';
|
|
17
|
+
appUuidValue = '';
|
|
18
|
+
permissionList = [];
|
|
19
|
+
lastErr = '';
|
|
20
|
+
lastStatus = 0;
|
|
21
|
+
constructor(host, appRef, env, userToken, submittedSource = false) {
|
|
22
|
+
this.appRef = appRef;
|
|
23
|
+
this.env = env;
|
|
24
|
+
this.userToken = userToken;
|
|
25
|
+
this.submittedSource = submittedSource;
|
|
26
|
+
this.host = (host ?? '').replace(/\/$/, '');
|
|
27
|
+
}
|
|
28
|
+
get configured() {
|
|
29
|
+
return !!(this.host && this.appRef && this.userToken);
|
|
30
|
+
}
|
|
31
|
+
get revision() {
|
|
32
|
+
return this.revisionValue;
|
|
33
|
+
}
|
|
34
|
+
get permissions() {
|
|
35
|
+
return this.permissionList;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The app's uuid, as preflight reports it. The app's own permissions are scoped by it
|
|
39
|
+
* (`<perm> forge::<uuid>`), so the page needs it to test what it holds; the deployed runtime
|
|
40
|
+
* gets it from the launch URL. Empty when preflight did not send one (an app not installed yet).
|
|
41
|
+
*/
|
|
42
|
+
get appUuid() {
|
|
43
|
+
return this.appUuidValue;
|
|
44
|
+
}
|
|
45
|
+
/** Why the last mint failed, for the caller's warning. */
|
|
46
|
+
get lastError() {
|
|
47
|
+
return this.lastErr;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The single message `ptkl forge dev` prints when it cannot mint. States only what the response
|
|
51
|
+
* established: the `ptkl init` line appears only when the platform answered 401.
|
|
52
|
+
*/
|
|
53
|
+
failureMessage() {
|
|
54
|
+
const lines = [
|
|
55
|
+
`Could not mint the app token for ${this.appRef || '(no app)'} in ${this.env} against ${this.host || '(no host)'}: ${this.lastErr}`,
|
|
56
|
+
'The app cannot run as itself, so `ptkl forge dev` will not start.',
|
|
57
|
+
];
|
|
58
|
+
if (this.lastStatus === 401) {
|
|
59
|
+
lines.push('The stored credential was rejected by the platform; `ptkl init` will re-authenticate.');
|
|
60
|
+
}
|
|
61
|
+
return lines.join('\n');
|
|
62
|
+
}
|
|
63
|
+
/** The cached token, minted when absent or older than 15 minutes. Null when it cannot mint. */
|
|
64
|
+
async current() {
|
|
65
|
+
if (this.token && Date.now() - this.mintedAt < MAX_AGE_MS)
|
|
66
|
+
return this.token;
|
|
67
|
+
return this.renew();
|
|
68
|
+
}
|
|
69
|
+
/** Force a fresh mint. Null (with lastError set) on an expected refusal. */
|
|
70
|
+
async renew() {
|
|
71
|
+
this.lastErr = '';
|
|
72
|
+
this.lastStatus = 0;
|
|
73
|
+
if (!this.configured) {
|
|
74
|
+
this.lastErr = 'no app name, API host or profile token';
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
const headers = {
|
|
78
|
+
'Content-Type': 'application/json',
|
|
79
|
+
'X-Project-Env': this.env,
|
|
80
|
+
Authorization: `Bearer ${this.userToken}`,
|
|
81
|
+
};
|
|
82
|
+
const read = async (res) => {
|
|
83
|
+
const body = await res.json().catch(() => ({}));
|
|
84
|
+
if (!res.ok) {
|
|
85
|
+
this.lastStatus = res.status;
|
|
86
|
+
throw new Error((body && body.message) || `HTTP ${res.status}`);
|
|
87
|
+
}
|
|
88
|
+
return body;
|
|
89
|
+
};
|
|
90
|
+
try {
|
|
91
|
+
const preflight = await fetch(`${this.host}/luma/appservice/v1/forge/${encodeURIComponent(this.appRef)}/preflight`, { headers }).then(read);
|
|
92
|
+
const revision = typeof preflight?.revision === 'string' ? preflight.revision : '';
|
|
93
|
+
this.appUuidValue = typeof preflight?.uuid === 'string' ? preflight.uuid : '';
|
|
94
|
+
if (!revision) {
|
|
95
|
+
throw new Error(`nothing is deployed to run in ${this.env} — deploy a version for ${this.env} first`);
|
|
96
|
+
}
|
|
97
|
+
const minted = await fetch(`${this.host}/v1/system/platform/forge/token`, {
|
|
98
|
+
method: 'POST',
|
|
99
|
+
headers,
|
|
100
|
+
body: JSON.stringify({
|
|
101
|
+
app_ref: this.appRef,
|
|
102
|
+
revision,
|
|
103
|
+
...(this.submittedSource ? { submitted_source: true } : {}),
|
|
104
|
+
}),
|
|
105
|
+
}).then(read);
|
|
106
|
+
if (!minted?.token)
|
|
107
|
+
throw new Error('the platform returned no token');
|
|
108
|
+
this.token = minted.token;
|
|
109
|
+
this.revisionValue = revision;
|
|
110
|
+
this.permissionList = minted.permissions ?? [];
|
|
111
|
+
this.mintedAt = Date.now();
|
|
112
|
+
return this.token;
|
|
113
|
+
}
|
|
114
|
+
catch (err) {
|
|
115
|
+
this.token = '';
|
|
116
|
+
const msg = err?.message ?? String(err);
|
|
117
|
+
// undici reports every transport failure (DNS, refused, TLS) as a bare "fetch failed" and
|
|
118
|
+
// keeps the real reason on err.cause.
|
|
119
|
+
const cause = err?.cause ? (err.cause.code ? `${err.cause.code}: ${err.cause.message}` : err.cause.message ?? String(err.cause)) : '';
|
|
120
|
+
this.lastErr = err instanceof TypeError || err?.cause
|
|
121
|
+
? `could not reach ${this.host}: ${msg}${cause ? ` (${cause})` : ''}`
|
|
122
|
+
: msg;
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
export const SCOPE_PRESET = [
|
|
7
7
|
{ permission: "manage base_platform_apps", commands: "apps" },
|
|
8
8
|
{ permission: "manage base_functions", commands: "functions" },
|
|
9
|
+
{ permission: "secrets::read base_functions", commands: "functions (update)" },
|
|
9
10
|
{ permission: "manage base_components", commands: "component, generate-types, ratchet test connection" },
|
|
10
11
|
{ permission: "manage base_templates", commands: "template" },
|
|
11
12
|
{ permission: "manage base_thunder", commands: "thunder" },
|
|
@@ -23,7 +24,8 @@ export const SCOPE_PRESET = [
|
|
|
23
24
|
{ permission: "manage timber", commands: "integration timber query/usage, logs" },
|
|
24
25
|
{ permission: "write timber", commands: "integration timber write" },
|
|
25
26
|
{ permission: "use protokol-media", commands: "integration dms (dirs, backup, policies, reminders, download)" },
|
|
26
|
-
{ permission: "utilities protokol-media", commands: "integration dms (libraries, convert
|
|
27
|
+
{ permission: "utilities protokol-media", commands: "integration dms (libraries, convert)" },
|
|
28
|
+
{ permission: "ocr::extract protokol-media", commands: "integration dms ocr" },
|
|
27
29
|
{ permission: "upload protokol-media", commands: "integration dms upload" },
|
|
28
30
|
{ permission: "read_documents protokol-media", commands: "integration dms document (read/list/revisions/generate)" },
|
|
29
31
|
{ permission: "create_document protokol-media", commands: "integration dms document create" },
|
|
@@ -33,9 +35,8 @@ export const SCOPE_PRESET = [
|
|
|
33
35
|
{ permission: "inspect base_ratchet", commands: "ratchet (query inspect)" },
|
|
34
36
|
{ permission: "read base_users", commands: "users (list)" },
|
|
35
37
|
{ permission: "edit base_users", commands: "api-users (list/get/edit/revoke-secret)" },
|
|
36
|
-
{ permission: "
|
|
38
|
+
{ permission: "credentials::manage base_users", commands: "api-users (new/new-secret)" },
|
|
37
39
|
{ permission: "read base_roles", commands: "role (list)" },
|
|
38
|
-
{ permission: "get global_env", commands: "config (read)" },
|
|
39
40
|
// Non-live envs need "<env> env_access"; dev is the CLI's default env.
|
|
40
41
|
{ permission: "dev env_access", commands: "every command on the dev env (the default)" },
|
|
41
42
|
];
|
|
@@ -42,6 +42,9 @@ describe("ScopePreset", () => {
|
|
|
42
42
|
it("encodes offline_access and typed entries", () => {
|
|
43
43
|
expect(ScopePreset.toWire(["read base_users", "pattern:read .*"])).toBe(`offline_access perm64:${Buffer.from("read base_users").toString("base64url")} pattern64:${Buffer.from("read .*").toString("base64url")}`);
|
|
44
44
|
});
|
|
45
|
+
it("includes secrets::read base_functions for the functions commands", () => {
|
|
46
|
+
expect(ScopePreset.resolve({})).toContain("secrets::read base_functions");
|
|
47
|
+
});
|
|
45
48
|
it("defaults to the preset, --scope replaces, --add-scope extends", () => {
|
|
46
49
|
expect(ScopePreset.resolve({})).toEqual(ScopePreset.permissions);
|
|
47
50
|
expect(ScopePreset.resolve({ scope: "a b, c" })).toEqual(["a b", "c"]);
|
|
@@ -53,16 +56,16 @@ describe("ScopePreset", () => {
|
|
|
53
56
|
"read thunder", "write thunder", "manage base_workflows", "create base_users", "list forge", "manage integrations",
|
|
54
57
|
"view_transactions protokol-payments", "refund_transaction protokol-payments", "void_transaction protokol-payments",
|
|
55
58
|
"read protokol-mail", "send protokol-mail", "manage timber", "write timber",
|
|
56
|
-
"use protokol-media", "utilities protokol-media", "upload protokol-media",
|
|
59
|
+
"use protokol-media", "utilities protokol-media", "ocr::extract protokol-media", "upload protokol-media",
|
|
57
60
|
"read_documents protokol-media", "create_document protokol-media", "edit_document protokol-media", "delete_document protokol-media"
|
|
58
61
|
]));
|
|
59
|
-
for (const bad of ["admin", "manage forge"])
|
|
62
|
+
for (const bad of ["admin", "manage forge", "get global_env"])
|
|
60
63
|
expect(ScopePreset.permissions).not.toContain(bad);
|
|
61
64
|
const wire = ScopePreset.toWire(ScopePreset.permissions);
|
|
62
65
|
expect(wire).toContain(`perm64:${Buffer.from("write thunder").toString("base64url")}`);
|
|
63
66
|
});
|
|
64
67
|
it("asks for API-user management and secrets by default", () => {
|
|
65
|
-
expect(ScopePreset.permissions).toEqual(expect.arrayContaining(["edit base_users", "
|
|
68
|
+
expect(ScopePreset.permissions).toEqual(expect.arrayContaining(["edit base_users", "credentials::manage base_users", "dev env_access"]));
|
|
66
69
|
});
|
|
67
70
|
});
|
|
68
71
|
describe("authorize URL", () => {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { createInterface } from "readline";
|
|
2
|
+
/** Chooser for the identity a new function or workflow runs as (core/platform#314). */
|
|
3
|
+
export default class RunIdentityService {
|
|
4
|
+
http;
|
|
5
|
+
interactive;
|
|
6
|
+
ask;
|
|
7
|
+
/** `http` is only needed by `forCreate`. */
|
|
8
|
+
constructor(http, interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY), ask = askOnTerminal) {
|
|
9
|
+
this.http = http;
|
|
10
|
+
this.interactive = interactive;
|
|
11
|
+
this.ask = ask;
|
|
12
|
+
}
|
|
13
|
+
/** Adds the top-level `run_as`; with no value the payload is left alone so an update keeps the stored identity. */
|
|
14
|
+
withRunAs(payload, runAs) {
|
|
15
|
+
return runAs ? { ...payload, run_as: runAs } : payload;
|
|
16
|
+
}
|
|
17
|
+
/** The identity for a create: the flag, else a pick when interactive, else none and the server decides. */
|
|
18
|
+
async forCreate(runAs) {
|
|
19
|
+
if (runAs || !this.interactive || !this.http)
|
|
20
|
+
return runAs;
|
|
21
|
+
let identities;
|
|
22
|
+
try {
|
|
23
|
+
const res = await this.http.get("/v1/system/run-identity/choices");
|
|
24
|
+
identities = res.data?.identities ?? [];
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
if (err?.response?.status === 404)
|
|
28
|
+
return undefined; // older server
|
|
29
|
+
throw err;
|
|
30
|
+
}
|
|
31
|
+
if (identities.length === 0)
|
|
32
|
+
return undefined;
|
|
33
|
+
return this.ask(identities);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async function askOnTerminal(identities) {
|
|
37
|
+
console.error("Run as which identity?");
|
|
38
|
+
identities.forEach((i, n) => console.error(` ${n + 1}) ${i.name} (${i.kind}) ${i.prn}`));
|
|
39
|
+
const rl = createInterface({ input: process.stdin, output: process.stderr });
|
|
40
|
+
try {
|
|
41
|
+
for (;;) {
|
|
42
|
+
const answer = await new Promise((done) => rl.question(`Choose 1-${identities.length}: `, done));
|
|
43
|
+
const pick = identities[Number(answer.trim()) - 1];
|
|
44
|
+
if (pick)
|
|
45
|
+
return pick.prn;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
finally {
|
|
49
|
+
rl.close();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/** Thunder read options as `POST /v3/system/thunder` expects them under `options`.
|
|
2
|
+
*
|
|
3
|
+
* The SDK's `ThunderReadOptions` only declares `only`/`cacheTTL`, but `Thunder.read()` forwards every
|
|
4
|
+
* other field of the options object verbatim and the platform decodes `skip`/`limit`/`sort` as well.
|
|
5
|
+
* This type is the toolkit-side view of that wire contract, so a `Paginate` read can actually carry a
|
|
6
|
+
* page size, an offset and a sort. See core/toolkit#17. */
|
|
7
|
+
/** Thunder caps a type at 100 documents, so one page covers most types while still being a page. */
|
|
8
|
+
export const DEFAULT_PAGE_SIZE = 20;
|
|
9
|
+
function parseCount(option, raw, min) {
|
|
10
|
+
if (raw === undefined)
|
|
11
|
+
return undefined;
|
|
12
|
+
const text = String(raw);
|
|
13
|
+
if (!/^\d+$/.test(text)) {
|
|
14
|
+
throw new Error(`${option} must be an integer >= ${min}`);
|
|
15
|
+
}
|
|
16
|
+
const value = Number(text);
|
|
17
|
+
if (!Number.isSafeInteger(value) || value < min) {
|
|
18
|
+
throw new Error(`${option} must be an integer >= ${min}`);
|
|
19
|
+
}
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
/** Translate `--sort` JSON into the platform's sort list.
|
|
23
|
+
*
|
|
24
|
+
* Accepts the friendly forms `{"data.n":-1}`, `{"data.n":-1,"updated_at":1}` and
|
|
25
|
+
* `[{"data.n":-1},{"updated_at":1}]`; the API's own `bson.D` shape (`[{"Key":"data.n","Value":-1}]`)
|
|
26
|
+
* drags Go field names into the CLI and `[{"data.n":-1}]` is silently dropped by the platform, so the
|
|
27
|
+
* CLI takes one documented shape and emits the other.
|
|
28
|
+
*
|
|
29
|
+
* Keys are Mongo field paths, not the bare names `--filters`/`--only` take: the platform prefixes
|
|
30
|
+
* those with `data.` but passes sort keys through untouched, so a user field sorts as `data.n` while
|
|
31
|
+
* `_id`, `updated_at` and friends stay top-level. */
|
|
32
|
+
export function parseSort(raw) {
|
|
33
|
+
let parsed;
|
|
34
|
+
try {
|
|
35
|
+
parsed = JSON.parse(raw);
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
throw new Error('--sort must be valid JSON, e.g. \'{"data.n":-1}\' or \'[{"data.n":-1},{"updated_at":1}]\'');
|
|
39
|
+
}
|
|
40
|
+
const entries = Array.isArray(parsed) ? parsed : [parsed];
|
|
41
|
+
if (entries.length === 0) {
|
|
42
|
+
throw new Error("--sort must name at least one field");
|
|
43
|
+
}
|
|
44
|
+
const sort = [];
|
|
45
|
+
entries.forEach((entry, index) => {
|
|
46
|
+
if (entry === null || typeof entry !== "object" || Array.isArray(entry)) {
|
|
47
|
+
throw new Error(`--sort entry ${index} must be an object like {"data.field":1}`);
|
|
48
|
+
}
|
|
49
|
+
const fields = Object.entries(entry);
|
|
50
|
+
if (fields.length === 0) {
|
|
51
|
+
throw new Error(`--sort entry ${index} must name at least one field`);
|
|
52
|
+
}
|
|
53
|
+
for (const [Key, Value] of fields) {
|
|
54
|
+
if (!Key.trim()) {
|
|
55
|
+
throw new Error(`--sort entry ${index} must name a field`);
|
|
56
|
+
}
|
|
57
|
+
if (Value !== 1 && Value !== -1) {
|
|
58
|
+
throw new Error(`--sort ${Key} must be 1 (ascending) or -1 (descending)`);
|
|
59
|
+
}
|
|
60
|
+
sort.push({ Key, Value });
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
return sort;
|
|
64
|
+
}
|
|
65
|
+
/** Options shared by every Thunder read flag. Returns `undefined` when the caller set none, so the
|
|
66
|
+
* request body keeps omitting `options` exactly as before. */
|
|
67
|
+
export function readOptions(opts) {
|
|
68
|
+
const options = {};
|
|
69
|
+
if (opts.only) {
|
|
70
|
+
options.only = String(opts.only).split(",").map((s) => s.trim()).filter(Boolean);
|
|
71
|
+
}
|
|
72
|
+
const cacheTTL = parseCount("--cache-ttl", opts.cacheTtl, 0);
|
|
73
|
+
if (cacheTTL !== undefined)
|
|
74
|
+
options.cacheTTL = cacheTTL;
|
|
75
|
+
return Object.keys(options).length ? options : undefined;
|
|
76
|
+
}
|
|
77
|
+
/** Options for a `Paginate` read. Unlike the platform, the CLI always sends a page size: a Paginate
|
|
78
|
+
* request without `limit` answers an empty page, which is the defect this exists to fix
|
|
79
|
+
* (core/toolkit#17). */
|
|
80
|
+
export function paginateOptions(opts) {
|
|
81
|
+
const options = { ...readOptions(opts) };
|
|
82
|
+
options.limit = parseCount("--limit", opts.limit, 1) ?? DEFAULT_PAGE_SIZE;
|
|
83
|
+
options.skip = parseCount("--skip", opts.skip, 0) ?? 0;
|
|
84
|
+
if (opts.sort !== undefined)
|
|
85
|
+
options.sort = parseSort(String(opts.sort));
|
|
86
|
+
return options;
|
|
87
|
+
}
|
|
88
|
+
/** Options for the low-level `read` command: the page options belong to `Paginate` only, so reject
|
|
89
|
+
* them on any other flag instead of sending fields the platform ignores. */
|
|
90
|
+
export function readFlagOptions(flag, opts) {
|
|
91
|
+
if (flag !== "Paginate") {
|
|
92
|
+
if (opts.limit !== undefined || opts.skip !== undefined || opts.sort !== undefined) {
|
|
93
|
+
throw new Error("--limit, --skip and --sort only apply to --flag Paginate");
|
|
94
|
+
}
|
|
95
|
+
return readOptions(opts);
|
|
96
|
+
}
|
|
97
|
+
return paginateOptions(opts);
|
|
98
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptkl/toolkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A command-line toolkit for managing Protokol platform applications, profiles, functions, and components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"protokol",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@babel/preset-typescript": "^7.28.5",
|
|
38
38
|
"@babel/standalone": "^7.26.10",
|
|
39
39
|
"@inquirer/password": "^4.0.21",
|
|
40
|
-
"@ptkl/sdk": "^1.
|
|
40
|
+
"@ptkl/sdk": "^1.20.1",
|
|
41
41
|
"@rollup/plugin-babel": "^6.1.0",
|
|
42
42
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
43
43
|
"@rollup/plugin-node-resolve": "^16.0.3",
|