@putdotio/taizn 1.5.0 → 1.7.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 +4 -1
- package/dist/taizn.mjs +23 -7
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ taizn check
|
|
|
49
49
|
taizn apps
|
|
50
50
|
taizn apps put
|
|
51
51
|
taizn launch GinifYRGmZ.putio
|
|
52
|
+
taizn prove GinifYRGmZ.putio
|
|
52
53
|
taizn profile
|
|
53
54
|
taizn package
|
|
54
55
|
taizn install
|
|
@@ -63,7 +64,9 @@ taizn --version
|
|
|
63
64
|
`check` verifies the configured Tizen CLI and `sdb`, then prints connected
|
|
64
65
|
targets without requiring `taizn.json`. `apps` lists installed applications on
|
|
65
66
|
the target, with an optional query filter. `launch` starts an already-installed
|
|
66
|
-
application by exact application ID, exact name, or a unique query. `
|
|
67
|
+
application by exact application ID, exact name, or a unique query. `prove`
|
|
68
|
+
checks the installed app inventory, launches the matched app, and prints a
|
|
69
|
+
compact proof transcript. `profile` imports
|
|
67
70
|
`.taizn/certificates/author.p12` and
|
|
68
71
|
`.taizn/certificates/distributor.p12` into a Tizen security profile.
|
|
69
72
|
`package` builds and signs a `.wgt`. `install` packages and sideloads it.
|
package/dist/taizn.mjs
CHANGED
|
@@ -828,15 +828,18 @@ const launchInstalledApplication = Effect.fn("launchInstalledApplication")(funct
|
|
|
828
828
|
const tizenPath = yield* resolveTizenCli(env);
|
|
829
829
|
const { applications, target } = yield* loadInstalledApplications(env);
|
|
830
830
|
const application = yield* resolveInstalledApplication(query, applications);
|
|
831
|
-
yield*
|
|
832
|
-
"run",
|
|
833
|
-
"-p",
|
|
834
|
-
application.applicationId,
|
|
835
|
-
"-s",
|
|
836
|
-
target
|
|
837
|
-
], { env: yield* baseChildEnv() });
|
|
831
|
+
yield* launchApplication(tizenPath, target, application);
|
|
838
832
|
yield* Console.log(`Launched ${application.name} (${application.applicationId}) on ${target}`);
|
|
839
833
|
});
|
|
834
|
+
const proveInstalledApplication = Effect.fn("proveInstalledApplication")(function* (env, query) {
|
|
835
|
+
const tizenPath = yield* resolveTizenCli(env);
|
|
836
|
+
const { applications, target } = yield* loadInstalledApplications(env);
|
|
837
|
+
const application = yield* resolveInstalledApplication(query, applications);
|
|
838
|
+
yield* Console.log(`Tizen target: ${target}`);
|
|
839
|
+
yield* Console.log(`Installed application: ${application.name} (${application.applicationId})`);
|
|
840
|
+
yield* launchApplication(tizenPath, target, application);
|
|
841
|
+
yield* Console.log(`Launch proof: ${application.applicationId} started on ${target}`);
|
|
842
|
+
});
|
|
840
843
|
const resolveTizenCli = Effect.fn("resolveTizenCli")(function* (env) {
|
|
841
844
|
return yield* requireFile(env.tizenCli ?? (yield* defaultTizenCli()), "Tizen CLI");
|
|
842
845
|
});
|
|
@@ -1080,6 +1083,15 @@ const resolveInstalledApplication = Effect.fn("resolveInstalledApplication")(fun
|
|
|
1080
1083
|
});
|
|
1081
1084
|
return yield* ApplicationNotFound.make({ query: queryLabel });
|
|
1082
1085
|
});
|
|
1086
|
+
const launchApplication = Effect.fn("launchApplication")(function* (tizenPath, target, application) {
|
|
1087
|
+
yield* run$1(tizenPath, [
|
|
1088
|
+
"run",
|
|
1089
|
+
"-p",
|
|
1090
|
+
application.applicationId,
|
|
1091
|
+
"-s",
|
|
1092
|
+
target
|
|
1093
|
+
], { env: yield* baseChildEnv() });
|
|
1094
|
+
});
|
|
1083
1095
|
const run$1 = Effect.fn("run")(function* (command, args, options) {
|
|
1084
1096
|
const paths = yield* getPaths();
|
|
1085
1097
|
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
|
|
@@ -1143,6 +1155,9 @@ const apps = Command.make("apps", { query: Argument.string("query").pipe(Argumen
|
|
|
1143
1155
|
const launch = Command.make("launch", { query: Argument.string("query") }, ({ query }) => Effect.gen(function* () {
|
|
1144
1156
|
yield* launchInstalledApplication(yield* loadEnv(), query);
|
|
1145
1157
|
}));
|
|
1158
|
+
const prove = Command.make("prove", { query: Argument.string("query") }, ({ query }) => Effect.gen(function* () {
|
|
1159
|
+
yield* proveInstalledApplication(yield* loadEnv(), query);
|
|
1160
|
+
}));
|
|
1146
1161
|
const profile = Command.make("profile", {}, () => withContext((context) => createProfile(context)));
|
|
1147
1162
|
const pack = Command.make("package", {}, () => withContext((context) => packageWidget(context).pipe(Effect.asVoid)));
|
|
1148
1163
|
const install = Command.make("install", {}, () => withContext((context) => installWidget(context)));
|
|
@@ -1168,6 +1183,7 @@ const command = taizn.pipe(Command.withSubcommands([
|
|
|
1168
1183
|
apps,
|
|
1169
1184
|
check,
|
|
1170
1185
|
launch,
|
|
1186
|
+
prove,
|
|
1171
1187
|
profile,
|
|
1172
1188
|
pack,
|
|
1173
1189
|
install,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putdotio/taizn",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "A tiny CLI companion for interacting with Tizen ecosystem.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"dev": "vp pack src/taizn.ts --watch",
|
|
39
39
|
"live:test": "vp pack src/taizn.ts && node live-test/run-live-test.ts",
|
|
40
40
|
"live:test:install": "vp pack src/taizn.ts && node live-test/run-live-test.ts --install",
|
|
41
|
+
"live:test:prove": "vp pack src/taizn.ts && node live-test/run-live-test.ts --prove",
|
|
41
42
|
"live:test:profile": "vp pack src/taizn.ts && node live-test/run-live-test.ts --profile",
|
|
42
43
|
"prepack": "vp pack src/taizn.ts",
|
|
43
44
|
"prepare": "./scripts/prepare-effect.sh",
|