@prismer/runtime 2.0.1 → 2.0.2
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/dist/cli.cjs +3302 -3072
- package/dist/cli.js +3232 -3002
- package/dist/index.cjs +3973 -3743
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +3933 -3703
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -746,7 +746,15 @@ declare function saveConfig(config: Config, paths?: ConfigPaths): void;
|
|
|
746
746
|
/** Derive a `wss?://` URL from a `https?://` base. Trailing `/ws` appended. */
|
|
747
747
|
declare function deriveWsUrl(httpBase: string): string;
|
|
748
748
|
|
|
749
|
-
|
|
749
|
+
interface NewDaemonIdOptions {
|
|
750
|
+
/** API key — when provided, the suffix becomes a deterministic sha256(hostname|apiKey)
|
|
751
|
+
* slice(0,12). Pass this so re-running `prismer setup` yields the same daemonId
|
|
752
|
+
* and cloud-side upsert dedupes the IMContainer row instead of accumulating. */
|
|
753
|
+
apiKey?: string;
|
|
754
|
+
/** Optional explicit hostname (test only). */
|
|
755
|
+
hostnameOverride?: string;
|
|
756
|
+
}
|
|
757
|
+
declare function newDaemonId(opts?: NewDaemonIdOptions): string;
|
|
750
758
|
declare function isDaemonId(s: string): boolean;
|
|
751
759
|
|
|
752
760
|
interface CloudClientOptions {
|
|
@@ -1981,8 +1989,19 @@ declare class Runner extends EventEmitter {
|
|
|
1981
1989
|
private lastTaskError?;
|
|
1982
1990
|
private heartbeatTimer?;
|
|
1983
1991
|
private taskReaperTimer?;
|
|
1992
|
+
private skillResyncTimer?;
|
|
1993
|
+
private skillSyncInFlight;
|
|
1984
1994
|
constructor(opts?: RunnerOptions);
|
|
1985
1995
|
start(): Promise<void>;
|
|
1996
|
+
/**
|
|
1997
|
+
* F16 (2026-05-20) — enumerate every non-deleted local agent_profile and
|
|
1998
|
+
* fan-out `syncInstalledSkillsForDispatch` via `syncAllAgentSkills`.
|
|
1999
|
+
* Fire-and-forget — failures are logged per profile but never throw.
|
|
2000
|
+
* Re-entrant guard so an overlong sync doesn't stack with the next tick.
|
|
2001
|
+
*/
|
|
2002
|
+
private syncAllSkillsBackground;
|
|
2003
|
+
/** F16 — read all live agent_profiles from local DB → AgentProfile[]. */
|
|
2004
|
+
private loadAllProfiles;
|
|
1986
2005
|
stop(): Promise<void>;
|
|
1987
2006
|
isRunning(): boolean;
|
|
1988
2007
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -746,7 +746,15 @@ declare function saveConfig(config: Config, paths?: ConfigPaths): void;
|
|
|
746
746
|
/** Derive a `wss?://` URL from a `https?://` base. Trailing `/ws` appended. */
|
|
747
747
|
declare function deriveWsUrl(httpBase: string): string;
|
|
748
748
|
|
|
749
|
-
|
|
749
|
+
interface NewDaemonIdOptions {
|
|
750
|
+
/** API key — when provided, the suffix becomes a deterministic sha256(hostname|apiKey)
|
|
751
|
+
* slice(0,12). Pass this so re-running `prismer setup` yields the same daemonId
|
|
752
|
+
* and cloud-side upsert dedupes the IMContainer row instead of accumulating. */
|
|
753
|
+
apiKey?: string;
|
|
754
|
+
/** Optional explicit hostname (test only). */
|
|
755
|
+
hostnameOverride?: string;
|
|
756
|
+
}
|
|
757
|
+
declare function newDaemonId(opts?: NewDaemonIdOptions): string;
|
|
750
758
|
declare function isDaemonId(s: string): boolean;
|
|
751
759
|
|
|
752
760
|
interface CloudClientOptions {
|
|
@@ -1981,8 +1989,19 @@ declare class Runner extends EventEmitter {
|
|
|
1981
1989
|
private lastTaskError?;
|
|
1982
1990
|
private heartbeatTimer?;
|
|
1983
1991
|
private taskReaperTimer?;
|
|
1992
|
+
private skillResyncTimer?;
|
|
1993
|
+
private skillSyncInFlight;
|
|
1984
1994
|
constructor(opts?: RunnerOptions);
|
|
1985
1995
|
start(): Promise<void>;
|
|
1996
|
+
/**
|
|
1997
|
+
* F16 (2026-05-20) — enumerate every non-deleted local agent_profile and
|
|
1998
|
+
* fan-out `syncInstalledSkillsForDispatch` via `syncAllAgentSkills`.
|
|
1999
|
+
* Fire-and-forget — failures are logged per profile but never throw.
|
|
2000
|
+
* Re-entrant guard so an overlong sync doesn't stack with the next tick.
|
|
2001
|
+
*/
|
|
2002
|
+
private syncAllSkillsBackground;
|
|
2003
|
+
/** F16 — read all live agent_profiles from local DB → AgentProfile[]. */
|
|
2004
|
+
private loadAllProfiles;
|
|
1986
2005
|
stop(): Promise<void>;
|
|
1987
2006
|
isRunning(): boolean;
|
|
1988
2007
|
/**
|