@ariestools/cli-kit 1.0.5 → 1.0.6
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,13 +1,17 @@
|
|
|
1
|
+
import type { ReadinessSignal } from '@ariestools/actor-model/readiness';
|
|
2
|
+
/**
|
|
3
|
+
* The readiness contract is owned by `@ariestools/actor-model` — the canonical
|
|
4
|
+
* home for actor contracts — and re-exported here so cli-kit consumers keep a
|
|
5
|
+
* single import site. Type-only: nothing is emitted at runtime.
|
|
6
|
+
*
|
|
7
|
+
* Deliberately the `/readiness` subpath, not the package root: the root's
|
|
8
|
+
* declarations reference `@ariestools/sdk` and `@opentelemetry/api`, and
|
|
9
|
+
* resolving them would force every cli-kit consumer to install both just to
|
|
10
|
+
* typecheck. The subpath is import-free.
|
|
11
|
+
*/
|
|
12
|
+
export type { ReadinessSignal, ReadyState } from '@ariestools/actor-model/readiness';
|
|
1
13
|
/** Result convention used by managed actor lifecycle operations. */
|
|
2
14
|
export type ManagedActorLifecycleResult = boolean | void;
|
|
3
|
-
/** Observable readiness state for an actor or actor supervisor. */
|
|
4
|
-
export type ReadyState = 'failed' | 'pending' | 'ready';
|
|
5
|
-
/** Structural readiness contract; implementations do not need to inherit a kit class. */
|
|
6
|
-
export interface ReadinessSignal {
|
|
7
|
-
readonly readyError?: Error;
|
|
8
|
-
readonly readyState: ReadyState;
|
|
9
|
-
whenReady(timeoutMs?: number): Promise<void>;
|
|
10
|
-
}
|
|
11
15
|
/**
|
|
12
16
|
* Structural lifecycle contract coordinated by {@link ActorSupervisor}.
|
|
13
17
|
* Returning `false` from `start` or `stop` reports a lifecycle failure.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedActor.d.ts","sourceRoot":"","sources":["../../src/ManagedActor.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ManagedActor.d.ts","sourceRoot":"","sources":["../../src/ManagedActor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAExE;;;;;;;;;GASG;AACH,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEpF,oEAAoE;AACpE,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,IAAI,CAAA;AAExD;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,KAAK,IAAI,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;IAC3E,IAAI,IAAI,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAA;CAC3E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariestools/cli-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Reusable actor lifecycle core for command-line applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ariestools",
|
|
@@ -43,14 +43,18 @@
|
|
|
43
43
|
"LICENSE"
|
|
44
44
|
],
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@ariestools/
|
|
47
|
-
"@ariestools/
|
|
48
|
-
"
|
|
46
|
+
"@ariestools/actor-model": "~1.1.0",
|
|
47
|
+
"@ariestools/toolchain": "~8.7.26",
|
|
48
|
+
"@ariestools/tsconfig": "~8.7.26",
|
|
49
|
+
"eslint": "~10.8.0",
|
|
49
50
|
"eslint-import-resolver-typescript": "~4.4.5",
|
|
50
51
|
"typescript": "~6.0.3",
|
|
51
52
|
"vite": "~8.1.5",
|
|
52
53
|
"vitest": "~4.1.10"
|
|
53
54
|
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@ariestools/actor-model": "^1.1"
|
|
57
|
+
},
|
|
54
58
|
"engines": {
|
|
55
59
|
"node": ">=24"
|
|
56
60
|
},
|