@aelinrezende/pipa-core 1.0.0
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/README.md +131 -0
- package/extensions/pipa/constants/backlog.d.ts +49 -0
- package/extensions/pipa/constants/backlog.d.ts.map +1 -0
- package/extensions/pipa/constants/compactor.d.ts +7 -0
- package/extensions/pipa/constants/compactor.d.ts.map +1 -0
- package/extensions/pipa/constants/docs.d.ts +46 -0
- package/extensions/pipa/constants/docs.d.ts.map +1 -0
- package/extensions/pipa/constants/file.d.ts +15 -0
- package/extensions/pipa/constants/file.d.ts.map +1 -0
- package/extensions/pipa/constants/pipa.d.ts +6 -0
- package/extensions/pipa/constants/pipa.d.ts.map +1 -0
- package/extensions/pipa/constants/store.d.ts +6 -0
- package/extensions/pipa/constants/store.d.ts.map +1 -0
- package/extensions/pipa/constants/task.d.ts +62 -0
- package/extensions/pipa/constants/task.d.ts.map +1 -0
- package/extensions/pipa/constants/teammate.d.ts +25 -0
- package/extensions/pipa/constants/teammate.d.ts.map +1 -0
- package/extensions/pipa/constants/todo.d.ts +21 -0
- package/extensions/pipa/constants/todo.d.ts.map +1 -0
- package/extensions/pipa/core/apply-features.d.ts +4 -0
- package/extensions/pipa/core/apply-features.d.ts.map +1 -0
- package/extensions/pipa/core/config.d.ts +3 -0
- package/extensions/pipa/core/config.d.ts.map +1 -0
- package/extensions/pipa/core/decorators/events.d.ts +15 -0
- package/extensions/pipa/core/decorators/events.d.ts.map +1 -0
- package/extensions/pipa/core/errors/pipa-exception.d.ts +17 -0
- package/extensions/pipa/core/errors/pipa-exception.d.ts.map +1 -0
- package/extensions/pipa/core/events.types.d.ts +72 -0
- package/extensions/pipa/core/events.types.d.ts.map +1 -0
- package/extensions/pipa/core/pipa.d.ts +19 -0
- package/extensions/pipa/core/pipa.d.ts.map +1 -0
- package/extensions/pipa/core/toast.d.ts +13 -0
- package/extensions/pipa/core/toast.d.ts.map +1 -0
- package/extensions/pipa/cross-cutting/resource-loader.d.ts +8 -0
- package/extensions/pipa/cross-cutting/resource-loader.d.ts.map +1 -0
- package/extensions/pipa/cross-cutting/store.d.ts +5 -0
- package/extensions/pipa/cross-cutting/store.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/backlog.definitions.d.ts +67 -0
- package/extensions/pipa/features/backlog/backlog.definitions.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/backlog.entity.d.ts +43 -0
- package/extensions/pipa/features/backlog/backlog.entity.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/backlog.feature.d.ts +14 -0
- package/extensions/pipa/features/backlog/backlog.feature.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/backlog.hub.d.ts +25 -0
- package/extensions/pipa/features/backlog/backlog.hub.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/hooks/guard.d.ts +13 -0
- package/extensions/pipa/features/backlog/hooks/guard.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/hooks/index.d.ts +2 -0
- package/extensions/pipa/features/backlog/hooks/index.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/hub/core.d.ts +50 -0
- package/extensions/pipa/features/backlog/hub/core.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/hub/index.d.ts +4 -0
- package/extensions/pipa/features/backlog/hub/index.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/hub/state.d.ts +48 -0
- package/extensions/pipa/features/backlog/hub/state.d.ts.map +1 -0
- package/extensions/pipa/features/backlog/hub/validator.d.ts +14 -0
- package/extensions/pipa/features/backlog/hub/validator.d.ts.map +1 -0
- package/extensions/pipa/features/base-feature.d.ts +13 -0
- package/extensions/pipa/features/base-feature.d.ts.map +1 -0
- package/extensions/pipa/features/docs/docs.definitions.d.ts +73 -0
- package/extensions/pipa/features/docs/docs.definitions.d.ts.map +1 -0
- package/extensions/pipa/features/docs/docs.entity.d.ts +27 -0
- package/extensions/pipa/features/docs/docs.entity.d.ts.map +1 -0
- package/extensions/pipa/features/docs/docs.feature.d.ts +13 -0
- package/extensions/pipa/features/docs/docs.feature.d.ts.map +1 -0
- package/extensions/pipa/features/docs/docs.hub.d.ts +22 -0
- package/extensions/pipa/features/docs/docs.hub.d.ts.map +1 -0
- package/extensions/pipa/features/docs/hub/core.d.ts +38 -0
- package/extensions/pipa/features/docs/hub/core.d.ts.map +1 -0
- package/extensions/pipa/features/docs/hub/index.d.ts +4 -0
- package/extensions/pipa/features/docs/hub/index.d.ts.map +1 -0
- package/extensions/pipa/features/docs/hub/state.d.ts +34 -0
- package/extensions/pipa/features/docs/hub/state.d.ts.map +1 -0
- package/extensions/pipa/features/docs/hub/validator.d.ts +19 -0
- package/extensions/pipa/features/docs/hub/validator.d.ts.map +1 -0
- package/extensions/pipa/features/onboarding/index.d.ts +2 -0
- package/extensions/pipa/features/onboarding/index.d.ts.map +1 -0
- package/extensions/pipa/features/onboarding/onboarding.feature.d.ts +19 -0
- package/extensions/pipa/features/onboarding/onboarding.feature.d.ts.map +1 -0
- package/extensions/pipa/features/onboarding/prompts.d.ts +8 -0
- package/extensions/pipa/features/onboarding/prompts.d.ts.map +1 -0
- package/extensions/pipa/features/permission/hooks/custom-tools.d.ts +12 -0
- package/extensions/pipa/features/permission/hooks/custom-tools.d.ts.map +1 -0
- package/extensions/pipa/features/permission/hooks/index.d.ts +3 -0
- package/extensions/pipa/features/permission/hooks/index.d.ts.map +1 -0
- package/extensions/pipa/features/permission/hooks/terminal.d.ts +12 -0
- package/extensions/pipa/features/permission/hooks/terminal.d.ts.map +1 -0
- package/extensions/pipa/features/permission/permission.definitions.d.ts +16 -0
- package/extensions/pipa/features/permission/permission.definitions.d.ts.map +1 -0
- package/extensions/pipa/features/permission/permission.feature.d.ts +13 -0
- package/extensions/pipa/features/permission/permission.feature.d.ts.map +1 -0
- package/extensions/pipa/features/provider/custom.feature.d.ts +8 -0
- package/extensions/pipa/features/provider/custom.feature.d.ts.map +1 -0
- package/extensions/pipa/features/reminder-cleaner/hooks/cleaner.d.ts +14 -0
- package/extensions/pipa/features/reminder-cleaner/hooks/cleaner.d.ts.map +1 -0
- package/extensions/pipa/features/reminder-cleaner/reminder-cleaner.feature.d.ts +12 -0
- package/extensions/pipa/features/reminder-cleaner/reminder-cleaner.feature.d.ts.map +1 -0
- package/extensions/pipa/features/task/hooks/guard.d.ts +14 -0
- package/extensions/pipa/features/task/hooks/guard.d.ts.map +1 -0
- package/extensions/pipa/features/task/hooks/index.d.ts +4 -0
- package/extensions/pipa/features/task/hooks/index.d.ts.map +1 -0
- package/extensions/pipa/features/task/hooks/reminders.d.ts +15 -0
- package/extensions/pipa/features/task/hooks/reminders.d.ts.map +1 -0
- package/extensions/pipa/features/task/hooks/tui-register.d.ts +8 -0
- package/extensions/pipa/features/task/hooks/tui-register.d.ts.map +1 -0
- package/extensions/pipa/features/task/hub/core.d.ts +60 -0
- package/extensions/pipa/features/task/hub/core.d.ts.map +1 -0
- package/extensions/pipa/features/task/hub/index.d.ts +5 -0
- package/extensions/pipa/features/task/hub/index.d.ts.map +1 -0
- package/extensions/pipa/features/task/hub/squad.d.ts +37 -0
- package/extensions/pipa/features/task/hub/squad.d.ts.map +1 -0
- package/extensions/pipa/features/task/hub/state.d.ts +104 -0
- package/extensions/pipa/features/task/hub/state.d.ts.map +1 -0
- package/extensions/pipa/features/task/hub/validator.d.ts +50 -0
- package/extensions/pipa/features/task/hub/validator.d.ts.map +1 -0
- package/extensions/pipa/features/task/task.definitions.d.ts +86 -0
- package/extensions/pipa/features/task/task.definitions.d.ts.map +1 -0
- package/extensions/pipa/features/task/task.entity.d.ts +61 -0
- package/extensions/pipa/features/task/task.entity.d.ts.map +1 -0
- package/extensions/pipa/features/task/task.feature.d.ts +10 -0
- package/extensions/pipa/features/task/task.feature.d.ts.map +1 -0
- package/extensions/pipa/features/task/task.hub.d.ts +24 -0
- package/extensions/pipa/features/task/task.hub.d.ts.map +1 -0
- package/extensions/pipa/features/task/tui/index.d.ts +2 -0
- package/extensions/pipa/features/task/tui/index.d.ts.map +1 -0
- package/extensions/pipa/features/task/tui/task-tree.widget.d.ts +19 -0
- package/extensions/pipa/features/task/tui/task-tree.widget.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hooks/execution-context.d.ts +12 -0
- package/extensions/pipa/features/teammate/hooks/execution-context.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hooks/index.d.ts +8 -0
- package/extensions/pipa/features/teammate/hooks/index.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hooks/lifecycle.d.ts +17 -0
- package/extensions/pipa/features/teammate/hooks/lifecycle.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hooks/observability.d.ts +17 -0
- package/extensions/pipa/features/teammate/hooks/observability.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hooks/reminders.d.ts +19 -0
- package/extensions/pipa/features/teammate/hooks/reminders.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hooks/session-interval.d.ts +56 -0
- package/extensions/pipa/features/teammate/hooks/session-interval.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hooks/shutdown-context.d.ts +10 -0
- package/extensions/pipa/features/teammate/hooks/shutdown-context.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hooks/tui-register.d.ts +8 -0
- package/extensions/pipa/features/teammate/hooks/tui-register.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hub/core.d.ts +36 -0
- package/extensions/pipa/features/teammate/hub/core.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hub/exchange.d.ts +35 -0
- package/extensions/pipa/features/teammate/hub/exchange.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hub/frontmatter.d.ts +19 -0
- package/extensions/pipa/features/teammate/hub/frontmatter.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hub/index.d.ts +6 -0
- package/extensions/pipa/features/teammate/hub/index.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hub/state.d.ts +39 -0
- package/extensions/pipa/features/teammate/hub/state.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/hub/validator.d.ts +21 -0
- package/extensions/pipa/features/teammate/hub/validator.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/prompts.d.ts +13 -0
- package/extensions/pipa/features/teammate/prompts.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/teammate.definitions.d.ts +42 -0
- package/extensions/pipa/features/teammate/teammate.definitions.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/teammate.entity.d.ts +68 -0
- package/extensions/pipa/features/teammate/teammate.entity.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/teammate.feature.d.ts +12 -0
- package/extensions/pipa/features/teammate/teammate.feature.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/teammate.hub.d.ts +24 -0
- package/extensions/pipa/features/teammate/teammate.hub.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/tui/index.d.ts +3 -0
- package/extensions/pipa/features/teammate/tui/index.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/tui/teammate-tree.widget.d.ts +23 -0
- package/extensions/pipa/features/teammate/tui/teammate-tree.widget.d.ts.map +1 -0
- package/extensions/pipa/features/teammate/tui/tui-animator.mixin.d.ts +16 -0
- package/extensions/pipa/features/teammate/tui/tui-animator.mixin.d.ts.map +1 -0
- package/extensions/pipa/features/todo/hooks/index.d.ts +2 -0
- package/extensions/pipa/features/todo/hooks/index.d.ts.map +1 -0
- package/extensions/pipa/features/todo/hooks/reminders.d.ts +16 -0
- package/extensions/pipa/features/todo/hooks/reminders.d.ts.map +1 -0
- package/extensions/pipa/features/todo/hub/core.d.ts +35 -0
- package/extensions/pipa/features/todo/hub/core.d.ts.map +1 -0
- package/extensions/pipa/features/todo/hub/index.d.ts +4 -0
- package/extensions/pipa/features/todo/hub/index.d.ts.map +1 -0
- package/extensions/pipa/features/todo/hub/state.d.ts +40 -0
- package/extensions/pipa/features/todo/hub/state.d.ts.map +1 -0
- package/extensions/pipa/features/todo/hub/validator.d.ts +24 -0
- package/extensions/pipa/features/todo/hub/validator.d.ts.map +1 -0
- package/extensions/pipa/features/todo/todo.definitions.d.ts +31 -0
- package/extensions/pipa/features/todo/todo.definitions.d.ts.map +1 -0
- package/extensions/pipa/features/todo/todo.entity.d.ts +44 -0
- package/extensions/pipa/features/todo/todo.entity.d.ts.map +1 -0
- package/extensions/pipa/features/todo/todo.feature.d.ts +18 -0
- package/extensions/pipa/features/todo/todo.feature.d.ts.map +1 -0
- package/extensions/pipa/features/todo/todo.hub.d.ts +24 -0
- package/extensions/pipa/features/todo/todo.hub.d.ts.map +1 -0
- package/extensions/pipa/features/tool-result-compactor/hooks/compactor.d.ts +22 -0
- package/extensions/pipa/features/tool-result-compactor/hooks/compactor.d.ts.map +1 -0
- package/extensions/pipa/features/tool-result-compactor/tool-result-compactor.feature.d.ts +12 -0
- package/extensions/pipa/features/tool-result-compactor/tool-result-compactor.feature.d.ts.map +1 -0
- package/extensions/pipa/index.d.ts +5 -0
- package/extensions/pipa/index.d.ts.map +1 -0
- package/extensions/pipa/interfaces/common.d.ts +80 -0
- package/extensions/pipa/interfaces/common.d.ts.map +1 -0
- package/extensions/pipa/interfaces/config.d.ts +37 -0
- package/extensions/pipa/interfaces/config.d.ts.map +1 -0
- package/extensions/pipa/interfaces/index.d.ts +7 -0
- package/extensions/pipa/interfaces/index.d.ts.map +1 -0
- package/extensions/pipa/interfaces/intercom.d.ts +10 -0
- package/extensions/pipa/interfaces/intercom.d.ts.map +1 -0
- package/extensions/pipa/interfaces/permission.d.ts +10 -0
- package/extensions/pipa/interfaces/permission.d.ts.map +1 -0
- package/extensions/pipa/interfaces/pipa.d.ts +28 -0
- package/extensions/pipa/interfaces/pipa.d.ts.map +1 -0
- package/extensions/pipa/interfaces/reminder.d.ts +15 -0
- package/extensions/pipa/interfaces/reminder.d.ts.map +1 -0
- package/extensions/pipa/interfaces/string.d.ts +15 -0
- package/extensions/pipa/interfaces/string.d.ts.map +1 -0
- package/extensions/pipa/lib/array.d.ts +17 -0
- package/extensions/pipa/lib/array.d.ts.map +1 -0
- package/extensions/pipa/lib/doc.d.ts +30 -0
- package/extensions/pipa/lib/doc.d.ts.map +1 -0
- package/extensions/pipa/lib/file.d.ts +7 -0
- package/extensions/pipa/lib/file.d.ts.map +1 -0
- package/extensions/pipa/lib/format-tokens.d.ts +6 -0
- package/extensions/pipa/lib/format-tokens.d.ts.map +1 -0
- package/extensions/pipa/lib/graph.d.ts +16 -0
- package/extensions/pipa/lib/graph.d.ts.map +1 -0
- package/extensions/pipa/lib/index.d.ts +20 -0
- package/extensions/pipa/lib/index.d.ts.map +1 -0
- package/extensions/pipa/lib/llm.d.ts +33 -0
- package/extensions/pipa/lib/llm.d.ts.map +1 -0
- package/extensions/pipa/lib/markdown.d.ts +13 -0
- package/extensions/pipa/lib/markdown.d.ts.map +1 -0
- package/extensions/pipa/lib/onboarding.d.ts +17 -0
- package/extensions/pipa/lib/onboarding.d.ts.map +1 -0
- package/extensions/pipa/lib/paths.d.ts +22 -0
- package/extensions/pipa/lib/paths.d.ts.map +1 -0
- package/extensions/pipa/lib/permission.d.ts +22 -0
- package/extensions/pipa/lib/permission.d.ts.map +1 -0
- package/extensions/pipa/lib/pi.d.ts +38 -0
- package/extensions/pipa/lib/pi.d.ts.map +1 -0
- package/extensions/pipa/lib/reminder-cleaner.d.ts +7 -0
- package/extensions/pipa/lib/reminder-cleaner.d.ts.map +1 -0
- package/extensions/pipa/lib/string.d.ts +32 -0
- package/extensions/pipa/lib/string.d.ts.map +1 -0
- package/extensions/pipa/lib/teammate.d.ts +7 -0
- package/extensions/pipa/lib/teammate.d.ts.map +1 -0
- package/extensions/pipa/lib/tool-result-compactor.d.ts +12 -0
- package/extensions/pipa/lib/tool-result-compactor.d.ts.map +1 -0
- package/extensions/pipa/lib/tool.d.ts +9 -0
- package/extensions/pipa/lib/tool.d.ts.map +1 -0
- package/extensions/pipa/lib/tui-animation.d.ts +35 -0
- package/extensions/pipa/lib/tui-animation.d.ts.map +1 -0
- package/extensions/pipa/lib/tui.d.ts +73 -0
- package/extensions/pipa/lib/tui.d.ts.map +1 -0
- package/extensions/pipa/lib/typebox.d.ts +5 -0
- package/extensions/pipa/lib/typebox.d.ts.map +1 -0
- package/index.d.ts +36 -0
- package/index.d.ts.map +1 -0
- package/index.js +164 -0
- package/package.json +69 -0
- package/pipa.config.d.ts +4 -0
- package/pipa.config.d.ts.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# pipa-core
|
|
2
|
+
|
|
3
|
+
SDK para criar extensões do Pi com features reutilizáveis, API de execução e eventos de domínio tipados.
|
|
4
|
+
|
|
5
|
+
Inclui `applyFeatures`, `PipaBaseFeature`, `PipaEvent`, `PipaApi` e o mapa `DomainEventMap`.
|
|
6
|
+
|
|
7
|
+
## Instalação local
|
|
8
|
+
|
|
9
|
+
No clone deste repositório, gere o pacote e instale o diretório produzido no projeto consumidor:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
cd /caminho/para/pipa/.pi
|
|
13
|
+
bun run scripts/build-core.ts
|
|
14
|
+
|
|
15
|
+
cd /caminho/do/projeto-consumidor
|
|
16
|
+
npm install /caminho/para/pipa/.pi/dist-core
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
O build gera `dist-core/`, incluindo `index.js`, declarações TypeScript, `package.json` e uma cópia deste README.
|
|
20
|
+
|
|
21
|
+
## Uso
|
|
22
|
+
|
|
23
|
+
Registre no `ExtensionAPI` as features necessárias:
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import { applyFeatures, DocsFeature, PipaBaseFeature } from '@aelinrezende/pipa-core';
|
|
27
|
+
import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';
|
|
28
|
+
|
|
29
|
+
class AuditFeature extends PipaBaseFeature {
|
|
30
|
+
initialize(pi: ExtensionAPI): void {
|
|
31
|
+
pi.registerTool({ name: 'audit' /* ... */ });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
await applyFeatures(pi, [DocsFeature, AuditFeature]);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Para cada construtor informado, `applyFeatures` cria uma instância e chama `initialize(pi)`, se implementado. Em seguida, registra métodos decorados com `@PipaEvent`. A propriedade `feature.pipa` é construída e atribuída imediatamente antes da execução de cada handler decorado; use o argumento `pipa` do handler quando precisar da API no evento.
|
|
39
|
+
|
|
40
|
+
## Features incluídas
|
|
41
|
+
|
|
42
|
+
| Feature | Responsabilidade |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| `DocsFeature` | Documentos e publicação da base de conhecimento. |
|
|
45
|
+
| `TaskFeature` | Tarefas operacionais e dependências. |
|
|
46
|
+
| `TeammateFeature` | Ciclo de vida e comunicação entre colegas. |
|
|
47
|
+
| `TodoFeature` | Checklist operacional do agente. |
|
|
48
|
+
| `BacklogFeature` | Backlog persistente do projeto. |
|
|
49
|
+
| `PermissionFeature` | Guardas de terminal e custom tools. |
|
|
50
|
+
| `OnboardingFeature` | Perfil e onboarding do agente principal. |
|
|
51
|
+
| `ReminderCleanerFeature` | Remove notificações já consumidas do contexto. |
|
|
52
|
+
| `ToolResultCompactorFeature` | Compacta resultados antigos e volumosos de tools. |
|
|
53
|
+
|
|
54
|
+
As sete primeiras são exports do SDK. As duas últimas são ativadas pela extensão Pipa para higiene de contexto e não são exports do pacote.
|
|
55
|
+
|
|
56
|
+
## Eventos
|
|
57
|
+
|
|
58
|
+
`@PipaEvent` aceita eventos do agente e eventos de domínio. Eventos do agente são registrados em `pi.on`; eventos de domínio são observados em `pi.events`. Handlers recebem o payload e a `PipaApi`:
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
import { PipaBaseFeature, PipaEvent } from '@aelinrezende/pipa-core';
|
|
62
|
+
import type { PipaApi, PipaPayload } from '@aelinrezende/pipa-core';
|
|
63
|
+
|
|
64
|
+
class ListenerFeature extends PipaBaseFeature {
|
|
65
|
+
@PipaEvent('doc_created')
|
|
66
|
+
onDocCreated(item: PipaPayload<'doc_created'>, pipa: PipaApi): void {
|
|
67
|
+
console.log(`${item.code}: ${item.title}`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Os handlers de domínio são reações ao fato já consumado. Para emitir um evento, use a API disponível no handler ou na feature:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
this.pipa.events.emit('doc_created', item);
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### DomainEventMap (eventos nativos)
|
|
79
|
+
|
|
80
|
+
| Domínio | Evento | Payload | Action de origem |
|
|
81
|
+
| --- | --- | --- | --- |
|
|
82
|
+
| Docs | `doc_created` | `DocItem` | `instantiate` |
|
|
83
|
+
| Docs | `doc_updated` | `DocItem` | `update-frontmatter`, `update-body` |
|
|
84
|
+
| Docs | `doc_removed` | `DocItem` | `remove` |
|
|
85
|
+
| Docs | `doc_published` | `{ path, url }` | `publish` |
|
|
86
|
+
| Backlog | `backlog_created` | `BacklogItem` | `instantiate` |
|
|
87
|
+
| Backlog | `backlog_updated` | `BacklogItem` | `update-frontmatter`, `update-body`, `update-metadata` |
|
|
88
|
+
| Backlog | `backlog_removed` | `BacklogItem` | `remove` |
|
|
89
|
+
| Task | `task_created` | `Task` | `instantiate` |
|
|
90
|
+
| Task | `task_claimed` | `Task` | `claim` |
|
|
91
|
+
| Task | `task_updated` | `Task` | `setup`, `update` |
|
|
92
|
+
| Task | `task_completed` | `Task` | `complete` |
|
|
93
|
+
| Task | `task_removed` | `Task` | `remove` |
|
|
94
|
+
| Todo | `todo_created` | `TodoItem` | `instantiate` |
|
|
95
|
+
| Todo | `todo_updated` | `TodoItem` | `update` |
|
|
96
|
+
| Todo | `todo_removed` | `TodoItem` | `remove` |
|
|
97
|
+
| Todo | `todo_cleared` | `{ sessionId }` | `clear` |
|
|
98
|
+
| Teammate | `teammate_created` | `TeammateEventPayload` | `instantiate` |
|
|
99
|
+
| Teammate | `teammate_removed` | `{ dismissed, count, reason }` | `dismiss` |
|
|
100
|
+
|
|
101
|
+
Leituras não emitem eventos. Além das actions da tabela, `task_updated` também pode ser emitido quando a alteração de uma subtarefa sincroniza o status da tarefa pai.
|
|
102
|
+
|
|
103
|
+
### Estendendo o mapa
|
|
104
|
+
|
|
105
|
+
`DomainEventMap` é uma interface e aceita declaration merging:
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
import type { PipaPayload } from '@aelinrezende/pipa-core';
|
|
109
|
+
|
|
110
|
+
declare module '@aelinrezende/pipa-core' {
|
|
111
|
+
interface DomainEventMap {
|
|
112
|
+
audit_recorded: { id: string };
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
this.pipa.events.emit('audit_recorded', { id: 'audit-1' });
|
|
117
|
+
|
|
118
|
+
@PipaEvent('audit_recorded')
|
|
119
|
+
onAuditRecorded(item: PipaPayload<'audit_recorded'>): void {
|
|
120
|
+
console.log(item.id);
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Exports principais
|
|
125
|
+
|
|
126
|
+
- `applyFeatures(pi, features)` — instancia features, chama sua inicialização e registra handlers decorados.
|
|
127
|
+
- `buildPipaApi(pi, context)` e `pipa()` — API da Pipa e acesso à instância principal.
|
|
128
|
+
- `PipaEvent(event)` — decorator para `PiEvent` ou `DomainEventName`.
|
|
129
|
+
- `PipaBaseFeature` — base com `pi`, `pipa` e `initialize?`.
|
|
130
|
+
- `DomainEventMap`, `DomainEventName`, `PipaPayload<E>` e `DomainEventHandler<E>` — tipos de eventos de domínio.
|
|
131
|
+
- Hubs e estado: `DocsHub`, `DocsState`, `TaskHub`, `TaskState`, `TeammateHub`, `TeammateState` e `PipaStore`.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { BacklogDomain, BacklogItem, BacklogItemFrontmatter, BacklogItemType, BacklogPriority, BacklogStatus } from '../features/backlog/backlog.entity';
|
|
2
|
+
/** Tipos válidos de item do backlog */
|
|
3
|
+
export declare const BACKLOG_ITEM_TYPES: BacklogItemType[];
|
|
4
|
+
/** Status válidos do backlog */
|
|
5
|
+
export declare const BACKLOG_STATUSES: BacklogStatus[];
|
|
6
|
+
/** Prioridades válidas */
|
|
7
|
+
export declare const BACKLOG_PRIORITIES: BacklogPriority[];
|
|
8
|
+
/** Domínios válidos */
|
|
9
|
+
export declare const BACKLOG_DOMAINS: BacklogDomain[];
|
|
10
|
+
/** Campos de ordenação da listagem */
|
|
11
|
+
export declare const BACKLOG_SORT_FIELDS: (keyof Pick<BacklogItem, 'updatedAt' | 'order'>)[];
|
|
12
|
+
/** Direções de ordenação */
|
|
13
|
+
export declare const BACKLOG_SORT_ORDERS: ('ASC' | 'DESC')[];
|
|
14
|
+
/** Campos do frontmatter editáveis via update-frontmatter */
|
|
15
|
+
export declare const BACKLOG_FRONTMATTER_FIELDS: BacklogItemFrontmatter[];
|
|
16
|
+
/** Mensagens contextuais para cada ação da tool backlog */
|
|
17
|
+
export declare const BACKLOG_TOOL_NUDGES: {
|
|
18
|
+
list: {
|
|
19
|
+
code: string;
|
|
20
|
+
readonly failed: readonly [string, 'Falha ao listar backlog'];
|
|
21
|
+
readonly success: readonly [string, 'Backlog listado com sucesso'];
|
|
22
|
+
};
|
|
23
|
+
create: {
|
|
24
|
+
code: string;
|
|
25
|
+
readonly failed: readonly [string, 'Falha ao criar item no backlog'];
|
|
26
|
+
readonly success: readonly [string, 'Item criado no backlog'];
|
|
27
|
+
};
|
|
28
|
+
'update-frontmatter': {
|
|
29
|
+
code: string;
|
|
30
|
+
readonly failed: readonly [string, 'Falha ao atualizar frontmatter'];
|
|
31
|
+
readonly success: readonly [string, 'Frontmatter atualizado'];
|
|
32
|
+
};
|
|
33
|
+
'update-body': {
|
|
34
|
+
code: string;
|
|
35
|
+
readonly failed: readonly [string, 'Falha ao atualizar corpo markdown'];
|
|
36
|
+
readonly success: readonly [string, 'Corpo markdown atualizado'];
|
|
37
|
+
};
|
|
38
|
+
'update-metadata': {
|
|
39
|
+
code: string;
|
|
40
|
+
readonly failed: readonly [string, 'Falha ao atualizar metadata'];
|
|
41
|
+
readonly success: readonly [string, 'Metadata atualizado'];
|
|
42
|
+
};
|
|
43
|
+
select: {
|
|
44
|
+
code: string;
|
|
45
|
+
readonly failed: readonly [string, 'Falha na busca'];
|
|
46
|
+
readonly success: readonly [string, 'Busca concluída'];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=backlog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backlog.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/backlog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,aAAa,EACd,MAAM,oCAAoC,CAAC;AAE5C,uCAAuC;AACvC,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAAwC,CAAC;AAEzF,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAA8D,CAAC;AAE3G,0BAA0B;AAC1B,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAA0C,CAAC;AAE3F,uBAAuB;AACvB,eAAO,MAAM,eAAe,EAAE,aAAa,EAAiC,CAAC;AAE7E,sCAAsC;AACtC,eAAO,MAAM,mBAAmB,EAAE,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,EAA2B,CAAC;AAE9G,4BAA4B;AAC5B,eAAO,MAAM,mBAAmB,EAAE,CAAC,KAAK,GAAG,MAAM,CAAC,EAAoB,CAAC;AAEvE,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,EAAE,sBAAsB,EAO9D,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,mBAAmB;IAC9B,IAAI;QACF,IAAI;iBACA,MAAM,oBACkB,yBAAyB;iBAEjD,OAAO,oBACiB,6BAA6B;;IAG3D,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,gCAAgC;iBAExD,OAAO,oBACiB,wBAAwB;;IAGtD,oBAAoB;QAClB,IAAI;iBACA,MAAM,oBACkB,gCAAgC;iBAExD,OAAO,oBACiB,wBAAwB;;IAGtD,aAAa;QACX,IAAI;iBACA,MAAM,oBACkB,mCAAmC;iBAE3D,OAAO,oBACiB,2BAA2B;;IAGzD,iBAAiB;QACf,IAAI;iBACA,MAAM,oBACkB,6BAA6B;iBAErD,OAAO,oBACiB,qBAAqB;;IAGnD,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,gBAAgB;iBAExC,OAAO,oBACiB,iBAAiB;;CAGhD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Número de turns recentes que ficam protegidos da compactação. */
|
|
2
|
+
export declare const COMPACTOR_RECENT_TURNS = 3;
|
|
3
|
+
/** Tamanho mínimo (em chars) para um tool result ser elegível à compactação. */
|
|
4
|
+
export declare const COMPACTOR_MIN_CHARS = 1000;
|
|
5
|
+
/** Diretório global onde os conteúdos compactados são persistidos. */
|
|
6
|
+
export declare const COMPACTOR_BASE_DIR: string;
|
|
7
|
+
//# sourceMappingURL=compactor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compactor.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/compactor.ts"],"names":[],"mappings":"AAGA,oEAAoE;AACpE,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,gFAAgF;AAChF,eAAO,MAAM,mBAAmB,OAAQ,CAAC;AAGzC,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,QAA4C,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** Comprimento máximo do summary dos documentos */
|
|
2
|
+
export declare const DOC_SUMMARY_LENGTH = 200;
|
|
3
|
+
/** Mensagens contextuais para cada ação da tool docs */
|
|
4
|
+
export declare const DOCS_TOOL_NUDGES: {
|
|
5
|
+
create: {
|
|
6
|
+
code: string;
|
|
7
|
+
readonly failed: readonly [string, 'Falha ao criar documento'];
|
|
8
|
+
readonly success: readonly [string, 'Documento criado'];
|
|
9
|
+
};
|
|
10
|
+
list: {
|
|
11
|
+
code: string;
|
|
12
|
+
readonly failed: readonly [string, 'Falha ao listar documentos'];
|
|
13
|
+
readonly success: readonly [string, 'Documentos listados'];
|
|
14
|
+
};
|
|
15
|
+
'update-frontmatter': {
|
|
16
|
+
code: string;
|
|
17
|
+
readonly failed: readonly [string, 'Falha ao atualizar frontmatter'];
|
|
18
|
+
readonly success: readonly [string, 'Frontmatter atualizado'];
|
|
19
|
+
};
|
|
20
|
+
'update-body': {
|
|
21
|
+
code: string;
|
|
22
|
+
readonly failed: readonly [string, 'Falha ao atualizar corpo markdown'];
|
|
23
|
+
readonly success: readonly [string, 'Corpo markdown atualizado'];
|
|
24
|
+
};
|
|
25
|
+
'update-metadata': {
|
|
26
|
+
code: string;
|
|
27
|
+
readonly failed: readonly [string, 'Falha ao atualizar metadata'];
|
|
28
|
+
readonly success: readonly [string, 'Metadata atualizado'];
|
|
29
|
+
};
|
|
30
|
+
select: {
|
|
31
|
+
code: string;
|
|
32
|
+
readonly failed: readonly [string, 'Falha na busca'];
|
|
33
|
+
readonly success: readonly [string, 'Busca concluída'];
|
|
34
|
+
};
|
|
35
|
+
remove: {
|
|
36
|
+
code: string;
|
|
37
|
+
readonly failed: readonly [string, 'Falha ao remover documento'];
|
|
38
|
+
readonly success: readonly [string, 'Documento removido'];
|
|
39
|
+
};
|
|
40
|
+
publish: {
|
|
41
|
+
code: string;
|
|
42
|
+
readonly failed: readonly [string, 'Falha ao publicar documentação'];
|
|
43
|
+
readonly success: readonly [string, 'Documentação publicada'];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/docs.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,wDAAwD;AACxD,eAAO,MAAM,gBAAgB;IAC3B,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,0BAA0B;iBAElD,OAAO,oBACiB,kBAAkB;;IAGhD,IAAI;QACF,IAAI;iBACA,MAAM,oBACkB,4BAA4B;iBAEpD,OAAO,oBACiB,qBAAqB;;IAGnD,oBAAoB;QAClB,IAAI;iBACA,MAAM,oBACkB,gCAAgC;iBAExD,OAAO,oBACiB,wBAAwB;;IAGtD,aAAa;QACX,IAAI;iBACA,MAAM,oBACkB,mCAAmC;iBAE3D,OAAO,oBACiB,2BAA2B;;IAGzD,iBAAiB;QACf,IAAI;iBACA,MAAM,oBACkB,6BAA6B;iBAErD,OAAO,oBACiB,qBAAqB;;IAGnD,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,gBAAgB;iBAExC,OAAO,oBACiB,iBAAiB;;IAG/C,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,4BAA4B;iBAEpD,OAAO,oBACiB,oBAAoB;;IAGlD,OAAO;QACL,IAAI;iBACA,MAAM,oBACkB,gCAAgC;iBAExD,OAAO,oBACiB,wBAAwB;;CAGvD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Nome do arquivo contendo sumário das tarefas */
|
|
2
|
+
export declare const TASKS_INDEX_FILE = "tasks.json";
|
|
3
|
+
/** Diretório base onde as tarefas são armazenadas */
|
|
4
|
+
export declare const TASKS_BASE_DIR: string;
|
|
5
|
+
/** Diretório de arquivos da sessão */
|
|
6
|
+
export declare const SESSIONS_DIR: string;
|
|
7
|
+
/** Diretório base do backlog (config fallback: .context/project/backlog) */
|
|
8
|
+
export declare const BACKLOG_BASE_DIR: string;
|
|
9
|
+
/** Arquivo JSON único que persiste todos os itens do backlog */
|
|
10
|
+
export declare const BACKLOG_JSON_FILE = "backlog.json";
|
|
11
|
+
/** Diretório base da documentação */
|
|
12
|
+
export declare const DOCS_BASE_DIR: string;
|
|
13
|
+
/** Arquivo JSON único que persiste os documentos na pasta docs */
|
|
14
|
+
export declare const DOCS_JSON_FILE = "entries.json";
|
|
15
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/file.ts"],"names":[],"mappings":"AAGA,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAE7C,qDAAqD;AACrD,eAAO,MAAM,cAAc,QAA0C,CAAC;AAEtE,sCAAsC;AACtC,eAAO,MAAM,YAAY,QAA6C,CAAC;AAEvE,4EAA4E;AAC5E,eAAO,MAAM,gBAAgB,QAA6D,CAAC;AAE3F,gEAAgE;AAChE,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD,qCAAqC;AACrC,eAAO,MAAM,aAAa,QAAmC,CAAC;AAE9D,kEAAkE;AAClE,eAAO,MAAM,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type PiEvent = (typeof PI_EVENTS)[number];
|
|
2
|
+
/**
|
|
3
|
+
* Mapeamento dos eventos do Pi.
|
|
4
|
+
*/
|
|
5
|
+
export declare const PI_EVENTS: readonly ['initialized', 'session_start', 'context', 'resources_discover', 'before_agent_start', 'agent_start', 'agent_end', 'tool_execution_start', 'tool_execution_update', 'tool_execution_end', 'tool_call', 'tool_result', 'message_start', 'message_update', 'message_end', 'turn_start', 'turn_end', 'session_shutdown'];
|
|
6
|
+
//# sourceMappingURL=pipa.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipa.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/pipa.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,SAAS,YAEpB,aAAa,EAGb,eAAe,EACf,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,UAAU,EACV,kBAAkB,CACnB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const TEAMMATES_STORE_KEY = "TEAMMATES_STORE";
|
|
2
|
+
export declare const TASKS_STORE_KEY = "TASKS_STORE";
|
|
3
|
+
export declare const BACKLOG_STORE_KEY = "BACKLOG_STORE";
|
|
4
|
+
export declare const DOCS_STORE_KEY = "DOCS_STORE";
|
|
5
|
+
export declare const MAIN_SESSION_ID = "MAIN_SESSION";
|
|
6
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/store.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AACjD,eAAO,MAAM,cAAc,eAAe,CAAC;AAC3C,eAAO,MAAM,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { TaskStatus } from '../features/task/task.entity';
|
|
2
|
+
/**
|
|
3
|
+
* Dicionário de nudges padronizados para as ações da ferramenta de tarefas.
|
|
4
|
+
* Define códigos e mensagens de sucesso/falha/acesso negado para cada ação.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TASK_TOOL_NUDGES: {
|
|
7
|
+
/**
|
|
8
|
+
* Nudges relacionados à consulta de uma tarefa.
|
|
9
|
+
*/
|
|
10
|
+
get: {
|
|
11
|
+
code: string;
|
|
12
|
+
readonly failed: readonly [string, 'Falha durante consulta'];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Nudges relacionados à configuração de tarefas.
|
|
16
|
+
*/
|
|
17
|
+
setup: {
|
|
18
|
+
code: string;
|
|
19
|
+
readonly failed: readonly [string, 'Falha durante configuração'];
|
|
20
|
+
readonly denied: readonly [string, 'Acesso negado para configurar'];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Nudges relacionados à reivindicação de tarefas por colegas (subagents).
|
|
24
|
+
*/
|
|
25
|
+
claim: {
|
|
26
|
+
code: string;
|
|
27
|
+
readonly failed: readonly [string, 'Falha durante reivindicação'];
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Nudges relacionados à criação de novas tarefas.
|
|
31
|
+
*/
|
|
32
|
+
instantiate: {
|
|
33
|
+
code: string;
|
|
34
|
+
readonly failed: readonly [string, 'Falha durante criação'];
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Nudges relacionados à atualização de tarefas.
|
|
38
|
+
*/
|
|
39
|
+
update: {
|
|
40
|
+
code: string;
|
|
41
|
+
readonly failed: readonly [string, 'Falha durante atualização'];
|
|
42
|
+
readonly denied: readonly [string, 'Acesso negado para editar'];
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Nudges relacionados à remoção (deleção) de tarefas.
|
|
46
|
+
*/
|
|
47
|
+
remove: {
|
|
48
|
+
code: string;
|
|
49
|
+
readonly failed: readonly [string, 'Falha durante remoção'];
|
|
50
|
+
readonly denied: readonly [string, 'Acesso negado'];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Nudges relacionados à marcação de uma tarefa como concluída.
|
|
54
|
+
*/
|
|
55
|
+
complete: {
|
|
56
|
+
code: string;
|
|
57
|
+
readonly failed: readonly [string, 'Falha durante conclusão'];
|
|
58
|
+
readonly denied: readonly [string, 'Acesso negado'];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare const TASK_STATUS_TRANSLATIONS: Record<TaskStatus, string>;
|
|
62
|
+
//# sourceMappingURL=task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;IACH,GAAG;QACD,IAAI;iBACA,MAAM,oBACkB,wBAAwB;;IAItD;;OAEG;IACH,KAAK;QACH,IAAI;iBACA,MAAM,oBACkB,4BAA4B;iBAEpD,MAAM,oBACkB,+BAA+B;;IAI7D;;OAEG;IACH,KAAK;QACH,IAAI;iBACA,MAAM,oBACkB,6BAA6B;;IAI3D;;OAEG;IACH,WAAW;QACT,IAAI;iBACA,MAAM,oBACkB,uBAAuB;;IAIrD;;OAEG;IACH,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,2BAA2B;iBAEnD,MAAM,oBACkB,2BAA2B;;IAIzD;;OAEG;IACH,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,uBAAuB;iBAE/C,MAAM,oBACkB,eAAe;;IAI7C;;OAEG;IACH,QAAQ;QACN,IAAI;iBACA,MAAM,oBACkB,yBAAyB;iBAEjD,MAAM,oBACkB,eAAe;;CAG9C,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAM/D,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TeammateStatus } from '../features/teammate/teammate.entity';
|
|
2
|
+
/**
|
|
3
|
+
* Dicionário de nudges padronizados para as ações da ferramenta de teammates.
|
|
4
|
+
* Define códigos e mensagens de sucesso/falha/acesso negado para cada ação.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TEAMMATE_TOOL_NUDGES: {
|
|
7
|
+
/**
|
|
8
|
+
* Nudges relacionados ao processo de subir um novo agente (instantiate).
|
|
9
|
+
*/
|
|
10
|
+
instantiate: {
|
|
11
|
+
code: string;
|
|
12
|
+
readonly failed: readonly [string, 'Falha durante início'];
|
|
13
|
+
readonly denied: readonly [string, 'Acesso negado para invocar colega'];
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Nudges relacionados à remoção (deleção) de um agente e subordinados (dismiss).
|
|
17
|
+
*/
|
|
18
|
+
dismiss: {
|
|
19
|
+
code: string;
|
|
20
|
+
readonly failed: readonly [string, 'Tentativa inválida de dispensar colega'];
|
|
21
|
+
readonly denied: readonly [string, 'Acesso negado'];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const TEAMMATE_STATUS_TRANSLATIONS: Record<TeammateStatus, string>;
|
|
25
|
+
//# sourceMappingURL=teammate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teammate.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/teammate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;IACH,WAAW;QACT,IAAI;iBACA,MAAM,oBACkB,sBAAsB;iBAE9C,MAAM,oBACkB,mCAAmC;;IAGjE;;OAEG;IACH,OAAO;QACL,IAAI;iBACA,MAAM,oBACkB,wCAAwC;iBAEhE,MAAM,oBACkB,eAAe;;CAG9C,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKvE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dicionário de nudges padronizados para as ações da ferramenta de todo.
|
|
3
|
+
* Define códigos e mensagens de falha para cada ação.
|
|
4
|
+
*/
|
|
5
|
+
export declare const TODO_TOOL_NUDGES: {
|
|
6
|
+
/**
|
|
7
|
+
* Nudges relacionados à atualização de tarefas (update).
|
|
8
|
+
*/
|
|
9
|
+
update: {
|
|
10
|
+
code: string;
|
|
11
|
+
readonly failed: readonly [string, 'Falha durante atualização'];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Nudges relacionados à remoção de tarefas (remove).
|
|
15
|
+
*/
|
|
16
|
+
remove: {
|
|
17
|
+
code: string;
|
|
18
|
+
readonly failed: readonly [string, 'Falha durante remoção'];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=todo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/constants/todo.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;IACH,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,2BAA2B;;IAIzD;;OAEG;IACH,MAAM;QACJ,IAAI;iBACA,MAAM,oBACkB,uBAAuB;;CAGtD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { PipaBaseFeatureConstructor } from '../features/base-feature';
|
|
3
|
+
export declare function applyFeatures(pi: ExtensionAPI, features: PipaBaseFeatureConstructor[]): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=apply-features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-features.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/core/apply-features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EAGb,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAmB,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAOvF,wBAAsB,aAAa,CAAC,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,0BAA0B,EAAE,iBAqC3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/core/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAuClD,eAAO,MAAM,MAAM,EAAI,UAIrB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { PiEvent } from '../../constants/pipa';
|
|
3
|
+
import type { DomainEventName } from '../events.types';
|
|
4
|
+
export declare const PI_EVENTS_SYMBOLS: Record<"agent_end" | "agent_start" | "before_agent_start" | "context" | "initialized" | "message_end" | "message_start" | "message_update" | "resources_discover" | "session_shutdown" | "session_start" | "tool_call" | "tool_execution_end" | "tool_execution_start" | "tool_execution_update" | "tool_result" | "turn_end" | "turn_start", symbol>;
|
|
5
|
+
/** Lista [evento, símbolo] de todos os eventos registráveis (agente + domínio). */
|
|
6
|
+
export declare function listEventSymbols(): Array<[PiEvent | DomainEventName, symbol]>;
|
|
7
|
+
/**
|
|
8
|
+
* Associa o método decorado a um evento específico do Pi, permitindo que ele seja
|
|
9
|
+
* executado automaticamente quando esse evento ocorrer.
|
|
10
|
+
*
|
|
11
|
+
* @param event O evento ao qual o método deve ser associado: evento fixo do agente
|
|
12
|
+
* (ex: "tool_call", "session_start") ou evento de domínio (ex: "doc_created").
|
|
13
|
+
*/
|
|
14
|
+
export declare const PipaEvent: (event: PiEvent | DomainEventName) => MethodDecorator;
|
|
15
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../../extensions/pipa/core/decorators/events.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAa,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,eAAO,MAAM,iBAAiB,uVAQ7B,CAAC;AAeF,mFAAmF;AACnF,wBAAgB,gBAAgB,IAAI,KAAK,CAAC,CAAC,OAAO,GAAG,eAAe,EAAE,MAAM,CAAC,CAAC,CAK7E;AAED;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,UAAW,OAAO,GAAG,eAAe,KAAG,eAE5D,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Exceção para erros de validação que propaga direto ao harness. */
|
|
2
|
+
export declare class PipaException extends Error {
|
|
3
|
+
/** Ação que gerou o erro (ex: de "task.create" extrai "create"). */
|
|
4
|
+
readonly action: string;
|
|
5
|
+
/** Ferramenta que gerou o erro (ex: de "task.create" extrai "task"). */
|
|
6
|
+
readonly tool: string;
|
|
7
|
+
/**
|
|
8
|
+
* @param intent String "ferramenta.acao" (ex: "task.create").
|
|
9
|
+
* @param messages Linhas de erro exibidas abaixo do cabeçalho `[{action}]`.
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* throw new PipaException(...TASK_TOOL_NUDGES.setup.failed, `Tarefa não encontrada.`);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
constructor(intent: string, ...messages: string[]);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=pipa-exception.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipa-exception.d.ts","sourceRoot":"","sources":["../../../../../extensions/pipa/core/errors/pipa-exception.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,qBAAa,aAAc,SAAQ,KAAK;IACtC,oEAAoE;IACpE,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,wEAAwE;IACxE,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B;;;;;;;OAOG;IACH,YAAY,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,MAAM,EAAE,EAShD;CACF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { BacklogItem } from '../features/backlog/backlog.entity';
|
|
2
|
+
import type { DocItem } from '../features/docs/docs.entity';
|
|
3
|
+
import type { Task } from '../features/task/task.entity';
|
|
4
|
+
import type { Teammate } from '../features/teammate/teammate.entity';
|
|
5
|
+
import type { TodoItem } from '../features/todo/todo.entity';
|
|
6
|
+
import type { PipaApi } from '../interfaces/pipa';
|
|
7
|
+
/**
|
|
8
|
+
* Mapa de eventos de domínio → payload.
|
|
9
|
+
*
|
|
10
|
+
* Interface (e não type) para permitir declaration merging: features externas
|
|
11
|
+
* estendem o mapa sem alterar o core — basta declarar a nova chave e emitir
|
|
12
|
+
* no hub correspondente.
|
|
13
|
+
*/
|
|
14
|
+
export interface DomainEventMap {
|
|
15
|
+
/** Dispara na action `instantiate`; payload = documento persistido. */
|
|
16
|
+
doc_created: DocItem;
|
|
17
|
+
/** Dispara nas actions `update-frontmatter` e `update-body`; payload = documento atualizado. */
|
|
18
|
+
doc_updated: DocItem;
|
|
19
|
+
/** Dispara na action `remove`; payload = documento removido. */
|
|
20
|
+
doc_removed: DocItem;
|
|
21
|
+
/** Dispara na action `publish`; payload = caminho do site e URL servida. */
|
|
22
|
+
doc_published: {
|
|
23
|
+
path: string;
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
26
|
+
/** Dispara na action `instantiate`; payload = item persistido. */
|
|
27
|
+
backlog_created: BacklogItem;
|
|
28
|
+
/** Dispara nas actions `update-frontmatter`, `update-body` e `update-metadata`; payload = item atualizado. */
|
|
29
|
+
backlog_updated: BacklogItem;
|
|
30
|
+
/** Dispara na action `remove`; payload = item removido. */
|
|
31
|
+
backlog_removed: BacklogItem;
|
|
32
|
+
/** Dispara na action `instantiate`; payload = tarefa persistida. */
|
|
33
|
+
task_created: Task;
|
|
34
|
+
/** Dispara na action `claim`; payload = tarefa reivindicada. */
|
|
35
|
+
task_claimed: Task;
|
|
36
|
+
/** Dispara nas actions `setup` e `update`; payload = tarefa atualizada. */
|
|
37
|
+
task_updated: Task;
|
|
38
|
+
/** Dispara na action `complete`; payload = tarefa concluída. */
|
|
39
|
+
task_completed: Task;
|
|
40
|
+
/** Dispara na action `remove`; payload = tarefa removida. */
|
|
41
|
+
task_removed: Task;
|
|
42
|
+
/** Dispara na action `instantiate`; payload = item persistido. */
|
|
43
|
+
todo_created: TodoItem;
|
|
44
|
+
/** Dispara na action `update`; payload = item atualizado. */
|
|
45
|
+
todo_updated: TodoItem;
|
|
46
|
+
/** Dispara na action `remove`; payload = item removido. */
|
|
47
|
+
todo_removed: TodoItem;
|
|
48
|
+
/** Dispara na action `clear`; payload = sessão do agente dono da lista esvaziada. */
|
|
49
|
+
todo_cleared: {
|
|
50
|
+
sessionId: string;
|
|
51
|
+
};
|
|
52
|
+
/** Dispara na action `instantiate`; payload = DTO mínimo do teammate criado (sem session/pipa). */
|
|
53
|
+
teammate_created: TeammateEventPayload;
|
|
54
|
+
/** Dispara na action `dismiss`; payload = agente dispensado, quantidade de sessões encerradas e motivo da dispensa. */
|
|
55
|
+
teammate_removed: {
|
|
56
|
+
dismissed: {
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
60
|
+
count: number;
|
|
61
|
+
reason: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/** Payload mínimo serializável dos eventos de teammate — nunca inclui `session`/`pipa`. */
|
|
65
|
+
export type TeammateEventPayload = Pick<Teammate, 'sessionId' | 'name' | 'status' | 'role' | 'parentSessionId' | 'depth'>;
|
|
66
|
+
/** Nome de um evento de domínio (chave do mapa). */
|
|
67
|
+
export type DomainEventName = keyof DomainEventMap;
|
|
68
|
+
/** Payload de um evento de domínio, derivado do mapa. */
|
|
69
|
+
export type PipaPayload<E extends DomainEventName> = DomainEventMap[E];
|
|
70
|
+
/** Handler de evento de domínio: recebe o payload e a instância da PipaApi. */
|
|
71
|
+
export type DomainEventHandler<E extends DomainEventName> = (payload: PipaPayload<E>, pipa: PipaApi) => void;
|
|
72
|
+
//# sourceMappingURL=events.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/core/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,uEAAuE;IACvE,WAAW,EAAE,OAAO,CAAC;IACrB,gGAAgG;IAChG,WAAW,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,WAAW,EAAE,OAAO,CAAC;IACrB,4EAA4E;IAC5E,aAAa,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAE7C,kEAAkE;IAClE,eAAe,EAAE,WAAW,CAAC;IAC7B,8GAA8G;IAC9G,eAAe,EAAE,WAAW,CAAC;IAC7B,2DAA2D;IAC3D,eAAe,EAAE,WAAW,CAAC;IAE7B,oEAAoE;IACpE,YAAY,EAAE,IAAI,CAAC;IACnB,gEAAgE;IAChE,YAAY,EAAE,IAAI,CAAC;IACnB,2EAA2E;IAC3E,YAAY,EAAE,IAAI,CAAC;IACnB,gEAAgE;IAChE,cAAc,EAAE,IAAI,CAAC;IACrB,6DAA6D;IAC7D,YAAY,EAAE,IAAI,CAAC;IAEnB,kEAAkE;IAClE,YAAY,EAAE,QAAQ,CAAC;IACvB,6DAA6D;IAC7D,YAAY,EAAE,QAAQ,CAAC;IACvB,2DAA2D;IAC3D,YAAY,EAAE,QAAQ,CAAC;IACvB,qFAAqF;IACrF,YAAY,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAEpC,mGAAmG;IACnG,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,uHAAuH;IACvH,gBAAgB,EAAE;QAAE,SAAS,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9F;AAED,2FAA2F;AAC3F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,QAAQ,EACR,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,iBAAiB,GAAG,OAAO,CACvE,CAAC;AAEF,oDAAoD;AACpD,MAAM,MAAM,eAAe,GAAG,MAAM,cAAc,CAAC;AAEnD,yDAAyD;AACzD,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,eAAe,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC;AAEvE,+EAA+E;AAC/E,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,eAAe,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ExtensionAPI, ExtensionContext } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { PipaApi } from '../interfaces/pipa';
|
|
3
|
+
/**
|
|
4
|
+
* Retorna a instância principal da PipaApi, referente a sessão principal.
|
|
5
|
+
*/
|
|
6
|
+
export declare const pipa: () => Readonly<PipaApi>;
|
|
7
|
+
/**
|
|
8
|
+
* Constrói a API da Pipa para ser utilizada nos features, encapsulando o ExtensionAPI
|
|
9
|
+
* e adicionando funcionalidades customizadas.
|
|
10
|
+
*
|
|
11
|
+
* Inicializa a instância principal da PipaApi, garantindo que o contexto seja atualizado
|
|
12
|
+
* a cada evento disparado.
|
|
13
|
+
*
|
|
14
|
+
* @param pi O ExtensionAPI fornecido pelo Pi Coding Agent.
|
|
15
|
+
* @param context O contexto de execução do evento.
|
|
16
|
+
* @returns Uma instância de PipaApi, pronta para ser utilizada pelos features da Pipa.
|
|
17
|
+
*/
|
|
18
|
+
export declare function buildPipaApi(pi: ExtensionAPI, context: ExtensionContext): PipaApi;
|
|
19
|
+
//# sourceMappingURL=pipa.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipa.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/core/pipa.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKjF,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAQ7C;;GAEG;AACH,eAAO,MAAM,IAAI,yBAEhB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CA0GjF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Notification } from 'node-notifier';
|
|
2
|
+
export interface ToastOptions extends Notification {
|
|
3
|
+
message: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class Toast {
|
|
6
|
+
private readonly interpolations;
|
|
7
|
+
private readonly activeToasts;
|
|
8
|
+
constructor(interpolations: () => Record<string, string | number>);
|
|
9
|
+
private sendToast;
|
|
10
|
+
show(message: string, options?: Omit<ToastOptions, 'message'>): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export type ToastService = Toast;
|
|
13
|
+
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/core/toast.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAQlD,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,OAAO,EAAE,MAAM,CAAC;CACjB;AAqBD,qBAAa,KAAK;IAGJ,OAAO,CAAC,QAAQ,CAAC,cAAc;IAF3C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAElD,YAA6B,cAAc,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAAI;YAExE,SAAS;IAgCjB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,iBAElE;CACF;AAED,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefaultResourceLoader } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
/**
|
|
3
|
+
* Retorna uma instância compartilhada do ResourceLoader para ser usada por subagentes.
|
|
4
|
+
* Isso garante que todos os subagentes tenham acesso aos mesmos recursos e extensões carregados.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getSharedResourceLoader(cwd: string): Promise<DefaultResourceLoader>;
|
|
7
|
+
export declare function ensureResourceLoaderReloaded(): Promise<void>;
|
|
8
|
+
//# sourceMappingURL=resource-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-loader.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/cross-cutting/resource-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAe,MAAM,iCAAiC,CAAC;AAOrF;;;GAGG;AACH,wBAAsB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAczF;AAED,wBAAsB,4BAA4B,IAAI,OAAO,CAAC,IAAI,CAAC,CASlE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../extensions/pipa/cross-cutting/store.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IACpB,OAAc,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,CAIhD;IAED,OAAc,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAE/C;CACF"}
|