@ptkl/toolkit 1.7.0 → 1.9.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 +11 -0
- package/dist/commands/__tests__/kiln.test.js +522 -0
- package/dist/commands/__tests__/kortexPlaybook.test.js +1 -1
- package/dist/commands/forge.js +24 -7
- package/dist/commands/generate-types.js +1 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/kiln.js +693 -0
- package/dist/commands/kortexPlaybook.js +12 -9
- package/dist/commands/validate-idl.js +1 -1
- package/dist/lib/__tests__/forgeDevKernelPlugin.test.js +12 -0
- package/dist/lib/__tests__/forgeDevPublicHost.test.js +36 -0
- package/dist/lib/__tests__/forgeDevServiceServer.test.js +39 -2
- package/dist/lib/__tests__/resolveEnv.test.js +20 -0
- package/dist/lib/forgeDevKernelPlugin.js +2 -2
- package/dist/lib/forgeDevPublicHost.js +39 -0
- package/dist/lib/forgeDevServiceServer.js +10 -10
- package/dist/lib/kilnClient.js +106 -0
- package/dist/lib/kilnPack.js +61 -0
- package/dist/lib/scaffold.js +1 -1
- package/dist/lib/sdk.js +3 -2
- package/dist/lib/util.js +13 -0
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ class GenerateTypesCommand {
|
|
|
16
16
|
}
|
|
17
17
|
async generate(options) {
|
|
18
18
|
const profile = util.getCurrentProfile();
|
|
19
|
-
const client = new Api({ token: profile.token, host: profile.host, env: options.env });
|
|
19
|
+
const client = new Api({ token: profile.token, host: profile.host, env: options.env ?? process.env.PROJECT_ENV });
|
|
20
20
|
console.log(`⏳ Fetching IDL…`);
|
|
21
21
|
const { data } = await client.system().idl();
|
|
22
22
|
console.log(`✅ IDL fetched: ${Object.keys(data.components ?? {}).length} component(s), ${Object.keys(data.functions ?? {}).length} platform function(s)`);
|
package/dist/commands/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import thunder from "./thunder.js";
|
|
|
22
22
|
import sandbox from "./sandbox.js";
|
|
23
23
|
import integration from "./integration.js";
|
|
24
24
|
import satellite from "./satellite.js";
|
|
25
|
+
import kiln from "./kiln.js";
|
|
25
26
|
export const commands = [
|
|
26
27
|
profile.register(),
|
|
27
28
|
apiUsers.register(),
|
|
@@ -43,6 +44,7 @@ export const commands = [
|
|
|
43
44
|
sandbox.register(),
|
|
44
45
|
integration.register(),
|
|
45
46
|
satellite.register(),
|
|
47
|
+
kiln.register(),
|
|
46
48
|
kortex.register(),
|
|
47
49
|
new Command('init')
|
|
48
50
|
.description("Init protokol toolkit")
|