@agimon-ai/doompi-notification 0.0.1-alpha.50 → 0.0.1-alpha.52

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.
Files changed (106) hide show
  1. package/package.json +4 -4
  2. package/dist/_virtual/_rolldown/runtime.cjs +0 -23
  3. package/dist/api-contracts.cjs +0 -7
  4. package/dist/api-contracts.d.cts +0 -2
  5. package/dist/api-contracts.d.mts +0 -2
  6. package/dist/api-contracts.mjs +0 -2
  7. package/dist/extensions/pi.cjs +0 -37
  8. package/dist/extensions/pi.cjs.map +0 -1
  9. package/dist/extensions/pi.d.cts +0 -6
  10. package/dist/extensions/pi.d.cts.map +0 -1
  11. package/dist/extensions/pi.d.mts +0 -6
  12. package/dist/extensions/pi.d.mts.map +0 -1
  13. package/dist/extensions/pi.mjs +0 -32
  14. package/dist/extensions/pi.mjs.map +0 -1
  15. package/dist/extensions/server.cjs +0 -23
  16. package/dist/extensions/server.cjs.map +0 -1
  17. package/dist/extensions/server.d.cts +0 -5
  18. package/dist/extensions/server.d.cts.map +0 -1
  19. package/dist/extensions/server.d.mts +0 -5
  20. package/dist/extensions/server.d.mts.map +0 -1
  21. package/dist/extensions/server.mjs +0 -18
  22. package/dist/extensions/server.mjs.map +0 -1
  23. package/dist/index.cjs +0 -17
  24. package/dist/index.d.cts +0 -6
  25. package/dist/index.d.mts +0 -6
  26. package/dist/index.mjs +0 -5
  27. package/dist/src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.cjs +0 -16
  28. package/dist/src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.cjs.map +0 -1
  29. package/dist/src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.mjs +0 -17
  30. package/dist/src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.mjs.map +0 -1
  31. package/dist/src/extensions/workspaces/sessions/(backend)/command/notify.server.cjs +0 -7
  32. package/dist/src/extensions/workspaces/sessions/(backend)/command/notify.server.cjs.map +0 -1
  33. package/dist/src/extensions/workspaces/sessions/(backend)/command/notify.server.mjs +0 -8
  34. package/dist/src/extensions/workspaces/sessions/(backend)/command/notify.server.mjs.map +0 -1
  35. package/dist/src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.cjs +0 -6
  36. package/dist/src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.cjs.map +0 -1
  37. package/dist/src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.mjs +0 -7
  38. package/dist/src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.mjs.map +0 -1
  39. package/dist/src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.cjs +0 -6
  40. package/dist/src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.cjs.map +0 -1
  41. package/dist/src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.mjs +0 -7
  42. package/dist/src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.mjs.map +0 -1
  43. package/dist/src/extensions/workspaces/sessions/(backend)/hook/input.cli.cjs +0 -6
  44. package/dist/src/extensions/workspaces/sessions/(backend)/hook/input.cli.cjs.map +0 -1
  45. package/dist/src/extensions/workspaces/sessions/(backend)/hook/input.cli.mjs +0 -7
  46. package/dist/src/extensions/workspaces/sessions/(backend)/hook/input.cli.mjs.map +0 -1
  47. package/dist/src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.cjs +0 -6
  48. package/dist/src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.cjs.map +0 -1
  49. package/dist/src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.mjs +0 -7
  50. package/dist/src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.mjs.map +0 -1
  51. package/dist/src/extensions/workspaces/sessions/(backend)/root.cli.cjs +0 -23
  52. package/dist/src/extensions/workspaces/sessions/(backend)/root.cli.cjs.map +0 -1
  53. package/dist/src/extensions/workspaces/sessions/(backend)/root.cli.mjs +0 -23
  54. package/dist/src/extensions/workspaces/sessions/(backend)/root.cli.mjs.map +0 -1
  55. package/dist/src/schemas/apiContracts.cjs +0 -13
  56. package/dist/src/schemas/apiContracts.cjs.map +0 -1
  57. package/dist/src/schemas/apiContracts.d.cts +0 -53
  58. package/dist/src/schemas/apiContracts.d.cts.map +0 -1
  59. package/dist/src/schemas/apiContracts.d.mts +0 -53
  60. package/dist/src/schemas/apiContracts.d.mts.map +0 -1
  61. package/dist/src/schemas/apiContracts.mjs +0 -13
  62. package/dist/src/schemas/apiContracts.mjs.map +0 -1
  63. package/dist/src/services/notificationPolicy/index.cjs +0 -32
  64. package/dist/src/services/notificationPolicy/index.cjs.map +0 -1
  65. package/dist/src/services/notificationPolicy/index.d.cts +0 -27
  66. package/dist/src/services/notificationPolicy/index.d.cts.map +0 -1
  67. package/dist/src/services/notificationPolicy/index.d.mts +0 -27
  68. package/dist/src/services/notificationPolicy/index.d.mts.map +0 -1
  69. package/dist/src/services/notificationPolicy/index.mjs +0 -29
  70. package/dist/src/services/notificationPolicy/index.mjs.map +0 -1
  71. package/dist/src/services/notificationRouter/index.cjs +0 -43
  72. package/dist/src/services/notificationRouter/index.cjs.map +0 -1
  73. package/dist/src/services/notificationRouter/index.mjs +0 -41
  74. package/dist/src/services/notificationRouter/index.mjs.map +0 -1
  75. package/dist/src/services/notificationRuntime/index.cjs +0 -190
  76. package/dist/src/services/notificationRuntime/index.cjs.map +0 -1
  77. package/dist/src/services/notificationRuntime/index.mjs +0 -190
  78. package/dist/src/services/notificationRuntime/index.mjs.map +0 -1
  79. package/dist/src/services/notificationText/index.cjs +0 -63
  80. package/dist/src/services/notificationText/index.cjs.map +0 -1
  81. package/dist/src/services/notificationText/index.d.cts +0 -27
  82. package/dist/src/services/notificationText/index.d.cts.map +0 -1
  83. package/dist/src/services/notificationText/index.d.mts +0 -27
  84. package/dist/src/services/notificationText/index.d.mts.map +0 -1
  85. package/dist/src/services/notificationText/index.mjs +0 -57
  86. package/dist/src/services/notificationText/index.mjs.map +0 -1
  87. package/dist/src/services/shellTitleController/index.cjs +0 -149
  88. package/dist/src/services/shellTitleController/index.cjs.map +0 -1
  89. package/dist/src/services/shellTitleController/index.d.cts +0 -12
  90. package/dist/src/services/shellTitleController/index.d.cts.map +0 -1
  91. package/dist/src/services/shellTitleController/index.d.mts +0 -12
  92. package/dist/src/services/shellTitleController/index.d.mts.map +0 -1
  93. package/dist/src/services/shellTitleController/index.mjs +0 -148
  94. package/dist/src/services/shellTitleController/index.mjs.map +0 -1
  95. package/dist/src/services/systemNotification/index.cjs +0 -48
  96. package/dist/src/services/systemNotification/index.cjs.map +0 -1
  97. package/dist/src/services/systemNotification/index.d.cts +0 -12
  98. package/dist/src/services/systemNotification/index.d.cts.map +0 -1
  99. package/dist/src/services/systemNotification/index.d.mts +0 -12
  100. package/dist/src/services/systemNotification/index.d.mts.map +0 -1
  101. package/dist/src/services/systemNotification/index.mjs +0 -48
  102. package/dist/src/services/systemNotification/index.mjs.map +0 -1
  103. package/dist/src/types/notifications.d.cts +0 -44
  104. package/dist/src/types/notifications.d.cts.map +0 -1
  105. package/dist/src/types/notifications.d.mts +0 -44
  106. package/dist/src/types/notifications.d.mts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/doompi-notification",
