@appstrata/cli 0.1.0 → 1.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"dev-http-player.d.ts","sourceRoot":"","sources":["../../src/commands/dev-http-player.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAkDH,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAmFD,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmSvF"}
1
+ {"version":3,"file":"dev-http-player.d.ts","sourceRoot":"","sources":["../../src/commands/dev-http-player.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAkDH,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAmFD,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4QvF"}
@@ -186,30 +186,8 @@ export async function devHttpPlayerCommand(options) {
186
186
  target: {},
187
187
  transport,
188
188
  retryInterval: 500,
189
- notifyComplete: () => {
190
- console.log(`[AppStrata Dev HTTP Player] [${sessionId}] App called notifyComplete()`);
191
- setTimeout(() => {
192
- console.log(`[AppStrata Dev HTTP Player] [${sessionId}] fireHide`);
193
- appHost.fireHide();
194
- }, hideDelay);
195
- setTimeout(() => {
196
- console.log(`[AppStrata Dev HTTP Player] [${sessionId}] fireStop`);
197
- appHost.fireStop();
198
- }, hideDelay + stopDelay);
199
- },
200
- notifyEstimatedEnd: (expectedFinishTime) => {
201
- const secsUntil = Math.round((expectedFinishTime - Date.now()) / 1000);
202
- console.log(`[AppStrata Dev HTTP Player] [${sessionId}] App called notifyEstimatedEnd() — finishes in ~${secsUntil}s (${new Date(expectedFinishTime).toISOString()})`);
203
- },
204
- notifyNoContent: (options) => {
205
- const parts = [`[AppStrata Dev HTTP Player] [${sessionId}] App called notifyNoContent()`];
206
- if (options?.reason)
207
- parts.push(`reason="${options.reason}"`);
208
- if (options?.retryNotBefore) {
209
- const secsUntil = Math.round((options.retryNotBefore - Date.now()) / 1000);
210
- parts.push(`retry in ~${secsUntil}s`);
211
- }
212
- console.log(parts.join(" — "));
189
+ markComplete: () => {
190
+ console.log(`[AppStrata Dev HTTP Player] [${sessionId}] App marked complete`);
213
191
  setTimeout(() => {
214
192
  console.log(`[AppStrata Dev HTTP Player] [${sessionId}] fireHide`);
215
193
  appHost.fireHide();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appstrata/cli",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "AppStrata CLI - Command-line tools for digital signage app development",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,10 +32,10 @@
32
32
  "archiver": "^7.0.1",
33
33
  "commander": "^12.1.0",
34
34
  "vite": "^6.0.0",
35
- "@appstrata/core": "0.1.0",
36
- "@appstrata/player-lib": "0.1.0",
37
- "@appstrata/dev": "0.1.0",
38
- "@appstrata/protocol": "0.1.0"
35
+ "@appstrata/core": "1.0.0",
36
+ "@appstrata/dev": "1.0.0",
37
+ "@appstrata/player-lib": "1.0.0",
38
+ "@appstrata/protocol": "1.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/archiver": "^7.0.0",