@opengeni/sdk 2.6.0-canary.0 → 3.1.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 +39 -0
- package/dist/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/{chunk-4VCQBOOQ.js → chunk-7ZXBPJZP.js} +17 -4
- package/dist/chunk-7ZXBPJZP.js.map +1 -0
- package/dist/{chunk-C7AIXTNY.js → chunk-TX3EIENU.js} +2 -2
- package/dist/{chunk-JVRUGVPU.js → chunk-VUQZAB3O.js} +2 -2
- package/dist/{chunk-Y7PC524F.js → chunk-YTAWBDO2.js} +1 -1
- package/dist/chunk-YTAWBDO2.js.map +1 -0
- package/dist/client.d.ts +13 -1
- package/dist/core.js +3 -3
- package/dist/document-authority.js +3 -3
- package/dist/editable-artifacts.js +1 -1
- package/dist/index.js +4 -4
- package/dist/types.d.ts +44 -1
- package/package.json +2 -2
- package/src/client.ts +33 -2
- package/src/types.ts +68 -0
- package/dist/chunk-4VCQBOOQ.js.map +0 -1
- package/dist/chunk-Y7PC524F.js.map +0 -1
- /package/dist/{chunk-C7AIXTNY.js.map → chunk-TX3EIENU.js.map} +0 -0
- /package/dist/{chunk-JVRUGVPU.js.map → chunk-VUQZAB3O.js.map} +0 -0
package/README.md
CHANGED
|
@@ -52,6 +52,45 @@ const operatorClient = new OpenGeniDocumentAuthorityClient({
|
|
|
52
52
|
});
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
## Related-work discovery
|
|
56
|
+
|
|
57
|
+
`listAgentTopology` returns a bounded hierarchy page plus provider-neutral
|
|
58
|
+
`relatedWork` evidence. A text query searches durable semantic titles, active
|
|
59
|
+
goals, and typed work claims; it never searches the opening prompt. An exact
|
|
60
|
+
subject filter looks up one canonical typed identity:
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
const page = await client.listAgentTopology(workspaceId, {
|
|
64
|
+
query: "permission scoped discovery",
|
|
65
|
+
statuses: ["running", "requires_action"],
|
|
66
|
+
activeOnly: true,
|
|
67
|
+
recentHours: 72,
|
|
68
|
+
claimLimit: 4,
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
for (const session of page.sessions) {
|
|
72
|
+
if (!session.relatedWork.possibleOverlap) continue;
|
|
73
|
+
console.log(session.title, session.relatedWork.match, session.relatedWork.claims);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const exact = await client.listAgentTopology(workspaceId, {
|
|
77
|
+
subject: {
|
|
78
|
+
namespace: "github",
|
|
79
|
+
type: "pull_request",
|
|
80
|
+
canonicalKey: "acme/app#42",
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The evidence is always advisory: `advisoryOnly` and `noAdditionalAccess` are
|
|
86
|
+
literal `true` fields, and receiving a row does not authorize detail, message,
|
|
87
|
+
or control operations. Preserve `nextCursor` with the exact same filters;
|
|
88
|
+
relevance cursors are filter- and activity-snapshot-bound. A topology response
|
|
89
|
+
may carry `humanAdvisoriesEnabled: false`, which lets a human-facing client hide
|
|
90
|
+
the advisory UI without changing stored evidence or API authority. See
|
|
91
|
+
[`docs/work-discovery.md`](../../docs/work-discovery.md) for ranking, bounds,
|
|
92
|
+
claim lifecycle, and rollout semantics.
|
|
93
|
+
|
|
55
94
|
## Session visibility and forks
|
|
56
95
|
|
|
57
96
|
For organizations with session-tenancy activation, a canonical managed-cookie
|
package/dist/artifacts.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VUQZAB3O.js";
|
|
4
|
+
import "./chunk-TX3EIENU.js";
|
|
5
|
+
import "./chunk-7ZXBPJZP.js";
|
|
6
|
+
import "./chunk-YTAWBDO2.js";
|
|
7
7
|
import "./chunk-GW3EJ2GP.js";
|
|
8
8
|
import "./chunk-C4DJPZRU.js";
|
|
9
9
|
export {
|
package/dist/browser.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-VYCTL62C.js";
|
|
4
4
|
import {
|
|
5
5
|
OpenGeniClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7ZXBPJZP.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENGENI_API_CONTRACT_HEADER,
|
|
9
9
|
OPENGENI_API_CONTRACT_REVISION
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YTAWBDO2.js";
|
|
11
11
|
import "./chunk-GW3EJ2GP.js";
|
|
12
12
|
import {
|
|
13
13
|
OpenGeniApiContractMismatchError,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
OPENGENI_API_CONTRACT_REVISION,
|
|
6
6
|
OPENGENI_CORRELATION_HEADER,
|
|
7
7
|
RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YTAWBDO2.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniInteractionClient
|
|
11
11
|
} from "./chunk-GW3EJ2GP.js";
|
|
@@ -1140,7 +1140,10 @@ var OpenGeniClient = class {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
/** Compact, bounded workspace agent hierarchy page. */
|
|
1142
1142
|
async listAgentTopology(workspaceId, options = {}) {
|
|
1143
|
-
const
|
|
1143
|
+
const query = options.query?.trim() || options.search?.trim();
|
|
1144
|
+
if (query && options.subject) {
|
|
1145
|
+
throw new TypeError("listAgentTopology query cannot be combined with an exact subject");
|
|
1146
|
+
}
|
|
1144
1147
|
return await this.requestJson(
|
|
1145
1148
|
"GET",
|
|
1146
1149
|
`/v1/workspaces/${workspaceId}/agent-topology`,
|
|
@@ -1148,8 +1151,18 @@ var OpenGeniClient = class {
|
|
|
1148
1151
|
{
|
|
1149
1152
|
...options.limit !== void 0 ? { limit: String(options.limit) } : {},
|
|
1150
1153
|
...options.parentSessionId === void 0 ? {} : { parentSessionId: options.parentSessionId ?? "null" },
|
|
1154
|
+
...options.rootSessionId ? { rootSessionId: options.rootSessionId } : {},
|
|
1151
1155
|
...options.cursor ? { cursor: options.cursor } : {},
|
|
1152
|
-
...
|
|
1156
|
+
...query ? { query } : {},
|
|
1157
|
+
...options.statuses?.length ? { statuses: options.statuses.join(",") } : {},
|
|
1158
|
+
...options.activeOnly !== void 0 ? { activeOnly: options.activeOnly ? "true" : "false" } : {},
|
|
1159
|
+
...options.recentHours !== void 0 ? { recentHours: String(options.recentHours) } : {},
|
|
1160
|
+
...options.subject ? {
|
|
1161
|
+
subjectNamespace: options.subject.namespace,
|
|
1162
|
+
subjectType: options.subject.type,
|
|
1163
|
+
subjectKey: options.subject.canonicalKey
|
|
1164
|
+
} : {},
|
|
1165
|
+
...options.claimLimit !== void 0 ? { claimLimit: String(options.claimLimit) } : {}
|
|
1153
1166
|
}
|
|
1154
1167
|
);
|
|
1155
1168
|
}
|
|
@@ -5465,4 +5478,4 @@ export {
|
|
|
5465
5478
|
parseMediaGenerationResult,
|
|
5466
5479
|
OpenGeniClient
|
|
5467
5480
|
};
|
|
5468
|
-
//# sourceMappingURL=chunk-
|
|
5481
|
+
//# sourceMappingURL=chunk-7ZXBPJZP.js.map
|