3
- "version": "0.0.1-alpha.50",
3
+ "version": "0.0.1-alpha.52",
4
4
  "description": "Desktop notifications and an animated shell-tab title for DoomPi sessions.",
5
5
  "keywords": [
6
6
  "ai",
@@ -65,12 +65,12 @@
65
65
  "access": "public"
66
66
  },
67
67
  "dependencies": {
68
- "@agimon-ai/doompi-core": "0.0.1-alpha.73",
68
+ "@agimon-ai/doompi-core": "0.0.1-alpha.75",
69
69
  "@deepseek-ai/cordis": "4.0.2"
70
70
  },
71
71
  "devDependencies": {
72
- "@agimon-ai/doompi-build": "0.0.1-alpha.2",
73
- "@agimon-ai/vibe-lint-plugin-doom-extension": "0.0.1-alpha.68",
72
+ "@agimon-ai/doompi-build": "0.0.1-alpha.4",
73
+ "@agimon-ai/vibe-lint-plugin-doom-extension": "0.0.1-alpha.70",
74
74
  "@earendil-works/pi-coding-agent": "0.85.1",
75
75
  "@types/node": "26.5.1",
76
76
  "@vitest/coverage-v8": "5.0.0",
@@ -1,23 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
- key = keys[i];
11
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: ((k) => from[k]).bind(null, key),
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
- });
15
- }
16
- return to;
17
- };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
19
- value: mod,
20
- enumerable: true
21
- }) : target, mod));
22
- //#endregion
23
- exports.__toESM = __toESM;
@@ -1,7 +0,0 @@
1
- Object.defineProperties(exports, {
2
- __esModule: { value: true },
3
- [Symbol.toStringTag]: { value: "Module" }
4
- });
5
- const require_apiContracts = require("./src/schemas/apiContracts.cjs");
6
- exports.apiContracts = require_apiContracts.apiContracts;
7
- exports.default = require_apiContracts.apiContracts;
@@ -1,2 +0,0 @@
1
- import { apiContracts } from "./src/schemas/apiContracts.cjs";
2
- export { apiContracts, apiContracts as default };
@@ -1,2 +0,0 @@
1
- import { apiContracts } from "./src/schemas/apiContracts.mjs";
2
- export { apiContracts, apiContracts as default };
@@ -1,2 +0,0 @@
1
- import { apiContracts } from "./src/schemas/apiContracts.mjs";
2
- export { apiContracts, apiContracts as default };
@@ -1,37 +0,0 @@
1
- Object.defineProperties(exports, {
2
- __esModule: { value: true },
3
- [Symbol.toStringTag]: { value: "Module" }
4
- });
5
- const require_root_cli = require("../src/extensions/workspaces/sessions/(backend)/root.cli.cjs");
6
- const require_agentSettled_cli = require("../src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.cjs");
7
- const require_agentStart_cli = require("../src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.cjs");
8
- const require_input_cli = require("../src/extensions/workspaces/sessions/(backend)/hook/input.cli.cjs");
9
- const require_sessionStart_cli = require("../src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.cjs");
10
- let _agimon_ai_doompi_core_pi_extension = require("@agimon-ai/doompi-core/pi-extension");
11
- let _agimon_ai_doompi_core_extension_file = require("@agimon-ai/doompi-core/extension-file");
12
- //#region generated/pi.ts
13
- const at = (value, context) => typeof value === "function" ? value(context) : value;
14
- /* v8 ignore next -- generated normalization branch */
15
- const keyed = (key, value) => value === void 0 ? {} : { [key]: value };
16
- const extension = (0, _agimon_ai_doompi_core_pi_extension.definePiExtension)("@agimon-ai/doompi-notification", async (context) => {
17
- const scopeSession = await require_root_cli.default(context);
18
- const contextSession = {
19
- ...context,
20
- root: scopeSession.value
21
- };
22
- return {
23
- ...(0, _agimon_ai_doompi_core_extension_file.composeRootHooks)(scopeSession),
24
- events: {
25
- ...keyed("agent_settled", at(require_agentSettled_cli.default, contextSession)),
26
- ...keyed("agent_start", at(require_agentStart_cli.default, contextSession)),
27
- ...keyed("input", at(require_input_cli.default, contextSession)),
28
- ...keyed("session_start", at(require_sessionStart_cli.default, contextSession))
29
- },
30
- services: [...scopeSession.services ?? []]
31
- };
32
- });
33
- //#endregion
34
- exports.default = extension;
35
- exports.extension = extension;
36
-
37
- //# sourceMappingURL=pi.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pi.cjs","names":["definePiExtension","rootSession","composeRootHooks","hookAgentSettled","hookAgentStart","hookInput","hookSessionStart"],"sources":["../../generated/pi.ts"],"sourcesContent":["// Generated by @agimon-ai/doompi-build. Do not edit by hand.\nimport { definePiExtension, type PiPluginContext, type PiPluginContributions } from '@agimon-ai/doompi-core/pi-extension';\nimport { composeRootHooks } from '@agimon-ai/doompi-core/extension-file';\n\nimport rootSession from '../src/extensions/workspaces/sessions/(backend)/root.cli';\nimport hookAgentSettled from '../src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli';\nimport hookAgentStart from '../src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli';\nimport hookInput from '../src/extensions/workspaces/sessions/(backend)/hook/input.cli';\nimport hookSessionStart from '../src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli';\n\ntype OptionsOf<T> = T extends (context: PiPluginContext<infer Options>) => unknown ? Options : never;\ntype InferredOptions = Exclude<OptionsOf<typeof rootSession> | OptionsOf<typeof hookAgentSettled> | OptionsOf<typeof hookAgentStart> | OptionsOf<typeof hookInput> | OptionsOf<typeof hookSessionStart>, undefined>;\ntype Intersect<Union> =\n (Union extends unknown ? (value: Union) => void : never) extends (value: infer Value) => void ? Value : never;\ntype ExtensionOptions = [InferredOptions] extends [never] ? undefined : Intersect<InferredOptions>;\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\n/* v8 ignore next -- generated normalization branch */\nconst keyed = <T>(key: string, value: T | undefined): Record<string, T> =>\n value === undefined ? {} : { [key]: value };\n\nexport const extension = definePiExtension<ExtensionOptions>('@agimon-ai/doompi-notification', async (context) => {\n const scopeSession = await rootSession(context);\n const contextSession = { ...context, root: scopeSession.value };\n return {\n ...composeRootHooks(scopeSession),\n events: {\n ...keyed('agent_settled', at(hookAgentSettled, contextSession) as NonNullable<PiPluginContributions['events']>['agent_settled']),\n ...keyed('agent_start', at(hookAgentStart, contextSession) as NonNullable<PiPluginContributions['events']>['agent_start']),\n ...keyed('input', at(hookInput, contextSession) as NonNullable<PiPluginContributions['events']>['input']),\n ...keyed('session_start', at(hookSessionStart, contextSession) as NonNullable<PiPluginContributions['events']>['session_start']),\n },\n services: [...(scopeSession.services ?? [])],\n };\n});\n\nexport default extension;\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAM,MAAY,OAA0B,YAC1C,OAAO,UAAU,aAAc,MAAwB,OAAO,IAAI;;AAEpE,MAAM,SAAY,KAAa,UAC7B,UAAU,KAAA,IAAY,CAAC,IAAI,GAAG,MAAM,MAAM;AAE5C,MAAa,aAAA,GAAYA,oCAAAA,kBAAAA,CAAoC,kCAAkC,OAAO,YAAY;CAChH,MAAM,eAAe,MAAMC,iBAAAA,QAAY,OAAO;CAC9C,MAAM,iBAAiB;EAAE,GAAG;EAAS,MAAM,aAAa;CAAM;CAC9D,OAAO;EACL,IAAA,GAAGC,sCAAAA,iBAAAA,CAAiB,YAAY;EAChC,QAAQ;GACN,GAAG,MAAM,iBAAiB,GAAGC,yBAAAA,SAAkB,cAAc,CAAkE;GAC/H,GAAG,MAAM,eAAe,GAAGC,uBAAAA,SAAgB,cAAc,CAAgE;GACzH,GAAG,MAAM,SAAS,GAAGC,kBAAAA,SAAW,cAAc,CAA0D;GACxG,GAAG,MAAM,iBAAiB,GAAGC,yBAAAA,SAAkB,cAAc,CAAkE;EACjI;EACA,UAAU,CAAC,GAAI,aAAa,YAAY,CAAC,CAAE;CAC7C;AACF,CAAC"}
@@ -1,6 +0,0 @@
1
- import { NotificationExtensionOptions } from "../src/types/notifications.cjs";
2
- //#region generated/pi.d.ts
3
- export declare const extension: import("@agimon-ai/doompi-core/runtime-pi-extension").DefinedPiExtension<NotificationExtensionOptions>;
4
- //#endregion
5
- export { extension as default };
6
- //# sourceMappingURL=pi.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pi.d.cts","names":[],"sources":["../../generated/pi.ts"],"mappings":";;qBAuBa,iEAAS,mBAAT"}
@@ -1,6 +0,0 @@
1
- import { NotificationExtensionOptions } from "../src/types/notifications.mjs";
2
- //#region generated/pi.d.ts
3
- export declare const extension: import("@agimon-ai/doompi-core/runtime-pi-extension").DefinedPiExtension<NotificationExtensionOptions>;
4
- //#endregion
5
- export { extension as default };
6
- //# sourceMappingURL=pi.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pi.d.mts","names":[],"sources":["../../generated/pi.ts"],"mappings":";;qBAuBa,iEAAS,mBAAT"}
@@ -1,32 +0,0 @@
1
- import root_cli_default from "../src/extensions/workspaces/sessions/(backend)/root.cli.mjs";
2
- import agentSettled_cli_default from "../src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.mjs";
3
- import agentStart_cli_default from "../src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.mjs";
4
- import input_cli_default from "../src/extensions/workspaces/sessions/(backend)/hook/input.cli.mjs";
5
- import sessionStart_cli_default from "../src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.mjs";
6
- import { definePiExtension } from "@agimon-ai/doompi-core/pi-extension";
7
- import { composeRootHooks } from "@agimon-ai/doompi-core/extension-file";
8
- //#region generated/pi.ts
9
- const at = (value, context) => typeof value === "function" ? value(context) : value;
10
- /* v8 ignore next -- generated normalization branch */
11
- const keyed = (key, value) => value === void 0 ? {} : { [key]: value };
12
- const extension = definePiExtension("@agimon-ai/doompi-notification", async (context) => {
13
- const scopeSession = await root_cli_default(context);
14
- const contextSession = {
15
- ...context,
16
- root: scopeSession.value
17
- };
18
- return {
19
- ...composeRootHooks(scopeSession),
20
- events: {
21
- ...keyed("agent_settled", at(agentSettled_cli_default, contextSession)),
22
- ...keyed("agent_start", at(agentStart_cli_default, contextSession)),
23
- ...keyed("input", at(input_cli_default, contextSession)),
24
- ...keyed("session_start", at(sessionStart_cli_default, contextSession))
25
- },
26
- services: [...scopeSession.services ?? []]
27
- };
28
- });
29
- //#endregion
30
- export { extension as default, extension };
31
-
32
- //# sourceMappingURL=pi.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pi.mjs","names":["rootSession","hookAgentSettled","hookAgentStart","hookInput","hookSessionStart"],"sources":["../../generated/pi.ts"],"sourcesContent":["// Generated by @agimon-ai/doompi-build. Do not edit by hand.\nimport { definePiExtension, type PiPluginContext, type PiPluginContributions } from '@agimon-ai/doompi-core/pi-extension';\nimport { composeRootHooks } from '@agimon-ai/doompi-core/extension-file';\n\nimport rootSession from '../src/extensions/workspaces/sessions/(backend)/root.cli';\nimport hookAgentSettled from '../src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli';\nimport hookAgentStart from '../src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli';\nimport hookInput from '../src/extensions/workspaces/sessions/(backend)/hook/input.cli';\nimport hookSessionStart from '../src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli';\n\ntype OptionsOf<T> = T extends (context: PiPluginContext<infer Options>) => unknown ? Options : never;\ntype InferredOptions = Exclude<OptionsOf<typeof rootSession> | OptionsOf<typeof hookAgentSettled> | OptionsOf<typeof hookAgentStart> | OptionsOf<typeof hookInput> | OptionsOf<typeof hookSessionStart>, undefined>;\ntype Intersect<Union> =\n (Union extends unknown ? (value: Union) => void : never) extends (value: infer Value) => void ? Value : never;\ntype ExtensionOptions = [InferredOptions] extends [never] ? undefined : Intersect<InferredOptions>;\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\n/* v8 ignore next -- generated normalization branch */\nconst keyed = <T>(key: string, value: T | undefined): Record<string, T> =>\n value === undefined ? {} : { [key]: value };\n\nexport const extension = definePiExtension<ExtensionOptions>('@agimon-ai/doompi-notification', async (context) => {\n const scopeSession = await rootSession(context);\n const contextSession = { ...context, root: scopeSession.value };\n return {\n ...composeRootHooks(scopeSession),\n events: {\n ...keyed('agent_settled', at(hookAgentSettled, contextSession) as NonNullable<PiPluginContributions['events']>['agent_settled']),\n ...keyed('agent_start', at(hookAgentStart, contextSession) as NonNullable<PiPluginContributions['events']>['agent_start']),\n ...keyed('input', at(hookInput, contextSession) as NonNullable<PiPluginContributions['events']>['input']),\n ...keyed('session_start', at(hookSessionStart, contextSession) as NonNullable<PiPluginContributions['events']>['session_start']),\n },\n services: [...(scopeSession.services ?? [])],\n };\n});\n\nexport default extension;\n"],"mappings":";;;;;;;;AAiBA,MAAM,MAAY,OAA0B,YAC1C,OAAO,UAAU,aAAc,MAAwB,OAAO,IAAI;;AAEpE,MAAM,SAAY,KAAa,UAC7B,UAAU,KAAA,IAAY,CAAC,IAAI,GAAG,MAAM,MAAM;AAE5C,MAAa,YAAY,kBAAoC,kCAAkC,OAAO,YAAY;CAChH,MAAM,eAAe,MAAMA,iBAAY,OAAO;CAC9C,MAAM,iBAAiB;EAAE,GAAG;EAAS,MAAM,aAAa;CAAM;CAC9D,OAAO;EACL,GAAG,iBAAiB,YAAY;EAChC,QAAQ;GACN,GAAG,MAAM,iBAAiB,GAAGC,0BAAkB,cAAc,CAAkE;GAC/H,GAAG,MAAM,eAAe,GAAGC,wBAAgB,cAAc,CAAgE;GACzH,GAAG,MAAM,SAAS,GAAGC,mBAAW,cAAc,CAA0D;GACxG,GAAG,MAAM,iBAAiB,GAAGC,0BAAkB,cAAc,CAAkE;EACjI;EACA,UAAU,CAAC,GAAI,aAAa,YAAY,CAAC,CAAE;CAC7C;AACF,CAAC"}
@@ -1,23 +0,0 @@
1
- Object.defineProperties(exports, {
2
- __esModule: { value: true },
3
- [Symbol.toStringTag]: { value: "Module" }
4
- });
5
- const require_notify_server = require("../src/extensions/workspaces/sessions/(backend)/command/notify.server.cjs");
6
- let _agimon_ai_doompi_core_server_facet = require("@agimon-ai/doompi-core/server-facet");
7
- //#region generated/server.ts
8
- const at = (value, context) => typeof value === "function" ? value(context) : value;
9
- const via = (identity, value) => ({
10
- ...identity,
11
- ...value
12
- });
13
- const facet = (0, _agimon_ai_doompi_core_server_facet.defineServerPlugin)({
14
- name: "@agimon-ai/doompi-notification",
15
- session: (context) => ({ get commands() {
16
- return [via({ name: "notify" }, at(require_notify_server.default, context))];
17
- } })
18
- });
19
- //#endregion
20
- exports.default = facet;
21
- exports.facet = facet;
22
-
23
- //# sourceMappingURL=server.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.cjs","names":["defineServerPlugin","commandNotify"],"sources":["../../generated/server.ts"],"sourcesContent":["// Generated by @agimon-ai/doompi-build. Do not edit by hand.\nimport { defineServerPlugin, type DoomServerSessionPlugin } from '@agimon-ai/doompi-core/server-facet';\n\nimport commandNotify from '../src/extensions/workspaces/sessions/(backend)/command/notify.server';\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\nconst via = <T>(identity: Record<string, unknown>, value: unknown): T => ({ ...identity, ...(value as object) }) as T;\n\nexport const facet = defineServerPlugin({\n name: '@agimon-ai/doompi-notification',\n session: (context) => ({\n get commands(): DoomServerSessionPlugin['commands'] { return [via({ name: 'notify' }, at(commandNotify, context))]; },\n }),\n});\n\nexport default facet;\n"],"mappings":";;;;;;;AAMA,MAAM,MAAY,OAA0B,YAC1C,OAAO,UAAU,aAAc,MAAwB,OAAO,IAAI;AACpE,MAAM,OAAU,UAAmC,WAAuB;CAAE,GAAG;CAAU,GAAI;AAAiB;AAE9G,MAAa,SAAA,GAAQA,oCAAAA,mBAAAA,CAAmB;CACtC,MAAM;CACN,UAAU,aAAa,EACrB,IAAI,WAAgD;EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,SAAS,GAAG,GAAGC,sBAAAA,SAAe,OAAO,CAAC,CAAC;CAAG,EACtH;AACF,CAAC"}
@@ -1,5 +0,0 @@
1
- //#region generated/server.d.ts
2
- export declare const facet: import("@agimon-ai/doompi-core/server-facet").DoomServerFacet;
3
- //#endregion
4
- export { facet as default };
5
- //# sourceMappingURL=server.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.cts","names":[],"sources":["../../generated/server.ts"],"mappings":";qBAUa,qDAAK"}
@@ -1,5 +0,0 @@
1
- //#region generated/server.d.ts
2
- export declare const facet: import("@agimon-ai/doompi-core/server-facet").DoomServerFacet;
3
- //#endregion
4
- export { facet as default };
5
- //# sourceMappingURL=server.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.mts","names":[],"sources":["../../generated/server.ts"],"mappings":";qBAUa,qDAAK"}
@@ -1,18 +0,0 @@
1
- import notify_server_default from "../src/extensions/workspaces/sessions/(backend)/command/notify.server.mjs";
2
- import { defineServerPlugin } from "@agimon-ai/doompi-core/server-facet";
3
- //#region generated/server.ts
4
- const at = (value, context) => typeof value === "function" ? value(context) : value;
5
- const via = (identity, value) => ({
6
- ...identity,
7
- ...value
8
- });
9
- const facet = defineServerPlugin({
10
- name: "@agimon-ai/doompi-notification",
11
- session: (context) => ({ get commands() {
12
- return [via({ name: "notify" }, at(notify_server_default, context))];
13
- } })
14
- });
15
- //#endregion
16
- export { facet as default, facet };
17
-
18
- //# sourceMappingURL=server.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.mjs","names":["commandNotify"],"sources":["../../generated/server.ts"],"sourcesContent":["// Generated by @agimon-ai/doompi-build. Do not edit by hand.\nimport { defineServerPlugin, type DoomServerSessionPlugin } from '@agimon-ai/doompi-core/server-facet';\n\nimport commandNotify from '../src/extensions/workspaces/sessions/(backend)/command/notify.server';\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\nconst via = <T>(identity: Record<string, unknown>, value: unknown): T => ({ ...identity, ...(value as object) }) as T;\n\nexport const facet = defineServerPlugin({\n name: '@agimon-ai/doompi-notification',\n session: (context) => ({\n get commands(): DoomServerSessionPlugin['commands'] { return [via({ name: 'notify' }, at(commandNotify, context))]; },\n }),\n});\n\nexport default facet;\n"],"mappings":";;;AAMA,MAAM,MAAY,OAA0B,YAC1C,OAAO,UAAU,aAAc,MAAwB,OAAO,IAAI;AACpE,MAAM,OAAU,UAAmC,WAAuB;CAAE,GAAG;CAAU,GAAI;AAAiB;AAE9G,MAAa,QAAQ,mBAAmB;CACtC,MAAM;CACN,UAAU,aAAa,EACrB,IAAI,WAAgD;EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,SAAS,GAAG,GAAGA,uBAAe,OAAO,CAAC,CAAC;CAAG,EACtH;AACF,CAAC"}
package/dist/index.cjs DELETED
@@ -1,17 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_index = require("./src/services/shellTitleController/index.cjs");
3
- const require_index$1 = require("./src/services/notificationText/index.cjs");
4
- const require_index$2 = require("./src/services/systemNotification/index.cjs");
5
- const require_index$3 = require("./src/services/notificationPolicy/index.cjs");
6
- exports.askUserPromptBody = require_index$3.askUserPromptBody;
7
- exports.attentionNotification = require_index$1.attentionNotification;
8
- exports.createMainThreadTitleController = require_index.createMainThreadTitleController;
9
- exports.createWorkerTitleController = require_index.createWorkerTitleController;
10
- exports.notificationBody = require_index$1.notificationBody;
11
- exports.promptTitle = require_index$1.promptTitle;
12
- exports.sendSystemNotification = require_index$2.sendSystemNotification;
13
- exports.settledNotification = require_index$1.settledNotification;
14
- exports.shellTabTitle = require_index$1.shellTabTitle;
15
- exports.supportsShellTitle = require_index$3.supportsShellTitle;
16
- exports.warrantsAttentionNotification = require_index$3.warrantsAttentionNotification;
17
- exports.warrantsSettledNotification = require_index$3.warrantsSettledNotification;
package/dist/index.d.cts DELETED
@@ -1,6 +0,0 @@
1
- import { DesktopNotification, NotificationExtensionOptions, ShellTitleAction, ShellTitleCommand, ShellTitleController, WriteTitle } from "./src/types/notifications.cjs";
2
- import { createMainThreadTitleController, createWorkerTitleController } from "./src/services/shellTitleController/index.cjs";
3
- import { sendSystemNotification } from "./src/services/systemNotification/index.cjs";
4
- import { AttentionState, ShellSurface, askUserPromptBody, supportsShellTitle, warrantsAttentionNotification, warrantsSettledNotification } from "./src/services/notificationPolicy/index.cjs";
5
- import { ShellTabTitleInput, attentionNotification, notificationBody, promptTitle, settledNotification, shellTabTitle } from "./src/services/notificationText/index.cjs";
6
- export { type AttentionState, type DesktopNotification, type NotificationExtensionOptions, type ShellSurface, type ShellTabTitleInput, type ShellTitleAction, type ShellTitleCommand, type ShellTitleController, type WriteTitle, askUserPromptBody, attentionNotification, createMainThreadTitleController, createWorkerTitleController, notificationBody, promptTitle, sendSystemNotification, settledNotification, shellTabTitle, supportsShellTitle, warrantsAttentionNotification, warrantsSettledNotification };
package/dist/index.d.mts DELETED
@@ -1,6 +0,0 @@
1
- import { DesktopNotification, NotificationExtensionOptions, ShellTitleAction, ShellTitleCommand, ShellTitleController, WriteTitle } from "./src/types/notifications.mjs";
2
- import { createMainThreadTitleController, createWorkerTitleController } from "./src/services/shellTitleController/index.mjs";
3
- import { sendSystemNotification } from "./src/services/systemNotification/index.mjs";
4
- import { AttentionState, ShellSurface, askUserPromptBody, supportsShellTitle, warrantsAttentionNotification, warrantsSettledNotification } from "./src/services/notificationPolicy/index.mjs";
5
- import { ShellTabTitleInput, attentionNotification, notificationBody, promptTitle, settledNotification, shellTabTitle } from "./src/services/notificationText/index.mjs";
6
- export { type AttentionState, type DesktopNotification, type NotificationExtensionOptions, type ShellSurface, type ShellTabTitleInput, type ShellTitleAction, type ShellTitleCommand, type ShellTitleController, type WriteTitle, askUserPromptBody, attentionNotification, createMainThreadTitleController, createWorkerTitleController, notificationBody, promptTitle, sendSystemNotification, settledNotification, shellTabTitle, supportsShellTitle, warrantsAttentionNotification, warrantsSettledNotification };
package/dist/index.mjs DELETED
@@ -1,5 +0,0 @@
1
- import { createMainThreadTitleController, createWorkerTitleController } from "./src/services/shellTitleController/index.mjs";
2
- import { attentionNotification, notificationBody, promptTitle, settledNotification, shellTabTitle } from "./src/services/notificationText/index.mjs";
3
- import { sendSystemNotification } from "./src/services/systemNotification/index.mjs";
4
- import { askUserPromptBody, supportsShellTitle, warrantsAttentionNotification, warrantsSettledNotification } from "./src/services/notificationPolicy/index.mjs";
5
- export { askUserPromptBody, attentionNotification, createMainThreadTitleController, createWorkerTitleController, notificationBody, promptTitle, sendSystemNotification, settledNotification, shellTabTitle, supportsShellTitle, warrantsAttentionNotification, warrantsSettledNotification };
@@ -1,16 +0,0 @@
1
- //#region src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.ts
2
- const notificationCommand = (0, require("@agimon-ai/doompi-core/server-facet").defineCommand)({
3
- name: "notify",
4
- description: "Send a notification through the active headless client.",
5
- async execute(args, execution) {
6
- const body = args.trim();
7
- if (body) await execution.notify({
8
- body,
9
- level: "info"
10
- });
11
- }
12
- });
13
- //#endregion
14
- exports.notificationCommand = notificationCommand;
15
-
16
- //# sourceMappingURL=notificationCommand.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notificationCommand.cjs","names":["defineCommand"],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.ts"],"sourcesContent":["import { defineCommand } from '@agimon-ai/doompi-core/server-facet';\n\nexport const notificationCommand = defineCommand({\n name: 'notify',\n description: 'Send a notification through the active headless client.',\n async execute(args, execution) {\n const body = args.trim();\n if (body) await execution.notify({ body, level: 'info' });\n },\n});\n"],"mappings":";AAEA,MAAa,uBAAA,gDAAsBA,CAAAA,CAAAA,cAAAA,CAAc;CAC/C,MAAM;CACN,aAAa;CACb,MAAM,QAAQ,MAAM,WAAW;EAC7B,MAAM,OAAO,KAAK,KAAK;EACvB,IAAI,MAAM,MAAM,UAAU,OAAO;GAAE;GAAM,OAAO;EAAO,CAAC;CAC1D;AACF,CAAC"}
@@ -1,17 +0,0 @@
1
- import { defineCommand } from "@agimon-ai/doompi-core/server-facet";
2
- //#region src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.ts
3
- const notificationCommand = defineCommand({
4
- name: "notify",
5
- description: "Send a notification through the active headless client.",
6
- async execute(args, execution) {
7
- const body = args.trim();
8
- if (body) await execution.notify({
9
- body,
10
- level: "info"
11
- });
12
- }
13
- });
14
- //#endregion
15
- export { notificationCommand };
16
-
17
- //# sourceMappingURL=notificationCommand.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notificationCommand.mjs","names":[],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/_lib/notificationCommand.ts"],"sourcesContent":["import { defineCommand } from '@agimon-ai/doompi-core/server-facet';\n\nexport const notificationCommand = defineCommand({\n name: 'notify',\n description: 'Send a notification through the active headless client.',\n async execute(args, execution) {\n const body = args.trim();\n if (body) await execution.notify({ body, level: 'info' });\n },\n});\n"],"mappings":";;AAEA,MAAa,sBAAsB,cAAc;CAC/C,MAAM;CACN,aAAa;CACb,MAAM,QAAQ,MAAM,WAAW;EAC7B,MAAM,OAAO,KAAK,KAAK;EACvB,IAAI,MAAM,MAAM,UAAU,OAAO;GAAE;GAAM,OAAO;EAAO,CAAC;CAC1D;AACF,CAAC"}
@@ -1,7 +0,0 @@
1
- const require_notificationCommand = require("../_lib/notificationCommand.cjs");
2
- //#region src/extensions/workspaces/sessions/(backend)/command/notify.server.ts
3
- var notify_server_default = (0, require("@agimon-ai/doompi-core/extension-file").defineServerCommand)(require_notificationCommand.notificationCommand);
4
- //#endregion
5
- exports.default = notify_server_default;
6
-
7
- //# sourceMappingURL=notify.server.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notify.server.cjs","names":["defineServerCommand","notificationCommand"],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/command/notify.server.ts"],"sourcesContent":["import { defineServerCommand } from '@agimon-ai/doompi-core/extension-file';\n\nimport { notificationCommand } from '../_lib/notificationCommand';\n\nexport default defineServerCommand(notificationCommand);\n"],"mappings":";;AAIA,IAAA,yBAAA,kDAAeA,CAAAA,CAAAA,oBAAAA,CAAoBC,4BAAAA,mBAAmB"}
@@ -1,8 +0,0 @@
1
- import { notificationCommand } from "../_lib/notificationCommand.mjs";
2
- import { defineServerCommand } from "@agimon-ai/doompi-core/extension-file";
3
- //#region src/extensions/workspaces/sessions/(backend)/command/notify.server.ts
4
- var notify_server_default = defineServerCommand(notificationCommand);
5
- //#endregion
6
- export { notify_server_default as default };
7
-
8
- //# sourceMappingURL=notify.server.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notify.server.mjs","names":[],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/command/notify.server.ts"],"sourcesContent":["import { defineServerCommand } from '@agimon-ai/doompi-core/extension-file';\n\nimport { notificationCommand } from '../_lib/notificationCommand';\n\nexport default defineServerCommand(notificationCommand);\n"],"mappings":";;;AAIA,IAAA,wBAAe,oBAAoB,mBAAmB"}
@@ -1,6 +0,0 @@
1
- //#region src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.ts
2
- var agentSettled_cli_default = (0, require("@agimon-ai/doompi-core/extension-file").defineRoutedContribution)((context) => context.root?.events?.agent_settled, { cardinality: "optional" });
3
- //#endregion
4
- exports.default = agentSettled_cli_default;
5
-
6
- //# sourceMappingURL=agentSettled.cli.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentSettled.cli.cjs","names":["defineRoutedContribution"],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.ts"],"sourcesContent":["import { defineRoutedContribution } from '@agimon-ai/doompi-core/extension-file';\nimport type { WithRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../../services/notificationRuntime';\nexport default defineRoutedContribution(\n (context: WithRoot<PiPluginContext<unknown>, ReturnType<typeof createNotificationRuntime> | undefined>) =>\n context.root?.events?.agent_settled,\n { cardinality: 'optional' },\n);\n"],"mappings":";AAKA,IAAA,4BAAA,kDAAeA,CAAAA,CAAAA,yBAAAA,EACZ,YACC,QAAQ,MAAM,QAAQ,eACxB,EAAE,aAAa,WAAW,CAC5B"}
@@ -1,7 +0,0 @@
1
- import { defineRoutedContribution } from "@agimon-ai/doompi-core/extension-file";
2
- //#region src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.ts
3
- var agentSettled_cli_default = defineRoutedContribution((context) => context.root?.events?.agent_settled, { cardinality: "optional" });
4
- //#endregion
5
- export { agentSettled_cli_default as default };
6
-
7
- //# sourceMappingURL=agentSettled.cli.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentSettled.cli.mjs","names":[],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/hook/agentSettled.cli.ts"],"sourcesContent":["import { defineRoutedContribution } from '@agimon-ai/doompi-core/extension-file';\nimport type { WithRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../../services/notificationRuntime';\nexport default defineRoutedContribution(\n (context: WithRoot<PiPluginContext<unknown>, ReturnType<typeof createNotificationRuntime> | undefined>) =>\n context.root?.events?.agent_settled,\n { cardinality: 'optional' },\n);\n"],"mappings":";;AAKA,IAAA,2BAAe,0BACZ,YACC,QAAQ,MAAM,QAAQ,eACxB,EAAE,aAAa,WAAW,CAC5B"}
@@ -1,6 +0,0 @@
1
- //#region src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.ts
2
- var agentStart_cli_default = (0, require("@agimon-ai/doompi-core/extension-file").defineRoutedContribution)((context) => context.root?.events?.agent_start, { cardinality: "optional" });
3
- //#endregion
4
- exports.default = agentStart_cli_default;
5
-
6
- //# sourceMappingURL=agentStart.cli.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentStart.cli.cjs","names":["defineRoutedContribution"],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.ts"],"sourcesContent":["import { defineRoutedContribution } from '@agimon-ai/doompi-core/extension-file';\nimport type { WithRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../../services/notificationRuntime';\nexport default defineRoutedContribution(\n (context: WithRoot<PiPluginContext<unknown>, ReturnType<typeof createNotificationRuntime> | undefined>) =>\n context.root?.events?.agent_start,\n { cardinality: 'optional' },\n);\n"],"mappings":";AAKA,IAAA,0BAAA,kDAAeA,CAAAA,CAAAA,yBAAAA,EACZ,YACC,QAAQ,MAAM,QAAQ,aACxB,EAAE,aAAa,WAAW,CAC5B"}
@@ -1,7 +0,0 @@
1
- import { defineRoutedContribution } from "@agimon-ai/doompi-core/extension-file";
2
- //#region src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.ts
3
- var agentStart_cli_default = defineRoutedContribution((context) => context.root?.events?.agent_start, { cardinality: "optional" });
4
- //#endregion
5
- export { agentStart_cli_default as default };
6
-
7
- //# sourceMappingURL=agentStart.cli.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agentStart.cli.mjs","names":[],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/hook/agentStart.cli.ts"],"sourcesContent":["import { defineRoutedContribution } from '@agimon-ai/doompi-core/extension-file';\nimport type { WithRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../../services/notificationRuntime';\nexport default defineRoutedContribution(\n (context: WithRoot<PiPluginContext<unknown>, ReturnType<typeof createNotificationRuntime> | undefined>) =>\n context.root?.events?.agent_start,\n { cardinality: 'optional' },\n);\n"],"mappings":";;AAKA,IAAA,yBAAe,0BACZ,YACC,QAAQ,MAAM,QAAQ,aACxB,EAAE,aAAa,WAAW,CAC5B"}
@@ -1,6 +0,0 @@
1
- //#region src/extensions/workspaces/sessions/(backend)/hook/input.cli.ts
2
- var input_cli_default = (0, require("@agimon-ai/doompi-core/extension-file").defineRoutedContribution)((context) => context.root?.events?.input, { cardinality: "optional" });
3
- //#endregion
4
- exports.default = input_cli_default;
5
-
6
- //# sourceMappingURL=input.cli.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.cli.cjs","names":["defineRoutedContribution"],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/hook/input.cli.ts"],"sourcesContent":["import { defineRoutedContribution } from '@agimon-ai/doompi-core/extension-file';\nimport type { WithRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../../services/notificationRuntime';\nexport default defineRoutedContribution(\n (context: WithRoot<PiPluginContext<unknown>, ReturnType<typeof createNotificationRuntime> | undefined>) =>\n context.root?.events?.input,\n { cardinality: 'optional' },\n);\n"],"mappings":";AAKA,IAAA,qBAAA,kDAAeA,CAAAA,CAAAA,yBAAAA,EACZ,YACC,QAAQ,MAAM,QAAQ,OACxB,EAAE,aAAa,WAAW,CAC5B"}
@@ -1,7 +0,0 @@
1
- import { defineRoutedContribution } from "@agimon-ai/doompi-core/extension-file";
2
- //#region src/extensions/workspaces/sessions/(backend)/hook/input.cli.ts
3
- var input_cli_default = defineRoutedContribution((context) => context.root?.events?.input, { cardinality: "optional" });
4
- //#endregion
5
- export { input_cli_default as default };
6
-
7
- //# sourceMappingURL=input.cli.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.cli.mjs","names":[],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/hook/input.cli.ts"],"sourcesContent":["import { defineRoutedContribution } from '@agimon-ai/doompi-core/extension-file';\nimport type { WithRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../../services/notificationRuntime';\nexport default defineRoutedContribution(\n (context: WithRoot<PiPluginContext<unknown>, ReturnType<typeof createNotificationRuntime> | undefined>) =>\n context.root?.events?.input,\n { cardinality: 'optional' },\n);\n"],"mappings":";;AAKA,IAAA,oBAAe,0BACZ,YACC,QAAQ,MAAM,QAAQ,OACxB,EAAE,aAAa,WAAW,CAC5B"}
@@ -1,6 +0,0 @@
1
- //#region src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.ts
2
- var sessionStart_cli_default = (0, require("@agimon-ai/doompi-core/extension-file").defineRoutedContribution)((context) => context.root?.events?.session_start, { cardinality: "optional" });
3
- //#endregion
4
- exports.default = sessionStart_cli_default;
5
-
6
- //# sourceMappingURL=sessionStart.cli.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessionStart.cli.cjs","names":["defineRoutedContribution"],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.ts"],"sourcesContent":["import { defineRoutedContribution } from '@agimon-ai/doompi-core/extension-file';\nimport type { WithRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../../services/notificationRuntime';\nexport default defineRoutedContribution(\n (context: WithRoot<PiPluginContext<unknown>, ReturnType<typeof createNotificationRuntime> | undefined>) =>\n context.root?.events?.session_start,\n { cardinality: 'optional' },\n);\n"],"mappings":";AAKA,IAAA,4BAAA,kDAAeA,CAAAA,CAAAA,yBAAAA,EACZ,YACC,QAAQ,MAAM,QAAQ,eACxB,EAAE,aAAa,WAAW,CAC5B"}
@@ -1,7 +0,0 @@
1
- import { defineRoutedContribution } from "@agimon-ai/doompi-core/extension-file";
2
- //#region src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.ts
3
- var sessionStart_cli_default = defineRoutedContribution((context) => context.root?.events?.session_start, { cardinality: "optional" });
4
- //#endregion
5
- export { sessionStart_cli_default as default };
6
-
7
- //# sourceMappingURL=sessionStart.cli.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessionStart.cli.mjs","names":[],"sources":["../../../../../../../src/extensions/workspaces/sessions/(backend)/hook/sessionStart.cli.ts"],"sourcesContent":["import { defineRoutedContribution } from '@agimon-ai/doompi-core/extension-file';\nimport type { WithRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../../services/notificationRuntime';\nexport default defineRoutedContribution(\n (context: WithRoot<PiPluginContext<unknown>, ReturnType<typeof createNotificationRuntime> | undefined>) =>\n context.root?.events?.session_start,\n { cardinality: 'optional' },\n);\n"],"mappings":";;AAKA,IAAA,2BAAe,0BACZ,YACC,QAAQ,MAAM,QAAQ,eACxB,EAAE,aAAa,WAAW,CAC5B"}
@@ -1,23 +0,0 @@
1
- const require_index = require("../../../../services/notificationRuntime/index.cjs");
2
- let _agimon_ai_doompi_core_extension_file = require("@agimon-ai/doompi-core/extension-file");
3
- let _agimon_ai_doompi_core_child_process = require("@agimon-ai/doompi-core/child-process");
4
- //#region src/extensions/workspaces/sessions/(backend)/root.cli.ts
5
- var root_cli_default = (0, _agimon_ai_doompi_core_extension_file.defineRoot)((context) => {
6
- if ((context.options?.environment ?? process.env)[_agimon_ai_doompi_core_child_process.SUBAGENT_CHILD_ENV]) return { value: void 0 };
7
- if (!context.runtime) throw new Error("This Pi extension requires the Cordis runtime metadata.");
8
- const runtime = require_index.createNotificationRuntime({
9
- pi: context.pi,
10
- options: context.options ?? {},
11
- generation: `${context.runtime.generation}:notification`
12
- });
13
- return {
14
- value: runtime,
15
- services: runtime.services,
16
- onStop: runtime.onStop,
17
- onDispose: runtime.onDispose
18
- };
19
- });
20
- //#endregion
21
- exports.default = root_cli_default;
22
-
23
- //# sourceMappingURL=root.cli.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"root.cli.cjs","names":["defineRoot","SUBAGENT_CHILD_ENV","createNotificationRuntime"],"sources":["../../../../../../src/extensions/workspaces/sessions/(backend)/root.cli.ts"],"sourcesContent":["import { SUBAGENT_CHILD_ENV } from '@agimon-ai/doompi-core/child-process';\nimport { defineRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../services/notificationRuntime';\nimport type { NotificationExtensionOptions } from '../../../../types/notifications';\nexport default defineRoot((context: PiPluginContext<NotificationExtensionOptions>) => {\n if ((context.options?.environment ?? process.env)[SUBAGENT_CHILD_ENV]) return { value: undefined };\n if (!context.runtime) throw new Error('This Pi extension requires the Cordis runtime metadata.');\n const runtime = createNotificationRuntime({\n pi: context.pi,\n options: context.options ?? {},\n generation: `${context.runtime.generation}:notification`,\n });\n return { value: runtime, services: runtime.services, onStop: runtime.onStop, onDispose: runtime.onDispose };\n});\n"],"mappings":";;;;AAMA,IAAA,oBAAA,GAAeA,sCAAAA,WAAAA,EAAY,YAA2D;CACpF,KAAK,QAAQ,SAAS,eAAe,QAAQ,IAAA,CAAKC,qCAAAA,qBAAqB,OAAO,EAAE,OAAO,KAAA,EAAU;CACjG,IAAI,CAAC,QAAQ,SAAS,MAAM,IAAI,MAAM,yDAAyD;CAC/F,MAAM,UAAUC,cAAAA,0BAA0B;EACxC,IAAI,QAAQ;EACZ,SAAS,QAAQ,WAAW,CAAC;EAC7B,YAAY,GAAG,QAAQ,QAAQ,WAAW;CAC5C,CAAC;CACD,OAAO;EAAE,OAAO;EAAS,UAAU,QAAQ;EAAU,QAAQ,QAAQ;EAAQ,WAAW,QAAQ;CAAU;AAC5G,CAAC"}
@@ -1,23 +0,0 @@
1
- import { createNotificationRuntime } from "../../../../services/notificationRuntime/index.mjs";
2
- import { defineRoot } from "@agimon-ai/doompi-core/extension-file";
3
- import { SUBAGENT_CHILD_ENV } from "@agimon-ai/doompi-core/child-process";
4
- //#region src/extensions/workspaces/sessions/(backend)/root.cli.ts
5
- var root_cli_default = defineRoot((context) => {
6
- if ((context.options?.environment ?? process.env)[SUBAGENT_CHILD_ENV]) return { value: void 0 };
7
- if (!context.runtime) throw new Error("This Pi extension requires the Cordis runtime metadata.");
8
- const runtime = createNotificationRuntime({
9
- pi: context.pi,
10
- options: context.options ?? {},
11
- generation: `${context.runtime.generation}:notification`
12
- });
13
- return {
14
- value: runtime,
15
- services: runtime.services,
16
- onStop: runtime.onStop,
17
- onDispose: runtime.onDispose
18
- };
19
- });
20
- //#endregion
21
- export { root_cli_default as default };
22
-
23
- //# sourceMappingURL=root.cli.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"root.cli.mjs","names":[],"sources":["../../../../../../src/extensions/workspaces/sessions/(backend)/root.cli.ts"],"sourcesContent":["import { SUBAGENT_CHILD_ENV } from '@agimon-ai/doompi-core/child-process';\nimport { defineRoot } from '@agimon-ai/doompi-core/extension-file';\nimport type { PiPluginContext } from '@agimon-ai/doompi-core/pi-extension';\n\nimport { createNotificationRuntime } from '../../../../services/notificationRuntime';\nimport type { NotificationExtensionOptions } from '../../../../types/notifications';\nexport default defineRoot((context: PiPluginContext<NotificationExtensionOptions>) => {\n if ((context.options?.environment ?? process.env)[SUBAGENT_CHILD_ENV]) return { value: undefined };\n if (!context.runtime) throw new Error('This Pi extension requires the Cordis runtime metadata.');\n const runtime = createNotificationRuntime({\n pi: context.pi,\n options: context.options ?? {},\n generation: `${context.runtime.generation}:notification`,\n });\n return { value: runtime, services: runtime.services, onStop: runtime.onStop, onDispose: runtime.onDispose };\n});\n"],"mappings":";;;;AAMA,IAAA,mBAAe,YAAY,YAA2D;CACpF,KAAK,QAAQ,SAAS,eAAe,QAAQ,IAAA,CAAK,qBAAqB,OAAO,EAAE,OAAO,KAAA,EAAU;CACjG,IAAI,CAAC,QAAQ,SAAS,MAAM,IAAI,MAAM,yDAAyD;CAC/F,MAAM,UAAU,0BAA0B;EACxC,IAAI,QAAQ;EACZ,SAAS,QAAQ,WAAW,CAAC;EAC7B,YAAY,GAAG,QAAQ,QAAQ,WAAW;CAC5C,CAAC;CACD,OAAO;EAAE,OAAO;EAAS,UAAU,QAAQ;EAAU,QAAQ,QAAQ;EAAQ,WAAW,QAAQ;CAAU;AAC5G,CAAC"}
@@ -1,13 +0,0 @@
1
- //#region src/schemas/apiContracts.ts
2
- /** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */
3
- const apiContracts = (0, require("@agimon-ai/doompi-core/api-contracts").defineApiContract)({
4
- version: 1,
5
- http: [],
6
- sockets: [],
7
- dynamic: []
8
- });
9
- //#endregion
10
- exports.apiContracts = apiContracts;
11
- exports.default = apiContracts;
12
-
13
- //# sourceMappingURL=apiContracts.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiContracts.cjs","names":["defineApiContract"],"sources":["../../../src/schemas/apiContracts.ts"],"sourcesContent":["import { defineApiContract } from '@agimon-ai/doompi-core/api-contracts';\n\n/** This facet contributes agent tools, commands or lifecycle only, with no separate HTTP or socket surface. */\nexport const apiContracts = defineApiContract({ version: 1, http: [], sockets: [], dynamic: [] });\nexport default apiContracts;\n"],"mappings":";;AAGA,MAAa,gBAAA,iDAAeA,CAAAA,CAAAA,kBAAAA,CAAkB;CAAE,SAAS;CAAG,MAAM,CAAC;CAAG,SAAS,CAAC;CAAG,SAAS,CAAC;AAAE,CAAC"}