@armoriq/sdk-dev 0.2.15 → 0.3.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/dist/cli/commands/auth.d.ts +15 -0
- package/dist/cli/commands/auth.d.ts.map +1 -0
- package/dist/cli/commands/auth.js +259 -0
- package/dist/cli/commands/auth.js.map +1 -0
- package/dist/cli/commands/keys.d.ts +14 -0
- package/dist/cli/commands/keys.d.ts.map +1 -0
- package/dist/cli/commands/keys.js +132 -0
- package/dist/cli/commands/keys.js.map +1 -0
- package/dist/cli/commands/orgs.d.ts +10 -0
- package/dist/cli/commands/orgs.d.ts.map +1 -0
- package/dist/cli/commands/orgs.js +152 -0
- package/dist/cli/commands/orgs.js.map +1 -0
- package/dist/cli/commands/status.d.ts +9 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +103 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/index.d.ts +15 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +141 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/state.d.ts +22 -0
- package/dist/cli/state.d.ts.map +1 -0
- package/dist/cli/state.js +91 -0
- package/dist/cli/state.js.map +1 -0
- package/dist/cli/util.d.ts +19 -0
- package/dist/cli/util.d.ts.map +1 -0
- package/dist/cli/util.js +107 -0
- package/dist/cli/util.js.map +1 -0
- package/dist/client.d.ts +73 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +289 -5
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +64 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +215 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/integrations/google_adk.d.ts +107 -0
- package/dist/integrations/google_adk.d.ts.map +1 -0
- package/dist/integrations/google_adk.js +301 -0
- package/dist/integrations/google_adk.js.map +1 -0
- package/dist/models.d.ts +36 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/plan_builder.d.ts +53 -0
- package/dist/plan_builder.d.ts.map +1 -0
- package/dist/plan_builder.js +110 -0
- package/dist/plan_builder.js.map +1 -0
- package/dist/session.d.ts +75 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +486 -0
- package/dist/session.js.map +1 -0
- package/package.json +9 -2
package/dist/config.js
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* armoriq.yaml configuration models and loader.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors armoriq_sdk/config.py shape so the same file is portable
|
|
6
|
+
* between the two SDKs.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
20
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
21
|
+
}) : function(o, v) {
|
|
22
|
+
o["default"] = v;
|
|
23
|
+
});
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.ArmorIQConfigError = exports.DEFAULT_PROXY_URL = void 0;
|
|
43
|
+
exports.resolveEnvReference = resolveEnvReference;
|
|
44
|
+
exports.parseArmorIQConfig = parseArmorIQConfig;
|
|
45
|
+
exports.loadArmorIQConfig = loadArmorIQConfig;
|
|
46
|
+
exports.resolveEnvReferences = resolveEnvReferences;
|
|
47
|
+
exports.saveArmorIQConfig = saveArmorIQConfig;
|
|
48
|
+
const fs = __importStar(require("fs"));
|
|
49
|
+
const path = __importStar(require("path"));
|
|
50
|
+
const yaml = __importStar(require("js-yaml"));
|
|
51
|
+
exports.DEFAULT_PROXY_URL = 'https://customer-proxy.armoriq.ai';
|
|
52
|
+
class ArmorIQConfigError extends Error {
|
|
53
|
+
constructor(message) {
|
|
54
|
+
super(message);
|
|
55
|
+
this.name = 'ArmorIQConfigError';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ArmorIQConfigError = ArmorIQConfigError;
|
|
59
|
+
/**
|
|
60
|
+
* Resolve `$ENV_VAR` or `${ENV_VAR}` references against process.env.
|
|
61
|
+
* Returns the original string when it is not an env reference.
|
|
62
|
+
*/
|
|
63
|
+
function resolveEnvReference(value) {
|
|
64
|
+
if (typeof value !== 'string')
|
|
65
|
+
return value;
|
|
66
|
+
if (value.startsWith('${') && value.endsWith('}')) {
|
|
67
|
+
return process.env[value.slice(2, -1)] ?? '';
|
|
68
|
+
}
|
|
69
|
+
if (value.startsWith('$') && value.length > 1 && !value.includes(' ')) {
|
|
70
|
+
return process.env[value.slice(1)] ?? '';
|
|
71
|
+
}
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
function normalizeAuth(value) {
|
|
75
|
+
if (value === null || value === undefined)
|
|
76
|
+
return { type: 'none' };
|
|
77
|
+
if (typeof value === 'string')
|
|
78
|
+
return { type: value };
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
function validateIdentity(raw) {
|
|
82
|
+
if (!raw || typeof raw !== 'object') {
|
|
83
|
+
throw new ArmorIQConfigError('identity is required');
|
|
84
|
+
}
|
|
85
|
+
for (const k of ['api_key', 'user_id', 'agent_id']) {
|
|
86
|
+
if (typeof raw[k] !== 'string' || !raw[k]) {
|
|
87
|
+
throw new ArmorIQConfigError(`identity.${k} is required`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return { api_key: raw.api_key, user_id: raw.user_id, agent_id: raw.agent_id };
|
|
91
|
+
}
|
|
92
|
+
function validateAuth(raw) {
|
|
93
|
+
const a = normalizeAuth(raw);
|
|
94
|
+
if (a.type === 'bearer' && !a.token) {
|
|
95
|
+
throw new ArmorIQConfigError("bearer auth requires 'token'");
|
|
96
|
+
}
|
|
97
|
+
if (a.type === 'api_key' && !a.api_key) {
|
|
98
|
+
throw new ArmorIQConfigError("api_key auth requires 'api_key'");
|
|
99
|
+
}
|
|
100
|
+
if (a.type !== 'bearer' && a.type !== 'api_key' && a.type !== 'none') {
|
|
101
|
+
throw new ArmorIQConfigError(`unknown auth type: ${a.type}`);
|
|
102
|
+
}
|
|
103
|
+
return a;
|
|
104
|
+
}
|
|
105
|
+
function parseArmorIQConfig(raw) {
|
|
106
|
+
if (!raw || typeof raw !== 'object') {
|
|
107
|
+
throw new ArmorIQConfigError('config root must be an object');
|
|
108
|
+
}
|
|
109
|
+
const version = raw.version ?? 'v1';
|
|
110
|
+
if (version !== 'v1') {
|
|
111
|
+
throw new ArmorIQConfigError(`unsupported config version: ${version}`);
|
|
112
|
+
}
|
|
113
|
+
const environment = raw.environment ?? 'sandbox';
|
|
114
|
+
if (environment !== 'sandbox' && environment !== 'production') {
|
|
115
|
+
throw new ArmorIQConfigError(`environment must be sandbox or production, got: ${environment}`);
|
|
116
|
+
}
|
|
117
|
+
const proxy = {
|
|
118
|
+
url: raw.proxy?.url ?? exports.DEFAULT_PROXY_URL,
|
|
119
|
+
timeout: raw.proxy?.timeout ?? 30,
|
|
120
|
+
max_retries: raw.proxy?.max_retries ?? 3,
|
|
121
|
+
};
|
|
122
|
+
const policy = {
|
|
123
|
+
allow: Array.isArray(raw.policy?.allow) ? raw.policy.allow : [],
|
|
124
|
+
deny: Array.isArray(raw.policy?.deny) ? raw.policy.deny : [],
|
|
125
|
+
};
|
|
126
|
+
const intent = {
|
|
127
|
+
ttl_seconds: raw.intent?.ttl_seconds ?? 300,
|
|
128
|
+
require_csrg: raw.intent?.require_csrg ?? true,
|
|
129
|
+
};
|
|
130
|
+
const mcpServersRaw = Array.isArray(raw.mcp_servers) ? raw.mcp_servers : [];
|
|
131
|
+
const mcpServers = mcpServersRaw.map((s, i) => {
|
|
132
|
+
if (!s.id || typeof s.id !== 'string') {
|
|
133
|
+
throw new ArmorIQConfigError(`mcp_servers[${i}].id is required`);
|
|
134
|
+
}
|
|
135
|
+
if (!s.url || typeof s.url !== 'string') {
|
|
136
|
+
throw new ArmorIQConfigError(`mcp_servers[${i}].url is required`);
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
id: s.id,
|
|
140
|
+
url: s.url,
|
|
141
|
+
description: s.description,
|
|
142
|
+
auth: validateAuth(s.auth),
|
|
143
|
+
};
|
|
144
|
+
});
|
|
145
|
+
const ids = mcpServers.map((s) => s.id);
|
|
146
|
+
if (new Set(ids).size !== ids.length) {
|
|
147
|
+
throw new ArmorIQConfigError("mcp_servers contain duplicate 'id' values");
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
version: 'v1',
|
|
151
|
+
identity: validateIdentity(raw.identity),
|
|
152
|
+
environment,
|
|
153
|
+
proxy,
|
|
154
|
+
mcp_servers: mcpServers,
|
|
155
|
+
policy,
|
|
156
|
+
intent,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function loadArmorIQConfig(filePath = 'armoriq.yaml') {
|
|
160
|
+
const resolved = path.resolve(filePath);
|
|
161
|
+
if (!fs.existsSync(resolved)) {
|
|
162
|
+
throw new ArmorIQConfigError(`Config file not found: ${resolved}`);
|
|
163
|
+
}
|
|
164
|
+
const raw = yaml.load(fs.readFileSync(resolved, 'utf-8')) ?? {};
|
|
165
|
+
return parseArmorIQConfig(raw);
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Resolve every `$VAR` reference in the config against process.env.
|
|
169
|
+
* Returns a new config with the references replaced by their values.
|
|
170
|
+
*/
|
|
171
|
+
function resolveEnvReferences(config) {
|
|
172
|
+
return {
|
|
173
|
+
...config,
|
|
174
|
+
identity: {
|
|
175
|
+
api_key: resolveEnvReference(config.identity.api_key),
|
|
176
|
+
user_id: resolveEnvReference(config.identity.user_id),
|
|
177
|
+
agent_id: resolveEnvReference(config.identity.agent_id),
|
|
178
|
+
},
|
|
179
|
+
mcp_servers: config.mcp_servers.map((s) => ({
|
|
180
|
+
...s,
|
|
181
|
+
url: resolveEnvReference(s.url),
|
|
182
|
+
auth: s.auth.type === 'bearer'
|
|
183
|
+
? { type: 'bearer', token: resolveEnvReference(s.auth.token ?? '') }
|
|
184
|
+
: s.auth.type === 'api_key'
|
|
185
|
+
? { type: 'api_key', api_key: resolveEnvReference(s.auth.api_key ?? '') }
|
|
186
|
+
: s.auth,
|
|
187
|
+
})),
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function saveArmorIQConfig(config, filePath = 'armoriq.yaml') {
|
|
191
|
+
const data = {
|
|
192
|
+
version: config.version,
|
|
193
|
+
identity: { ...config.identity },
|
|
194
|
+
environment: config.environment,
|
|
195
|
+
proxy: { ...config.proxy },
|
|
196
|
+
mcp_servers: config.mcp_servers.map((s) => {
|
|
197
|
+
const out = {
|
|
198
|
+
id: s.id,
|
|
199
|
+
url: s.url,
|
|
200
|
+
auth: s.auth.type === 'none'
|
|
201
|
+
? 'none'
|
|
202
|
+
: s.auth.type === 'bearer'
|
|
203
|
+
? { type: 'bearer', token: s.auth.token }
|
|
204
|
+
: { type: 'api_key', api_key: s.auth.api_key },
|
|
205
|
+
};
|
|
206
|
+
if (s.description)
|
|
207
|
+
out.description = s.description;
|
|
208
|
+
return out;
|
|
209
|
+
}),
|
|
210
|
+
policy: { allow: config.policy.allow, deny: config.policy.deny },
|
|
211
|
+
intent: { ttl_seconds: config.intent.ttl_seconds, require_csrg: config.intent.require_csrg },
|
|
212
|
+
};
|
|
213
|
+
fs.writeFileSync(filePath, yaml.dump(data, { sortKeys: false }), 'utf-8');
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBH,kDASC;AAmFD,gDA0DC;AAED,8CAOC;AAMD,oDAmBC;AAED,8CAwBC;AAnOD,uCAAyB;AACzB,2CAA6B;AAC7B,8CAAgC;AAEnB,QAAA,iBAAiB,GAAG,mCAAmC,CAAC;AAErE,MAAa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AALD,gDAKC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC/C,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IA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GAAwB;gBAC/B,EAAE,EAAE,CAAC,CAAC,EAAE;gBACR,GAAG,EAAE,CAAC,CAAC,GAAG;gBACV,IAAI,EACF,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM;oBACpB,CAAC,CAAC,MAAM;oBACR,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ;wBACxB,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE;wBACzC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE;aACrD,CAAC;YACF,IAAI,CAAC,CAAC,WAAW;gBAAE,GAAG,CAAC,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC;YACnD,OAAO,GAAG,CAAC;QACb,CAAC,CAAC;QACF,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;QAChE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;KAC7F,CAAC;IACF,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;AAC5E,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,13 @@
|
|
|
8
8
|
* @author ArmorIQ Team <license@armoriq.io>
|
|
9
9
|
* @version 0.2.6
|
|
10
10
|
*/
|
|
11
|
-
export { ArmorIQClient } from './client';
|
|
11
|
+
export { ArmorIQClient, ArmorIQUserScope } from './client';
|
|
12
|
+
export { ArmorIQSession, SessionOptions, SessionMode, EnforceResult, ReportOptions, } from './session';
|
|
12
13
|
export { ArmorIQException, InvalidTokenException, IntentMismatchException, MCPInvocationException, TokenExpiredException, DelegationException, ConfigurationException, PolicyBlockedException, PolicyHoldException, } from './exceptions';
|
|
13
|
-
export { IntentToken, PlanCapture, MCPInvocation, MCPInvocationResult, DelegationRequest, DelegationResult, SDKConfig, MCPSemanticMetadata, ToolSemanticEntry, PolicyContext, InvokeOptions, HoldInfo, DelegationRequestParams, DelegationRequestResult, ApprovedDelegation, } from './models';
|
|
14
|
-
export
|
|
14
|
+
export { IntentToken, PlanCapture, MCPInvocation, MCPInvocationResult, DelegationRequest, DelegationResult, SDKConfig, MCPSemanticMetadata, ToolSemanticEntry, PolicyContext, InvokeOptions, HoldInfo, DelegationRequestParams, DelegationRequestResult, ApprovedDelegation, ToolCall, McpCredential, McpCredentialMap, } from './models';
|
|
15
|
+
export { defaultToolNameParser, buildPlanFromToolCalls, hashToolCalls, ToolNameParser, PlanStep, BuiltPlan, } from './plan_builder';
|
|
16
|
+
export { ArmorIQConfig, ArmorIQConfigError, IdentityConfig, ProxyConfig, MCPAuthConfig, MCPAuthType, MCPServerConfig, PolicyConfig, IntentConfig, Environment, loadArmorIQConfig, parseArmorIQConfig, resolveEnvReference, resolveEnvReferences, saveArmorIQConfig, DEFAULT_PROXY_URL, } from './config';
|
|
17
|
+
export declare const VERSION = "0.3.0";
|
|
15
18
|
export declare const AUTHOR = "ArmorIQ Team";
|
|
16
19
|
export declare const EMAIL = "license@armoriq.io";
|
|
17
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,GACd,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,QAAQ,EACR,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,QAAQ,EACR,aAAa,EACb,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,QAAQ,EACR,SAAS,GACV,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,eAAO,MAAM,KAAK,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,9 +10,12 @@
|
|
|
10
10
|
* @version 0.2.6
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.EMAIL = exports.AUTHOR = exports.VERSION = exports.IntentToken = exports.PolicyHoldException = exports.PolicyBlockedException = exports.ConfigurationException = exports.DelegationException = exports.TokenExpiredException = exports.MCPInvocationException = exports.IntentMismatchException = exports.InvalidTokenException = exports.ArmorIQException = exports.ArmorIQClient = void 0;
|
|
13
|
+
exports.EMAIL = exports.AUTHOR = exports.VERSION = exports.DEFAULT_PROXY_URL = exports.saveArmorIQConfig = exports.resolveEnvReferences = exports.resolveEnvReference = exports.parseArmorIQConfig = exports.loadArmorIQConfig = exports.ArmorIQConfigError = exports.hashToolCalls = exports.buildPlanFromToolCalls = exports.defaultToolNameParser = exports.IntentToken = exports.PolicyHoldException = exports.PolicyBlockedException = exports.ConfigurationException = exports.DelegationException = exports.TokenExpiredException = exports.MCPInvocationException = exports.IntentMismatchException = exports.InvalidTokenException = exports.ArmorIQException = exports.ArmorIQSession = exports.ArmorIQUserScope = exports.ArmorIQClient = void 0;
|
|
14
14
|
var client_1 = require("./client");
|
|
15
15
|
Object.defineProperty(exports, "ArmorIQClient", { enumerable: true, get: function () { return client_1.ArmorIQClient; } });
|
|
16
|
+
Object.defineProperty(exports, "ArmorIQUserScope", { enumerable: true, get: function () { return client_1.ArmorIQUserScope; } });
|
|
17
|
+
var session_1 = require("./session");
|
|
18
|
+
Object.defineProperty(exports, "ArmorIQSession", { enumerable: true, get: function () { return session_1.ArmorIQSession; } });
|
|
16
19
|
var exceptions_1 = require("./exceptions");
|
|
17
20
|
Object.defineProperty(exports, "ArmorIQException", { enumerable: true, get: function () { return exceptions_1.ArmorIQException; } });
|
|
18
21
|
Object.defineProperty(exports, "InvalidTokenException", { enumerable: true, get: function () { return exceptions_1.InvalidTokenException; } });
|
|
@@ -25,7 +28,19 @@ Object.defineProperty(exports, "PolicyBlockedException", { enumerable: true, get
|
|
|
25
28
|
Object.defineProperty(exports, "PolicyHoldException", { enumerable: true, get: function () { return exceptions_1.PolicyHoldException; } });
|
|
26
29
|
var models_1 = require("./models");
|
|
27
30
|
Object.defineProperty(exports, "IntentToken", { enumerable: true, get: function () { return models_1.IntentToken; } });
|
|
28
|
-
|
|
31
|
+
var plan_builder_1 = require("./plan_builder");
|
|
32
|
+
Object.defineProperty(exports, "defaultToolNameParser", { enumerable: true, get: function () { return plan_builder_1.defaultToolNameParser; } });
|
|
33
|
+
Object.defineProperty(exports, "buildPlanFromToolCalls", { enumerable: true, get: function () { return plan_builder_1.buildPlanFromToolCalls; } });
|
|
34
|
+
Object.defineProperty(exports, "hashToolCalls", { enumerable: true, get: function () { return plan_builder_1.hashToolCalls; } });
|
|
35
|
+
var config_1 = require("./config");
|
|
36
|
+
Object.defineProperty(exports, "ArmorIQConfigError", { enumerable: true, get: function () { return config_1.ArmorIQConfigError; } });
|
|
37
|
+
Object.defineProperty(exports, "loadArmorIQConfig", { enumerable: true, get: function () { return config_1.loadArmorIQConfig; } });
|
|
38
|
+
Object.defineProperty(exports, "parseArmorIQConfig", { enumerable: true, get: function () { return config_1.parseArmorIQConfig; } });
|
|
39
|
+
Object.defineProperty(exports, "resolveEnvReference", { enumerable: true, get: function () { return config_1.resolveEnvReference; } });
|
|
40
|
+
Object.defineProperty(exports, "resolveEnvReferences", { enumerable: true, get: function () { return config_1.resolveEnvReferences; } });
|
|
41
|
+
Object.defineProperty(exports, "saveArmorIQConfig", { enumerable: true, get: function () { return config_1.saveArmorIQConfig; } });
|
|
42
|
+
Object.defineProperty(exports, "DEFAULT_PROXY_URL", { enumerable: true, get: function () { return config_1.DEFAULT_PROXY_URL; } });
|
|
43
|
+
exports.VERSION = '0.3.0';
|
|
29
44
|
exports.AUTHOR = 'ArmorIQ Team';
|
|
30
45
|
exports.EMAIL = 'license@armoriq.io';
|
|
31
46
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,mCAA2D;AAAlD,uGAAA,aAAa,OAAA;AAAE,0GAAA,gBAAgB,OAAA;AACxC,qCAMmB;AALjB,yGAAA,cAAc,OAAA;AAMhB,2CAUsB;AATpB,8GAAA,gBAAgB,OAAA;AAChB,mHAAA,qBAAqB,OAAA;AACrB,qHAAA,uBAAuB,OAAA;AACvB,oHAAA,sBAAsB,OAAA;AACtB,mHAAA,qBAAqB,OAAA;AACrB,iHAAA,mBAAmB,OAAA;AACnB,oHAAA,sBAAsB,OAAA;AACtB,oHAAA,sBAAsB,OAAA;AACtB,iHAAA,mBAAmB,OAAA;AAErB,mCAmBkB;AAlBhB,qGAAA,WAAW,OAAA;AAoBb,+CAOwB;AANtB,qHAAA,qBAAqB,OAAA;AACrB,sHAAA,sBAAsB,OAAA;AACtB,6GAAA,aAAa,OAAA;AAMf,mCAiBkB;AAfhB,4GAAA,kBAAkB,OAAA;AASlB,2GAAA,iBAAiB,OAAA;AACjB,4GAAA,kBAAkB,OAAA;AAClB,6GAAA,mBAAmB,OAAA;AACnB,8GAAA,oBAAoB,OAAA;AACpB,2GAAA,iBAAiB,OAAA;AACjB,2GAAA,iBAAiB,OAAA;AAGN,QAAA,OAAO,GAAG,OAAO,CAAC;AAClB,QAAA,MAAM,GAAG,cAAc,CAAC;AACxB,QAAA,KAAK,GAAG,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArmorIQ — Google ADK integration (TypeScript).
|
|
3
|
+
*
|
|
4
|
+
* Mirrors armoriq_sdk/integrations/google_adk.py.
|
|
5
|
+
*
|
|
6
|
+
* Multi-user pattern:
|
|
7
|
+
*
|
|
8
|
+
* import { ArmorIQADK } from '@armoriq/sdk/integrations/google_adk';
|
|
9
|
+
* const armoriq = new ArmorIQADK({ apiKey: process.env.ARMORIQ_API_KEY! });
|
|
10
|
+
*
|
|
11
|
+
* // per-request, inside your chat handler:
|
|
12
|
+
* const scope = await armoriq.forUser(userEmail, { goal: message });
|
|
13
|
+
* scope.install(rootAgent);
|
|
14
|
+
* try {
|
|
15
|
+
* for await (const event of runner.runAsync(...)) { ... }
|
|
16
|
+
* } finally {
|
|
17
|
+
* scope.uninstall(rootAgent);
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* The bundle installs three ADK lifecycle callbacks on the agent:
|
|
21
|
+
* afterModelCallback → mint intent token from LLM tool calls
|
|
22
|
+
* beforeToolCallback → enforce per-user policy, block/hold if needed
|
|
23
|
+
* afterToolCallback → audit report
|
|
24
|
+
*
|
|
25
|
+
* "Agent" here is duck-typed — anything with three settable callback
|
|
26
|
+
* properties works. We don't take a hard dep on a specific TS ADK
|
|
27
|
+
* package because there isn't a single dominant one yet; the contract
|
|
28
|
+
* is a bag of three async functions.
|
|
29
|
+
*/
|
|
30
|
+
import { ArmorIQClient, ArmorIQUserScope } from '../client';
|
|
31
|
+
import { ArmorIQSession, SessionMode } from '../session';
|
|
32
|
+
import { ToolNameParser } from '../plan_builder';
|
|
33
|
+
export interface ArmorIQADKOptions {
|
|
34
|
+
apiKey: string;
|
|
35
|
+
backendEndpoint?: string;
|
|
36
|
+
iapEndpoint?: string;
|
|
37
|
+
proxyEndpoint?: string;
|
|
38
|
+
useProduction?: boolean;
|
|
39
|
+
defaultMcpName?: string;
|
|
40
|
+
toolNameParser?: ToolNameParser;
|
|
41
|
+
validitySeconds?: number;
|
|
42
|
+
mode?: SessionMode;
|
|
43
|
+
llm?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The minimal agent shape we need: three settable callback slots.
|
|
47
|
+
* Mirrors what google-adk-python expects on its Agent class.
|
|
48
|
+
*/
|
|
49
|
+
export interface AdkLikeAgent {
|
|
50
|
+
afterModelCallback?: (...args: any[]) => Promise<unknown> | unknown;
|
|
51
|
+
beforeToolCallback?: (tool: any, args: any, ctx?: any) => Promise<unknown> | unknown;
|
|
52
|
+
afterToolCallback?: (tool: any, args: any, ctx?: any, response?: any) => Promise<unknown> | unknown;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Process-wide ArmorIQ factory for ADK-style agents.
|
|
56
|
+
*/
|
|
57
|
+
export declare class ArmorIQADK {
|
|
58
|
+
readonly client: ArmorIQClient;
|
|
59
|
+
readonly mode: SessionMode;
|
|
60
|
+
readonly llm: string;
|
|
61
|
+
readonly validitySeconds: number;
|
|
62
|
+
readonly defaultMcpName?: string;
|
|
63
|
+
private customParser?;
|
|
64
|
+
private bootstrapData?;
|
|
65
|
+
constructor(opts: ArmorIQADKOptions);
|
|
66
|
+
bootstrap(): Promise<Record<string, any>>;
|
|
67
|
+
private toolNameParser;
|
|
68
|
+
invalidateUser(userEmail: string): void;
|
|
69
|
+
forUser(userEmail: string, opts?: {
|
|
70
|
+
goal?: string;
|
|
71
|
+
}): Promise<ArmorIQADKBundle>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Per-request ADK bundle — installs/uninstalls lifecycle callbacks on
|
|
75
|
+
* one agent and binds them to one user's session.
|
|
76
|
+
*/
|
|
77
|
+
export declare class ArmorIQADKBundle {
|
|
78
|
+
readonly userEmail: string;
|
|
79
|
+
readonly goal: string;
|
|
80
|
+
session?: ArmorIQSession;
|
|
81
|
+
private factory;
|
|
82
|
+
private scope;
|
|
83
|
+
private parser;
|
|
84
|
+
private planMinted;
|
|
85
|
+
private blockedTools;
|
|
86
|
+
private blockedActions;
|
|
87
|
+
private agent?;
|
|
88
|
+
private saved;
|
|
89
|
+
constructor(args: {
|
|
90
|
+
factory: ArmorIQADK;
|
|
91
|
+
scope: ArmorIQUserScope;
|
|
92
|
+
parser: ToolNameParser;
|
|
93
|
+
userEmail: string;
|
|
94
|
+
goal: string;
|
|
95
|
+
});
|
|
96
|
+
private ensureSession;
|
|
97
|
+
private afterModel;
|
|
98
|
+
private beforeTool;
|
|
99
|
+
private afterTool;
|
|
100
|
+
/**
|
|
101
|
+
* Attach the three callbacks to the ADK-style agent. Save originals
|
|
102
|
+
* for uninstall().
|
|
103
|
+
*/
|
|
104
|
+
install(agent: AdkLikeAgent): this;
|
|
105
|
+
uninstall(agent?: AdkLikeAgent): void;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=google_adk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google_adk.d.ts","sourceRoot":"","sources":["../../src/integrations/google_adk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE5D,OAAO,EACL,cAAc,EAEd,WAAW,EAEZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,kBAAkB,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACpE,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACrF,iBAAiB,CAAC,EAAE,CA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