@agimon-ai/po-config 0.0.0-alpha.95 → 0.0.0-alpha.97
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/{config-PGy7mpmC.d.mts → config-iEG83a3f.d.mts} +2 -2
- package/dist/{config-PGy7mpmC.d.mts.map → config-iEG83a3f.d.mts.map} +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/extensions/server.cjs +1 -1
- package/dist/extensions/server.mjs +1 -1
- package/dist/harnessState.d.mts +1 -1
- package/dist/harnessStore.d.mts +1 -1
- package/dist/{index-UOxWvyxC.d.mts → index-BkWuwprF.d.mts} +2 -2
- package/dist/{index-UOxWvyxC.d.mts.map → index-BkWuwprF.d.mts.map} +1 -1
- package/dist/{index-BWne-gYh.d.mts → index-C1v6fkb_.d.mts} +8 -4
- package/dist/index-C1v6fkb_.d.mts.map +1 -0
- package/dist/{index-CWhsqHSI.d.mts → index-C9h8yvT9.d.mts} +2 -2
- package/dist/{index-CWhsqHSI.d.mts.map → index-C9h8yvT9.d.mts.map} +1 -1
- package/dist/{index-cxAbT63p.d.mts → index-CBL6PwXp.d.mts} +3 -3
- package/dist/{index-cxAbT63p.d.mts.map → index-CBL6PwXp.d.mts.map} +1 -1
- package/dist/{index-D2c9ew7Y.d.mts → index-Db66nUnN.d.mts} +3 -3
- package/dist/{index-D2c9ew7Y.d.mts.map → index-Db66nUnN.d.mts.map} +1 -1
- package/dist/{index-CFYBuxgr.d.mts → index-DcET4K7-.d.mts} +2 -2
- package/dist/{index-CFYBuxgr.d.mts.map → index-DcET4K7-.d.mts.map} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +2 -2
- package/dist/majorModes.d.mts +1 -1
- package/dist/piContext.d.mts +2 -2
- package/dist/{profiles-CTrUCmIh.d.mts → profiles-BPaJfNIs.d.mts} +7 -1
- package/dist/profiles-BPaJfNIs.d.mts.map +1 -0
- package/dist/{profiles-DTbX34td.cjs → profiles-CT4qk0j5.cjs} +30 -8
- package/dist/profiles-CT4qk0j5.cjs.map +1 -0
- package/dist/{profiles-b-uUMg0u.mjs → profiles-DvP-UnkX.mjs} +31 -9
- package/dist/profiles-DvP-UnkX.mjs.map +1 -0
- package/dist/profiles.cjs +1 -1
- package/dist/profiles.d.mts +3 -3
- package/dist/profiles.d.mts.map +1 -1
- package/dist/profiles.mjs +1 -1
- package/dist/selectionSwitch.cjs +1 -1
- package/dist/selectionSwitch.d.mts +3 -3
- package/dist/selectionSwitch.mjs +1 -1
- package/dist/{settingsApi-CYeLHn-E.mjs → settingsApi-BBlsvgx-.mjs} +2 -2
- package/dist/{settingsApi-CYeLHn-E.mjs.map → settingsApi-BBlsvgx-.mjs.map} +1 -1
- package/dist/{settingsApi-Biu7RbYh.cjs → settingsApi-Cycaud1m.cjs} +2 -2
- package/dist/{settingsApi-Biu7RbYh.cjs.map → settingsApi-Cycaud1m.cjs.map} +1 -1
- package/dist/{sync-CAqOvDkO.d.mts → sync-CHbQBVfy.d.mts} +2 -2
- package/dist/{sync-CAqOvDkO.d.mts.map → sync-CHbQBVfy.d.mts.map} +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +4 -4
- package/dist/index-BWne-gYh.d.mts.map +0 -1
- package/dist/profiles-CTrUCmIh.d.mts.map +0 -1
- package/dist/profiles-DTbX34td.cjs.map +0 -1
- package/dist/profiles-b-uUMg0u.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as PersonaVoiceOverride, r as PersonaIdentity } from "./profiles-
|
|
1
|
+
import { i as PersonaVoiceOverride, r as PersonaIdentity } from "./profiles-BPaJfNIs.mjs";
|
|
2
2
|
import { PoMcpProjection } from "@agimon-ai/po-core/mcpProjection";
|
|
3
3
|
import { PackageAttribution, PackageAttribution as PackageAttribution$1 } from "@agimon-ai/po-core/contextProjection";
|
|
4
4
|
import { IPoConfigService, PO_CONFIG_SERVICE } from "@agimon-ai/po-core/config";
|
|
@@ -395,4 +395,4 @@ interface LenientParseResult {
|
|
|
395
395
|
}
|
|
396
396
|
//#endregion
|
|
397
397
|
export { PoSelectionConfig as A, VoiceTtsConfig as B, PoConfigLayers as C, PoConfigTransitionRecord as D, PoConfigTransitionPhase as E, VoiceAutoCaptureConfig as F, WorkspaceDeclaration as H, VoiceConfig as I, VoiceEngine as L, ResolvedVoiceAutoCaptureConfig as M, ResolvedVoiceConfig as N, PoConfigTransitionStrategy as O, VoiceAdapterConfig as P, VoiceMode as R, PoConfigLayer as S, PoConfigSelection as T, VoiceTtsEngine as V, PlanningAgentConfig as _, ConfigDiagnostic as a, PoConfig as b, DesktopEnvironmentConfig as c, IPoConfigLoader as d, IPoConfigService$1 as f, PackageAttribution$1 as g, PO_CONFIG_SERVICE as h, AutocompactTokenConfig as i, ProjectTrust as j, PoHarnessContext as k, EditorConfig as l, LenientParseResult as m, AutocompactOverrideConfig as n, ConfigValueOrigin as o, LenientParseOptions as p, AutocompactThresholdConfig as r, DeepReadonly as s, AutocompactModeConfig as t, HarnessState as u, PlanningModeConfig as v, PoConfigPendingSelection as w, PoConfigContext as x, PlanningThinkingLevel as y, VoiceModelConfig as z };
|
|
398
|
-
//# sourceMappingURL=config-
|
|
398
|
+
//# sourceMappingURL=config-iEG83a3f.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-iEG83a3f.d.mts","names":["IPoConfigService","PoConfigServiceContract"],"sources":["../src/types/config.ts"],"mappings":";;;;;KAOY;KACA;KACA;KACA;KACA;UAEK;EACf;EACA,WAAW;;UAEI;EACf,OAAO;EACP,YAAY;EACZ;;;;;;;;;UASe;EACf;EACA;EACA;;;;;;;;;UASe;EACf;EACA;EACA;;;;;;;;;UASe;EACf;EACA,QAAQ;;UAEO;EACf;EACA;EACA,WAAW;EACX,aAAa;EACb,YAAY;;;UAGG;EACf;;;;;;UAMe;EACf;EACA,WAAW;EACX;EACA;;UAEe;EACf;;;;;;;UAOe;;EAEf;;EAEA;;EAEA;;EAEA,MAAM;;UAGS;EACf;;;UAGe;;EAEf;;EAEA;;;UAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;UAGe;EACf,OAAO;;EAEP;EACA;;IAEE;;IAEA,eAAe;;;UAGF;EACf;EACA;;UAEe;EACf;EACA,OAAO;;UAEQ;EACf,QAAQ;EACR;EACA;;UAEe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,KAAK;;UAEU;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,KAAK;;UAEU;EACf,OAAO;EACP,SAAS;EACT;EACA;IAAa;IAAiB;;EAC9B;IACE,gBAAgB;IAChB,mBAAmB;IACnB,gBAAgB;;EAElB,cAAc;;EAEd;IACE;IACA;;IAEA,eAAe;;;UAGF;EACf,MAAM;EACN,QAAQ;EACR;EACA;IAAY;IAAiB;;EAC7B,UAAU,YAAY;EACtB,cAAc;;;;;;;;;UASC;EACf;EACA;EACA;;;UAIe;WACN;WACA;WACA;WACA;;WAEA;;KAGC;KACA;UAEK;WACN;WACA;WACA,QAAQ;WACR,QAAQ;WACR,UAAU;WACV,OAAO;;;KAIN,2BAA2B;WAAsC;;;UAG5D;EACf;;EAEA;EACA;EACA;;EAEA,WAAW;;UAGI;;EAEf,aAAa;EACb;IAAU,WAAW;IAAoB,cAAc;;EACvD,cAAc;EACd,qBAAqB;EACrB,gBAAgB;EAChB,YAAY;EACZ,cAAc;EACd,SAAS;EACT,SAAS;EACT,MAAM;EACN,QAAQ;EACR,YAAY;;EAEZ;IAAQ;;;EAER;IAAW;;;UAMI;EACf;;EAEA;EACA;EACA;;EAEA;;;;;;;;;;;EAWA,qBAAqB,eAAe;;EAEpC;EACA;EACA,oBAAoB;EACpB;EACA;EACA;EACA;EACA;;EAEA,gBAAgB;EAChB;EACA;;;;;;EAMA,kBAAkB;;EAElB,eAAe;EACf;EACA;EACA;;KAGU,aAAa,UAAU,oBAAmB,6BAClD,SACA,+BAA+B,oBACpB,aAAa,WACtB,oCACc,cAAc,SAAS,aAAa,OAAO,YACvD;KAEI,mBAAmB,aAAa;UAE3B;WACN,UAAU,aAAa;WACvB,SAAS;;WAET,mBAAmB,aAAa;;WAEhC;;;UAIM;EACf,KAAK,kBAAkB,yBAAyB;;;UAIjCA,2BAAyBC,iBAAwB,iBAAiB;;YAGvE;IACR,aAAaD;;;;KAQL;;UAGK;EACf;EACA;;;;;;EAMA;;EAEA;;;;;;;;;;UAWe;;EAEf,YAAY;EACZ,gBAAgB;EAChB,WAAW;;EAEX,SAAS,6BAA6B;;EAEtC,QAAQ;;;;;;;;;UAUO;EACf;;EAEA;EACA;;;UAIe;EACf;;;UAIe;EACf,QAAQ;EACR,aAAa"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as PoConfigLayers, S as PoConfigLayer, a as ConfigDiagnostic, m as LenientParseResult, o as ConfigValueOrigin, p as LenientParseOptions } from "./config-
|
|
2
|
-
import { A as resolvePlanningPlansDirectory, C as loadPoConfig, D as globalPoConfigDirectory, E as loadPoConfigLenient, O as globalPoConfigPath, S as readWorkspaceDeclarations, T as loadPoConfigLayers, _ as ReadWorkspaceDeclarationsOptions, a as PO_VOICE_MODES, b as readPoConfigLayers, c as configRootKeys, d as parseAutocompactModeConfig, f as parsePlanningModeConfig, g as ReadPoConfigOptions, h as valueAtKeyPath, i as PO_VOICE_LIVE_VOICES, k as repositoryPoConfigPath, l as configScopeOf, m as resolveVoiceConfig, n as PO_PLANNING_THINKING_LEVELS, o as PO_VOICE_TTS_ENGINES, p as parsePoConfig, r as PO_VOICE_ENGINES, s as configLeafKeys, t as ConfigKeyScope, u as mergePoConfigs, v as WorkspaceDeclarationsResult, w as loadPoConfigAsync, x as readPoConfigLenient, y as readPoConfig } from "./index-
|
|
1
|
+
import { C as PoConfigLayers, S as PoConfigLayer, a as ConfigDiagnostic, m as LenientParseResult, o as ConfigValueOrigin, p as LenientParseOptions } from "./config-iEG83a3f.mjs";
|
|
2
|
+
import { A as resolvePlanningPlansDirectory, C as loadPoConfig, D as globalPoConfigDirectory, E as loadPoConfigLenient, O as globalPoConfigPath, S as readWorkspaceDeclarations, T as loadPoConfigLayers, _ as ReadWorkspaceDeclarationsOptions, a as PO_VOICE_MODES, b as readPoConfigLayers, c as configRootKeys, d as parseAutocompactModeConfig, f as parsePlanningModeConfig, g as ReadPoConfigOptions, h as valueAtKeyPath, i as PO_VOICE_LIVE_VOICES, k as repositoryPoConfigPath, l as configScopeOf, m as resolveVoiceConfig, n as PO_PLANNING_THINKING_LEVELS, o as PO_VOICE_TTS_ENGINES, p as parsePoConfig, r as PO_VOICE_ENGINES, s as configLeafKeys, t as ConfigKeyScope, u as mergePoConfigs, v as WorkspaceDeclarationsResult, w as loadPoConfigAsync, x as readPoConfigLenient, y as readPoConfig } from "./index-Db66nUnN.mjs";
|
|
3
3
|
export { type ConfigDiagnostic, type ConfigKeyScope, type ConfigValueOrigin, type LenientParseOptions, type LenientParseResult, PO_PLANNING_THINKING_LEVELS, PO_VOICE_ENGINES, PO_VOICE_LIVE_VOICES, PO_VOICE_MODES, PO_VOICE_TTS_ENGINES, type PoConfigLayer, type PoConfigLayers, type ReadPoConfigOptions, type ReadWorkspaceDeclarationsOptions, type WorkspaceDeclarationsResult, configLeafKeys, configRootKeys, configScopeOf, globalPoConfigDirectory, globalPoConfigPath, loadPoConfig, loadPoConfigAsync, loadPoConfigLayers, loadPoConfigLenient, mergePoConfigs, parseAutocompactModeConfig, parsePlanningModeConfig, parsePoConfig, readPoConfig, readPoConfigLayers, readPoConfigLenient, readWorkspaceDeclarations, repositoryPoConfigPath, resolvePlanningPlansDirectory, resolveVoiceConfig, valueAtKeyPath };
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_settingsApi = require("../settingsApi-
|
|
5
|
+
const require_settingsApi = require("../settingsApi-Cycaud1m.cjs");
|
|
6
6
|
const require_sessionConfig = require("../sessionConfig-Dp3I3TH2.cjs");
|
|
7
7
|
let _agimon_ai_po_core_platform = require("@agimon-ai/po-core/platform");
|
|
8
8
|
let _agimon_ai_po_core_mcpProjection = require("@agimon-ai/po-core/mcpProjection");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createSettingsApi } from "../settingsApi-
|
|
1
|
+
import { t as createSettingsApi } from "../settingsApi-BBlsvgx-.mjs";
|
|
2
2
|
import { d as providePoConfigContext, o as createNativePoConfigContext } from "../sessionConfig-BgPh8Uv6.mjs";
|
|
3
3
|
import { BACKGROUND_CONTEXT, requirePoFs, withAbortSignal } from "@agimon-ai/po-core/platform";
|
|
4
4
|
import { PO_MCP_PROJECTION_SERVICE, createDisabledPoMcpProjection, createPoMcpProjectionService, isPoMcpProjection } from "@agimon-ai/po-core/mcpProjection";
|
package/dist/harnessState.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as readHarnessState, i as projectHarnessEnvironment, n as HARNESS_STATE_KEYS, r as HarnessStateParseReporter, t as FILE_ONLY_STATE_FIELDS } from "./index-
|
|
1
|
+
import { a as readHarnessState, i as projectHarnessEnvironment, n as HARNESS_STATE_KEYS, r as HarnessStateParseReporter, t as FILE_ONLY_STATE_FIELDS } from "./index-C9h8yvT9.mjs";
|
|
2
2
|
export { FILE_ONLY_STATE_FIELDS, HARNESS_STATE_KEYS, type HarnessStateParseReporter, projectHarnessEnvironment, readHarnessState };
|
package/dist/harnessStore.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as HARNESS_STATE_POINTER, a as requireHarnessPaths, b as resetHarnessStore, c as updateHarnessStateAsync, d as getHarnessState, f as getSessionHarnessState, g as updateHarnessState, h as snapshotHarnessState, i as loadHarnessStateAsync, l as createHarnessSession, m as restoreHarnessStateSnapshot, n as disposeHarnessStateAsync, o as requireHarnessRoot, p as loadHarnessState, r as harnessRoot, s as snapshotHarnessStateAsync, t as createHarnessSessionAsync, u as disposeHarnessState, v as HarnessStateFile, x as LoadedHarnessState, y as HarnessStateTransactionSnapshot } from "./index-
|
|
1
|
+
import { _ as HARNESS_STATE_POINTER, a as requireHarnessPaths, b as resetHarnessStore, c as updateHarnessStateAsync, d as getHarnessState, f as getSessionHarnessState, g as updateHarnessState, h as snapshotHarnessState, i as loadHarnessStateAsync, l as createHarnessSession, m as restoreHarnessStateSnapshot, n as disposeHarnessStateAsync, o as requireHarnessRoot, p as loadHarnessState, r as harnessRoot, s as snapshotHarnessStateAsync, t as createHarnessSessionAsync, u as disposeHarnessState, v as HarnessStateFile, x as LoadedHarnessState, y as HarnessStateTransactionSnapshot } from "./index-CBL6PwXp.mjs";
|
|
2
2
|
export { HARNESS_STATE_POINTER, type HarnessStateFile, type HarnessStateTransactionSnapshot, type LoadedHarnessState, createHarnessSession, createHarnessSessionAsync, disposeHarnessState, disposeHarnessStateAsync, getHarnessState, getSessionHarnessState, harnessRoot, loadHarnessState, loadHarnessStateAsync, requireHarnessPaths, requireHarnessRoot, resetHarnessStore, restoreHarnessStateSnapshot, snapshotHarnessState, snapshotHarnessStateAsync, updateHarnessState, updateHarnessStateAsync };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as PoConfigTransitionRecord, T as PoConfigSelection$1, f as IPoConfigService, u as HarnessState, w as PoConfigPendingSelection, x as PoConfigContext } from "./config-
|
|
1
|
+
import { D as PoConfigTransitionRecord, T as PoConfigSelection$1, f as IPoConfigService, u as HarnessState, w as PoConfigPendingSelection, x as PoConfigContext } from "./config-iEG83a3f.mjs";
|
|
2
2
|
import { FileSystem } from "@agimon-ai/po-core/platform";
|
|
3
3
|
import { PO_CONFIG_ENTRY_TYPE as PO_CONFIG_ENTRY_TYPE$1, PO_CONFIG_TRANSITION_ENTRY_TYPE as PO_CONFIG_TRANSITION_ENTRY_TYPE$1 } from "@agimon-ai/po-core/contextProjection";
|
|
4
4
|
import { Context } from "@deepseek-ai/cordis";
|
|
@@ -34,4 +34,4 @@ declare function replacePoConfigContext(ctx: Context, context: PoConfigContext):
|
|
|
34
34
|
declare function requirePoConfigContext(ctx: Context): PoConfigContext;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { supersedePoConfigTransition as _, appendPoConfigSelection as a, createPoConfigContextAsync as c, providePoConfigContext as d, readPoConfigContextGeneration as f, requirePoConfigContext as g, replacePoConfigContext as h, acknowledgePoConfigTransition as i, freezePoConfigContext as l, readPoConfigSelection as m, PO_CONFIG_TRANSITION_ENTRY_TYPE$1 as n, appendPoConfigTransition as o, readPoConfigPendingSelection as p, PoConfigSelection as r, createPoConfigContext as s, PO_CONFIG_ENTRY_TYPE$1 as t, persistHarnessSelection as u };
|
|
37
|
-
//# sourceMappingURL=index-
|
|
37
|
+
//# sourceMappingURL=index-BkWuwprF.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BkWuwprF.d.mts","names":["ConfigSelection"],"sources":["../src/services/sessionConfig/index.ts"],"mappings":";;;;;;;KAqBK,YAAY,WAAW;KAIhB,oBAAoBA;iBAkHhB,sBAAsB,KAAK,KAAK,sCAAsC;iBAyCtE,sBAAsB,KAAK,KAAK,8CAA8C;;iBAMxE,2BACpB,KAAK,KAAK,6CACV,IAAI,YACJ,UAAS,YACR,QAAQ;iBAoCK,wBAAwB,IAAI,KAAK,8BAA8B,WAAW;;iBAK1E,wBACd,IAAI,KAAK,8BACT;WACW;WACA;WACA;WACA;;iBAYG,yBACd,IAAI,KAAK,8BACT,YAAY;iBAKE,4BACd,IAAI,KAAK,8BACT,YAAY;;iBAME,8BACd,IAAI,KAAK,8BACT,KAAK,KAAK,qCACV,SAAS;iBAUK,6BACd,KAAK,KAAK,sCACT;iBASa,uBACd,KAAK,SACL,SAAS,iBACT,sBACC;;iBAKa,8BAA8B,KAAK;;iBAKnC,sBAAsB,SAAS,kBAAkB;;iBAKjD,uBAAuB,KAAK,SAAS,SAAS,kBAAkB;iBAehE,uBAAuB,KAAK,UAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as PersonaVoiceOverride, r as PersonaIdentity } from "./profiles-
|
|
1
|
+
import { i as PersonaVoiceOverride, r as PersonaIdentity } from "./profiles-BPaJfNIs.mjs";
|
|
2
2
|
import { FileSystem } from "@agimon-ai/po-core/platform";
|
|
3
3
|
//#region src/services/profileBinding/type.d.ts
|
|
4
4
|
/** Where a resolved secret may be delivered. Never inferred from the alias name. */
|
|
@@ -48,7 +48,7 @@ interface AgentProfile {
|
|
|
48
48
|
env: Record<string, string>;
|
|
49
49
|
/** Nonsecret integration metadata. Resolved secrets never enter profile environment. */
|
|
50
50
|
integration?: ProfileIntegrationBinding;
|
|
51
|
-
/** Display name and
|
|
51
|
+
/** Display name, avatar and role declared in the persona's own front-matter, plus a source's contact. */
|
|
52
52
|
identity?: PersonaIdentity;
|
|
53
53
|
/** Narrowly scoped TTS override declared alongside the identity. */
|
|
54
54
|
voice?: PersonaVoiceOverride;
|
|
@@ -64,6 +64,10 @@ interface InlineProfileInput {
|
|
|
64
64
|
files: Readonly<Record<string, string>>;
|
|
65
65
|
env?: unknown;
|
|
66
66
|
integration?: unknown;
|
|
67
|
+
/** Display-only address shown under the profile's name, such as the mailbox it sends from. Never a secret. */
|
|
68
|
+
contact?: string;
|
|
69
|
+
/** The source's avatar as a `data:` URL of an allowed image type; anything else is dropped. */
|
|
70
|
+
icon?: string;
|
|
67
71
|
}
|
|
68
72
|
/** A discovered profile that was skipped. Messages name keys and files, never values. */
|
|
69
73
|
interface ProfileDiagnostic {
|
|
@@ -71,7 +75,7 @@ interface ProfileDiagnostic {
|
|
|
71
75
|
profile: string;
|
|
72
76
|
message: string;
|
|
73
77
|
}
|
|
74
|
-
/** Builds a profile from in-memory persona text. Nothing is read from disk
|
|
78
|
+
/** Builds a profile from in-memory persona text. Nothing is read from disk; only the source can supply an icon. */
|
|
75
79
|
declare function inlineProfile(input: InlineProfileInput): AgentProfile;
|
|
76
80
|
/** Applies profile environment defaults and returns only the values it contributed. */
|
|
77
81
|
declare function applyProfileEnvironment(environment: NodeJS.ProcessEnv, defaults: Record<string, string>): Record<string, string>;
|
|
@@ -102,4 +106,4 @@ declare function resolveProfileAsync(fs: FileSystem, repoRoot: string, name: str
|
|
|
102
106
|
declare function listProfileNamesAsync(fs: FileSystem, repoRoot: string, context: IoContext, homeDirectory?: string): Promise<string[]>;
|
|
103
107
|
//#endregion
|
|
104
108
|
export { ProfileSecretReference as _, resolveProfileAsync as a, PERSONA_FILES as c, inlineProfile as d, replaceProfileEnvironment as f, ProfileSecretPurpose as g, ProfileIntegrationBinding as h, loadProfilesAsync as i, ProfileDiagnostic as l, ProfileBrowserMode as m, listProfileNamesAsync as n, AgentProfile as o, ProfileBrowserBinding as p, loadProfileCatalogAsync as r, InlineProfileInput as s, buildPersonaPromptAsync as t, applyProfileEnvironment as u };
|
|
105
|
-
//# sourceMappingURL=index-
|
|
109
|
+
//# sourceMappingURL=index-C1v6fkb_.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-C1v6fkb_.d.mts","names":[],"sources":["../src/services/profileBinding/type.ts","../src/services/profiles/core.ts","../src/services/profiles/index.ts"],"mappings":";;;;KACY;;KAGA;;UAGK;WACN;WACA;;WAEA,mBAAmB;;WAEnB;;UAGM;;WAEN;WACA;WACA,OAAO;;WAEP;;;UAIM;WACN;WACA;WACA;WACA;WACA,SAAS,SAAS,eAAe;WACjC,UAAU;;;;;cCrBR;UAKI;EACf;;EAEA;;;;;EAKA;;EAEA,KAAK;;EAEL,cAAc;;EAEd,WAAW;;EAEX,QAAQ;;EAER;;;UAIe;EACf;;EAEA;;EAEA,OAAO,SAAS;EAChB;EACA;;EAEA;;EAEA;;;UAwBe;EACf;EACA;EACA;;;iBA2Pc,cAAc,OAAO,qBAAqB;;iBAsD1C,wBACd,aAAa,OAAO,YACpB,UAAU,yBACT;;iBAWa,0BACd,aAAa,OAAO,YACpB,UAAU,wBACV,MAAM,yBACL;;;KC5WE,YAAY,WAAW;;iBAkDN,wBACpB,IAAI,YACJ,qBACA,0BACA,SAAS,YACR;;;;;;;;;iBAuKmB,kBACpB,IAAI,YACJ,kBACA,SAAS,WACT,yBACC,QAAQ;;iBAKW,wBACpB,IAAI,YACJ,kBACA,SAAS,WACT,yBACC;EAAU,UAAU;EAAgB;EAAyB,cAAc;;;iBAaxD,oBACpB,IAAI,YACJ,kBACA,cACA,SAAS,WACT,yBACC,QAAQ;iBAOW,sBACpB,IAAI,YACJ,kBACA,SAAS,WACT,yBACC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as HarnessState } from "./config-
|
|
1
|
+
import { u as HarnessState } from "./config-iEG83a3f.mjs";
|
|
2
2
|
//#region src/services/harnessState/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* State that lives in the file only.
|
|
@@ -44,4 +44,4 @@ declare function readHarnessState(environment?: NodeJS.ProcessEnv, report?: Harn
|
|
|
44
44
|
declare function projectHarnessEnvironment(patch: Partial<HarnessState>, environment?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { readHarnessState as a, projectHarnessEnvironment as i, HARNESS_STATE_KEYS as n, HarnessStateParseReporter as r, FILE_ONLY_STATE_FIELDS as t };
|
|
47
|
-
//# sourceMappingURL=index-
|
|
47
|
+
//# sourceMappingURL=index-C9h8yvT9.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C9h8yvT9.d.mts","names":[],"sources":["../src/services/harnessState/index.ts"],"mappings":";;;;;;;;;;cAyBa,wBAAwB,kBAAkB;KAa3C,6BAA6B,aAAa;cAEzC;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;iBAsDc,iBACd,cAAa,OAAO,YACpB,SAAS,4BACR;;;;;;;;;;;iBAkCa,0BACd,OAAO,QAAQ,eACf,cAAa,OAAO,aACnB,OAAO"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as HarnessState } from "./config-
|
|
2
|
-
import { r as HarnessStateParseReporter } from "./index-
|
|
1
|
+
import { u as HarnessState } from "./config-iEG83a3f.mjs";
|
|
2
|
+
import { r as HarnessStateParseReporter } from "./index-C9h8yvT9.mjs";
|
|
3
3
|
import { FileSystem } from "@agimon-ai/po-core/platform";
|
|
4
4
|
//#region src/models/harnessCache.d.ts
|
|
5
5
|
interface LoadedHarnessState {
|
|
@@ -169,4 +169,4 @@ declare function requireHarnessPaths(state?: Pick<HarnessState, 'root' | 'tempor
|
|
|
169
169
|
};
|
|
170
170
|
//#endregion
|
|
171
171
|
export { HARNESS_STATE_POINTER as _, requireHarnessPaths as a, resetHarnessStore as b, updateHarnessStateAsync as c, getHarnessState as d, getSessionHarnessState as f, updateHarnessState as g, snapshotHarnessState as h, loadHarnessStateAsync as i, createHarnessSession as l, restoreHarnessStateSnapshot as m, disposeHarnessStateAsync as n, requireHarnessRoot as o, loadHarnessState as p, harnessRoot as r, snapshotHarnessStateAsync as s, createHarnessSessionAsync as t, disposeHarnessState as u, HarnessStateFile as v, LoadedHarnessState as x, HarnessStateTransactionSnapshot as y };
|
|
172
|
-
//# sourceMappingURL=index-
|
|
172
|
+
//# sourceMappingURL=index-CBL6PwXp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CBL6PwXp.d.mts","names":[],"sources":["../src/models/harnessCache.ts","../src/services/harnessStore/core.ts","../src/services/harnessStore/sync.ts","../src/services/harnessStore/index.ts"],"mappings":";;;;UAEiB;;EAEf;EACA;EACA,OAAO;;;;;cCCI;UAYI;EACf;EACA;IAAS;IAAa;;EACtB,OAAO;;UAGQ;WACN;WACA;WACA,OAAO;WACP,aAAa,SAAS;;;iBAIjB;;;;;;;;;;;;;;iBC6BA,iBACd,cAAa,OAAO,YACpB,SAAS,4BACR;;;;;;iBA2Ba,qBAAqB,cAAa,OAAO,aAA2B;;;;;;iBASpE,4BACd,UAAU,iCACV,cAAa,OAAO;;iBAkCN,gBAAgB,SAAS,4BAA4B;;;;;;;;;;iBAarD,uBACd,+BACA,SAAS,4BACR;;;;;;;;;;;iBAkBa,qBACd,OAAO,cACP;EACE;EACA,aAAa,OAAO;;;;;;;;EAQpB;;;;;;;;;;iBAqBY,mBACd,OAAO,QAAQ,eACf,cAAa,OAAO,aACnB;;;;;;iBAiBa,oBAAoB,cAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KCnKnD,YAAY,WAAW;;iBAMN,sBACpB,IAAI,YACJ,aAAa,OAAO,YACpB,SAAS,WACT,SAAS,4BACR,QAAQ;;iBAiBW,0BACpB,IAAI,YACJ,aAAa,OAAO,YACpB,SAAS,YACR,QAAQ;;iBAeW,0BACpB,IAAI,YACJ,OAAO,cACP;EAAW;EAAmB,aAAa,OAAO;EAAY;GAC9D,SAAS,YACR;;;;;;iBAiBmB,wBACpB,IAAI,YACJ,OAAO,QAAQ,eACf,aAAa,OAAO,YACpB,SAAS,YACR,QAAQ;;iBAkBW,yBACpB,IAAI,YACJ,aAAa,OAAO,YACpB,SAAS,YACR;iBAQa,YAAY,QAAO,KAAK;;;;;;;;;iBAYxB,mBAAmB,QAAO,KAAK;;iBAM/B,oBAAoB,QAAO,KAAK;EAC9C;EACA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as PersonaVoiceOverride } from "./profiles-
|
|
2
|
-
import { C as PoConfigLayers, H as WorkspaceDeclaration, I as VoiceConfig, N as ResolvedVoiceConfig, b as PoConfig, m as LenientParseResult, p as LenientParseOptions, t as AutocompactModeConfig, v as PlanningModeConfig } from "./config-
|
|
1
|
+
import { i as PersonaVoiceOverride } from "./profiles-BPaJfNIs.mjs";
|
|
2
|
+
import { C as PoConfigLayers, H as WorkspaceDeclaration, I as VoiceConfig, N as ResolvedVoiceConfig, b as PoConfig, m as LenientParseResult, p as LenientParseOptions, t as AutocompactModeConfig, v as PlanningModeConfig } from "./config-iEG83a3f.mjs";
|
|
3
3
|
import { FileSystem } from "@agimon-ai/po-core/platform";
|
|
4
4
|
//#region src/services/config/core.d.ts
|
|
5
5
|
type ConfigEnvironment = Readonly<Record<string, string | undefined>>;
|
|
@@ -145,4 +145,4 @@ declare function configLeafKeys(value: unknown, prefix?: readonly string[]): str
|
|
|
145
145
|
declare function valueAtKeyPath(value: unknown, keyPath: readonly string[]): unknown;
|
|
146
146
|
//#endregion
|
|
147
147
|
export { resolvePlanningPlansDirectory as A, loadPoConfig as C, globalPoConfigDirectory as D, loadPoConfigLenient as E, globalPoConfigPath as O, readWorkspaceDeclarations as S, loadPoConfigLayers as T, ReadWorkspaceDeclarationsOptions as _, PO_VOICE_MODES as a, readPoConfigLayers as b, configRootKeys as c, parseAutocompactModeConfig as d, parsePlanningModeConfig as f, ReadPoConfigOptions as g, valueAtKeyPath as h, PO_VOICE_LIVE_VOICES as i, repositoryPoConfigPath as k, configScopeOf as l, resolveVoiceConfig as m, PO_PLANNING_THINKING_LEVELS as n, PO_VOICE_TTS_ENGINES as o, parsePoConfig as p, PO_VOICE_ENGINES as r, configLeafKeys as s, ConfigKeyScope as t, mergePoConfigs as u, WorkspaceDeclarationsResult as v, loadPoConfigAsync as w, readPoConfigLenient as x, readPoConfig as y };
|
|
148
|
-
//# sourceMappingURL=index-
|
|
148
|
+
//# sourceMappingURL=index-Db66nUnN.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Db66nUnN.d.mts","names":[],"sources":["../src/services/config/core.ts","../src/services/config/sync.ts","../src/services/config/index.ts","../src/services/configPolicy/index.ts"],"mappings":";;;;KA2BY,oBAAoB,SAAS;;iBAGzB,wBACd,wBACA,cAAc;iBAKA,mBAAmB,wBAA0C,cAAc;iBAI3E,8BACd,gCACA,kBACA;iBAYc,uBAAuB;;;;iBCjBvB,aACd,kBACA,wBACA,cAAa,OAAO,aACnB;;;;;;;;;;;iBAoBa,oBACd,kBACA,wBACA,cAAa,OAAO,aACnB;;iBAWmB,kBACpB,kBACA,wBACA,cAAa,OAAO,aACnB,QAAQ;;iBAUK,mBACd,8BACA,wBACA,cAAa,OAAO,aACnB;;;KC3EE,YAAY,WAAW;UAEX;EACf,IAAI;EACJ;EACA,SAAS;;UAGM;EACf,cAAc;EACd;EACA;;;iBAmBoB,4BACpB,IACA,gBACA,WACC,mCAAmC,QAAQ;UA4E7B;;WAEN;;WAEA,cAAc;;;;;;;iBAkBH,aACpB,IAAI,YACJ,kBACA,SAAS,WACT,UAAS,sBACR,QAAQ;;iBAaW,oBACpB,IAAI,YACJ,kBACA,SAAS,WACT,UAAS,sBACR,QAAQ;;;;;;;iBAkBW,mBACpB,IAAI,YACJ,8BACA,SAAS,WACT,UAAS,sBACR,QAAQ;;;;;;;;;;cChCE;cACA;cACA;cAMA;;cAEA;iBAsXG,2BACd,gBACA,kBACA,oBACC;iBAgBa,wBACd,gBACA,kBACA,oBACC;;;;;;;;;;iBAsTa,cAAc,iBAAiB,mBAAmB;iBAClD,cAAc,iBAAiB,kBAAkB,SAAS,sBAAsB;iBAoFhF,eAAe,cAAc,UAAU,kBAAkB,WAAW;;;;;;;;;;;;;;iBAiIpE,mBAAmB,QAAQ,aAAa,cAAc,uBAAuB;;;;;;;;;;;;;;KA8CjF;;;;;;iBA4BI,cAAc,6BAA6B;;iBAU3C;;;;;;;;;;;;;iBAsBA,eAAe,gBAAgB;;iBAQ/B,eAAe,gBAAgB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ConfigDiagnostic } from "./config-
|
|
1
|
+
import { a as ConfigDiagnostic } from "./config-iEG83a3f.mjs";
|
|
2
2
|
import { r as PoConfigProvenance } from "./index-DNEK9W6n.mjs";
|
|
3
3
|
import { FileSystem } from "@agimon-ai/po-core/platform";
|
|
4
4
|
//#region src/services/majorModes/core.d.ts
|
|
@@ -152,4 +152,4 @@ declare function readMajorModesConfigLenient(fs: FileSystem, repoRoot: string, c
|
|
|
152
152
|
declare function readPackageConfigurations(fs: FileSystem, config: MajorModesConfig, names: string[], packageName: string, context: IoContext): Promise<ResolvedPackageConfiguration[]>;
|
|
153
153
|
//#endregion
|
|
154
154
|
export { layerEntries as _, loadMajorModesConfig as a, LayerPackage as c, MajorModeDefinition as d, MajorModesConfig as f, isLocalPackageSpecifier as g, ResolvedPackageConfiguration as h, readPackageConfigurations as i, LayerPackageConfig as l, ResolvedLayerDefinition as m, readMajorModesConfig as n, loadMajorModesConfigLenient as o, PackageNameResolver as p, readMajorModesConfigLenient as r, LayerDefinition as s, ReadMajorModesConfigOptions as t, LayerResolvers as u, resolveLayers as v, resolvePackageConfigurations as y };
|
|
155
|
-
//# sourceMappingURL=index-
|
|
155
|
+
//# sourceMappingURL=index-DcET4K7-.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DcET4K7-.d.mts","names":[],"sources":["../src/services/majorModes/core.ts","../src/services/majorModes/sync.ts","../src/services/majorModes/index.ts"],"mappings":";;;;KAKY,qBAAqB;;UAGhB;EACf;EACA;EACA,SAAS;;;UAIM;EACf;EACA;EACA,QAAQ;EACR;EACA;;UAGe;;;;;;;EAOf;;;;;;;EAOA,WAAW,eAAe;;EAE1B;;;UAIe,gCAAgC;EAC/C;;EAEA;;UAGe;;EAEf;;EAEA;;UAGe;;EAEf,UAAU;EACV,QAAQ,eAAe;;EAEvB;;EAEA,yBAAyB;;EAEzB,WAAW,eAAe;;EAE1B,mBAAmB,eAAe;;UAGnB;EACf,WAAW;EACX,eAAe;EACf,uBAAuB;;EAEvB,kBAAkB;;EAElB,0BAA0B;;EAE1B,aAAa,mBAAmB;;EAEhC,gBAAgB,mBAAmB;;;;;;;;KASzB,uBAAuB,mBAAmB;;;;;;;iBAqBtC,wBAAwB;;;;;iBAsRxB,6BACd,QAAQ,kBACR,iBACA,qBACA,qBAAqB,sBACpB;;iBA6Ba,cAAc,QAAQ,kBAAkB;;iBAqBxC,aAAa,QAAQ,kBAAkB,cAAc,WAAW;;;;;;;;;;;;;iBC5ZhE,qBACd,kBACA,wBACA,cAAa,OAAO,aACnB;;;;;;;;;;iBAca,4BACd,kBACA,wBACA,cAAa,OAAO;EACjB,QAAQ;EAAkB,aAAa;;;;KCpCvC,YAAY,WAAW;UAKX;;WAEN;;WAEA,cAAc,OAAO;;;;;;WAMrB,qBAAqB;;;iBA+EV,qBACpB,IAAI,YACJ,kBACA,SAAS,WACT,UAAS,8BACR,QAAQ;;iBAMW,4BACpB,IAAI,YACJ,kBACA,SAAS,WACT,UAAS,8BACR;EAAU,QAAQ;EAAkB,aAAa;;;;;;;iBAU9B,0BACpB,IAAI,YACJ,QAAQ,kBACR,iBACA,qBACA,SAAS,YACR,QAAQ"}
|
package/dist/index.cjs
CHANGED
|
@@ -9,10 +9,10 @@ const require_layeredConfig = require("./layeredConfig-DF0RPFCT.cjs");
|
|
|
9
9
|
const require_domains = require("./domains-DB86Kbky.cjs");
|
|
10
10
|
const require_harnessState = require("./harnessState-CQBNDL1D.cjs");
|
|
11
11
|
const require_harnessStore = require("./harnessStore-Dgn3T4sR.cjs");
|
|
12
|
-
const require_settingsApi = require("./settingsApi-
|
|
12
|
+
const require_settingsApi = require("./settingsApi-Cycaud1m.cjs");
|
|
13
13
|
const require_piConfig = require("./piConfig-cluCie5i.cjs");
|
|
14
14
|
const require_majorModes = require("./majorModes-KB_WjyGY.cjs");
|
|
15
|
-
const require_profiles = require("./profiles-
|
|
15
|
+
const require_profiles = require("./profiles-CT4qk0j5.cjs");
|
|
16
16
|
const require_init = require("./init-BYASUiO4.cjs");
|
|
17
17
|
require("./config-zZz80Mh5.cjs");
|
|
18
18
|
const require_sessionConfig = require("./sessionConfig-Dp3I3TH2.cjs");
|
package/dist/index.d.mts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { a as GitPluginSource, c as PluginCatalog, d as PluginManifestMetadata, f as PluginSkillDiscovery, i as DomainPlugin, l as PluginCatalogEntry, m as ResolvedDomain, n as DomainManifest, o as LocalPluginSource, p as PluginSource, r as DomainMcpAllowlist, s as NpmPluginSource, t as DomainDefinition, u as PluginEntry } from "./domains-Bo9krPQ5.mjs";
|
|
2
2
|
import { n as writePrivateAtomicJson, t as writePrivateAtomicJsonAsync } from "./index-fTuf8tVH.mjs";
|
|
3
|
-
import { A as PoSelectionConfig, B as VoiceTtsConfig, C as PoConfigLayers, D as PoConfigTransitionRecord, E as PoConfigTransitionPhase, F as VoiceAutoCaptureConfig, H as WorkspaceDeclaration, I as VoiceConfig, L as VoiceEngine, M as ResolvedVoiceAutoCaptureConfig, N as ResolvedVoiceConfig, O as PoConfigTransitionStrategy, P as VoiceAdapterConfig, R as VoiceMode, S as PoConfigLayer, V as VoiceTtsEngine, _ as PlanningAgentConfig, b as PoConfig, c as DesktopEnvironmentConfig, d as IPoConfigLoader, f as IPoConfigService, g as PackageAttribution, h as PO_CONFIG_SERVICE, i as AutocompactTokenConfig, j as ProjectTrust, k as PoHarnessContext, l as EditorConfig, n as AutocompactOverrideConfig, o as ConfigValueOrigin, r as AutocompactThresholdConfig, s as DeepReadonly, t as AutocompactModeConfig, u as HarnessState, v as PlanningModeConfig, w as PoConfigPendingSelection, x as PoConfigContext, y as PlanningThinkingLevel, z as VoiceModelConfig } from "./config-
|
|
4
|
-
import { A as resolvePlanningPlansDirectory, C as loadPoConfig, D as globalPoConfigDirectory, E as loadPoConfigLenient, O as globalPoConfigPath, S as readWorkspaceDeclarations, T as loadPoConfigLayers, _ as ReadWorkspaceDeclarationsOptions, a as PO_VOICE_MODES, b as readPoConfigLayers, c as configRootKeys, d as parseAutocompactModeConfig, f as parsePlanningModeConfig, g as ReadPoConfigOptions, h as valueAtKeyPath, i as PO_VOICE_LIVE_VOICES, k as repositoryPoConfigPath, l as configScopeOf, m as resolveVoiceConfig, n as PO_PLANNING_THINKING_LEVELS, o as PO_VOICE_TTS_ENGINES, p as parsePoConfig, r as PO_VOICE_ENGINES, s as configLeafKeys, t as ConfigKeyScope, u as mergePoConfigs, v as WorkspaceDeclarationsResult, w as loadPoConfigAsync, x as readPoConfigLenient, y as readPoConfig } from "./index-
|
|
3
|
+
import { A as PoSelectionConfig, B as VoiceTtsConfig, C as PoConfigLayers, D as PoConfigTransitionRecord, E as PoConfigTransitionPhase, F as VoiceAutoCaptureConfig, H as WorkspaceDeclaration, I as VoiceConfig, L as VoiceEngine, M as ResolvedVoiceAutoCaptureConfig, N as ResolvedVoiceConfig, O as PoConfigTransitionStrategy, P as VoiceAdapterConfig, R as VoiceMode, S as PoConfigLayer, V as VoiceTtsEngine, _ as PlanningAgentConfig, b as PoConfig, c as DesktopEnvironmentConfig, d as IPoConfigLoader, f as IPoConfigService, g as PackageAttribution, h as PO_CONFIG_SERVICE, i as AutocompactTokenConfig, j as ProjectTrust, k as PoHarnessContext, l as EditorConfig, n as AutocompactOverrideConfig, o as ConfigValueOrigin, r as AutocompactThresholdConfig, s as DeepReadonly, t as AutocompactModeConfig, u as HarnessState, v as PlanningModeConfig, w as PoConfigPendingSelection, x as PoConfigContext, y as PlanningThinkingLevel, z as VoiceModelConfig } from "./config-iEG83a3f.mjs";
|
|
4
|
+
import { A as resolvePlanningPlansDirectory, C as loadPoConfig, D as globalPoConfigDirectory, E as loadPoConfigLenient, O as globalPoConfigPath, S as readWorkspaceDeclarations, T as loadPoConfigLayers, _ as ReadWorkspaceDeclarationsOptions, a as PO_VOICE_MODES, b as readPoConfigLayers, c as configRootKeys, d as parseAutocompactModeConfig, f as parsePlanningModeConfig, g as ReadPoConfigOptions, h as valueAtKeyPath, i as PO_VOICE_LIVE_VOICES, k as repositoryPoConfigPath, l as configScopeOf, m as resolveVoiceConfig, n as PO_PLANNING_THINKING_LEVELS, o as PO_VOICE_TTS_ENGINES, p as parsePoConfig, r as PO_VOICE_ENGINES, s as configLeafKeys, t as ConfigKeyScope, u as mergePoConfigs, v as WorkspaceDeclarationsResult, w as loadPoConfigAsync, x as readPoConfigLenient, y as readPoConfig } from "./index-Db66nUnN.mjs";
|
|
5
5
|
import { i as PiConfigPaths, n as PiConfig, r as PiConfigLoadOptions, t as ConfigAdapterRegistrationOptions } from "./piConfig-C9rGUqPe.mjs";
|
|
6
6
|
import { a as unsetPoConfigValue, c as PoConfigScope, i as setPoConfigValue, l as WritePoConfigOptions, n as unsetPoConfigValueAsync, o as writePoConfigValues, r as writePoConfigValuesAsync, s as PoConfigEdit, t as setPoConfigValueAsync } from "./index-COokUToB.mjs";
|
|
7
7
|
import { n as PO_DIR } from "./index-DNEK9W6n.mjs";
|
|
8
8
|
import { _ as findPluginManifestPathAsync, b as isRemotePluginSource, d as resolvePluginDirectories, f as resolvePluginEntries, l as listDomainNames, n as domainCompletionPrefix, p as resolveSharedSkills, r as expandDomainNames, t as domainCompletionItems, u as loadDomains, v as findPluginManifestPath, x as pluginDirectoryForSource, y as MARKETPLACE_MANIFEST_RELATIVE_PATHS } from "./completion-CqlF0TFY.mjs";
|
|
9
|
-
import { a as readHarnessState, i as projectHarnessEnvironment, n as HARNESS_STATE_KEYS, r as HarnessStateParseReporter, t as FILE_ONLY_STATE_FIELDS } from "./index-
|
|
10
|
-
import { _ as HARNESS_STATE_POINTER, a as requireHarnessPaths, b as resetHarnessStore, d as getHarnessState, f as getSessionHarnessState, g as updateHarnessState, h as snapshotHarnessState, l as createHarnessSession, m as restoreHarnessStateSnapshot, o as requireHarnessRoot, p as loadHarnessState, r as harnessRoot, u as disposeHarnessState, v as HarnessStateFile, x as LoadedHarnessState, y as HarnessStateTransactionSnapshot } from "./index-
|
|
9
|
+
import { a as readHarnessState, i as projectHarnessEnvironment, n as HARNESS_STATE_KEYS, r as HarnessStateParseReporter, t as FILE_ONLY_STATE_FIELDS } from "./index-C9h8yvT9.mjs";
|
|
10
|
+
import { _ as HARNESS_STATE_POINTER, a as requireHarnessPaths, b as resetHarnessStore, d as getHarnessState, f as getSessionHarnessState, g as updateHarnessState, h as snapshotHarnessState, l as createHarnessSession, m as restoreHarnessStateSnapshot, o as requireHarnessRoot, p as loadHarnessState, r as harnessRoot, u as disposeHarnessState, v as HarnessStateFile, x as LoadedHarnessState, y as HarnessStateTransactionSnapshot } from "./index-CBL6PwXp.mjs";
|
|
11
11
|
import { a as loadPiConfigAsync, c as piConfigPaths, d as MIN_IMAGE_MAX_DIMENSION, f as PiImageSettings, h as parsePiImageSettings, i as loadPiConfig, l as piImageSettingsPath, m as clampImageMaxDimension, o as loadPiImageSettings, p as PiImageSettingsUpdate, s as savePiImageSettings, u as DEFAULT_IMAGE_MAX_DIMENSION } from "./index-7RuIAWX1.mjs";
|
|
12
12
|
import { a as GLOBAL_PO_SEED_FILES, c as PO_CONFIG_TEMPLATES, d as RepositoryPoInitResult, i as initializeRepositoryPoConfig, l as REPOSITORY_PO_CONFIG_TEMPLATES, r as initializeGlobalPoConfig, s as GlobalPoInitResult, u as RepositoryPoInitOptions } from "./index-nVcEC1jO.mjs";
|
|
13
|
-
import { _ as layerEntries, a as loadMajorModesConfig, c as LayerPackage, d as MajorModeDefinition, f as MajorModesConfig, g as isLocalPackageSpecifier, h as ResolvedPackageConfiguration, i as readPackageConfigurations, l as LayerPackageConfig, m as ResolvedLayerDefinition, o as loadMajorModesConfigLenient, p as PackageNameResolver, s as LayerDefinition, u as LayerResolvers, v as resolveLayers, y as resolvePackageConfigurations } from "./index-
|
|
14
|
-
import { c as PERSONA_FILES, f as replaceProfileEnvironment, o as AgentProfile, u as applyProfileEnvironment } from "./index-
|
|
15
|
-
import { a as resolveProfile, i as loadProfiles, n as listProfileNames, t as buildPersonaPrompt } from "./sync-
|
|
16
|
-
import { _ as supersedePoConfigTransition, a as appendPoConfigSelection, c as createPoConfigContextAsync, d as providePoConfigContext, f as readPoConfigContextGeneration, g as requirePoConfigContext, h as replacePoConfigContext, i as acknowledgePoConfigTransition, l as freezePoConfigContext, m as readPoConfigSelection, n as PO_CONFIG_TRANSITION_ENTRY_TYPE, o as appendPoConfigTransition, p as readPoConfigPendingSelection, r as PoConfigSelection, s as createPoConfigContext, t as PO_CONFIG_ENTRY_TYPE } from "./index-
|
|
13
|
+
import { _ as layerEntries, a as loadMajorModesConfig, c as LayerPackage, d as MajorModeDefinition, f as MajorModesConfig, g as isLocalPackageSpecifier, h as ResolvedPackageConfiguration, i as readPackageConfigurations, l as LayerPackageConfig, m as ResolvedLayerDefinition, o as loadMajorModesConfigLenient, p as PackageNameResolver, s as LayerDefinition, u as LayerResolvers, v as resolveLayers, y as resolvePackageConfigurations } from "./index-DcET4K7-.mjs";
|
|
14
|
+
import { c as PERSONA_FILES, f as replaceProfileEnvironment, o as AgentProfile, u as applyProfileEnvironment } from "./index-C1v6fkb_.mjs";
|
|
15
|
+
import { a as resolveProfile, i as loadProfiles, n as listProfileNames, t as buildPersonaPrompt } from "./sync-CHbQBVfy.mjs";
|
|
16
|
+
import { _ as supersedePoConfigTransition, a as appendPoConfigSelection, c as createPoConfigContextAsync, d as providePoConfigContext, f as readPoConfigContextGeneration, g as requirePoConfigContext, h as replacePoConfigContext, i as acknowledgePoConfigTransition, l as freezePoConfigContext, m as readPoConfigSelection, n as PO_CONFIG_TRANSITION_ENTRY_TYPE, o as appendPoConfigTransition, p as readPoConfigPendingSelection, r as PoConfigSelection, s as createPoConfigContext, t as PO_CONFIG_ENTRY_TYPE } from "./index-BkWuwprF.mjs";
|
|
17
17
|
import { FileSystem } from "@agimon-ai/po-core/platform";
|
|
18
18
|
import { PoApi } from "@agimon-ai/po-core/packageApi";
|
|
19
19
|
//#region src/services/settingsApi/index.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -8,10 +8,10 @@ import { r as PO_DIR } from "./layeredConfig-DMXpx0Rh.mjs";
|
|
|
8
8
|
import { _ as findPluginManifestPathAsync, b as isRemotePluginSource, c as resolvePluginDirectories, g as expandDomainNames, h as domainCompletionPrefix, l as resolvePluginEntries, m as domainCompletionItems, o as listDomainNames, s as loadDomains, u as resolveSharedSkills, v as findPluginManifestPath, x as pluginDirectoryForSource, y as MARKETPLACE_MANIFEST_RELATIVE_PATHS } from "./domains-DYqoL3VY.mjs";
|
|
9
9
|
import { i as readHarnessState, n as HARNESS_STATE_KEYS, r as projectHarnessEnvironment, t as FILE_ONLY_STATE_FIELDS } from "./harnessState-ufE-npBa.mjs";
|
|
10
10
|
import { _ as HARNESS_STATE_POINTER, a as requireHarnessPaths, d as getHarnessState, f as getSessionHarnessState, g as updateHarnessState, h as snapshotHarnessState, l as createHarnessSession, m as restoreHarnessStateSnapshot, o as requireHarnessRoot, p as loadHarnessState, r as harnessRoot, u as disposeHarnessState, v as resetHarnessStore } from "./harnessStore-yqKUx-kP.mjs";
|
|
11
|
-
import { t as createSettingsApi } from "./settingsApi-
|
|
11
|
+
import { t as createSettingsApi } from "./settingsApi-BBlsvgx-.mjs";
|
|
12
12
|
import { a as loadPiConfigAsync, c as piConfigPaths, d as MIN_IMAGE_MAX_DIMENSION, f as clampImageMaxDimension, i as loadPiConfig, l as piImageSettingsPath, o as loadPiImageSettings, p as parsePiImageSettings, s as savePiImageSettings, u as DEFAULT_IMAGE_MAX_DIMENSION } from "./piConfig-Bq36PQFF.mjs";
|
|
13
13
|
import { a as loadMajorModesConfigLenient, c as resolveLayers, i as loadMajorModesConfig, l as resolvePackageConfigurations, o as isLocalPackageSpecifier, r as readPackageConfigurations, s as layerEntries } from "./majorModes-CFJGjbyH.mjs";
|
|
14
|
-
import { d as PERSONA_FILES, f as applyProfileEnvironment, l as loadProfiles, m as replaceProfileEnvironment, o as buildPersonaPrompt, s as listProfileNames, u as resolveProfile } from "./profiles-
|
|
14
|
+
import { d as PERSONA_FILES, f as applyProfileEnvironment, l as loadProfiles, m as replaceProfileEnvironment, o as buildPersonaPrompt, s as listProfileNames, u as resolveProfile } from "./profiles-DvP-UnkX.mjs";
|
|
15
15
|
import { a as GLOBAL_PO_SEED_FILES, i as initializeRepositoryPoConfig, o as PO_CONFIG_TEMPLATES, r as initializeGlobalPoConfig, s as REPOSITORY_PO_CONFIG_TEMPLATES } from "./init-CGXq_W_m.mjs";
|
|
16
16
|
import { t as PO_CONFIG_SERVICE } from "./config-BBvn_ZLP.mjs";
|
|
17
17
|
import { _ as supersedePoConfigTransition, a as appendPoConfigTransition, c as createPoConfigContextAsync, d as providePoConfigContext, f as readPoConfigContextGeneration, g as requirePoConfigContext, h as replacePoConfigContext, i as appendPoConfigSelection, l as freezePoConfigContext, m as readPoConfigSelection, n as PO_CONFIG_TRANSITION_ENTRY_TYPE, p as readPoConfigPendingSelection, r as acknowledgePoConfigTransition, s as createPoConfigContext, t as PO_CONFIG_ENTRY_TYPE } from "./sessionConfig-BgPh8Uv6.mjs";
|
package/dist/majorModes.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as layerEntries, a as loadMajorModesConfig, c as LayerPackage, d as MajorModeDefinition, f as MajorModesConfig, g as isLocalPackageSpecifier, h as ResolvedPackageConfiguration, i as readPackageConfigurations, l as LayerPackageConfig, m as ResolvedLayerDefinition, n as readMajorModesConfig, o as loadMajorModesConfigLenient, p as PackageNameResolver, r as readMajorModesConfigLenient, s as LayerDefinition, t as ReadMajorModesConfigOptions, u as LayerResolvers, v as resolveLayers, y as resolvePackageConfigurations } from "./index-
|
|
1
|
+
import { _ as layerEntries, a as loadMajorModesConfig, c as LayerPackage, d as MajorModeDefinition, f as MajorModesConfig, g as isLocalPackageSpecifier, h as ResolvedPackageConfiguration, i as readPackageConfigurations, l as LayerPackageConfig, m as ResolvedLayerDefinition, n as readMajorModesConfig, o as loadMajorModesConfigLenient, p as PackageNameResolver, r as readMajorModesConfigLenient, s as LayerDefinition, t as ReadMajorModesConfigOptions, u as LayerResolvers, v as resolveLayers, y as resolvePackageConfigurations } from "./index-DcET4K7-.mjs";
|
|
2
2
|
export { type LayerDefinition, type LayerPackage, type LayerPackageConfig, type LayerResolvers, type MajorModeDefinition, type MajorModesConfig, type PackageNameResolver, type ReadMajorModesConfigOptions, type ResolvedLayerDefinition, type ResolvedPackageConfiguration, isLocalPackageSpecifier, layerEntries, loadMajorModesConfig, loadMajorModesConfigLenient, readMajorModesConfig, readMajorModesConfigLenient, readPackageConfigurations, resolveLayers, resolvePackageConfigurations };
|
package/dist/piContext.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { D as PoConfigTransitionRecord, E as PoConfigTransitionPhase, O as PoConfigTransitionStrategy, w as PoConfigPendingSelection } from "./config-
|
|
2
|
-
import { _ as supersedePoConfigTransition, a as appendPoConfigSelection, c as createPoConfigContextAsync, d as providePoConfigContext, f as readPoConfigContextGeneration, g as requirePoConfigContext, h as replacePoConfigContext, i as acknowledgePoConfigTransition, l as freezePoConfigContext, m as readPoConfigSelection, n as PO_CONFIG_TRANSITION_ENTRY_TYPE, o as appendPoConfigTransition, p as readPoConfigPendingSelection, r as PoConfigSelection, s as createPoConfigContext, t as PO_CONFIG_ENTRY_TYPE, u as persistHarnessSelection } from "./index-
|
|
1
|
+
import { D as PoConfigTransitionRecord, E as PoConfigTransitionPhase, O as PoConfigTransitionStrategy, w as PoConfigPendingSelection } from "./config-iEG83a3f.mjs";
|
|
2
|
+
import { _ as supersedePoConfigTransition, a as appendPoConfigSelection, c as createPoConfigContextAsync, d as providePoConfigContext, f as readPoConfigContextGeneration, g as requirePoConfigContext, h as replacePoConfigContext, i as acknowledgePoConfigTransition, l as freezePoConfigContext, m as readPoConfigSelection, n as PO_CONFIG_TRANSITION_ENTRY_TYPE, o as appendPoConfigTransition, p as readPoConfigPendingSelection, r as PoConfigSelection, s as createPoConfigContext, t as PO_CONFIG_ENTRY_TYPE, u as persistHarnessSelection } from "./index-BkWuwprF.mjs";
|
|
3
3
|
export { PO_CONFIG_ENTRY_TYPE, PO_CONFIG_TRANSITION_ENTRY_TYPE, type PoConfigPendingSelection, type PoConfigSelection, type PoConfigTransitionPhase, type PoConfigTransitionRecord, type PoConfigTransitionStrategy, acknowledgePoConfigTransition, appendPoConfigSelection, appendPoConfigTransition, createPoConfigContext, createPoConfigContextAsync, freezePoConfigContext, persistHarnessSelection, providePoConfigContext, readPoConfigContextGeneration, readPoConfigPendingSelection, readPoConfigSelection, replacePoConfigContext, requirePoConfigContext, supersedePoConfigTransition };
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
interface PersonaIdentity {
|
|
3
3
|
name?: string;
|
|
4
4
|
icon?: string;
|
|
5
|
+
/** What the persona does, shown under its name in pickers. */
|
|
6
|
+
role?: string;
|
|
7
|
+
/** Display-only address a profile source supplies, such as a mailbox. Never a secret. */
|
|
8
|
+
contact?: string;
|
|
5
9
|
}
|
|
6
10
|
interface PersonaVoiceOverride {
|
|
7
11
|
/** Engine voice id, e.g. a macOS `say` voice name. */
|
|
@@ -14,6 +18,8 @@ interface PersonaFrontMatter {
|
|
|
14
18
|
name?: string;
|
|
15
19
|
/** Icon path, relative to the persona directory. */
|
|
16
20
|
icon?: string;
|
|
21
|
+
/** One line on what the persona does, shown under its name in pickers. */
|
|
22
|
+
role?: string;
|
|
17
23
|
/** Narrowly scoped TTS override; the engine itself stays global. */
|
|
18
24
|
voice?: PersonaVoiceOverride;
|
|
19
25
|
}
|
|
@@ -24,4 +30,4 @@ interface PersonaDocument {
|
|
|
24
30
|
}
|
|
25
31
|
//#endregion
|
|
26
32
|
export { PersonaVoiceOverride as i, PersonaFrontMatter as n, PersonaIdentity as r, PersonaDocument as t };
|
|
27
|
-
//# sourceMappingURL=profiles-
|
|
33
|
+
//# sourceMappingURL=profiles-BPaJfNIs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles-BPaJfNIs.d.mts","names":[],"sources":["../src/types/profiles.ts"],"mappings":";UAAiB;EACf;EACA;;EAEA;;EAEA;;UAGe;;EAEf;;EAEA;;UAGe;;EAEf;;EAEA;;EAEA;;EAEA,QAAQ;;UAGO;EACf,cAAc;;EAEd"}
|
|
@@ -30,6 +30,7 @@ const FENCE = "---";
|
|
|
30
30
|
const OWNED_KEYS = [
|
|
31
31
|
"name",
|
|
32
32
|
"icon",
|
|
33
|
+
"role",
|
|
33
34
|
"voice"
|
|
34
35
|
];
|
|
35
36
|
function isRecord$1(value) {
|
|
@@ -45,14 +46,19 @@ function readVoice(value) {
|
|
|
45
46
|
...rate === void 0 ? {} : { rate }
|
|
46
47
|
};
|
|
47
48
|
}
|
|
49
|
+
function readText(value) {
|
|
50
|
+
return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
|
|
51
|
+
}
|
|
48
52
|
function readFrontMatter(parsed) {
|
|
49
|
-
const name =
|
|
50
|
-
const icon =
|
|
53
|
+
const name = readText(parsed.name);
|
|
54
|
+
const icon = readText(parsed.icon);
|
|
55
|
+
const role = readText(parsed.role);
|
|
51
56
|
const voice = readVoice(parsed.voice);
|
|
52
|
-
if (name === void 0 && icon === void 0 && voice === void 0) return void 0;
|
|
57
|
+
if (name === void 0 && icon === void 0 && role === void 0 && voice === void 0) return void 0;
|
|
53
58
|
return {
|
|
54
59
|
...name === void 0 ? {} : { name },
|
|
55
60
|
...icon === void 0 ? {} : { icon },
|
|
61
|
+
...role === void 0 ? {} : { role },
|
|
56
62
|
...voice === void 0 ? {} : { voice }
|
|
57
63
|
};
|
|
58
64
|
}
|
|
@@ -454,10 +460,11 @@ function profileFromDraft(draft, personaRoot, presentation) {
|
|
|
454
460
|
function presentationFrom(frontMatter, icon) {
|
|
455
461
|
const identity = {
|
|
456
462
|
...frontMatter.name === void 0 ? {} : { name: frontMatter.name },
|
|
457
|
-
...icon === void 0 ? {} : { icon }
|
|
463
|
+
...icon === void 0 ? {} : { icon },
|
|
464
|
+
...frontMatter.role === void 0 ? {} : { role: frontMatter.role }
|
|
458
465
|
};
|
|
459
466
|
return {
|
|
460
|
-
...
|
|
467
|
+
...Object.keys(identity).length === 0 ? {} : { identity },
|
|
461
468
|
...frontMatter.voice === void 0 ? {} : { voice: frontMatter.voice }
|
|
462
469
|
};
|
|
463
470
|
}
|
|
@@ -474,7 +481,13 @@ function personaPromptFromSections(personaDirectory, sections) {
|
|
|
474
481
|
if (sections.length === 0) return void 0;
|
|
475
482
|
return [`[PERSONA] You are operating as the person described below (source: ${personaDirectory}).`, ...sections].join("\n\n");
|
|
476
483
|
}
|
|
477
|
-
/**
|
|
484
|
+
/** A source's avatar, kept only as a bounded base64 `data:` URL of a persona icon type, so SVG never passes. */
|
|
485
|
+
function sourceIcon(value) {
|
|
486
|
+
if (typeof value !== "string" || value.length > _agimon_ai_po_core_profileIdentity.PROFILE_ICON_MAX_DATA_URL_LENGTH) return void 0;
|
|
487
|
+
const mime = /^data:([a-z]+\/[a-z]+);base64,[A-Za-z0-9+/]+={0,2}$/.exec(value)?.[1];
|
|
488
|
+
return mime !== void 0 && _agimon_ai_po_core_profileIdentity.PROFILE_ICON_MIME_TYPES.includes(mime) ? value : void 0;
|
|
489
|
+
}
|
|
490
|
+
/** Builds a profile from in-memory persona text. Nothing is read from disk; only the source can supply an icon. */
|
|
478
491
|
function inlineProfile(input) {
|
|
479
492
|
const { name, source, files } = input;
|
|
480
493
|
const read = (file) => Object.hasOwn(files, file) ? files[file] : void 0;
|
|
@@ -487,13 +500,22 @@ function inlineProfile(input) {
|
|
|
487
500
|
const frontMatter = identityText === void 0 ? void 0 : parsePersonaFrontMatter(identityText).frontMatter;
|
|
488
501
|
const personaPrompt = personaPromptFromSections(source, sections);
|
|
489
502
|
if (!personaPrompt) throw emptyPersona(name, source, frontMatter !== void 0);
|
|
503
|
+
const presentation = frontMatter === void 0 ? {} : presentationFrom(frontMatter, void 0);
|
|
504
|
+
const contact = typeof input.contact === "string" ? input.contact.trim() || void 0 : void 0;
|
|
505
|
+
const icon = sourceIcon(input.icon);
|
|
506
|
+
const identity = {
|
|
507
|
+
...presentation.identity,
|
|
508
|
+
...icon === void 0 ? {} : { icon },
|
|
509
|
+
...contact === void 0 ? {} : { contact }
|
|
510
|
+
};
|
|
490
511
|
return {
|
|
491
512
|
name,
|
|
492
513
|
persona: source,
|
|
493
514
|
personaRoot: "",
|
|
494
515
|
env: parseEnvironment(name, input.env),
|
|
495
516
|
...input.integration === void 0 ? {} : { integration: parseProfileBinding(input.integration, `Profile "${name}" integration`) },
|
|
496
|
-
...
|
|
517
|
+
...presentation,
|
|
518
|
+
...Object.keys(identity).length === 0 ? {} : { identity },
|
|
497
519
|
personaPrompt
|
|
498
520
|
};
|
|
499
521
|
}
|
|
@@ -944,4 +966,4 @@ Object.defineProperty(exports, "resolveProfileAsync", {
|
|
|
944
966
|
}
|
|
945
967
|
});
|
|
946
968
|
|
|
947
|
-
//# sourceMappingURL=profiles-
|
|
969
|
+
//# sourceMappingURL=profiles-CT4qk0j5.cjs.map
|