@stigmer/sdk 3.12.5 → 3.12.7
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/__tests__/update-input-roundtrip.test.d.ts +2 -0
- package/__tests__/update-input-roundtrip.test.d.ts.map +1 -0
- package/__tests__/update-input-roundtrip.test.js +795 -0
- package/__tests__/update-input-roundtrip.test.js.map +1 -0
- package/__tests__/update-input.test.js +22 -3
- package/__tests__/update-input.test.js.map +1 -1
- package/execution/__tests__/transcript.test.d.ts +2 -0
- package/execution/__tests__/transcript.test.d.ts.map +1 -0
- package/execution/__tests__/transcript.test.js +527 -0
- package/execution/__tests__/transcript.test.js.map +1 -0
- package/execution/conversation-rules.d.ts +64 -0
- package/execution/conversation-rules.d.ts.map +1 -0
- package/execution/conversation-rules.js +113 -0
- package/execution/conversation-rules.js.map +1 -0
- package/execution/transcript.d.ts +171 -0
- package/execution/transcript.d.ts.map +1 -0
- package/execution/transcript.js +484 -0
- package/execution/transcript.js.map +1 -0
- package/gen/agent.d.ts +21 -0
- package/gen/agent.d.ts.map +1 -1
- package/gen/agent.js +73 -1
- package/gen/agent.js.map +1 -1
- package/gen/agentchannel.d.ts +23 -1
- package/gen/agentchannel.d.ts.map +1 -1
- package/gen/agentchannel.js +55 -1
- package/gen/agentchannel.js.map +1 -1
- package/gen/agentexecution.d.ts +34 -1
- package/gen/agentexecution.d.ts.map +1 -1
- package/gen/agentexecution.js +176 -2
- package/gen/agentexecution.js.map +1 -1
- package/gen/agentinstance.d.ts +21 -0
- package/gen/agentinstance.d.ts.map +1 -1
- package/gen/agentinstance.js +32 -1
- package/gen/agentinstance.js.map +1 -1
- package/gen/agentshare.d.ts +23 -1
- package/gen/agentshare.d.ts.map +1 -1
- package/gen/agentshare.js +53 -1
- package/gen/agentshare.js.map +1 -1
- package/gen/apikey.d.ts +21 -0
- package/gen/apikey.d.ts.map +1 -1
- package/gen/apikey.js +33 -1
- package/gen/apikey.js.map +1 -1
- package/gen/artifact.d.ts +8 -0
- package/gen/artifact.d.ts.map +1 -1
- package/gen/artifact.js +1 -0
- package/gen/artifact.js.map +1 -1
- package/gen/channelapp.d.ts +21 -0
- package/gen/channelapp.d.ts.map +1 -1
- package/gen/channelapp.js +45 -0
- package/gen/channelapp.js.map +1 -1
- package/gen/client.d.ts +5 -1
- package/gen/client.d.ts.map +1 -1
- package/gen/client.js +4 -0
- package/gen/client.js.map +1 -1
- package/gen/environment.d.ts +21 -0
- package/gen/environment.d.ts.map +1 -1
- package/gen/environment.js +31 -1
- package/gen/environment.js.map +1 -1
- package/gen/executioncontext.d.ts +8 -0
- package/gen/executioncontext.d.ts.map +1 -1
- package/gen/executioncontext.js +1 -0
- package/gen/executioncontext.js.map +1 -1
- package/gen/iampolicy.d.ts +8 -0
- package/gen/iampolicy.d.ts.map +1 -1
- package/gen/iampolicy.js +1 -0
- package/gen/iampolicy.js.map +1 -1
- package/gen/identityaccount.d.ts +22 -0
- package/gen/identityaccount.d.ts.map +1 -1
- package/gen/identityaccount.js +48 -1
- package/gen/identityaccount.js.map +1 -1
- package/gen/identityprovider.d.ts +21 -0
- package/gen/identityprovider.d.ts.map +1 -1
- package/gen/identityprovider.js +40 -0
- package/gen/identityprovider.js.map +1 -1
- package/gen/invitation.d.ts +8 -0
- package/gen/invitation.d.ts.map +1 -1
- package/gen/invitation.js +1 -0
- package/gen/invitation.js.map +1 -1
- package/gen/mcpserver.d.ts +21 -0
- package/gen/mcpserver.d.ts.map +1 -1
- package/gen/mcpserver.js +79 -1
- package/gen/mcpserver.js.map +1 -1
- package/gen/memory.d.ts +58 -0
- package/gen/memory.d.ts.map +1 -0
- package/gen/memory.js +143 -0
- package/gen/memory.js.map +1 -0
- package/gen/oauthapp.d.ts +21 -0
- package/gen/oauthapp.d.ts.map +1 -1
- package/gen/oauthapp.js +39 -0
- package/gen/oauthapp.js.map +1 -1
- package/gen/organization.d.ts +22 -0
- package/gen/organization.d.ts.map +1 -1
- package/gen/organization.js +43 -1
- package/gen/organization.js.map +1 -1
- package/gen/platformclient.d.ts +21 -0
- package/gen/platformclient.d.ts.map +1 -1
- package/gen/platformclient.js +40 -1
- package/gen/platformclient.js.map +1 -1
- package/gen/project.d.ts +21 -0
- package/gen/project.d.ts.map +1 -1
- package/gen/project.js +32 -1
- package/gen/project.js.map +1 -1
- package/gen/proto-utils.d.ts +36 -0
- package/gen/proto-utils.d.ts.map +1 -1
- package/gen/proto-utils.js +58 -0
- package/gen/proto-utils.js.map +1 -1
- package/gen/schedule.d.ts +23 -1
- package/gen/schedule.d.ts.map +1 -1
- package/gen/schedule.js +79 -1
- package/gen/schedule.js.map +1 -1
- package/gen/session.d.ts +21 -0
- package/gen/session.d.ts.map +1 -1
- package/gen/session.js +80 -1
- package/gen/session.js.map +1 -1
- package/gen/skill.d.ts +8 -0
- package/gen/skill.d.ts.map +1 -1
- package/gen/skill.js +1 -0
- package/gen/skill.js.map +1 -1
- package/gen/workflow.d.ts +21 -0
- package/gen/workflow.d.ts.map +1 -1
- package/gen/workflow.js +79 -0
- package/gen/workflow.js.map +1 -1
- package/gen/workflowexecution.d.ts +21 -0
- package/gen/workflowexecution.d.ts.map +1 -1
- package/gen/workflowexecution.js +36 -1
- package/gen/workflowexecution.js.map +1 -1
- package/gen/workflowinstance.d.ts +21 -0
- package/gen/workflowinstance.d.ts.map +1 -1
- package/gen/workflowinstance.js +33 -1
- package/gen/workflowinstance.js.map +1 -1
- package/index.d.ts +23 -21
- package/index.d.ts.map +1 -1
- package/index.js +27 -23
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/update-input-roundtrip.test.ts +1035 -0
- package/src/__tests__/update-input.test.ts +34 -3
- package/src/execution/__tests__/transcript.golden.md +100 -0
- package/src/execution/__tests__/transcript.test.ts +627 -0
- package/src/execution/conversation-rules.ts +119 -0
- package/src/execution/transcript.ts +735 -0
- package/src/gen/agent.ts +89 -3
- package/src/gen/agentchannel.ts +72 -4
- package/src/gen/agentexecution.ts +216 -6
- package/src/gen/agentinstance.ts +41 -1
- package/src/gen/agentshare.ts +68 -4
- package/src/gen/apikey.ts +42 -1
- package/src/gen/artifact.ts +9 -0
- package/src/gen/channelapp.ts +57 -1
- package/src/gen/client.ts +6 -1
- package/src/gen/environment.ts +40 -1
- package/src/gen/executioncontext.ts +9 -0
- package/src/gen/iampolicy.ts +9 -0
- package/src/gen/identityaccount.ts +60 -2
- package/src/gen/identityprovider.ts +49 -0
- package/src/gen/invitation.ts +9 -0
- package/src/gen/mcpserver.ts +95 -3
- package/src/gen/memory.ts +164 -0
- package/src/gen/oauthapp.ts +48 -0
- package/src/gen/organization.ts +55 -2
- package/src/gen/platformclient.ts +49 -1
- package/src/gen/project.ts +41 -1
- package/src/gen/proto-utils.ts +64 -0
- package/src/gen/schedule.ts +98 -4
- package/src/gen/session.ts +97 -3
- package/src/gen/skill.ts +9 -0
- package/src/gen/workflow.ts +96 -2
- package/src/gen/workflowexecution.ts +45 -1
- package/src/gen/workflowinstance.ts +42 -1
- package/src/index.ts +52 -9
- package/src/update-input.ts +0 -168
- package/update-input.d.ts +0 -24
- package/update-input.d.ts.map +0 -1
- package/update-input.js +0 -126
- package/update-input.js.map +0 -1
|
@@ -14,12 +14,14 @@ import {
|
|
|
14
14
|
} from "@stigmer/protos/ai/stigmer/iam/identityaccount/v1/api_pb";
|
|
15
15
|
import { IdentityAccountSpecSchema } from "@stigmer/protos/ai/stigmer/iam/identityaccount/v1/spec_pb";
|
|
16
16
|
import { IdentityAccountProvisioningMode } from "@stigmer/protos/ai/stigmer/iam/identityaccount/v1/enum_pb";
|
|
17
|
-
import { buildOrganizationProto } from "../gen/organization";
|
|
18
|
-
import { buildIdentityAccountProto } from "../gen/identityaccount";
|
|
19
17
|
import {
|
|
18
|
+
buildOrganizationProto,
|
|
20
19
|
toOrganizationUpdateInput,
|
|
20
|
+
} from "../gen/organization";
|
|
21
|
+
import {
|
|
22
|
+
buildIdentityAccountProto,
|
|
21
23
|
toIdentityAccountUpdateInput,
|
|
22
|
-
} from "../
|
|
24
|
+
} from "../gen/identityaccount";
|
|
23
25
|
|
|
24
26
|
/**
|
|
25
27
|
* Update RPCs are full-spec replacements, so a complete mapper must
|
|
@@ -139,6 +141,14 @@ describe("toOrganizationUpdateInput", () => {
|
|
|
139
141
|
|
|
140
142
|
expect(toOrganizationUpdateInput(org).org).toBe("bare");
|
|
141
143
|
});
|
|
144
|
+
|
|
145
|
+
it("carries metadata.id for exact update addressing", () => {
|
|
146
|
+
const built = buildOrganizationProto(
|
|
147
|
+
toOrganizationUpdateInput(fullOrganization()),
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
expect(built.metadata?.id).toBe("acme");
|
|
151
|
+
});
|
|
142
152
|
});
|
|
143
153
|
|
|
144
154
|
describe("toIdentityAccountUpdateInput", () => {
|
|
@@ -163,6 +173,27 @@ describe("toIdentityAccountUpdateInput", () => {
|
|
|
163
173
|
expect(input.slug).toBe("ada-lovelace");
|
|
164
174
|
});
|
|
165
175
|
|
|
176
|
+
it("carries metadata.id — the ONLY address that works for a real (org-less) account", () => {
|
|
177
|
+
// Identity accounts are platform-scoped: metadata.org is never set in
|
|
178
|
+
// production, so the pipeline's org+slug fallback structurally cannot
|
|
179
|
+
// match one. Without the id, this update is NOT_FOUND by construction.
|
|
180
|
+
const account = create(IdentityAccountSchema, {
|
|
181
|
+
metadata: {
|
|
182
|
+
id: "ida_01JEXAMPLE",
|
|
183
|
+
name: "ada@acme.example",
|
|
184
|
+
slug: "ada-acme-example",
|
|
185
|
+
},
|
|
186
|
+
spec: { idpId: "auth0|abc123" },
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
const built = buildIdentityAccountProto(
|
|
190
|
+
toIdentityAccountUpdateInput(account),
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
expect(built.metadata?.id).toBe("ida_01JEXAMPLE");
|
|
194
|
+
expect(built.metadata?.slug).toBe("ada-acme-example");
|
|
195
|
+
});
|
|
196
|
+
|
|
166
197
|
it("preserves the rest of the spec when a caller overrides only preferences", () => {
|
|
167
198
|
const account = fullIdentityAccount();
|
|
168
199
|
const mapped = toIdentityAccountUpdateInput(account);
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Fix the flaky test
|
|
2
|
+
|
|
3
|
+
- Session: `ses_01`
|
|
4
|
+
- Agent instance: `agi_01`
|
|
5
|
+
- Turns: 3
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Turn 1 · 2026-08-20T10:00:00Z
|
|
10
|
+
|
|
11
|
+
**User**
|
|
12
|
+
|
|
13
|
+
Why is CI red?
|
|
14
|
+
|
|
15
|
+
**Thinking**
|
|
16
|
+
|
|
17
|
+
> The failure is in the retry loop.
|
|
18
|
+
> Let me check.
|
|
19
|
+
|
|
20
|
+
**Assistant**
|
|
21
|
+
|
|
22
|
+
Let me look.
|
|
23
|
+
|
|
24
|
+
**Tool — `shell_command`** (completed · 2.0s)
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"command": "go test ./..."
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
FAIL: TestRetry
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Tool — `read_file`** (completed)
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"path": "retry.go"
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
package retry
|
|
46
|
+
|
|
47
|
+
func Do() {}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Tool — `screenshot`** (completed)
|
|
51
|
+
|
|
52
|
+
_Image output (image/png, 4096 bytes) — not inlined._
|
|
53
|
+
|
|
54
|
+
**System**
|
|
55
|
+
|
|
56
|
+
> Approval received
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Turn 2 · 2026-08-20T11:00:00Z
|
|
61
|
+
|
|
62
|
+
**User**
|
|
63
|
+
|
|
64
|
+
edited prompt
|
|
65
|
+
|
|
66
|
+
**Assistant**
|
|
67
|
+
|
|
68
|
+
Delegating.
|
|
69
|
+
|
|
70
|
+
> **Sub-agent — Explore the repo** (5.0s)
|
|
71
|
+
>
|
|
72
|
+
> Input:
|
|
73
|
+
>
|
|
74
|
+
> find tests
|
|
75
|
+
>
|
|
76
|
+
> **Assistant**
|
|
77
|
+
>
|
|
78
|
+
> Scanning.
|
|
79
|
+
>
|
|
80
|
+
> **Tool — `grep`** (completed)
|
|
81
|
+
>
|
|
82
|
+
> ```
|
|
83
|
+
> 3 matches in test/
|
|
84
|
+
> ```
|
|
85
|
+
>
|
|
86
|
+
> Output:
|
|
87
|
+
>
|
|
88
|
+
> found 3
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Turn 3 · 2026-08-20T12:00:00Z
|
|
93
|
+
|
|
94
|
+
_In progress at export time — content is the last persisted snapshot._
|
|
95
|
+
|
|
96
|
+
_Build from plan._
|
|
97
|
+
|
|
98
|
+
**Assistant**
|
|
99
|
+
|
|
100
|
+
Working on it.
|