@agimon-ai/po-core 0.0.0-alpha.127 → 0.0.0-alpha.129
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/native.cjs +1 -0
- package/dist/native.d.mts +2 -2
- package/dist/native.mjs +2 -2
- package/dist/src/extensions/webPlugin.cjs +5 -0
- package/dist/src/extensions/webPlugin.cjs.map +1 -1
- package/dist/src/extensions/webPlugin.d.mts +2 -0
- package/dist/src/extensions/webPlugin.d.mts.map +1 -1
- package/dist/src/extensions/webPlugin.mjs +5 -1
- package/dist/src/extensions/webPlugin.mjs.map +1 -1
- package/dist/src/web/types/webPlugin.d.mts +5 -1
- package/dist/src/web/types/webPlugin.d.mts.map +1 -1
- package/dist/web.cjs +1 -0
- package/dist/web.d.mts +2 -2
- package/dist/web.mjs +2 -2
- package/package.json +4 -4
package/dist/native.cjs
CHANGED
|
@@ -43,6 +43,7 @@ exports.defineChannelFile = require_webPlugin.defineChannelFile;
|
|
|
43
43
|
exports.defineDockFace = require_webPlugin.defineDockFace;
|
|
44
44
|
exports.defineFileLinks = require_webPlugin.defineFileLinks;
|
|
45
45
|
exports.defineFill = require_webPlugin.defineFill;
|
|
46
|
+
exports.defineGlobalProvider = require_webPlugin.defineGlobalProvider;
|
|
46
47
|
exports.defineGlobalStore = require_globalStore.defineGlobalStore;
|
|
47
48
|
exports.defineMinorModeFile = require_webPlugin.defineMinorModeFile;
|
|
48
49
|
exports.defineNativePlugin = require_webPlugin.defineWebPlugin;
|
package/dist/native.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { WebTemplateRailActions, WebTemplateRailDirectoryListing, WebTemplateRai
|
|
|
7
7
|
import { NativeSessionView, NativeTemplateContribution, NativeTemplateScreens, NativeTemplateSessionsActions, NativeTemplateSessionsProps } from "./src/web/types/nativeTemplate.mjs";
|
|
8
8
|
import { ActivityGroupContribution, DashboardTileData, DashboardTileSize, DialogPromptContribution, DialogPromptRenderProps, DockFaceContribution, GlobalStore, MinorModeContribution, SelectionAxisContribution, SessionChannelContribution, SessionFrameSender, SessionRecords, SessionStore, SessionStoreChannel, SettingsPanelContribution, SettingsPanelProps, SettingsSectionContribution, SlotDeclaration, SlotFillContribution, TabContribution, TabHeader, ToolMessageRenderProps, ToolPromptRenderProps, ToolRendererContribution, ToolResultView, UserMessageActionContribution, UserMessageActionRunContext, WebPluginContributions, WebPluginDefinition, WebPluginRuntime, WebPluginSessionContext, WebPluginSlotProps, WorkspaceRecords, WorkspaceStore } from "./src/web/types/webPlugin.mjs";
|
|
9
9
|
import { ActivityGroupFile, ChannelFile, DockFaceFile, FillFile, MinorModeFile, NativeTemplateFile, SelectionAxisFile, SettingsPanelFile, SettingsSectionFile, SlotFile, TabFile, ToolRendererFile, UserMessageActionFile } from "./src/web/types/extensionFile.mjs";
|
|
10
|
-
import { defineActivityGroup, defineChannelFile, defineDockFace, defineFileLinks, defineFill, defineMinorModeFile, defineNativeTemplate, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin } from "./src/extensions/webPlugin.mjs";
|
|
10
|
+
import { defineActivityGroup, defineChannelFile, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineMinorModeFile, defineNativeTemplate, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin } from "./src/extensions/webPlugin.mjs";
|
|
11
11
|
import { defineGlobalStore } from "./src/web/models/globalStore.mjs";
|
|
12
12
|
import { defineSessionStore } from "./src/web/models/sessionStore.mjs";
|
|
13
13
|
import { defineWorkspaceStore } from "./src/web/models/workspaceStore.mjs";
|
|
@@ -21,4 +21,4 @@ import { parseNativeTemplate } from "./src/web/schemas/template.mjs";
|
|
|
21
21
|
import { NATIVE_HOST_MODULES, NATIVE_HOST_MODULE_IDS, NATIVE_UNISTYLES_COMPONENTS, NATIVE_UNISTYLES_COMPONENT_PREFIX } from "./src/constants/nativeHost.mjs";
|
|
22
22
|
import { bindNativeByteCodec, decodeBase64, encodeBase64 } from "./src/web/services/nativeByteCodec/index.mjs";
|
|
23
23
|
import { clientMetadata, updateClientDeviceName } from "@agimon-ai/po-web-security/browser";
|
|
24
|
-
export { type ActivityGroupContribution, type ActivityGroupFile, type ApiCallInit, type ApiMethod, type ApiResult, type ApiRoutes, type ApiTransport, CalendarFederationOperation, type ChannelFile, type DashboardTileData, type DashboardTileSize, DelegatedTokenClaims, type DialogPromptContribution, type DialogPromptRenderProps, type DockFaceContribution, type DockFaceFile, FederationCapabilities, FederationConsentCandidate, FederationConstraint, FederationContracts, FederationDeletionReceipt, FederationDeviceApproval, FederationEnvelope, FederationFencingToken, FederationFireOutcome, FederationFireReceipt, FederationFireRequest, FederationGrant, FederationHostRequest, FederationHubClaim, FederationHubEnrollment, FederationHubRemoval, FederationHubRemovalReceipt, FederationHubUnlinkReason, FederationLease, FederationOperation, FederationPartialResult, FederationPrincipal, FederationProvider, FederationProviderConsent, FederationRecordReference, FederationRequest, FederationRoster, FederationRosterChange, FederationRosterHost, FederationVote, FederationWorkPaused, type FillFile, type GlobalStore, HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, HomeContribution, HomeCoverage, HomeEntity, HomeItem, HomeKind, HomeProjection, HomeRequest, HomeSnapshot, HomeSourceStatus, IdentityTokenClaims, type MinorModeContribution, type MinorModeFile, NATIVE_HOST_MODULES, NATIVE_HOST_MODULE_IDS, NATIVE_UNISTYLES_COMPONENTS, NATIVE_UNISTYLES_COMPONENT_PREFIX, type NativeSessionView, type NativeTemplateContribution, type NativeTemplateFile, type NativeTemplateScreens, type NativeTemplateSessionsActions, type NativeTemplateSessionsProps, PO_FEDERATION_CLIENT_SERVICE, type PoApprovalPrompt, type PoClientMetadata, PoFederationClient, READ_OPERATION_NAMES, type SelectionAxisContribution, type SelectionAxisFile, type SessionChannelContribution, type SessionFrameSender, type SessionRecords, type SessionStore, type SessionStoreChannel, type SettingsPanelContribution, type SettingsPanelFile, type SettingsPanelProps, type SettingsSectionContribution, type SettingsSectionFile, type SlotDeclaration, type SlotFile, type SlotFillContribution, type TabContribution, type TabFile, type TabHeader, type ToolMessageRenderProps, type ToolPromptRenderProps, type ToolRendererContribution, type ToolRendererFile, type ToolResultView, type UserMessageActionContribution, type UserMessageActionFile, type UserMessageActionRunContext, type WebPluginContributions, type WebPluginDefinition, type WebPluginRuntime, type WebPluginSessionContext, type WebPluginSlotProps, type WebTemplateRailActions, type WebTemplateRailDirectoryListing, type WebTemplateRailPendingSetup, type WebTemplateRailSession, type WebTemplateRailWorkspace, type WorkspaceRecords, type WorkspaceStore, apiResponse, applyPathParams, bindNativeByteCodec, clientMetadata, createApiClient, decodeBase64, defineActivityGroup, defineApiRoutes, defineChannelFile, defineDockFace, defineFileLinks, defineFill, defineGlobalStore, defineMinorModeFile, defineWebPlugin as defineNativePlugin, defineNativeTemplate, defineSelectionAxis, defineSessionChannel, defineSessionStore, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWorkspaceStore, encodeBase64, federationEnrollmentGeneration, globalRevisionTopic, hubRevision, isPoClientToken, nativeApiTransport, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot, parseNativeTemplate, parsePoApprovalPrompt, poClientMetadataFrom, sessionApiAddress, sessionApiPath, splitConsentOperations, subscribeHubRevision, toolResultText, toolResultTextLines, updateClientDeviceName, workspaceRevisionTopic };
|
|
24
|
+
export { type ActivityGroupContribution, type ActivityGroupFile, type ApiCallInit, type ApiMethod, type ApiResult, type ApiRoutes, type ApiTransport, CalendarFederationOperation, type ChannelFile, type DashboardTileData, type DashboardTileSize, DelegatedTokenClaims, type DialogPromptContribution, type DialogPromptRenderProps, type DockFaceContribution, type DockFaceFile, FederationCapabilities, FederationConsentCandidate, FederationConstraint, FederationContracts, FederationDeletionReceipt, FederationDeviceApproval, FederationEnvelope, FederationFencingToken, FederationFireOutcome, FederationFireReceipt, FederationFireRequest, FederationGrant, FederationHostRequest, FederationHubClaim, FederationHubEnrollment, FederationHubRemoval, FederationHubRemovalReceipt, FederationHubUnlinkReason, FederationLease, FederationOperation, FederationPartialResult, FederationPrincipal, FederationProvider, FederationProviderConsent, FederationRecordReference, FederationRequest, FederationRoster, FederationRosterChange, FederationRosterHost, FederationVote, FederationWorkPaused, type FillFile, type GlobalStore, HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, HomeContribution, HomeCoverage, HomeEntity, HomeItem, HomeKind, HomeProjection, HomeRequest, HomeSnapshot, HomeSourceStatus, IdentityTokenClaims, type MinorModeContribution, type MinorModeFile, NATIVE_HOST_MODULES, NATIVE_HOST_MODULE_IDS, NATIVE_UNISTYLES_COMPONENTS, NATIVE_UNISTYLES_COMPONENT_PREFIX, type NativeSessionView, type NativeTemplateContribution, type NativeTemplateFile, type NativeTemplateScreens, type NativeTemplateSessionsActions, type NativeTemplateSessionsProps, PO_FEDERATION_CLIENT_SERVICE, type PoApprovalPrompt, type PoClientMetadata, PoFederationClient, READ_OPERATION_NAMES, type SelectionAxisContribution, type SelectionAxisFile, type SessionChannelContribution, type SessionFrameSender, type SessionRecords, type SessionStore, type SessionStoreChannel, type SettingsPanelContribution, type SettingsPanelFile, type SettingsPanelProps, type SettingsSectionContribution, type SettingsSectionFile, type SlotDeclaration, type SlotFile, type SlotFillContribution, type TabContribution, type TabFile, type TabHeader, type ToolMessageRenderProps, type ToolPromptRenderProps, type ToolRendererContribution, type ToolRendererFile, type ToolResultView, type UserMessageActionContribution, type UserMessageActionFile, type UserMessageActionRunContext, type WebPluginContributions, type WebPluginDefinition, type WebPluginRuntime, type WebPluginSessionContext, type WebPluginSlotProps, type WebTemplateRailActions, type WebTemplateRailDirectoryListing, type WebTemplateRailPendingSetup, type WebTemplateRailSession, type WebTemplateRailWorkspace, type WorkspaceRecords, type WorkspaceStore, apiResponse, applyPathParams, bindNativeByteCodec, clientMetadata, createApiClient, decodeBase64, defineActivityGroup, defineApiRoutes, defineChannelFile, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineGlobalStore, defineMinorModeFile, defineWebPlugin as defineNativePlugin, defineNativeTemplate, defineSelectionAxis, defineSessionChannel, defineSessionStore, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWorkspaceStore, encodeBase64, federationEnrollmentGeneration, globalRevisionTopic, hubRevision, isPoClientToken, nativeApiTransport, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot, parseNativeTemplate, parsePoApprovalPrompt, poClientMetadataFrom, sessionApiAddress, sessionApiPath, splitConsentOperations, subscribeHubRevision, toolResultText, toolResultTextLines, updateClientDeviceName, workspaceRevisionTopic };
|
package/dist/native.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { parsePoApprovalPrompt } from "./src/schemas/approvalPrompt.mjs";
|
|
|
2
2
|
import { isPoClientToken, poClientMetadataFrom } from "./src/services/clientMetadata/_lib/codec.mjs";
|
|
3
3
|
import { HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot } from "./src/schemas/home.mjs";
|
|
4
4
|
import { PO_FEDERATION_CLIENT_SERVICE, READ_OPERATION_NAMES, federationEnrollmentGeneration, splitConsentOperations } from "./src/schemas/federation.mjs";
|
|
5
|
-
import { defineActivityGroup, defineChannelFile, defineDockFace, defineFileLinks, defineFill, defineMinorModeFile, defineNativeTemplate, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin } from "./src/extensions/webPlugin.mjs";
|
|
5
|
+
import { defineActivityGroup, defineChannelFile, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineMinorModeFile, defineNativeTemplate, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin } from "./src/extensions/webPlugin.mjs";
|
|
6
6
|
import { defineGlobalStore } from "./src/web/models/globalStore.mjs";
|
|
7
7
|
import { defineSessionStore } from "./src/web/models/sessionStore.mjs";
|
|
8
8
|
import { defineWorkspaceStore } from "./src/web/models/workspaceStore.mjs";
|
|
@@ -16,4 +16,4 @@ import { parseNativeTemplate } from "./src/web/schemas/template.mjs";
|
|
|
16
16
|
import { NATIVE_HOST_MODULES, NATIVE_HOST_MODULE_IDS, NATIVE_UNISTYLES_COMPONENTS, NATIVE_UNISTYLES_COMPONENT_PREFIX } from "./src/constants/nativeHost.mjs";
|
|
17
17
|
import { bindNativeByteCodec, decodeBase64, encodeBase64 } from "./src/web/services/nativeByteCodec/index.mjs";
|
|
18
18
|
import { clientMetadata, updateClientDeviceName } from "@agimon-ai/po-web-security/browser";
|
|
19
|
-
export { HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, NATIVE_HOST_MODULES, NATIVE_HOST_MODULE_IDS, NATIVE_UNISTYLES_COMPONENTS, NATIVE_UNISTYLES_COMPONENT_PREFIX, PO_FEDERATION_CLIENT_SERVICE, READ_OPERATION_NAMES, apiResponse, applyPathParams, bindNativeByteCodec, clientMetadata, createApiClient, decodeBase64, defineActivityGroup, defineApiRoutes, defineChannelFile, defineDockFace, defineFileLinks, defineFill, defineGlobalStore, defineMinorModeFile, defineWebPlugin as defineNativePlugin, defineNativeTemplate, defineSelectionAxis, defineSessionChannel, defineSessionStore, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWorkspaceStore, encodeBase64, federationEnrollmentGeneration, globalRevisionTopic, hubRevision, isPoClientToken, nativeApiTransport, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot, parseNativeTemplate, parsePoApprovalPrompt, poClientMetadataFrom, sessionApiAddress, sessionApiPath, splitConsentOperations, subscribeHubRevision, toolResultText, toolResultTextLines, updateClientDeviceName, workspaceRevisionTopic };
|
|
19
|
+
export { HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, NATIVE_HOST_MODULES, NATIVE_HOST_MODULE_IDS, NATIVE_UNISTYLES_COMPONENTS, NATIVE_UNISTYLES_COMPONENT_PREFIX, PO_FEDERATION_CLIENT_SERVICE, READ_OPERATION_NAMES, apiResponse, applyPathParams, bindNativeByteCodec, clientMetadata, createApiClient, decodeBase64, defineActivityGroup, defineApiRoutes, defineChannelFile, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineGlobalStore, defineMinorModeFile, defineWebPlugin as defineNativePlugin, defineNativeTemplate, defineSelectionAxis, defineSessionChannel, defineSessionStore, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWorkspaceStore, encodeBase64, federationEnrollmentGeneration, globalRevisionTopic, hubRevision, isPoClientToken, nativeApiTransport, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot, parseNativeTemplate, parsePoApprovalPrompt, poClientMetadataFrom, sessionApiAddress, sessionApiPath, splitConsentOperations, subscribeHubRevision, toolResultText, toolResultTextLines, updateClientDeviceName, workspaceRevisionTopic };
|
|
@@ -92,6 +92,10 @@ function defineLeaderBinding(file) {
|
|
|
92
92
|
function defineChannelFile(file) {
|
|
93
93
|
return file;
|
|
94
94
|
}
|
|
95
|
+
/** `provider/<name>.native.tsx` or `.web.tsx`, global scope only. */
|
|
96
|
+
function defineGlobalProvider(provider) {
|
|
97
|
+
return provider;
|
|
98
|
+
}
|
|
95
99
|
/** `file-links/<name>.ts`. Declares the scope's singleton file-link source. */
|
|
96
100
|
function defineFileLinks(file) {
|
|
97
101
|
return file;
|
|
@@ -115,6 +119,7 @@ exports.defineContextAction = defineContextAction;
|
|
|
115
119
|
exports.defineDockFace = defineDockFace;
|
|
116
120
|
exports.defineFileLinks = defineFileLinks;
|
|
117
121
|
exports.defineFill = defineFill;
|
|
122
|
+
exports.defineGlobalProvider = defineGlobalProvider;
|
|
118
123
|
exports.defineLeaderBinding = defineLeaderBinding;
|
|
119
124
|
exports.defineMinorModeFile = defineMinorModeFile;
|
|
120
125
|
exports.defineNativeTemplate = defineNativeTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webPlugin.cjs","names":[],"sources":["../../../src/extensions/webPlugin.ts"],"sourcesContent":["import type {\n ActivityGroupFile,\n ChannelFile,\n ContextActionFile,\n DockFaceFile,\n FillFile,\n LeaderBindingFile,\n MinorModeFile,\n NativeTemplateFile,\n PaletteCommandFile,\n SelectionAxisFile,\n SettingsPanelFile,\n SettingsSectionFile,\n SlotFile,\n TabFile,\n ToolRendererFile,\n UserMessageActionFile,\n WebTemplateFile,\n} from '../web/types/extensionFile';\nimport type {\n FileLinkSource,\n RepositorySettingsPanelContribution,\n SessionChannelContribution,\n SlotDeclaration,\n WebPluginContributions,\n WebPluginDefinition,\n} from '../web/types/webPlugin';\n\n/** Identity helper so plugin modules get checked literals without a type annotation. */\nexport function defineWebPlugin(plugin: WebPluginDefinition): WebPluginDefinition {\n return plugin;\n}\n\n/**\n * The one audited erasure from Payload to unknown. Channels are stored\n * untyped in the host registry; the payload type lives entirely inside the\n * plugin, behind its own parse gate.\n */\nexport function defineSessionChannel<Payload>(\n channel: SessionChannelContribution<Payload>,\n): SessionChannelContribution {\n return channel as SessionChannelContribution;\n}\n\n/**\n * Identity helper for a typed slot handle: the owner keeps the\n * SlotDeclaration<Data> to read its fills back through slotData, and the\n * plugin's `slots` array holds it erased. No cast is needed because Data only\n * appears in the parse gate's return position.\n */\nexport function defineSlot<Data>(slot: SlotDeclaration<Data>): SlotDeclaration<Data> {\n return slot;\n}\n\n/**\n * Identity helpers for folder-routed frontend files, one per surface.\n *\n * Each returns its argument unchanged. The value is the position they check\n * and the inference they supply, which is otherwise absent: a routed file's\n * default export reaches a contribution array through a generated entry that\n * types it as unknown.\n */\n\n/** `tool/<name>.tsx`. The filename names the tool this renders. */\nexport function defineToolRenderer(file: ToolRendererFile): ToolRendererFile {\n return file;\n}\n\n/** `command/<name>.tsx`. */\nexport function definePaletteCommand(file: PaletteCommandFile): PaletteCommandFile {\n return file;\n}\n\n/** `tab/<Name>.tsx`. */\nexport function defineTab(file: TabFile): TabFile {\n return file;\n}\n\n/** `template/<name>.web.ts`. Declares a selectable browser layout. */\nexport function defineWebTemplate(file: WebTemplateFile): WebTemplateFile {\n return file;\n}\n/** `template/<name>.native.ts`. Declares a selectable phone layout. */\nexport function defineNativeTemplate(file: NativeTemplateFile): NativeTemplateFile {\n return file;\n}\n/** `dock/<Name>.tsx`. */\nexport function defineDockFace(file: DockFaceFile): DockFaceFile {\n return file;\n}\n\n/** `setting/<name>.tsx` declaring fields the host renders. */\nexport function defineSettingsSection(file: SettingsSectionFile): SettingsSectionFile {\n return file;\n}\n\n/** `setting/<name>.tsx` drawing its own page. */\nexport function defineSettingsPanel(file: SettingsPanelFile): SettingsPanelFile {\n return file;\n}\n\n/** `slot/<name>.ts`. The slot is namespaced as `<pluginId>.<name>`. */\nexport function defineSlotFile<Data = unknown>(file: SlotFile<Data>): SlotFile<Data> {\n return file;\n}\n\n/** `fill/<Name>.<target>.tsx`. */\nexport function defineFill(file: FillFile): FillFile {\n return file;\n}\n\n/** `action/<name>.ts` for a context item kind. */\nexport function defineContextAction(file: ContextActionFile): ContextActionFile {\n return file;\n}\n\n/** `action/<name>.ts` for a user timeline message. */\nexport function defineUserMessageAction(file: UserMessageActionFile): UserMessageActionFile {\n return file;\n}\n\n/** `mode/<name>/mode.ts`. */\nexport function defineMinorModeFile(file: MinorModeFile): MinorModeFile {\n return file;\n}\n\n/** `activity-group/<name>.ts`. The filename names the group and its slot. */\nexport function defineActivityGroup(file: ActivityGroupFile): ActivityGroupFile {\n return file;\n}\n\n/** `leader/<name>.ts`. */\nexport function defineLeaderBinding(file: LeaderBindingFile): LeaderBindingFile {\n return file;\n}\n\n/** `channel/<frameType>.ts`. */\nexport function defineChannelFile<Payload = unknown>(file: ChannelFile<Payload>): ChannelFile<Payload> {\n return file;\n}\n\n/** `file-links/<name>.ts`. Declares the scope's singleton file-link source. */\nexport function defineFileLinks(file: FileLinkSource): FileLinkSource {\n return file;\n}\n\n/** `repository-settings-panel/<name>.tsx`. Declares the workspace settings panel. */\nexport function defineRepositorySettingsPanel(\n file: RepositorySettingsPanelContribution,\n): RepositorySettingsPanelContribution {\n return file;\n}\n\n/** `selection-axis/<name>.ts`. */\nexport function defineSelectionAxis(file: SelectionAxisFile): SelectionAxisFile {\n return file;\n}\n\n/** `lifecycle/start.ts`. Declares the frontend start lifecycle. */\nexport function defineWebLifecycle(\n file: NonNullable<WebPluginContributions['start']>,\n): NonNullable<WebPluginContributions['start']> {\n return file;\n}\n"],"mappings":";;AA6BA,SAAgB,gBAAgB,QAAkD;CAChF,OAAO;AACT;;;;;;AAOA,SAAgB,qBACd,SAC4B;CAC5B,OAAO;AACT;;;;;;;AAQA,SAAgB,WAAiB,MAAoD;CACnF,OAAO;AACT;;;;;;;;;;AAYA,SAAgB,mBAAmB,MAA0C;CAC3E,OAAO;AACT;;AAGA,SAAgB,qBAAqB,MAA8C;CACjF,OAAO;AACT;;AAGA,SAAgB,UAAU,MAAwB;CAChD,OAAO;AACT;;AAGA,SAAgB,kBAAkB,MAAwC;CACxE,OAAO;AACT;;AAEA,SAAgB,qBAAqB,MAA8C;CACjF,OAAO;AACT;;AAEA,SAAgB,eAAe,MAAkC;CAC/D,OAAO;AACT;;AAGA,SAAgB,sBAAsB,MAAgD;CACpF,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,eAA+B,MAAsC;CACnF,OAAO;AACT;;AAGA,SAAgB,WAAW,MAA0B;CACnD,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,wBAAwB,MAAoD;CAC1F,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAAoC;CACtE,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,kBAAqC,MAAkD;CACrG,OAAO;AACT;;AAGA,SAAgB,gBAAgB,MAAsC;CACpE,OAAO;AACT;;AAGA,SAAgB,8BACd,MACqC;CACrC,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,mBACd,MAC8C;CAC9C,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"webPlugin.cjs","names":[],"sources":["../../../src/extensions/webPlugin.ts"],"sourcesContent":["import type {\n ActivityGroupFile,\n ChannelFile,\n ContextActionFile,\n DockFaceFile,\n FillFile,\n LeaderBindingFile,\n MinorModeFile,\n NativeTemplateFile,\n PaletteCommandFile,\n SelectionAxisFile,\n SettingsPanelFile,\n SettingsSectionFile,\n SlotFile,\n TabFile,\n ToolRendererFile,\n UserMessageActionFile,\n WebTemplateFile,\n} from '../web/types/extensionFile';\nimport type {\n FileLinkSource,\n RepositorySettingsPanelContribution,\n SessionChannelContribution,\n SlotDeclaration,\n WebPluginContributions,\n WebPluginDefinition,\n} from '../web/types/webPlugin';\n\n/** Identity helper so plugin modules get checked literals without a type annotation. */\nexport function defineWebPlugin(plugin: WebPluginDefinition): WebPluginDefinition {\n return plugin;\n}\n\n/**\n * The one audited erasure from Payload to unknown. Channels are stored\n * untyped in the host registry; the payload type lives entirely inside the\n * plugin, behind its own parse gate.\n */\nexport function defineSessionChannel<Payload>(\n channel: SessionChannelContribution<Payload>,\n): SessionChannelContribution {\n return channel as SessionChannelContribution;\n}\n\n/**\n * Identity helper for a typed slot handle: the owner keeps the\n * SlotDeclaration<Data> to read its fills back through slotData, and the\n * plugin's `slots` array holds it erased. No cast is needed because Data only\n * appears in the parse gate's return position.\n */\nexport function defineSlot<Data>(slot: SlotDeclaration<Data>): SlotDeclaration<Data> {\n return slot;\n}\n\n/**\n * Identity helpers for folder-routed frontend files, one per surface.\n *\n * Each returns its argument unchanged. The value is the position they check\n * and the inference they supply, which is otherwise absent: a routed file's\n * default export reaches a contribution array through a generated entry that\n * types it as unknown.\n */\n\n/** `tool/<name>.tsx`. The filename names the tool this renders. */\nexport function defineToolRenderer(file: ToolRendererFile): ToolRendererFile {\n return file;\n}\n\n/** `command/<name>.tsx`. */\nexport function definePaletteCommand(file: PaletteCommandFile): PaletteCommandFile {\n return file;\n}\n\n/** `tab/<Name>.tsx`. */\nexport function defineTab(file: TabFile): TabFile {\n return file;\n}\n\n/** `template/<name>.web.ts`. Declares a selectable browser layout. */\nexport function defineWebTemplate(file: WebTemplateFile): WebTemplateFile {\n return file;\n}\n/** `template/<name>.native.ts`. Declares a selectable phone layout. */\nexport function defineNativeTemplate(file: NativeTemplateFile): NativeTemplateFile {\n return file;\n}\n/** `dock/<Name>.tsx`. */\nexport function defineDockFace(file: DockFaceFile): DockFaceFile {\n return file;\n}\n\n/** `setting/<name>.tsx` declaring fields the host renders. */\nexport function defineSettingsSection(file: SettingsSectionFile): SettingsSectionFile {\n return file;\n}\n\n/** `setting/<name>.tsx` drawing its own page. */\nexport function defineSettingsPanel(file: SettingsPanelFile): SettingsPanelFile {\n return file;\n}\n\n/** `slot/<name>.ts`. The slot is namespaced as `<pluginId>.<name>`. */\nexport function defineSlotFile<Data = unknown>(file: SlotFile<Data>): SlotFile<Data> {\n return file;\n}\n\n/** `fill/<Name>.<target>.tsx`. */\nexport function defineFill(file: FillFile): FillFile {\n return file;\n}\n\n/** `action/<name>.ts` for a context item kind. */\nexport function defineContextAction(file: ContextActionFile): ContextActionFile {\n return file;\n}\n\n/** `action/<name>.ts` for a user timeline message. */\nexport function defineUserMessageAction(file: UserMessageActionFile): UserMessageActionFile {\n return file;\n}\n\n/** `mode/<name>/mode.ts`. */\nexport function defineMinorModeFile(file: MinorModeFile): MinorModeFile {\n return file;\n}\n\n/** `activity-group/<name>.ts`. The filename names the group and its slot. */\nexport function defineActivityGroup(file: ActivityGroupFile): ActivityGroupFile {\n return file;\n}\n\n/** `leader/<name>.ts`. */\nexport function defineLeaderBinding(file: LeaderBindingFile): LeaderBindingFile {\n return file;\n}\n\n/** `channel/<frameType>.ts`. */\nexport function defineChannelFile<Payload = unknown>(file: ChannelFile<Payload>): ChannelFile<Payload> {\n return file;\n}\n\n/** `provider/<name>.native.tsx` or `.web.tsx`, global scope only. */\nexport function defineGlobalProvider(\n provider: NonNullable<NonNullable<WebPluginDefinition['global']>['provider']>,\n): NonNullable<NonNullable<WebPluginDefinition['global']>['provider']> {\n return provider;\n}\n\n/** `file-links/<name>.ts`. Declares the scope's singleton file-link source. */\nexport function defineFileLinks(file: FileLinkSource): FileLinkSource {\n return file;\n}\n\n/** `repository-settings-panel/<name>.tsx`. Declares the workspace settings panel. */\nexport function defineRepositorySettingsPanel(\n file: RepositorySettingsPanelContribution,\n): RepositorySettingsPanelContribution {\n return file;\n}\n\n/** `selection-axis/<name>.ts`. */\nexport function defineSelectionAxis(file: SelectionAxisFile): SelectionAxisFile {\n return file;\n}\n\n/** `lifecycle/start.ts`. Declares the frontend start lifecycle. */\nexport function defineWebLifecycle(\n file: NonNullable<WebPluginContributions['start']>,\n): NonNullable<WebPluginContributions['start']> {\n return file;\n}\n"],"mappings":";;AA6BA,SAAgB,gBAAgB,QAAkD;CAChF,OAAO;AACT;;;;;;AAOA,SAAgB,qBACd,SAC4B;CAC5B,OAAO;AACT;;;;;;;AAQA,SAAgB,WAAiB,MAAoD;CACnF,OAAO;AACT;;;;;;;;;;AAYA,SAAgB,mBAAmB,MAA0C;CAC3E,OAAO;AACT;;AAGA,SAAgB,qBAAqB,MAA8C;CACjF,OAAO;AACT;;AAGA,SAAgB,UAAU,MAAwB;CAChD,OAAO;AACT;;AAGA,SAAgB,kBAAkB,MAAwC;CACxE,OAAO;AACT;;AAEA,SAAgB,qBAAqB,MAA8C;CACjF,OAAO;AACT;;AAEA,SAAgB,eAAe,MAAkC;CAC/D,OAAO;AACT;;AAGA,SAAgB,sBAAsB,MAAgD;CACpF,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,eAA+B,MAAsC;CACnF,OAAO;AACT;;AAGA,SAAgB,WAAW,MAA0B;CACnD,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,wBAAwB,MAAoD;CAC1F,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAAoC;CACtE,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,kBAAqC,MAAkD;CACrG,OAAO;AACT;;AAGA,SAAgB,qBACd,UACqE;CACrE,OAAO;AACT;;AAGA,SAAgB,gBAAgB,MAAsC;CACpE,OAAO;AACT;;AAGA,SAAgB,8BACd,MACqC;CACrC,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,mBACd,MAC8C;CAC9C,OAAO;AACT"}
|
|
@@ -56,6 +56,8 @@ export declare function defineActivityGroup(file: ActivityGroupFile): ActivityGr
|
|
|
56
56
|
export declare function defineLeaderBinding(file: LeaderBindingFile): LeaderBindingFile;
|
|
57
57
|
/** `channel/<frameType>.ts`. */
|
|
58
58
|
export declare function defineChannelFile<Payload = unknown>(file: ChannelFile<Payload>): ChannelFile<Payload>;
|
|
59
|
+
/** `provider/<name>.native.tsx` or `.web.tsx`, global scope only. */
|
|
60
|
+
export declare function defineGlobalProvider(provider: NonNullable<NonNullable<WebPluginDefinition['global']>['provider']>): NonNullable<NonNullable<WebPluginDefinition['global']>['provider']>;
|
|
59
61
|
/** `file-links/<name>.ts`. Declares the scope's singleton file-link source. */
|
|
60
62
|
export declare function defineFileLinks(file: FileLinkSource): FileLinkSource;
|
|
61
63
|
/** `repository-settings-panel/<name>.tsx`. Declares the workspace settings panel. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webPlugin.d.mts","names":[],"sources":["../../../src/extensions/webPlugin.ts"],"mappings":";;;;wBA6BgB,gBAAgB,QAAQ,sBAAsB;;;;;;wBAS9C,qBAAqB,SACnC,SAAS,2BAA2B,WACnC;;;;;;;wBAUa,WAAW,MAAM,MAAM,gBAAgB,QAAQ,gBAAgB;;;;;;;;;;wBAc/D,mBAAmB,MAAM,mBAAmB;;wBAK5C,qBAAqB,MAAM,qBAAqB;;wBAKhD,UAAU,MAAM,UAAU;;wBAK1B,kBAAkB,MAAM,kBAAkB;;wBAI1C,qBAAqB,MAAM,qBAAqB;;wBAIhD,eAAe,MAAM,eAAe;;wBAKpC,sBAAsB,MAAM,sBAAsB;;wBAKlD,oBAAoB,MAAM,oBAAoB;;wBAK9C,eAAe,gBAAgB,MAAM,SAAS,QAAQ,SAAS;;wBAK/D,WAAW,MAAM,WAAW;;wBAK5B,oBAAoB,MAAM,oBAAoB;;wBAK9C,wBAAwB,MAAM,wBAAwB;;wBAKtD,oBAAoB,MAAM,gBAAgB;;wBAK1C,oBAAoB,MAAM,oBAAoB;;wBAK9C,oBAAoB,MAAM,oBAAoB;;wBAK9C,kBAAkB,mBAAmB,MAAM,YAAY,WAAW,YAAY;;wBAK9E,gBAAgB,MAAM,iBAAiB;;wBAKvC,8BACd,MAAM,sCACL;;wBAKa,oBAAoB,MAAM,oBAAoB;;wBAK9C,mBACd,MAAM,YAAY,mCACjB,YAAY"}
|
|
1
|
+
{"version":3,"file":"webPlugin.d.mts","names":[],"sources":["../../../src/extensions/webPlugin.ts"],"mappings":";;;;wBA6BgB,gBAAgB,QAAQ,sBAAsB;;;;;;wBAS9C,qBAAqB,SACnC,SAAS,2BAA2B,WACnC;;;;;;;wBAUa,WAAW,MAAM,MAAM,gBAAgB,QAAQ,gBAAgB;;;;;;;;;;wBAc/D,mBAAmB,MAAM,mBAAmB;;wBAK5C,qBAAqB,MAAM,qBAAqB;;wBAKhD,UAAU,MAAM,UAAU;;wBAK1B,kBAAkB,MAAM,kBAAkB;;wBAI1C,qBAAqB,MAAM,qBAAqB;;wBAIhD,eAAe,MAAM,eAAe;;wBAKpC,sBAAsB,MAAM,sBAAsB;;wBAKlD,oBAAoB,MAAM,oBAAoB;;wBAK9C,eAAe,gBAAgB,MAAM,SAAS,QAAQ,SAAS;;wBAK/D,WAAW,MAAM,WAAW;;wBAK5B,oBAAoB,MAAM,oBAAoB;;wBAK9C,wBAAwB,MAAM,wBAAwB;;wBAKtD,oBAAoB,MAAM,gBAAgB;;wBAK1C,oBAAoB,MAAM,oBAAoB;;wBAK9C,oBAAoB,MAAM,oBAAoB;;wBAK9C,kBAAkB,mBAAmB,MAAM,YAAY,WAAW,YAAY;;wBAK9E,qBACd,UAAU,YAAY,YAAY,8CACjC,YAAY,YAAY;;wBAKX,gBAAgB,MAAM,iBAAiB;;wBAKvC,8BACd,MAAM,sCACL;;wBAKa,oBAAoB,MAAM,oBAAoB;;wBAK9C,mBACd,MAAM,YAAY,mCACjB,YAAY"}
|
|
@@ -92,6 +92,10 @@ function defineLeaderBinding(file) {
|
|
|
92
92
|
function defineChannelFile(file) {
|
|
93
93
|
return file;
|
|
94
94
|
}
|
|
95
|
+
/** `provider/<name>.native.tsx` or `.web.tsx`, global scope only. */
|
|
96
|
+
function defineGlobalProvider(provider) {
|
|
97
|
+
return provider;
|
|
98
|
+
}
|
|
95
99
|
/** `file-links/<name>.ts`. Declares the scope's singleton file-link source. */
|
|
96
100
|
function defineFileLinks(file) {
|
|
97
101
|
return file;
|
|
@@ -109,6 +113,6 @@ function defineWebLifecycle(file) {
|
|
|
109
113
|
return file;
|
|
110
114
|
}
|
|
111
115
|
//#endregion
|
|
112
|
-
export { defineActivityGroup, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineLeaderBinding, defineMinorModeFile, defineNativeTemplate, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate };
|
|
116
|
+
export { defineActivityGroup, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineLeaderBinding, defineMinorModeFile, defineNativeTemplate, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate };
|
|
113
117
|
|
|
114
118
|
//# sourceMappingURL=webPlugin.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webPlugin.mjs","names":[],"sources":["../../../src/extensions/webPlugin.ts"],"sourcesContent":["import type {\n ActivityGroupFile,\n ChannelFile,\n ContextActionFile,\n DockFaceFile,\n FillFile,\n LeaderBindingFile,\n MinorModeFile,\n NativeTemplateFile,\n PaletteCommandFile,\n SelectionAxisFile,\n SettingsPanelFile,\n SettingsSectionFile,\n SlotFile,\n TabFile,\n ToolRendererFile,\n UserMessageActionFile,\n WebTemplateFile,\n} from '../web/types/extensionFile';\nimport type {\n FileLinkSource,\n RepositorySettingsPanelContribution,\n SessionChannelContribution,\n SlotDeclaration,\n WebPluginContributions,\n WebPluginDefinition,\n} from '../web/types/webPlugin';\n\n/** Identity helper so plugin modules get checked literals without a type annotation. */\nexport function defineWebPlugin(plugin: WebPluginDefinition): WebPluginDefinition {\n return plugin;\n}\n\n/**\n * The one audited erasure from Payload to unknown. Channels are stored\n * untyped in the host registry; the payload type lives entirely inside the\n * plugin, behind its own parse gate.\n */\nexport function defineSessionChannel<Payload>(\n channel: SessionChannelContribution<Payload>,\n): SessionChannelContribution {\n return channel as SessionChannelContribution;\n}\n\n/**\n * Identity helper for a typed slot handle: the owner keeps the\n * SlotDeclaration<Data> to read its fills back through slotData, and the\n * plugin's `slots` array holds it erased. No cast is needed because Data only\n * appears in the parse gate's return position.\n */\nexport function defineSlot<Data>(slot: SlotDeclaration<Data>): SlotDeclaration<Data> {\n return slot;\n}\n\n/**\n * Identity helpers for folder-routed frontend files, one per surface.\n *\n * Each returns its argument unchanged. The value is the position they check\n * and the inference they supply, which is otherwise absent: a routed file's\n * default export reaches a contribution array through a generated entry that\n * types it as unknown.\n */\n\n/** `tool/<name>.tsx`. The filename names the tool this renders. */\nexport function defineToolRenderer(file: ToolRendererFile): ToolRendererFile {\n return file;\n}\n\n/** `command/<name>.tsx`. */\nexport function definePaletteCommand(file: PaletteCommandFile): PaletteCommandFile {\n return file;\n}\n\n/** `tab/<Name>.tsx`. */\nexport function defineTab(file: TabFile): TabFile {\n return file;\n}\n\n/** `template/<name>.web.ts`. Declares a selectable browser layout. */\nexport function defineWebTemplate(file: WebTemplateFile): WebTemplateFile {\n return file;\n}\n/** `template/<name>.native.ts`. Declares a selectable phone layout. */\nexport function defineNativeTemplate(file: NativeTemplateFile): NativeTemplateFile {\n return file;\n}\n/** `dock/<Name>.tsx`. */\nexport function defineDockFace(file: DockFaceFile): DockFaceFile {\n return file;\n}\n\n/** `setting/<name>.tsx` declaring fields the host renders. */\nexport function defineSettingsSection(file: SettingsSectionFile): SettingsSectionFile {\n return file;\n}\n\n/** `setting/<name>.tsx` drawing its own page. */\nexport function defineSettingsPanel(file: SettingsPanelFile): SettingsPanelFile {\n return file;\n}\n\n/** `slot/<name>.ts`. The slot is namespaced as `<pluginId>.<name>`. */\nexport function defineSlotFile<Data = unknown>(file: SlotFile<Data>): SlotFile<Data> {\n return file;\n}\n\n/** `fill/<Name>.<target>.tsx`. */\nexport function defineFill(file: FillFile): FillFile {\n return file;\n}\n\n/** `action/<name>.ts` for a context item kind. */\nexport function defineContextAction(file: ContextActionFile): ContextActionFile {\n return file;\n}\n\n/** `action/<name>.ts` for a user timeline message. */\nexport function defineUserMessageAction(file: UserMessageActionFile): UserMessageActionFile {\n return file;\n}\n\n/** `mode/<name>/mode.ts`. */\nexport function defineMinorModeFile(file: MinorModeFile): MinorModeFile {\n return file;\n}\n\n/** `activity-group/<name>.ts`. The filename names the group and its slot. */\nexport function defineActivityGroup(file: ActivityGroupFile): ActivityGroupFile {\n return file;\n}\n\n/** `leader/<name>.ts`. */\nexport function defineLeaderBinding(file: LeaderBindingFile): LeaderBindingFile {\n return file;\n}\n\n/** `channel/<frameType>.ts`. */\nexport function defineChannelFile<Payload = unknown>(file: ChannelFile<Payload>): ChannelFile<Payload> {\n return file;\n}\n\n/** `file-links/<name>.ts`. Declares the scope's singleton file-link source. */\nexport function defineFileLinks(file: FileLinkSource): FileLinkSource {\n return file;\n}\n\n/** `repository-settings-panel/<name>.tsx`. Declares the workspace settings panel. */\nexport function defineRepositorySettingsPanel(\n file: RepositorySettingsPanelContribution,\n): RepositorySettingsPanelContribution {\n return file;\n}\n\n/** `selection-axis/<name>.ts`. */\nexport function defineSelectionAxis(file: SelectionAxisFile): SelectionAxisFile {\n return file;\n}\n\n/** `lifecycle/start.ts`. Declares the frontend start lifecycle. */\nexport function defineWebLifecycle(\n file: NonNullable<WebPluginContributions['start']>,\n): NonNullable<WebPluginContributions['start']> {\n return file;\n}\n"],"mappings":";;AA6BA,SAAgB,gBAAgB,QAAkD;CAChF,OAAO;AACT;;;;;;AAOA,SAAgB,qBACd,SAC4B;CAC5B,OAAO;AACT;;;;;;;AAQA,SAAgB,WAAiB,MAAoD;CACnF,OAAO;AACT;;;;;;;;;;AAYA,SAAgB,mBAAmB,MAA0C;CAC3E,OAAO;AACT;;AAGA,SAAgB,qBAAqB,MAA8C;CACjF,OAAO;AACT;;AAGA,SAAgB,UAAU,MAAwB;CAChD,OAAO;AACT;;AAGA,SAAgB,kBAAkB,MAAwC;CACxE,OAAO;AACT;;AAEA,SAAgB,qBAAqB,MAA8C;CACjF,OAAO;AACT;;AAEA,SAAgB,eAAe,MAAkC;CAC/D,OAAO;AACT;;AAGA,SAAgB,sBAAsB,MAAgD;CACpF,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,eAA+B,MAAsC;CACnF,OAAO;AACT;;AAGA,SAAgB,WAAW,MAA0B;CACnD,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,wBAAwB,MAAoD;CAC1F,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAAoC;CACtE,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,kBAAqC,MAAkD;CACrG,OAAO;AACT;;AAGA,SAAgB,gBAAgB,MAAsC;CACpE,OAAO;AACT;;AAGA,SAAgB,8BACd,MACqC;CACrC,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,mBACd,MAC8C;CAC9C,OAAO;AACT"}
|
|
1
|
+
{"version":3,"file":"webPlugin.mjs","names":[],"sources":["../../../src/extensions/webPlugin.ts"],"sourcesContent":["import type {\n ActivityGroupFile,\n ChannelFile,\n ContextActionFile,\n DockFaceFile,\n FillFile,\n LeaderBindingFile,\n MinorModeFile,\n NativeTemplateFile,\n PaletteCommandFile,\n SelectionAxisFile,\n SettingsPanelFile,\n SettingsSectionFile,\n SlotFile,\n TabFile,\n ToolRendererFile,\n UserMessageActionFile,\n WebTemplateFile,\n} from '../web/types/extensionFile';\nimport type {\n FileLinkSource,\n RepositorySettingsPanelContribution,\n SessionChannelContribution,\n SlotDeclaration,\n WebPluginContributions,\n WebPluginDefinition,\n} from '../web/types/webPlugin';\n\n/** Identity helper so plugin modules get checked literals without a type annotation. */\nexport function defineWebPlugin(plugin: WebPluginDefinition): WebPluginDefinition {\n return plugin;\n}\n\n/**\n * The one audited erasure from Payload to unknown. Channels are stored\n * untyped in the host registry; the payload type lives entirely inside the\n * plugin, behind its own parse gate.\n */\nexport function defineSessionChannel<Payload>(\n channel: SessionChannelContribution<Payload>,\n): SessionChannelContribution {\n return channel as SessionChannelContribution;\n}\n\n/**\n * Identity helper for a typed slot handle: the owner keeps the\n * SlotDeclaration<Data> to read its fills back through slotData, and the\n * plugin's `slots` array holds it erased. No cast is needed because Data only\n * appears in the parse gate's return position.\n */\nexport function defineSlot<Data>(slot: SlotDeclaration<Data>): SlotDeclaration<Data> {\n return slot;\n}\n\n/**\n * Identity helpers for folder-routed frontend files, one per surface.\n *\n * Each returns its argument unchanged. The value is the position they check\n * and the inference they supply, which is otherwise absent: a routed file's\n * default export reaches a contribution array through a generated entry that\n * types it as unknown.\n */\n\n/** `tool/<name>.tsx`. The filename names the tool this renders. */\nexport function defineToolRenderer(file: ToolRendererFile): ToolRendererFile {\n return file;\n}\n\n/** `command/<name>.tsx`. */\nexport function definePaletteCommand(file: PaletteCommandFile): PaletteCommandFile {\n return file;\n}\n\n/** `tab/<Name>.tsx`. */\nexport function defineTab(file: TabFile): TabFile {\n return file;\n}\n\n/** `template/<name>.web.ts`. Declares a selectable browser layout. */\nexport function defineWebTemplate(file: WebTemplateFile): WebTemplateFile {\n return file;\n}\n/** `template/<name>.native.ts`. Declares a selectable phone layout. */\nexport function defineNativeTemplate(file: NativeTemplateFile): NativeTemplateFile {\n return file;\n}\n/** `dock/<Name>.tsx`. */\nexport function defineDockFace(file: DockFaceFile): DockFaceFile {\n return file;\n}\n\n/** `setting/<name>.tsx` declaring fields the host renders. */\nexport function defineSettingsSection(file: SettingsSectionFile): SettingsSectionFile {\n return file;\n}\n\n/** `setting/<name>.tsx` drawing its own page. */\nexport function defineSettingsPanel(file: SettingsPanelFile): SettingsPanelFile {\n return file;\n}\n\n/** `slot/<name>.ts`. The slot is namespaced as `<pluginId>.<name>`. */\nexport function defineSlotFile<Data = unknown>(file: SlotFile<Data>): SlotFile<Data> {\n return file;\n}\n\n/** `fill/<Name>.<target>.tsx`. */\nexport function defineFill(file: FillFile): FillFile {\n return file;\n}\n\n/** `action/<name>.ts` for a context item kind. */\nexport function defineContextAction(file: ContextActionFile): ContextActionFile {\n return file;\n}\n\n/** `action/<name>.ts` for a user timeline message. */\nexport function defineUserMessageAction(file: UserMessageActionFile): UserMessageActionFile {\n return file;\n}\n\n/** `mode/<name>/mode.ts`. */\nexport function defineMinorModeFile(file: MinorModeFile): MinorModeFile {\n return file;\n}\n\n/** `activity-group/<name>.ts`. The filename names the group and its slot. */\nexport function defineActivityGroup(file: ActivityGroupFile): ActivityGroupFile {\n return file;\n}\n\n/** `leader/<name>.ts`. */\nexport function defineLeaderBinding(file: LeaderBindingFile): LeaderBindingFile {\n return file;\n}\n\n/** `channel/<frameType>.ts`. */\nexport function defineChannelFile<Payload = unknown>(file: ChannelFile<Payload>): ChannelFile<Payload> {\n return file;\n}\n\n/** `provider/<name>.native.tsx` or `.web.tsx`, global scope only. */\nexport function defineGlobalProvider(\n provider: NonNullable<NonNullable<WebPluginDefinition['global']>['provider']>,\n): NonNullable<NonNullable<WebPluginDefinition['global']>['provider']> {\n return provider;\n}\n\n/** `file-links/<name>.ts`. Declares the scope's singleton file-link source. */\nexport function defineFileLinks(file: FileLinkSource): FileLinkSource {\n return file;\n}\n\n/** `repository-settings-panel/<name>.tsx`. Declares the workspace settings panel. */\nexport function defineRepositorySettingsPanel(\n file: RepositorySettingsPanelContribution,\n): RepositorySettingsPanelContribution {\n return file;\n}\n\n/** `selection-axis/<name>.ts`. */\nexport function defineSelectionAxis(file: SelectionAxisFile): SelectionAxisFile {\n return file;\n}\n\n/** `lifecycle/start.ts`. Declares the frontend start lifecycle. */\nexport function defineWebLifecycle(\n file: NonNullable<WebPluginContributions['start']>,\n): NonNullable<WebPluginContributions['start']> {\n return file;\n}\n"],"mappings":";;AA6BA,SAAgB,gBAAgB,QAAkD;CAChF,OAAO;AACT;;;;;;AAOA,SAAgB,qBACd,SAC4B;CAC5B,OAAO;AACT;;;;;;;AAQA,SAAgB,WAAiB,MAAoD;CACnF,OAAO;AACT;;;;;;;;;;AAYA,SAAgB,mBAAmB,MAA0C;CAC3E,OAAO;AACT;;AAGA,SAAgB,qBAAqB,MAA8C;CACjF,OAAO;AACT;;AAGA,SAAgB,UAAU,MAAwB;CAChD,OAAO;AACT;;AAGA,SAAgB,kBAAkB,MAAwC;CACxE,OAAO;AACT;;AAEA,SAAgB,qBAAqB,MAA8C;CACjF,OAAO;AACT;;AAEA,SAAgB,eAAe,MAAkC;CAC/D,OAAO;AACT;;AAGA,SAAgB,sBAAsB,MAAgD;CACpF,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,eAA+B,MAAsC;CACnF,OAAO;AACT;;AAGA,SAAgB,WAAW,MAA0B;CACnD,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,wBAAwB,MAAoD;CAC1F,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAAoC;CACtE,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,kBAAqC,MAAkD;CACrG,OAAO;AACT;;AAGA,SAAgB,qBACd,UACqE;CACrE,OAAO;AACT;;AAGA,SAAgB,gBAAgB,MAAsC;CACpE,OAAO;AACT;;AAGA,SAAgB,8BACd,MACqC;CACrC,OAAO;AACT;;AAGA,SAAgB,oBAAoB,MAA4C;CAC9E,OAAO;AACT;;AAGA,SAAgB,mBACd,MAC8C;CAC9C,OAAO;AACT"}
|
|
@@ -1224,7 +1224,11 @@ export interface WebPluginRuntime {
|
|
|
1224
1224
|
export interface WebPluginDefinition {
|
|
1225
1225
|
id: string;
|
|
1226
1226
|
/** Independently installed contributions, using the same ownership levels as server plugins. */
|
|
1227
|
-
global?: WebPluginContributions
|
|
1227
|
+
global?: WebPluginContributions & {
|
|
1228
|
+
provider?: ComponentType<{
|
|
1229
|
+
children?: ReactNode;
|
|
1230
|
+
}>;
|
|
1231
|
+
};
|
|
1228
1232
|
workspace?: WebPluginContributions;
|
|
1229
1233
|
session?: WebPluginContributions;
|
|
1230
1234
|
/** Layouts offered by admitted packages; only the selected layout is mounted. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webPlugin.d.mts","names":[],"sources":["../../../../src/web/types/webPlugin.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+BY,sBAAsB,mBAAmB,OAAO;;;;;;;;;;iBAU3C,gBAAgB;EAC/B;;EAEA;;EAEA;;EAEA,OAAO,iBAAiB;;;iBAGT,aAAa;EAC5B;EACA;EACA;EACA,MAAM;;;iBAGS;;EAEf;;EAEA,SAAS;;;;;;;;iBAQM;;EAEf;EACA;EACA,OAAO,cAAc;;EAErB;;EAEA;;EAEA;;;;;EAKA,mBAAmB,sBAAsB;;EAEzC,UAAU;;EAEV,WAAW;;;;;;;;;;;;iBAYI;;EAEf;;EAEA,UAAU;;EAEV,YAAY;;EAEZ,QAAQ,0BAA0B,eAAe;;;;;;;;;;EAUjD,UAAU,0BAA0B,eAAe;;;;;;EAMnD,UAAU,mBAAmB,yBAAyB;;;iBAIvC;;EAEf;;EAEA;;;;;;;iBAOe;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;EACA;;EAEA,SAAS;;iBAGM;EACf;EACA;;EAEA;EACA;;;iBAIe;EACf;EACA;EACA;EACA;EACA,uBAAuB;;;iBAGR;;EAEf;EACA;EACA;EACA;;;iBAIe;EACf;;EAEA;;EAEA;;;iBAIe;;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B"}
|
package/dist/web.cjs
CHANGED
|
@@ -41,6 +41,7 @@ exports.defineContextAction = require_webPlugin.defineContextAction;
|
|
|
41
41
|
exports.defineDockFace = require_webPlugin.defineDockFace;
|
|
42
42
|
exports.defineFileLinks = require_webPlugin.defineFileLinks;
|
|
43
43
|
exports.defineFill = require_webPlugin.defineFill;
|
|
44
|
+
exports.defineGlobalProvider = require_webPlugin.defineGlobalProvider;
|
|
44
45
|
exports.defineGlobalStore = require_globalStore.defineGlobalStore;
|
|
45
46
|
exports.defineLeaderBinding = require_webPlugin.defineLeaderBinding;
|
|
46
47
|
exports.defineMcpWidget = require_mcpWidget.defineMcpWidget;
|
package/dist/web.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ import { NativeSessionView, NativeTemplateContribution, NativeTemplateScreens, N
|
|
|
10
10
|
import { ModelContext, ModelContextAbortSignal, ModelContextBinding, ModelContextExecutionOptions, ModelContextRegistrationOptions, ModelContextTool, ModelContextToolChangeEvent, ModelContextToolChangeListener, ModelContextToolDescriptor } from "./src/web/types/modelContext.mjs";
|
|
11
11
|
import { ActivityGroupContribution, CaptureStatusEvent, ComposerCapture, ComposerSubmission, ContextAction, ContextActionContribution, ContextActionRunContext, DashboardTileData, DashboardTileSize, DialogPromptContribution, DialogPromptRenderProps, DockFaceContribution, FileLinkMention, FileLinkSource, GlobalStore, LaunchProfileCatalog, LaunchProfileItem, LaunchSelection, LeaderBindingContribution, LeaderKeyContribution, MinorModeContribution, PaletteCommandContext, PaletteCommandContribution, RepositorySettingsPanelContribution, RepositorySettingsPanelProps, RepositorySettingsRepository, SelectionAxisContribution, SessionChannelContribution, SessionFrameSender, SessionRecords, SessionStore, SessionStoreChannel, SettingsFieldContribution, SettingsFieldOption, SettingsPanelContribution, SettingsPanelProps, SettingsSectionContribution, SettingsSectionGroup, SlotDataFill, SlotDeclaration, SlotFillContribution, SurfaceContribution, TabContribution, TabHeader, ThreadViewOptions, ToolCompletionEvent, ToolMessageRenderProps, ToolOutputDescriptor, ToolPromptContribution, ToolPromptDialog, ToolPromptRenderProps, ToolRendererContribution, ToolResultView, TransientTab, UserMessageActionContribution, UserMessageActionRunContext, WebPluginContextInventoryItem, WebPluginContextItem, WebPluginContributions, WebPluginDefinition, WebPluginMount, WebPluginNewSessionContext, WebPluginRuntime, WebPluginScope, WebPluginSessionContext, WebPluginSlotProps, WorkspaceRecords, WorkspaceStore } from "./src/web/types/webPlugin.mjs";
|
|
12
12
|
import { ActivityGroupFile, ChannelFile, ContextActionFile, DockFaceFile, FillFile, LeaderBindingFile, MinorModeFile, PaletteCommandFile, SelectionAxisFile, SettingsPanelFile, SettingsSectionFile, SlotFile, TabFile, ToolRendererFile, UserMessageActionFile, WebTemplateFile } from "./src/web/types/extensionFile.mjs";
|
|
13
|
-
import { defineActivityGroup, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineLeaderBinding, defineMinorModeFile, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate } from "./src/extensions/webPlugin.mjs";
|
|
13
|
+
import { defineActivityGroup, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineLeaderBinding, defineMinorModeFile, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate } from "./src/extensions/webPlugin.mjs";
|
|
14
14
|
import { defineGlobalStore } from "./src/web/models/globalStore.mjs";
|
|
15
15
|
import { defineSessionStore } from "./src/web/models/sessionStore.mjs";
|
|
16
16
|
import { defineWorkspaceStore } from "./src/web/models/workspaceStore.mjs";
|
|
@@ -24,4 +24,4 @@ import { parseNativeTemplate, parseWebTemplate } from "./src/web/schemas/templat
|
|
|
24
24
|
import { HubAdvertisement, RegistryDirInput } from "./src/web/types/sessionRegistry.mjs";
|
|
25
25
|
import { HUB_ADVERTISEMENT_VERSION, REGISTRY_DIR_ENV, hubAdvertisementPath, parseHubAdvertisement, resolveRegistryDir } from "./src/web/services/sessionRegistry/index.mjs";
|
|
26
26
|
import { defineMcpWidget } from "./src/web/services/mcpWidget.mjs";
|
|
27
|
-
export { type ActivityGroupContribution, type ActivityGroupFile, type ApiCallInit, type ApiClient, type ApiClientOptions, type ApiMethod, type ApiParams, type ApiQuery, type ApiResponseOf, type ApiResult, type ApiRouteMethod, type ApiRouteSpec, type ApiRoutes, type ApiScopeAddress, type ApiScopeClient, type ApiScopeName, type ApiStreamMethod, type ApiTransport, BUNDLE_ASSET_POLICY_PATH, BUNDLE_ASSET_POLICY_VERSION, type BrainConsumer, type BrainEdge, type BrainFill, type BrainOwner, type BrainPackage, type BrainScope, type BrainService, type BrainServicesSnapshot, type BrainSlot, type BrainSlotsSnapshot, type BundleAssetPolicy, type CaptureStatusEvent, type ChannelFile, type ComposerCapture, type ComposerSubmission, type ContextAction, type ContextActionContribution, type ContextActionFile, type ContextActionRunContext, type DashboardTileData, type DashboardTileSize, type DialogPromptContribution, type DialogPromptRenderProps, type DockFaceContribution, type DockFaceFile, type FederationDeletionReceipt, type FederationHubUnlinkReason, type FederationPartialResult, type FileLinkMention, type FileLinkSource, type FillFile, type GlobalStore, HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, HOST_SLOTS, HOST_SLOT_METADATA, HUB_ADVERTISEMENT_VERSION, HomeContribution, HomeCoverage, HomeEntity, HomeItem, HomeKind, HomeProjection, HomeRequest, HomeSnapshot, HomeSourceStatus, type HubAdvertisement, type LaunchProfileCatalog, type LaunchProfileItem, type LaunchSelection, type LeaderBindingContribution, type LeaderBindingFile, type LeaderKeyContribution, type MinorModeContribution, type MinorModeFile, type ModelContext, type ModelContextAbortSignal, type ModelContextBinding, type ModelContextExecutionOptions, type ModelContextRegistrationOptions, type ModelContextTool, type ModelContextToolChangeEvent, type ModelContextToolChangeListener, type ModelContextToolDescriptor, type NativeSessionView, type NativeTemplateContribution, type NativeTemplateScreens, type NativeTemplateSessionsActions, type NativeTemplateSessionsProps, type PaletteCommandContext, type PaletteCommandContribution, type PaletteCommandFile, type PoApprovalPrompt, type PoMcpWidgetProps, type PoWebBrainMetadata, REGISTRY_DIR_ENV, type RegistryDirInput, type RepositorySettingsPanelContribution, type RepositorySettingsPanelProps, type RepositorySettingsRepository, SETTINGS_BASE_PATH, type SelectionAxisContribution, type SelectionAxisFile, type SessionChannelContribution, type SessionFrameSender, type SessionRecords, type SessionStore, type SessionStoreChannel, type SettingsFieldContribution, type SettingsFieldOption, type SettingsPanelContribution, type SettingsPanelFile, type SettingsPanelProps, type SettingsSectionContribution, type SettingsSectionFile, type SettingsSectionGroup, type SlotDataFill, type SlotDeclaration, type SlotFile, type SlotFillContribution, type SurfaceContribution, type TabContribution, type TabFile, type TabHeader, type ThreadViewOptions, type ToolCompletionEvent, type ToolMessageRenderProps, type ToolOutputDescriptor, type ToolPromptContribution, type ToolPromptDialog, type ToolPromptRenderProps, type ToolRendererContribution, type ToolRendererFile, type ToolResultView, type TransientTab, type UserMessageActionContribution, type UserMessageActionFile, type UserMessageActionRunContext, type WebPluginContextInventoryItem, type WebPluginContextItem, type WebPluginContributions, type WebPluginDefinition, type WebPluginMount, type WebPluginNewSessionContext, type WebPluginRuntime, type WebPluginScope, type WebPluginSessionContext, type WebPluginSlotProps, type WebTemplateContribution, type WebTemplateFile, type WebTemplateHeaderOptions, type WebTemplateRail, type WebTemplateRailActions, type WebTemplateRailDeclaredWorkspaceResult, type WebTemplateRailDirectoryListing, type WebTemplateRailPendingSetup, type WebTemplateRailResult, type WebTemplateRailSession, type WebTemplateRailWorkspace, type WebTemplateRailWorkspaceDeclaration, type WebTemplateRailWorkspaceDiscovery, type WorkspaceRecords, type WorkspaceStore, activityGroupSlot, activityGroupSlotMetadata, apiQueryString, apiResponse, applyPathParams, bindNativeApiTransport, bindSessionApiWorkspace, createApiClient, defineActivityGroup, defineApiRoutes, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineGlobalStore, defineLeaderBinding, defineMcpWidget, defineMinorModeFile, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSessionStore, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate, defineWorkspaceStore, globalApiPath, globalRevisionTopic, hubAdvertisementPath, hubRevision, isNativeApiTarget, nativeApiTransport, parseBundleAssetPolicy, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot, parseHubAdvertisement, parseNativeTemplate, parsePoApprovalPrompt, parseWebTemplate, pluginApiBase, pluginApiUrl, resolveRegistryDir, scopeApiRoot, sessionApiAddress, sessionApiPath, setHubRevisions, subscribeHubRevision, toolResultText, toolResultTextLines, workspaceApiPath, workspaceRevisionTopic };
|
|
27
|
+
export { type ActivityGroupContribution, type ActivityGroupFile, type ApiCallInit, type ApiClient, type ApiClientOptions, type ApiMethod, type ApiParams, type ApiQuery, type ApiResponseOf, type ApiResult, type ApiRouteMethod, type ApiRouteSpec, type ApiRoutes, type ApiScopeAddress, type ApiScopeClient, type ApiScopeName, type ApiStreamMethod, type ApiTransport, BUNDLE_ASSET_POLICY_PATH, BUNDLE_ASSET_POLICY_VERSION, type BrainConsumer, type BrainEdge, type BrainFill, type BrainOwner, type BrainPackage, type BrainScope, type BrainService, type BrainServicesSnapshot, type BrainSlot, type BrainSlotsSnapshot, type BundleAssetPolicy, type CaptureStatusEvent, type ChannelFile, type ComposerCapture, type ComposerSubmission, type ContextAction, type ContextActionContribution, type ContextActionFile, type ContextActionRunContext, type DashboardTileData, type DashboardTileSize, type DialogPromptContribution, type DialogPromptRenderProps, type DockFaceContribution, type DockFaceFile, type FederationDeletionReceipt, type FederationHubUnlinkReason, type FederationPartialResult, type FileLinkMention, type FileLinkSource, type FillFile, type GlobalStore, HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, HOST_SLOTS, HOST_SLOT_METADATA, HUB_ADVERTISEMENT_VERSION, HomeContribution, HomeCoverage, HomeEntity, HomeItem, HomeKind, HomeProjection, HomeRequest, HomeSnapshot, HomeSourceStatus, type HubAdvertisement, type LaunchProfileCatalog, type LaunchProfileItem, type LaunchSelection, type LeaderBindingContribution, type LeaderBindingFile, type LeaderKeyContribution, type MinorModeContribution, type MinorModeFile, type ModelContext, type ModelContextAbortSignal, type ModelContextBinding, type ModelContextExecutionOptions, type ModelContextRegistrationOptions, type ModelContextTool, type ModelContextToolChangeEvent, type ModelContextToolChangeListener, type ModelContextToolDescriptor, type NativeSessionView, type NativeTemplateContribution, type NativeTemplateScreens, type NativeTemplateSessionsActions, type NativeTemplateSessionsProps, type PaletteCommandContext, type PaletteCommandContribution, type PaletteCommandFile, type PoApprovalPrompt, type PoMcpWidgetProps, type PoWebBrainMetadata, REGISTRY_DIR_ENV, type RegistryDirInput, type RepositorySettingsPanelContribution, type RepositorySettingsPanelProps, type RepositorySettingsRepository, SETTINGS_BASE_PATH, type SelectionAxisContribution, type SelectionAxisFile, type SessionChannelContribution, type SessionFrameSender, type SessionRecords, type SessionStore, type SessionStoreChannel, type SettingsFieldContribution, type SettingsFieldOption, type SettingsPanelContribution, type SettingsPanelFile, type SettingsPanelProps, type SettingsSectionContribution, type SettingsSectionFile, type SettingsSectionGroup, type SlotDataFill, type SlotDeclaration, type SlotFile, type SlotFillContribution, type SurfaceContribution, type TabContribution, type TabFile, type TabHeader, type ThreadViewOptions, type ToolCompletionEvent, type ToolMessageRenderProps, type ToolOutputDescriptor, type ToolPromptContribution, type ToolPromptDialog, type ToolPromptRenderProps, type ToolRendererContribution, type ToolRendererFile, type ToolResultView, type TransientTab, type UserMessageActionContribution, type UserMessageActionFile, type UserMessageActionRunContext, type WebPluginContextInventoryItem, type WebPluginContextItem, type WebPluginContributions, type WebPluginDefinition, type WebPluginMount, type WebPluginNewSessionContext, type WebPluginRuntime, type WebPluginScope, type WebPluginSessionContext, type WebPluginSlotProps, type WebTemplateContribution, type WebTemplateFile, type WebTemplateHeaderOptions, type WebTemplateRail, type WebTemplateRailActions, type WebTemplateRailDeclaredWorkspaceResult, type WebTemplateRailDirectoryListing, type WebTemplateRailPendingSetup, type WebTemplateRailResult, type WebTemplateRailSession, type WebTemplateRailWorkspace, type WebTemplateRailWorkspaceDeclaration, type WebTemplateRailWorkspaceDiscovery, type WorkspaceRecords, type WorkspaceStore, activityGroupSlot, activityGroupSlotMetadata, apiQueryString, apiResponse, applyPathParams, bindNativeApiTransport, bindSessionApiWorkspace, createApiClient, defineActivityGroup, defineApiRoutes, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineGlobalStore, defineLeaderBinding, defineMcpWidget, defineMinorModeFile, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSessionStore, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate, defineWorkspaceStore, globalApiPath, globalRevisionTopic, hubAdvertisementPath, hubRevision, isNativeApiTarget, nativeApiTransport, parseBundleAssetPolicy, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot, parseHubAdvertisement, parseNativeTemplate, parsePoApprovalPrompt, parseWebTemplate, pluginApiBase, pluginApiUrl, resolveRegistryDir, scopeApiRoot, sessionApiAddress, sessionApiPath, setHubRevisions, subscribeHubRevision, toolResultText, toolResultTextLines, workspaceApiPath, workspaceRevisionTopic };
|
package/dist/web.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parsePoApprovalPrompt } from "./src/schemas/approvalPrompt.mjs";
|
|
2
2
|
import { BUNDLE_ASSET_POLICY_PATH, BUNDLE_ASSET_POLICY_VERSION, parseBundleAssetPolicy } from "./src/web/schemas/bundleAssetPolicy.mjs";
|
|
3
3
|
import { HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot } from "./src/schemas/home.mjs";
|
|
4
|
-
import { defineActivityGroup, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineLeaderBinding, defineMinorModeFile, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate } from "./src/extensions/webPlugin.mjs";
|
|
4
|
+
import { defineActivityGroup, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineLeaderBinding, defineMinorModeFile, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate } from "./src/extensions/webPlugin.mjs";
|
|
5
5
|
import { defineGlobalStore } from "./src/web/models/globalStore.mjs";
|
|
6
6
|
import { defineSessionStore } from "./src/web/models/sessionStore.mjs";
|
|
7
7
|
import { defineWorkspaceStore } from "./src/web/models/workspaceStore.mjs";
|
|
@@ -15,4 +15,4 @@ import { parseNativeTemplate, parseWebTemplate } from "./src/web/schemas/templat
|
|
|
15
15
|
import { HOST_SLOTS, HOST_SLOT_METADATA, activityGroupSlot, activityGroupSlotMetadata } from "./src/web/hostSlots.mjs";
|
|
16
16
|
import { HUB_ADVERTISEMENT_VERSION, REGISTRY_DIR_ENV, hubAdvertisementPath, parseHubAdvertisement, resolveRegistryDir } from "./src/web/services/sessionRegistry/index.mjs";
|
|
17
17
|
import { defineMcpWidget } from "./src/web/services/mcpWidget.mjs";
|
|
18
|
-
export { BUNDLE_ASSET_POLICY_PATH, BUNDLE_ASSET_POLICY_VERSION, HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, HOST_SLOTS, HOST_SLOT_METADATA, HUB_ADVERTISEMENT_VERSION, REGISTRY_DIR_ENV, SETTINGS_BASE_PATH, activityGroupSlot, activityGroupSlotMetadata, apiQueryString, apiResponse, applyPathParams, bindNativeApiTransport, bindSessionApiWorkspace, createApiClient, defineActivityGroup, defineApiRoutes, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineGlobalStore, defineLeaderBinding, defineMcpWidget, defineMinorModeFile, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSessionStore, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate, defineWorkspaceStore, globalApiPath, globalRevisionTopic, hubAdvertisementPath, hubRevision, isNativeApiTarget, nativeApiTransport, parseBundleAssetPolicy, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot, parseHubAdvertisement, parseNativeTemplate, parsePoApprovalPrompt, parseWebTemplate, pluginApiBase, pluginApiUrl, resolveRegistryDir, scopeApiRoot, sessionApiAddress, sessionApiPath, setHubRevisions, subscribeHubRevision, toolResultText, toolResultTextLines, workspaceApiPath, workspaceRevisionTopic };
|
|
18
|
+
export { BUNDLE_ASSET_POLICY_PATH, BUNDLE_ASSET_POLICY_VERSION, HOME_ENTITY_LIMIT, HOME_KINDS, HOME_PAGE_LIMIT, HOST_SLOTS, HOST_SLOT_METADATA, HUB_ADVERTISEMENT_VERSION, REGISTRY_DIR_ENV, SETTINGS_BASE_PATH, activityGroupSlot, activityGroupSlotMetadata, apiQueryString, apiResponse, applyPathParams, bindNativeApiTransport, bindSessionApiWorkspace, createApiClient, defineActivityGroup, defineApiRoutes, defineChannelFile, defineContextAction, defineDockFace, defineFileLinks, defineFill, defineGlobalProvider, defineGlobalStore, defineLeaderBinding, defineMcpWidget, defineMinorModeFile, definePaletteCommand, defineRepositorySettingsPanel, defineSelectionAxis, defineSessionChannel, defineSessionStore, defineSettingsPanel, defineSettingsSection, defineSlot, defineSlotFile, defineTab, defineToolRenderer, defineUserMessageAction, defineWebLifecycle, defineWebPlugin, defineWebTemplate, defineWorkspaceStore, globalApiPath, globalRevisionTopic, hubAdvertisementPath, hubRevision, isNativeApiTarget, nativeApiTransport, parseBundleAssetPolicy, parseHomeContribution, parseHomeEntity, parseHomeProjection, parseHomeSnapshot, parseHubAdvertisement, parseNativeTemplate, parsePoApprovalPrompt, parseWebTemplate, pluginApiBase, pluginApiUrl, resolveRegistryDir, scopeApiRoot, sessionApiAddress, sessionApiPath, setHubRevisions, subscribeHubRevision, toolResultText, toolResultTextLines, workspaceApiPath, workspaceRevisionTopic };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-core",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.129",
|
|
4
4
|
"description": "Po runtime systems and reusable core services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -609,8 +609,8 @@
|
|
|
609
609
|
"registry": "https://registry.npmjs.org/"
|
|
610
610
|
},
|
|
611
611
|
"dependencies": {
|
|
612
|
-
"@agimon-ai/po-logsink": "0.0.1-alpha.
|
|
613
|
-
"@agimon-ai/po-web-security": "0.0.0-alpha.
|
|
612
|
+
"@agimon-ai/po-logsink": "0.0.1-alpha.111",
|
|
613
|
+
"@agimon-ai/po-web-security": "0.0.0-alpha.129",
|
|
614
614
|
"@deepseek-ai/cordis": "4.0.5",
|
|
615
615
|
"@earendil-works/chord": "1.5.0",
|
|
616
616
|
"@earendil-works/pi-agent-core": "1.5.0",
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
"yaml": "2.9.1"
|
|
637
637
|
},
|
|
638
638
|
"devDependencies": {
|
|
639
|
-
"@agimon-ai/vibe-lint-plugin-po-core": "0.0.0-alpha.
|
|
639
|
+
"@agimon-ai/vibe-lint-plugin-po-core": "0.0.0-alpha.129",
|
|
640
640
|
"@apidevtools/swagger-parser": "^13.1.0",
|
|
641
641
|
"@asyncapi/parser": "^3.6.4",
|
|
642
642
|
"@earendil-works/pi-ai": "1.5.0",
|