@siduri-x/api 1.0.2 → 1.0.4
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/dist/index.js +176 -0
- package/package.json +9 -6
- package/src/app.ts +36 -64
- package/src/auth.test.ts +56 -23
- package/src/auth.ts +74 -22
- package/src/context-mapper.test.ts +42 -147
- package/src/context-mapper.ts +44 -179
- package/src/index.test.ts +8 -32
- package/src/runtime.test.ts +3 -5
- package/src/t5-experience.test.ts +0 -1
- package/src/t6-security.test.ts +0 -1
package/src/runtime.test.ts
CHANGED
|
@@ -79,7 +79,7 @@ describe('Siduri Runtime Orchestration', () => {
|
|
|
79
79
|
expect(noKnowledgeContext).toBe(true);
|
|
80
80
|
expect(proposedClaims.length).toBe(1);
|
|
81
81
|
expect(proposedClaims[0].subject).toBe("Test");
|
|
82
|
-
expect(proposedClaims[0].scope).toBe("
|
|
82
|
+
expect(proposedClaims[0].scope).toBe("user");
|
|
83
83
|
expect(response.metadata.memory_proposals[0].proposal_id).toBe("claim-1");
|
|
84
84
|
});
|
|
85
85
|
|
|
@@ -95,7 +95,7 @@ describe('Siduri Runtime Orchestration', () => {
|
|
|
95
95
|
riskLevel: 'LOW',
|
|
96
96
|
requiredCapabilities: ['chat:public'],
|
|
97
97
|
},
|
|
98
|
-
execute: async (params) => {
|
|
98
|
+
execute: async (params: any) => {
|
|
99
99
|
toolExecuted = true;
|
|
100
100
|
return { hits: [`Result for ${params.query}`] };
|
|
101
101
|
},
|
|
@@ -147,7 +147,6 @@ describe('Siduri Runtime Orchestration', () => {
|
|
|
147
147
|
},
|
|
148
148
|
conversation: {
|
|
149
149
|
channel: 'direct',
|
|
150
|
-
audienceId: 'audience-direct',
|
|
151
150
|
correlationId: 'corr-alice-123',
|
|
152
151
|
},
|
|
153
152
|
};
|
|
@@ -234,7 +233,6 @@ describe('Siduri Runtime Orchestration', () => {
|
|
|
234
233
|
},
|
|
235
234
|
conversation: {
|
|
236
235
|
channel: 'public',
|
|
237
|
-
audienceId: 'audience-public',
|
|
238
236
|
correlationId: 'corr-bob-999',
|
|
239
237
|
},
|
|
240
238
|
};
|
|
@@ -291,7 +289,7 @@ describe('Siduri Runtime Orchestration', () => {
|
|
|
291
289
|
id: 'test-web-channel',
|
|
292
290
|
name: 'Web Channel',
|
|
293
291
|
medium: 'web',
|
|
294
|
-
deliver: async (out) => {
|
|
292
|
+
deliver: async (out: any) => {
|
|
295
293
|
deliveredOutput = out;
|
|
296
294
|
},
|
|
297
295
|
},
|
|
@@ -161,7 +161,6 @@ describe('T5 Experience Event and Output Adapters Suite', () => {
|
|
|
161
161
|
responseId: 'resp-1',
|
|
162
162
|
correlationId: 'corr-1',
|
|
163
163
|
channel: 'public' as const,
|
|
164
|
-
audienceId: 'audience-public',
|
|
165
164
|
approval: 'STAGED' as any, // Not approved!
|
|
166
165
|
kind: 'voice' as const,
|
|
167
166
|
lifecycle: 'STARTED' as const,
|
package/src/t6-security.test.ts
CHANGED