@agent-builder-lab/eve-kit 0.4.0 → 0.4.1-rc.1

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.
@@ -16,6 +16,11 @@ interface LabAccount {
16
16
  readonly labels: Readonly<Record<string, string>>;
17
17
  /** O cadastro de quem conversa, quando a conta tem um (ex.: o paciente da conversa). */
18
18
  readonly patientId?: string;
19
+ /**
20
+ * Quem decide o acesso: o lab (padrão, pelos `grants`) ou o código do agente, pela autorização
21
+ * que o aluno levou para o código (docs/exportar-autorizacao.md). O kit só repassa.
22
+ */
23
+ readonly decides?: "lab" | "code";
19
24
  }
20
25
  /** Confere o formato sem confiar em nada além do necessário; fora do formato, undefined. */
21
26
  declare function readLabAccount(value: unknown): LabAccount | undefined;
@@ -8,7 +8,7 @@ import {
8
8
  labDenialReason,
9
9
  readLabAccount,
10
10
  requiredResources
11
- } from "./chunk-LQIDQBNW.js";
11
+ } from "./chunk-ZAAX4I6J.js";
12
12
  export {
13
13
  LAB_ACCOUNT_ATTRIBUTE,
14
14
  LAB_ACCOUNT_CONTEXT_KEY,
package/dist/channel.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  LAB_ACCOUNT_ATTRIBUTE,
8
8
  LAB_ACCOUNT_CONTEXT_KEY,
9
9
  labAccountFromContext
10
- } from "./chunk-LQIDQBNW.js";
10
+ } from "./chunk-ZAAX4I6J.js";
11
11
  import {
12
12
  LAB_FORK_ATTRIBUTE,
13
13
  LAB_FORK_CONTEXT_KEY,
@@ -20,7 +20,8 @@ function readLabAccount(value) {
20
20
  roleName: typeof v.roleName === "string" && v.roleName ? v.roleName : String(v.role ?? ""),
21
21
  grants: v.grants,
22
22
  labels,
23
- ...typeof v.patientId === "string" && v.patientId ? { patientId: v.patientId } : {}
23
+ ...typeof v.patientId === "string" && v.patientId ? { patientId: v.patientId } : {},
24
+ ...v.decides === "lab" || v.decides === "code" ? { decides: v.decides } : {}
24
25
  };
25
26
  }
26
27
  function labAccountFromContext(context) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  labAccountOf
3
- } from "./chunk-LQIDQBNW.js";
3
+ } from "./chunk-ZAAX4I6J.js";
4
4
 
5
5
  // src/rate-limit.ts
6
6
  function criarLimitePorPessoa(opcoes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-builder-lab/eve-kit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1-rc.1",
4
4
  "description": "Liga um agente eve ao Agent Builder Lab: instrumentação da janela de contexto, canal com history e stubs, replay e autorização por conta de teste.",
5
5
  "repository": {
6
6
  "type": "git",