@sequenceholdings/studio-cli 0.3.0 → 0.4.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.
- package/README.md +465 -28
- package/dist/agents/commands.d.ts +1 -1
- package/dist/agents/commands.js +5 -0
- package/dist/agents/scaffold.js +5 -7
- package/dist/agents/voice-authoring.d.ts +5 -0
- package/dist/agents/voice-authoring.js +75 -0
- package/dist/agents/voice-publication.d.ts +5 -0
- package/dist/agents/voice-publication.js +63 -0
- package/dist/agents/voice-shared.d.ts +20 -0
- package/dist/agents/voice-shared.js +112 -0
- package/dist/agents/voice.d.ts +3 -0
- package/dist/agents/voice.js +57 -0
- package/dist/app/adapters.d.ts +6 -0
- package/dist/app/adapters.js +17 -2
- package/dist/app/agent-refs.d.ts +16 -0
- package/dist/app/agent-refs.js +36 -0
- package/dist/app/application-registration.d.ts +31 -5
- package/dist/app/application-registration.js +58 -14
- package/dist/app/commands.js +19 -2
- package/dist/app/deploy.d.ts +3 -0
- package/dist/app/deploy.js +18 -4
- package/dist/app/env-bindings.d.ts +21 -0
- package/dist/app/env-bindings.js +184 -0
- package/dist/app/manifest-validation.js +8 -0
- package/dist/app/manifest.d.ts +13 -9
- package/dist/app/manifest.js +1 -1
- package/dist/app/primitive-scaffold.d.ts +4 -1
- package/dist/app/primitive-scaffold.js +4 -4
- package/dist/app/readme.js +1 -0
- package/dist/app/scaffold-files.js +1 -1
- package/dist/app/scaffold.d.ts +6 -4
- package/dist/app/scaffold.js +7 -4
- package/dist/app/workspace-scaffold.js +12 -7
- package/dist/argv.d.ts +7 -0
- package/dist/argv.js +56 -0
- package/dist/artifact/delegate.js +8 -4
- package/dist/atlas-client.d.ts +6 -0
- package/dist/atlas-client.js +39 -2
- package/dist/auth.d.ts +32 -0
- package/dist/auth.js +170 -33
- package/dist/bin.js +23 -4
- package/dist/command-contract.d.ts +137 -0
- package/dist/command-contract.js +43 -0
- package/dist/command-help.d.ts +8 -0
- package/dist/command-help.js +71 -0
- package/dist/functions/commands.d.ts +1 -1
- package/dist/functions/commands.js +19 -3
- package/dist/functions/deploy-preflight.d.ts +21 -0
- package/dist/functions/deploy-preflight.js +58 -0
- package/dist/functions/egress-postgres.d.ts +7 -0
- package/dist/functions/egress-postgres.js +36 -0
- package/dist/functions/manifest.d.ts +8 -0
- package/dist/functions/manifest.js +9 -0
- package/dist/functions/source-selection.js +4 -1
- package/dist/main.js +58 -20
- package/dist/orm/delegate.d.ts +16 -0
- package/dist/orm/delegate.js +140 -7
- package/dist/pipeline/clone-deploy.d.ts +37 -0
- package/dist/pipeline/clone-deploy.js +125 -0
- package/dist/pipeline/codegen.js +6 -2
- package/dist/pipeline/commands.js +21 -5
- package/dist/pipeline/lifecycle.d.ts +1 -0
- package/dist/pipeline/lifecycle.js +95 -44
- package/dist/pipeline/repin-orm.js +6 -2
- package/dist/pipeline/stage-secrets.js +1 -1
- package/dist/process/build.js +17 -0
- package/dist/process/codegen.js +16 -0
- package/dist/process/commands.d.ts +15 -7
- package/dist/process/commands.js +291 -99
- package/dist/process/lint.js +35 -0
- package/dist/process/plan-diff.js +9 -0
- package/dist/process/simulate.js +8 -0
- package/dist/release-age.d.ts +12 -0
- package/dist/release-age.js +24 -0
- package/dist/repos/commands.d.ts +1 -1
- package/dist/repos/commands.js +36 -7
- package/dist/scaffold-guidance.d.ts +4 -0
- package/dist/scaffold-guidance.js +15 -0
- package/dist/storage/commands.js +23 -1
- package/dist/storage/gcs-download.d.ts +13 -0
- package/dist/storage/gcs-download.js +41 -0
- package/dist/storage/import-cycle.d.ts +41 -0
- package/dist/storage/import-cycle.js +123 -0
- package/dist/storage/import-files.d.ts +30 -0
- package/dist/storage/import-files.js +133 -0
- package/dist/storage/import-gcloud.d.ts +12 -0
- package/dist/storage/import-gcloud.js +54 -0
- package/dist/storage/import-identity.d.ts +12 -0
- package/dist/storage/import-identity.js +15 -0
- package/dist/storage/import-plan.d.ts +120 -0
- package/dist/storage/import-plan.js +189 -0
- package/dist/storage/import-preflight.d.ts +36 -0
- package/dist/storage/import-preflight.js +62 -0
- package/dist/storage/import-progress-map.d.ts +5 -0
- package/dist/storage/import-progress-map.js +22 -0
- package/dist/storage/import-recover.d.ts +97 -0
- package/dist/storage/import-recover.js +186 -0
- package/dist/storage/import-run.d.ts +14 -0
- package/dist/storage/import-run.js +140 -0
- package/dist/templates/guidance/AGENTS.md +10 -0
- package/dist/templates/guidance/CLAUDE.md +1 -0
- package/dist/templates/process/package.json +2 -2
- package/dist/templates/process/pnpm-workspace.yaml +7 -4
- package/dist/validation-detail.d.ts +2 -0
- package/dist/validation-detail.js +20 -0
- package/package.json +9 -9
- package/templates/guidance/AGENTS.md +10 -0
- package/templates/guidance/CLAUDE.md +1 -0
- package/templates/process/package.json +2 -2
- package/templates/process/pnpm-workspace.yaml +7 -4
|
@@ -6,5 +6,5 @@ export declare function agentsPlanCommand(args: ParsedArgs): Promise<number>;
|
|
|
6
6
|
export declare function agentsApplyCommand(args: ParsedArgs): Promise<number>;
|
|
7
7
|
export declare function agentsListCommand(args: ParsedArgs): Promise<number>;
|
|
8
8
|
export declare function agentsShowCommand(args: ParsedArgs): Promise<number>;
|
|
9
|
-
export declare const AGENTS_USAGE = "usage:\n seq-studio agents init <dir> scaffold a typed agent\n seq-studio agents validate [--dir d] [--target app] [--only ids] offline compile + validation\n seq-studio agents plan [--dir d] [-e <env>] [--only ids] offline bundle plan or live diff\n seq-studio agents apply [--dir d] -e <env> [--only ids] [--yes] apply creates/updates; never deletes\n seq-studio agents list -e <env> list visible agents\n seq-studio agents show <id> -e <env> show one agent\n\n Source: local --dir (default .), --repo agents/<name>, or --git-url <url>.\n Use --ref for remote sources. --target selects the deployment APP_ENV when it\n differs from the CLI environment alias (notably OpCo registrations). --only\n accepts a comma-separated list of agent IDs after environment selection.\n";
|
|
9
|
+
export declare const AGENTS_USAGE = "usage:\n seq-studio agents init <dir> scaffold a typed agent\n seq-studio agents validate [--dir d] [--target app] [--only ids] offline compile + validation\n seq-studio agents plan [--dir d] [-e <env>] [--only ids] offline bundle plan or live diff\n seq-studio agents apply [--dir d] -e <env> [--only ids] [--yes] apply creates/updates; never deletes\n seq-studio agents list -e <env> list visible agents\n seq-studio agents show <id> -e <env> show one agent\n seq-studio agents voice help internal Voice authoring/publication\n\n Source: local --dir (default .), --repo agents/<name>, or --git-url <url>.\n Use --ref for remote sources. --target selects the deployment APP_ENV when it\n differs from the CLI environment alias (notably OpCo registrations). --only\n accepts a comma-separated list of agent IDs after environment selection.\n";
|
|
10
10
|
export declare function runAgentsCommand(sub: string | undefined, args: ParsedArgs): Promise<number>;
|
package/dist/agents/commands.js
CHANGED
|
@@ -198,6 +198,7 @@ export const AGENTS_USAGE = `usage:
|
|
|
198
198
|
seq-studio agents apply [--dir d] -e <env> [--only ids] [--yes] apply creates/updates; never deletes
|
|
199
199
|
seq-studio agents list -e <env> list visible agents
|
|
200
200
|
seq-studio agents show <id> -e <env> show one agent
|
|
201
|
+
seq-studio agents voice help internal Voice authoring/publication
|
|
201
202
|
|
|
202
203
|
Source: local --dir (default .), --repo agents/<name>, or --git-url <url>.
|
|
203
204
|
Use --ref for remote sources. --target selects the deployment APP_ENV when it
|
|
@@ -207,6 +208,10 @@ export const AGENTS_USAGE = `usage:
|
|
|
207
208
|
export async function runAgentsCommand(sub, args) {
|
|
208
209
|
try {
|
|
209
210
|
switch (sub) {
|
|
211
|
+
case 'voice': {
|
|
212
|
+
const { runVoiceCommand } = await import('./voice.js');
|
|
213
|
+
return await runVoiceCommand(args);
|
|
214
|
+
}
|
|
210
215
|
case 'init':
|
|
211
216
|
return await agentsInitCommand(args);
|
|
212
217
|
case 'validate':
|
package/dist/agents/scaffold.js
CHANGED
|
@@ -3,6 +3,8 @@ import { existsSync } from 'node:fs';
|
|
|
3
3
|
import { mkdir, writeFile } from 'node:fs/promises';
|
|
4
4
|
import { basename, join, resolve } from 'node:path';
|
|
5
5
|
import { currentVersion } from '../update-check.js';
|
|
6
|
+
import { FIRST_PARTY_RELEASE_AGE_EXCLUDE } from '../release-age.js';
|
|
7
|
+
import { writeScaffoldGuidance } from '../scaffold-guidance.js';
|
|
6
8
|
const LOG = '[seq-studio]';
|
|
7
9
|
const scaffoldSource = ({ id, name, }) => `import { defineAgent } from '@sequenceholdings/agent-spec'
|
|
8
10
|
|
|
@@ -41,7 +43,7 @@ export async function agentsInitCommand(args) {
|
|
|
41
43
|
private: true,
|
|
42
44
|
type: 'module',
|
|
43
45
|
scripts: { validate: 'seq-studio agents validate' },
|
|
44
|
-
dependencies: { '@sequenceholdings/agent-spec': '^0.1.
|
|
46
|
+
dependencies: { '@sequenceholdings/agent-spec': '^0.1.3' },
|
|
45
47
|
devDependencies: {
|
|
46
48
|
'@sequenceholdings/studio-cli': `^${currentVersion()}`,
|
|
47
49
|
},
|
|
@@ -61,16 +63,12 @@ export async function agentsInitCommand(args) {
|
|
|
61
63
|
|
|
62
64
|
minimumReleaseAge: 10080
|
|
63
65
|
minimumReleaseAgeExclude:
|
|
64
|
-
- '
|
|
65
|
-
- '@sequenceholdings/atlas-ui'
|
|
66
|
-
- '@sequenceholdings/lattice-form-renderer'
|
|
67
|
-
- '@sequenceholdings/artifact-studio'
|
|
68
|
-
- '@sequenceholdings/lattice'
|
|
69
|
-
- '@sequenceholdings/studio-cli'
|
|
66
|
+
${FIRST_PARTY_RELEASE_AGE_EXCLUDE.map((name) => ` - '${name}'`).join('\n')}
|
|
70
67
|
strictDepBuilds: true
|
|
71
68
|
allowBuilds:
|
|
72
69
|
esbuild: true
|
|
73
70
|
`);
|
|
71
|
+
await writeScaffoldGuidance({ directory });
|
|
74
72
|
console.log(`${LOG} scaffolded typed agent in ${directory}`);
|
|
75
73
|
console.log('Next: pnpm install && seq-studio agents validate');
|
|
76
74
|
return 0;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ParsedArgs } from '../process/commands.js';
|
|
2
|
+
export declare function voiceInspect(args: ParsedArgs): Promise<number>;
|
|
3
|
+
export declare function voiceExport(args: ParsedArgs): Promise<number>;
|
|
4
|
+
export declare function voiceSave(args: ParsedArgs): Promise<number>;
|
|
5
|
+
export declare function voiceCapture(args: ParsedArgs): Promise<number>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { generateAgentSource, voiceAgentDefinitionSchema, voiceDraftSchema, voiceDraftSaveRequestSchema, voiceSkillSourceStatusSchema, voiceSkillCaptureRequestSchema, voiceSupportedAuthoringOptionsSchema } from '@sequenceholdings/agent-spec';
|
|
3
|
+
import { readConfig } from '../config.js';
|
|
4
|
+
import { confirmYes } from '../prompt.js';
|
|
5
|
+
import { flagBool } from '../functions/commands.js';
|
|
6
|
+
import { compileAgentSource, materializeAgentSource } from './source.js';
|
|
7
|
+
import { agentId, checked, output, readRequestFile, requireVoiceHuman, requiredFlag, revision, voiceContext, voiceRequest, VoiceCliError } from './voice-shared.js';
|
|
8
|
+
const draftRead = z.object({ draft: voiceDraftSchema, sources: z.array(voiceSkillSourceStatusSchema).max(32) });
|
|
9
|
+
export async function voiceInspect(args) {
|
|
10
|
+
const id = agentId(args), context = await voiceContext(args);
|
|
11
|
+
const [content, builder] = await Promise.all([
|
|
12
|
+
voiceRequest({ context, path: `/drafts/${id}?sources=true`, schema: draftRead }),
|
|
13
|
+
voiceRequest({ context, path: `/builder?agentId=${id}`, schema: z.object({
|
|
14
|
+
options: voiceSupportedAuthoringOptionsSchema, canPublish: z.boolean()
|
|
15
|
+
}) }),
|
|
16
|
+
]);
|
|
17
|
+
if (content.draft.agentId !== id)
|
|
18
|
+
throw new VoiceCliError('Draft Agent identity mismatch');
|
|
19
|
+
await output(args, { ...content, ...builder });
|
|
20
|
+
return 0;
|
|
21
|
+
}
|
|
22
|
+
export async function voiceExport(args) {
|
|
23
|
+
const id = agentId(args), context = await voiceContext(args);
|
|
24
|
+
const draft = await voiceRequest({ context, path: `/drafts/${id}`, schema: voiceDraftSchema });
|
|
25
|
+
if (draft.agentId !== id)
|
|
26
|
+
throw new VoiceCliError('Draft Agent identity mismatch');
|
|
27
|
+
// Only the strict authored definition reaches the shared UI/code serializer.
|
|
28
|
+
// Provider releases, call grants and draft audit metadata are not exported.
|
|
29
|
+
await output(args, null, generateAgentSource({ definition: draft.definition }));
|
|
30
|
+
return 0;
|
|
31
|
+
}
|
|
32
|
+
export async function voiceSave(args) {
|
|
33
|
+
const id = agentId(args);
|
|
34
|
+
const expectedRevision = requiredFlag(args, 'expected-revision') === 'new' ? null : revision(args);
|
|
35
|
+
const { source, context } = await materializeAgentSource({ args, requireEnvironment: true });
|
|
36
|
+
try {
|
|
37
|
+
if (!context)
|
|
38
|
+
throw new VoiceCliError('Missing target environment');
|
|
39
|
+
requireVoiceHuman(context);
|
|
40
|
+
const bundle = await compileAgentSource({ directory: source.dir,
|
|
41
|
+
targetEnvironment: typeof args.flags.target === 'string' ? args.flags.target : context.env.name,
|
|
42
|
+
deployEnvironments: Object.keys((await readConfig()).envs), onlyIds: [id] });
|
|
43
|
+
if (bundle.definitions.length !== 1)
|
|
44
|
+
throw new VoiceCliError('Select exactly one Voice definition');
|
|
45
|
+
const definition = checked(voiceAgentDefinitionSchema, bundle.definitions[0]);
|
|
46
|
+
const body = checked(voiceDraftSaveRequestSchema, { agentId: id, expectedRevision, definition });
|
|
47
|
+
if (!await confirmYes({ confirmed: flagBool(args.flags, 'yes'), preview: [
|
|
48
|
+
`[seq-studio] save Voice draft ${id} in ${context.env.name} at revision ${expectedRevision ?? 'new'}`,
|
|
49
|
+
`[seq-studio] bundle ${bundle.hash}; source ${source.provenance.gitCommit ?? 'local'}`,
|
|
50
|
+
'[seq-studio] captured SOP text is retained; publication is a separate command',
|
|
51
|
+
] }))
|
|
52
|
+
return 1;
|
|
53
|
+
const result = await voiceRequest({ context, path: `/drafts/${id}`, method: 'PUT', body, schema: voiceDraftSchema });
|
|
54
|
+
await output(args, result);
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
finally {
|
|
58
|
+
await source.cleanup();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export async function voiceCapture(args) {
|
|
62
|
+
const id = agentId(args), body = await readRequestFile(args, voiceSkillCaptureRequestSchema);
|
|
63
|
+
if (body.agentId !== id)
|
|
64
|
+
throw new VoiceCliError('Request Agent identity mismatch');
|
|
65
|
+
const context = await voiceContext(args);
|
|
66
|
+
if (!await confirmYes({ confirmed: flagBool(args.flags, 'yes'), preview: [
|
|
67
|
+
`[seq-studio] ${body.action} Skill ${body.skillId} into ${id} in ${context.env.name}`,
|
|
68
|
+
`[seq-studio] draft revision ${body.expectedDraftRevision}; procedure ${body.procedureKey}`,
|
|
69
|
+
'[seq-studio] explicitly captures current Skill text; does not publish or edit the source Skill',
|
|
70
|
+
] }))
|
|
71
|
+
return 1;
|
|
72
|
+
await output(args, await voiceRequest({ context, path: `/drafts/${id}/skills`, method: 'POST', body,
|
|
73
|
+
schema: voiceDraftSchema }));
|
|
74
|
+
return 0;
|
|
75
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ParsedArgs } from '../process/commands.js';
|
|
2
|
+
export declare function voiceValidate(args: ParsedArgs): Promise<number>;
|
|
3
|
+
export declare function voicePublish(args: ParsedArgs): Promise<number>;
|
|
4
|
+
export declare function voiceStatus(args: ParsedArgs): Promise<number>;
|
|
5
|
+
export declare function voiceRetry(args: ParsedArgs): Promise<number>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { voicePublishRequestSchema, voicePublishValidationResponseSchema, voicePublicationResponseSchema, voicePublicationReadRequestSchema } from '@sequenceholdings/agent-spec';
|
|
3
|
+
import { confirmYes } from '../prompt.js';
|
|
4
|
+
import { flagBool } from '../functions/commands.js';
|
|
5
|
+
import { agentId, checked, output, readRequestFile, requiredFlag, revision, voiceContext, voiceRequest, VoiceCliError } from './voice-shared.js';
|
|
6
|
+
export async function voiceValidate(args) {
|
|
7
|
+
const id = agentId(args), expectedDraftRevision = revision(args), context = await voiceContext(args);
|
|
8
|
+
await output(args, await voiceRequest({ context, path: `/${id}/validate`, method: 'POST',
|
|
9
|
+
body: { agentId: id, expectedDraftRevision }, schema: voicePublishValidationResponseSchema }));
|
|
10
|
+
return 0;
|
|
11
|
+
}
|
|
12
|
+
export async function voicePublish(args) {
|
|
13
|
+
const id = agentId(args), body = await readRequestFile(args, voicePublishRequestSchema);
|
|
14
|
+
if (body.agentId !== id)
|
|
15
|
+
throw new VoiceCliError('Request Agent identity mismatch');
|
|
16
|
+
checked(z.uuid(), body.idempotencyKey);
|
|
17
|
+
const context = await voiceContext(args);
|
|
18
|
+
if (!await confirmYes({ confirmed: flagBool(args.flags, 'yes'), preview: [
|
|
19
|
+
`[seq-studio] publish Voice ${id} in ${context.env.name}`,
|
|
20
|
+
`[seq-studio] draft ${body.expectedDraftRevision}; deployment ${body.expectedDeploymentRevision ?? 'new'}; key ${body.idempotencyKey}`,
|
|
21
|
+
...body.toolReviewConfirmations.map((tool) => `[seq-studio] reviewed ${tool.toolAlias}: ${tool.bindingHash}`),
|
|
22
|
+
'[seq-studio] server rechecks current access and exact tool reviews; keep this request file for recovery',
|
|
23
|
+
] }))
|
|
24
|
+
return 1;
|
|
25
|
+
await output(args, await voiceRequest({ context, path: `/${id}/publish`, method: 'POST', body,
|
|
26
|
+
schema: voicePublicationResponseSchema }));
|
|
27
|
+
return 0;
|
|
28
|
+
}
|
|
29
|
+
export async function voiceStatus(args) {
|
|
30
|
+
const id = agentId(args);
|
|
31
|
+
if ((args.flags.key === undefined) === (args.flags.operation === undefined))
|
|
32
|
+
throw new VoiceCliError('Choose exactly one --key or --operation');
|
|
33
|
+
const key = args.flags.key === undefined ? null : checked(z.uuid(), requiredFlag(args, 'key'));
|
|
34
|
+
const operation = key ? null : checked(z.uuid(), requiredFlag(args, 'operation'));
|
|
35
|
+
const context = await voiceContext(args);
|
|
36
|
+
const publication = key
|
|
37
|
+
? (await voiceRequest({ context, path: `/builder?${new URLSearchParams({ agentId: id, publicationKey: key })}`,
|
|
38
|
+
schema: z.object({ publication: voicePublicationResponseSchema.nullable() }) })).publication
|
|
39
|
+
: await voiceRequest({ context, path: `/${id}/publications/${operation}`, schema: voicePublicationResponseSchema });
|
|
40
|
+
if (!publication) {
|
|
41
|
+
console.error('[seq-studio] No recorded operation yet; this does not rule out an in-flight request. Keep the original request/key.');
|
|
42
|
+
await output(args, { publication: null });
|
|
43
|
+
return 2;
|
|
44
|
+
}
|
|
45
|
+
if (publication.operation.agentId !== id || (key && publication.operation.idempotencyKey !== key) ||
|
|
46
|
+
(operation && publication.operation.publicationOperationId !== operation))
|
|
47
|
+
throw new VoiceCliError('Publication identity mismatch');
|
|
48
|
+
await output(args, publication);
|
|
49
|
+
return 0;
|
|
50
|
+
}
|
|
51
|
+
export async function voiceRetry(args) {
|
|
52
|
+
const id = agentId(args), operationId = checked(z.uuid(), requiredFlag(args, 'operation'));
|
|
53
|
+
const body = checked(voicePublicationReadRequestSchema, { agentId: id, operationId });
|
|
54
|
+
const context = await voiceContext(args);
|
|
55
|
+
if (!await confirmYes({ confirmed: flagBool(args.flags, 'yes'), preview: [
|
|
56
|
+
`[seq-studio] retry recorded Voice publication ${operationId} for ${id} in ${context.env.name}`,
|
|
57
|
+
'[seq-studio] retains the original operation; current operator and dependency checks still apply',
|
|
58
|
+
] }))
|
|
59
|
+
return 1;
|
|
60
|
+
await output(args, await voiceRequest({ context, path: `/${id}/publications/${operationId}/retry`, method: 'POST', body,
|
|
61
|
+
schema: voicePublicationResponseSchema }));
|
|
62
|
+
return 0;
|
|
63
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type CommandContext } from '../functions/commands.js';
|
|
3
|
+
import type { ParsedArgs } from '../process/commands.js';
|
|
4
|
+
export declare class VoiceCliError extends Error {
|
|
5
|
+
}
|
|
6
|
+
export declare function checked<T>(schema: z.ZodType<T>, value: unknown): T;
|
|
7
|
+
export declare function requiredFlag(args: ParsedArgs, name: string): string;
|
|
8
|
+
export declare function agentId(args: ParsedArgs): string;
|
|
9
|
+
export declare function revision(args: ParsedArgs): number;
|
|
10
|
+
export declare function requireVoiceHuman(context: CommandContext): CommandContext;
|
|
11
|
+
export declare function voiceContext(args: ParsedArgs): Promise<CommandContext>;
|
|
12
|
+
export declare function voiceRequest<T>({ context, path, schema, body, method }: {
|
|
13
|
+
context: CommandContext;
|
|
14
|
+
path: string;
|
|
15
|
+
schema: z.ZodType<T>;
|
|
16
|
+
body?: unknown;
|
|
17
|
+
method?: 'GET' | 'POST' | 'PUT';
|
|
18
|
+
}): Promise<T>;
|
|
19
|
+
export declare function readRequestFile<T>(args: ParsedArgs, schema: z.ZodType<T>): Promise<T>;
|
|
20
|
+
export declare function output(args: ParsedArgs, value: unknown, source?: string): Promise<void>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { open, writeFile } from 'node:fs/promises';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { voiceErrorSchema } from '@sequenceholdings/agent-spec';
|
|
4
|
+
import { AtlasApiError, requestJsonOnce } from '../atlas-client.js';
|
|
5
|
+
import { buildContext, clientOptions } from '../functions/commands.js';
|
|
6
|
+
const messages = {
|
|
7
|
+
DENIED: 'Current human participant/editor access is required; publication also requires an operator.',
|
|
8
|
+
DISABLED: 'Voice is unavailable in this environment. This path is restricted to the internal staging demo.',
|
|
9
|
+
STALE_REVISION: 'The draft or deployment changed. Inspect and validate again before creating a new publication request.',
|
|
10
|
+
INVALID_DEFINITION: 'Check the supported model, voice, authored fields and procedure references.',
|
|
11
|
+
MODE_MISMATCH: 'An existing Agent cannot change between text and Voice.',
|
|
12
|
+
INVALID_BINDING: 'Resolve function/catalog bindings in the target environment and validate again.',
|
|
13
|
+
SOURCE_MISSING: 'A native Skill reference is unresolved in this environment. Create/select it in the Skill UI and attach it explicitly.',
|
|
14
|
+
SOURCE_FORBIDDEN: 'Current access to a referenced native Skill is required.',
|
|
15
|
+
IDEMPOTENCY_CONFLICT: 'This key already identifies a different publication request. Inspect its status; do not overwrite its request file.',
|
|
16
|
+
NOT_FOUND: 'The draft or publication was not found. An absent operation does not rule out an in-flight request.',
|
|
17
|
+
WAITING_FOR_IDLE: 'Publication is waiting. Inspect its status before explicitly retrying the recorded operation.',
|
|
18
|
+
DEPENDENCY_MAINTENANCE: 'A dependency is under maintenance. Inspect publication status.',
|
|
19
|
+
};
|
|
20
|
+
const uncertain = 'The result is uncertain. No automatic retry was sent. Inspect the draft or publication key before taking further action; keep the original publication request file.';
|
|
21
|
+
export class VoiceCliError extends Error {
|
|
22
|
+
}
|
|
23
|
+
export function checked(schema, value) {
|
|
24
|
+
const parsed = schema.safeParse(value);
|
|
25
|
+
if (!parsed.success)
|
|
26
|
+
throw new VoiceCliError(`Invalid Voice data: ${parsed.error.issues
|
|
27
|
+
.slice(0, 8).map((issue) => `${issue.path.join('.') || 'request'}: ${issue.message}`).join('; ')}`);
|
|
28
|
+
return parsed.data;
|
|
29
|
+
}
|
|
30
|
+
export function requiredFlag(args, name) {
|
|
31
|
+
const value = args.flags[name];
|
|
32
|
+
if (typeof value !== 'string' || !value.trim())
|
|
33
|
+
throw new VoiceCliError(`--${name} requires a value`);
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
export function agentId(args) {
|
|
37
|
+
return checked(z.string().regex(/^[0-9a-f]{24}$/), args.positional[0]);
|
|
38
|
+
}
|
|
39
|
+
export function revision(args) {
|
|
40
|
+
const value = requiredFlag(args, 'expected-revision');
|
|
41
|
+
if (!/^(0|[1-9][0-9]*)$/.test(value))
|
|
42
|
+
throw new VoiceCliError('--expected-revision must be a nonnegative integer');
|
|
43
|
+
return checked(z.number().int().nonnegative().safe(), Number(value));
|
|
44
|
+
}
|
|
45
|
+
export function requireVoiceHuman(context) {
|
|
46
|
+
if (context.authMode !== 'user')
|
|
47
|
+
throw new VoiceCliError('Voice requires a human login. Use seq-studio login for this environment and unset SEQAPI_AUTH_MODE=m2m; machine credentials cannot publish Voice.');
|
|
48
|
+
return context;
|
|
49
|
+
}
|
|
50
|
+
export async function voiceContext(args) {
|
|
51
|
+
return requireVoiceHuman(await buildContext(args));
|
|
52
|
+
}
|
|
53
|
+
const errorEnvelope = z.object({ ok: z.literal(false), error: voiceErrorSchema });
|
|
54
|
+
function serverFailure(value, status) {
|
|
55
|
+
const parsed = errorEnvelope.safeParse(value);
|
|
56
|
+
if (parsed.success)
|
|
57
|
+
return new VoiceCliError(`${parsed.data.error.code}: ${messages[parsed.data.error.code] ?? uncertain}`);
|
|
58
|
+
return new VoiceCliError(status === 401 || status === 403 ? `DENIED: ${messages.DENIED}` : uncertain);
|
|
59
|
+
}
|
|
60
|
+
export async function voiceRequest({ context, path, schema, body, method = 'GET' }) {
|
|
61
|
+
requireVoiceHuman(context);
|
|
62
|
+
try {
|
|
63
|
+
const envelope = await requestJsonOnce({ ...clientOptions(context), path: `/api/agents/voice-demo${path}`, method, body });
|
|
64
|
+
const parsed = z.object({ ok: z.literal(true), value: schema }).safeParse(envelope);
|
|
65
|
+
if (!parsed.success)
|
|
66
|
+
throw serverFailure(envelope);
|
|
67
|
+
return parsed.data.value;
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
if (error instanceof VoiceCliError)
|
|
71
|
+
throw error;
|
|
72
|
+
if (error instanceof AtlasApiError)
|
|
73
|
+
throw serverFailure(error.body, error.status);
|
|
74
|
+
throw new VoiceCliError(uncertain);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export async function readRequestFile(args, schema) {
|
|
78
|
+
const file = await open(requiredFlag(args, 'request-file'), 'r');
|
|
79
|
+
try {
|
|
80
|
+
const buffer = Buffer.alloc(1_048_577);
|
|
81
|
+
let length = 0;
|
|
82
|
+
for (;;) {
|
|
83
|
+
const read = await file.read(buffer, length, buffer.length - length, null);
|
|
84
|
+
length += read.bytesRead;
|
|
85
|
+
if (length > 1_048_576)
|
|
86
|
+
throw new VoiceCliError('Request file exceeds 1 MiB');
|
|
87
|
+
if (!read.bytesRead)
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
let value;
|
|
91
|
+
try {
|
|
92
|
+
value = JSON.parse(buffer.subarray(0, length).toString('utf8'));
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
throw new VoiceCliError('Request file must contain JSON');
|
|
96
|
+
}
|
|
97
|
+
return checked(schema, value);
|
|
98
|
+
}
|
|
99
|
+
finally {
|
|
100
|
+
await file.close();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
export async function output(args, value, source) {
|
|
104
|
+
const text = source ?? `${JSON.stringify(value, null, 2)}\n`;
|
|
105
|
+
if (args.flags.out === undefined) {
|
|
106
|
+
process.stdout.write(text);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const file = requiredFlag(args, 'out');
|
|
110
|
+
await writeFile(file, text, { flag: 'wx', mode: 0o600 });
|
|
111
|
+
console.error(`[seq-studio] wrote ${file}; existing files are never overwritten`);
|
|
112
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ParsedArgs } from '../process/commands.js';
|
|
2
|
+
export declare const VOICE_USAGE = "usage: seq-studio agents voice <command> <agent-id> -e <env>\n inspect read captured draft, source drift and supported options\n export [--out agent.ts] export the exact captured authored definition\n save --expected-revision <N|new> [--dir d|--repo agents/name|--git-url url]\n [--ref ref] [--target APP_ENV] [--yes] compile one ID and save its draft\n capture --request-file capture.json [--yes] explicitly attach/refresh a native Skill\n validate --expected-revision N [--out review.json] review current publication bindings\n publish --request-file publication.json [--yes] publish an explicit durable request\n status --key UUID | --operation UUID inspect without replaying a mutation\n retry --operation UUID [--yes] resume only the recorded publication\n\nInternal synthetic staging demo only. Requires seq-studio login as a current human\nparticipant/editor; publication requires an operator. Machine auth is rejected.\nGeneric agents apply never activates Voice. Import/export does not refresh Skills.\nRequest-file schemas and examples are in the CLI README. --yes confirms the shown\naction; it never supplies missing tool reviews. Keep publication files and keys for\nrecovery; no automatic mutation retry. Output files are created, never overwritten.\nStatus exits 2 when no operation is recorded (an in-flight request may still arrive).\n";
|
|
3
|
+
export declare function runVoiceCommand(args: ParsedArgs): Promise<number>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { voiceCapture, voiceExport, voiceInspect, voiceSave } from './voice-authoring.js';
|
|
2
|
+
import { voicePublish, voiceRetry, voiceStatus, voiceValidate } from './voice-publication.js';
|
|
3
|
+
import { VoiceCliError } from './voice-shared.js';
|
|
4
|
+
export const VOICE_USAGE = `usage: seq-studio agents voice <command> <agent-id> -e <env>
|
|
5
|
+
inspect read captured draft, source drift and supported options
|
|
6
|
+
export [--out agent.ts] export the exact captured authored definition
|
|
7
|
+
save --expected-revision <N|new> [--dir d|--repo agents/name|--git-url url]
|
|
8
|
+
[--ref ref] [--target APP_ENV] [--yes] compile one ID and save its draft
|
|
9
|
+
capture --request-file capture.json [--yes] explicitly attach/refresh a native Skill
|
|
10
|
+
validate --expected-revision N [--out review.json] review current publication bindings
|
|
11
|
+
publish --request-file publication.json [--yes] publish an explicit durable request
|
|
12
|
+
status --key UUID | --operation UUID inspect without replaying a mutation
|
|
13
|
+
retry --operation UUID [--yes] resume only the recorded publication
|
|
14
|
+
|
|
15
|
+
Internal synthetic staging demo only. Requires seq-studio login as a current human
|
|
16
|
+
participant/editor; publication requires an operator. Machine auth is rejected.
|
|
17
|
+
Generic agents apply never activates Voice. Import/export does not refresh Skills.
|
|
18
|
+
Request-file schemas and examples are in the CLI README. --yes confirms the shown
|
|
19
|
+
action; it never supplies missing tool reviews. Keep publication files and keys for
|
|
20
|
+
recovery; no automatic mutation retry. Output files are created, never overwritten.
|
|
21
|
+
Status exits 2 when no operation is recorded (an in-flight request may still arrive).
|
|
22
|
+
`;
|
|
23
|
+
const commands = {
|
|
24
|
+
inspect: { run: voiceInspect, flags: ['out'] },
|
|
25
|
+
export: { run: voiceExport, flags: ['out'] },
|
|
26
|
+
save: { run: voiceSave, flags: ['dir', 'repo', 'git-url', 'ref', 'target', 'expected-revision', 'yes'] },
|
|
27
|
+
capture: { run: voiceCapture, flags: ['request-file', 'yes'] },
|
|
28
|
+
validate: { run: voiceValidate, flags: ['expected-revision', 'out'] },
|
|
29
|
+
publish: { run: voicePublish, flags: ['request-file', 'yes'] },
|
|
30
|
+
status: { run: voiceStatus, flags: ['key', 'operation', 'out'] },
|
|
31
|
+
retry: { run: voiceRetry, flags: ['operation', 'yes'] },
|
|
32
|
+
};
|
|
33
|
+
export async function runVoiceCommand(args) {
|
|
34
|
+
const [name, ...positional] = args.positional;
|
|
35
|
+
if (!name || name === 'help' || args.flags.help || args.flags.h) {
|
|
36
|
+
console.log(VOICE_USAGE);
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
39
|
+
const command = Object.hasOwn(commands, name) ? commands[name] : undefined;
|
|
40
|
+
if (!command)
|
|
41
|
+
throw new VoiceCliError(`Unknown Voice command: ${name}\n${VOICE_USAGE}`);
|
|
42
|
+
if (positional.length !== 1)
|
|
43
|
+
throw new VoiceCliError('Provide exactly one Agent ID');
|
|
44
|
+
for (const [flag, values] of Object.entries(args.repeatedFlags ?? {})) {
|
|
45
|
+
if (values.length > 1)
|
|
46
|
+
throw new VoiceCliError(`Repeated --${flag} is ambiguous`);
|
|
47
|
+
}
|
|
48
|
+
for (const [flag, value] of Object.entries(args.flags)) {
|
|
49
|
+
if (![...command.flags, 'e', 'env'].includes(flag))
|
|
50
|
+
throw new VoiceCliError(`Unsupported --${flag} for Voice ${name}`);
|
|
51
|
+
if (flag === 'yes' ? typeof value !== 'boolean' : typeof value !== 'string' || !value.trim())
|
|
52
|
+
throw new VoiceCliError(`Invalid --${flag} value`);
|
|
53
|
+
}
|
|
54
|
+
if (args.flags.e && args.flags.env && args.flags.e !== args.flags.env)
|
|
55
|
+
throw new VoiceCliError('Conflicting target environments');
|
|
56
|
+
return command.run({ positional, flags: args.flags });
|
|
57
|
+
}
|
package/dist/app/adapters.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { DeployPrimitiveArgs, PrimitiveDeployers } from './deploy.js';
|
|
2
2
|
import type { PrimitiveEntry } from './manifest.js';
|
|
3
|
+
/**
|
|
4
|
+
* The pipeline's release unit — its id in Atlas, the same one deploy
|
|
5
|
+
* registers: `pipelines/<name>`, or `apps/<name>@<path>` for one of an app's
|
|
6
|
+
* pipelines.
|
|
7
|
+
*/
|
|
8
|
+
export declare function pipelineReleaseUnit(entry: PrimitiveEntry): string | undefined;
|
|
3
9
|
/**
|
|
4
10
|
* Validate every selected source before any deployer runs. Pipeline source is
|
|
5
11
|
* materialized read-only from git and pinned. Live runtime reference checks
|
package/dist/app/adapters.js
CHANGED
|
@@ -63,6 +63,17 @@ function requirePipelineSource({ entry }) {
|
|
|
63
63
|
function pipelineRoot(entry) {
|
|
64
64
|
return entry.repo?.startsWith('apps/') ? entry.path : undefined;
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* The pipeline's release unit — its id in Atlas, the same one deploy
|
|
68
|
+
* registers: `pipelines/<name>`, or `apps/<name>@<path>` for one of an app's
|
|
69
|
+
* pipelines.
|
|
70
|
+
*/
|
|
71
|
+
export function pipelineReleaseUnit(entry) {
|
|
72
|
+
if (!entry.repo)
|
|
73
|
+
return undefined;
|
|
74
|
+
const root = pipelineRoot(entry);
|
|
75
|
+
return root ? `${entry.repo}@${root}` : entry.repo;
|
|
76
|
+
}
|
|
66
77
|
/** Pin the source validated during preflight so a moving branch cannot swap it. */
|
|
67
78
|
async function validatePipelineSource(args) {
|
|
68
79
|
const { repo, ref } = requirePipelineSource(args);
|
|
@@ -140,8 +151,12 @@ export async function validateAppPrimitive(args) {
|
|
|
140
151
|
break;
|
|
141
152
|
}
|
|
142
153
|
case 'artifact': {
|
|
143
|
-
if (env !== 'local')
|
|
144
|
-
assertActiveDeployProvenance(
|
|
154
|
+
if (env !== 'local') {
|
|
155
|
+
assertActiveDeployProvenance({
|
|
156
|
+
...localGitMetadata(path),
|
|
157
|
+
environment: env,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
145
160
|
const { runArtifactCommand } = await import('../artifact/delegate.js');
|
|
146
161
|
code = await runArtifactCommand('validate', [path]);
|
|
147
162
|
break;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AppManifest } from './manifest.js';
|
|
2
|
+
/**
|
|
3
|
+
* Primitive id -> the Agent Builder agent id an agent entry deploys, so the
|
|
4
|
+
* Application's Dependencies graph can show which agent it is, what it uses,
|
|
5
|
+
* and its traffic. Read the way `agents apply` reads the directory (its
|
|
6
|
+
* deploy-manifest.json for the target environment, else the agent.ts files
|
|
7
|
+
* themselves; a static parse, no install needed), and only when the entry
|
|
8
|
+
* selects exactly one agent: a directory of several agents stays one
|
|
9
|
+
* unresolved component. An unreadable directory resolves nothing — never a
|
|
10
|
+
* failed deploy.
|
|
11
|
+
*/
|
|
12
|
+
export declare function agentComponentRefs({ manifest, rootDir, env, }: {
|
|
13
|
+
manifest: AppManifest;
|
|
14
|
+
rootDir: string;
|
|
15
|
+
env: string;
|
|
16
|
+
}): Promise<Map<string, string>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { compileAgentSource } from '../agents/source.js';
|
|
2
|
+
import { resolveContainedPrimitivePath } from './paths.js';
|
|
3
|
+
/**
|
|
4
|
+
* Primitive id -> the Agent Builder agent id an agent entry deploys, so the
|
|
5
|
+
* Application's Dependencies graph can show which agent it is, what it uses,
|
|
6
|
+
* and its traffic. Read the way `agents apply` reads the directory (its
|
|
7
|
+
* deploy-manifest.json for the target environment, else the agent.ts files
|
|
8
|
+
* themselves; a static parse, no install needed), and only when the entry
|
|
9
|
+
* selects exactly one agent: a directory of several agents stays one
|
|
10
|
+
* unresolved component. An unreadable directory resolves nothing — never a
|
|
11
|
+
* failed deploy.
|
|
12
|
+
*/
|
|
13
|
+
export async function agentComponentRefs({ manifest, rootDir, env, }) {
|
|
14
|
+
const refs = new Map();
|
|
15
|
+
for (const entry of manifest.primitives) {
|
|
16
|
+
if (entry.kind !== 'agent')
|
|
17
|
+
continue;
|
|
18
|
+
try {
|
|
19
|
+
const target = entry.target ?? env;
|
|
20
|
+
const bundle = await compileAgentSource({
|
|
21
|
+
directory: await resolveContainedPrimitivePath({ rootDir, entryPath: entry.path }),
|
|
22
|
+
targetEnvironment: target,
|
|
23
|
+
// Selection only: a target the directory doesn't name selects its wildcard agents.
|
|
24
|
+
deployEnvironments: [target],
|
|
25
|
+
...(entry.only ? { onlyIds: entry.only } : {}),
|
|
26
|
+
});
|
|
27
|
+
const [only, ...more] = bundle.definitions;
|
|
28
|
+
if (only && more.length === 0)
|
|
29
|
+
refs.set(entry.id, only.id);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
// No ref: the graph shows the agent without resolving it, as before.
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return refs;
|
|
36
|
+
}
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
* Registering a schema_version 3 app with Atlas as an Application, after its
|
|
3
3
|
* primitives deploy (`PUT /api/custom-roles/applications/<app.id>`).
|
|
4
4
|
*
|
|
5
|
+
* Members the deployer doesn't administer aren't an error: Atlas records a
|
|
6
|
+
* consent request for their admins and the deploy succeeds with those
|
|
7
|
+
* members' includes dormant. The log says who to ask.
|
|
8
|
+
*
|
|
5
9
|
* The YAML's `role: end_user | invoker` alias becomes the server's single
|
|
6
10
|
* `{ type: 'end_user' }` spelling here, so the API has one contract. Members
|
|
7
|
-
* are the artifact/function/ORM primitives
|
|
8
|
-
* referenced by the stable names that resolve in every environment.
|
|
11
|
+
* are the artifact/function/ORM primitives, single-process entries and
|
|
12
|
+
* pipelines, referenced by the stable names that resolve in every environment.
|
|
9
13
|
*/
|
|
10
14
|
import { type ClientOptions } from '../atlas-client.js';
|
|
11
15
|
import { type AppManifest, type PrimitiveEntry } from './manifest.js';
|
|
12
|
-
type MemberKind = 'artifact' | 'function' | 'orm' | 'lattice';
|
|
16
|
+
type MemberKind = 'artifact' | 'function' | 'orm' | 'lattice' | 'pipeline';
|
|
13
17
|
export interface ApplicationDeployMember {
|
|
14
18
|
key: string;
|
|
15
19
|
kind: MemberKind;
|
|
@@ -70,11 +74,30 @@ export interface ApplicationDeployWarning {
|
|
|
70
74
|
kind?: string;
|
|
71
75
|
detail: string;
|
|
72
76
|
}
|
|
73
|
-
|
|
77
|
+
/**
|
|
78
|
+
* `agentRefs`: primitive id -> the agent an agent entry deploys (see
|
|
79
|
+
* agent-refs.ts). Without it, an agent component names its agent only when
|
|
80
|
+
* `only` selects exactly one.
|
|
81
|
+
*/
|
|
82
|
+
export declare function buildApplicationDeployBody(manifest: AppManifest, { agentRefs }?: {
|
|
83
|
+
agentRefs?: ReadonlyMap<string, string>;
|
|
84
|
+
}): ApplicationDeployBody;
|
|
85
|
+
/** A member the deploy left waiting for its admins' consent (older servers send none). */
|
|
86
|
+
export interface ApplicationConsentRequest {
|
|
87
|
+
member: string;
|
|
88
|
+
kind: MemberKind;
|
|
89
|
+
ref: string;
|
|
90
|
+
/** `runtime` (use, roles, capabilities) or `collaborator` (edit tiers too). */
|
|
91
|
+
level: string;
|
|
92
|
+
/** The member had been withdrawn or declined before this request. */
|
|
93
|
+
previously: string | null;
|
|
94
|
+
}
|
|
74
95
|
export type ApplicationRegistration = {
|
|
75
96
|
status: 'registered';
|
|
76
97
|
created: boolean;
|
|
77
98
|
warnings: ApplicationDeployWarning[];
|
|
99
|
+
/** Members whose admins must allow this Application before roles reach them. Older servers send none. */
|
|
100
|
+
requested?: ApplicationConsentRequest[];
|
|
78
101
|
} | {
|
|
79
102
|
status: 'failed';
|
|
80
103
|
message: string;
|
|
@@ -82,10 +105,13 @@ export type ApplicationRegistration = {
|
|
|
82
105
|
export type RegisterApplication = (args: {
|
|
83
106
|
manifest: AppManifest;
|
|
84
107
|
env: string;
|
|
108
|
+
/** Primitive id -> the agent an agent entry deploys. */
|
|
109
|
+
agentRefs?: ReadonlyMap<string, string>;
|
|
85
110
|
}) => Promise<ApplicationRegistration>;
|
|
86
|
-
export declare function putApplication({ client, manifest, }: {
|
|
111
|
+
export declare function putApplication({ client, manifest, agentRefs, }: {
|
|
87
112
|
client: ClientOptions;
|
|
88
113
|
manifest: AppManifest;
|
|
114
|
+
agentRefs?: ReadonlyMap<string, string>;
|
|
89
115
|
}): Promise<ApplicationRegistration>;
|
|
90
116
|
export declare function logApplicationRegistration({ appId, registration, }: {
|
|
91
117
|
appId: string;
|