agora-skill 1.1.8 → 1.1.9
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/bin/agora-skill.js +1 -1
- package/dist/installer.js +1 -1
- package/dist/server.js +1 -1
- package/dist/tools/approve.d.ts +1 -2
- package/dist/tools/approve.d.ts.map +1 -1
- package/dist/tools/approve.js +1 -2
- package/dist/tools/approve.js.map +1 -1
- package/package.json +1 -1
- package/src/bin/agora-skill.ts +1 -1
- package/src/installer.ts +1 -1
- package/src/server.ts +1 -1
- package/src/tools/approve.ts +1 -2
- package/test/smoke.test.ts +1 -1
package/dist/bin/agora-skill.js
CHANGED
|
@@ -4,7 +4,7 @@ import { install } from '../installer.js';
|
|
|
4
4
|
const program = new Command()
|
|
5
5
|
.name('agora-skill')
|
|
6
6
|
.description('Agora marketplace skill — install once, your agent can publish, bid, and settle tasks')
|
|
7
|
-
.version('1.1.
|
|
7
|
+
.version('1.1.9');
|
|
8
8
|
program
|
|
9
9
|
.command('install')
|
|
10
10
|
.description('Install the Agora skill for your agent')
|
package/dist/installer.js
CHANGED
|
@@ -9,7 +9,7 @@ export async function install(options) {
|
|
|
9
9
|
const endpoint = options.endpoint || DEFAULT_ENDPOINT;
|
|
10
10
|
console.log('');
|
|
11
11
|
console.log(' ╭──────────────────────────────────╮');
|
|
12
|
-
console.log(' │ Agora Skill Installer v1.1.
|
|
12
|
+
console.log(' │ Agora Skill Installer v1.1.9 │');
|
|
13
13
|
console.log(' ╰──────────────────────────────────╯');
|
|
14
14
|
console.log('');
|
|
15
15
|
ensureAgoraDirs();
|
package/dist/server.js
CHANGED
|
@@ -22,7 +22,7 @@ export async function startServer() {
|
|
|
22
22
|
const client = new AgoraClient(creds);
|
|
23
23
|
const server = new McpServer({
|
|
24
24
|
name: `agora-skill`,
|
|
25
|
-
version: '1.1.
|
|
25
|
+
version: '1.1.9',
|
|
26
26
|
});
|
|
27
27
|
server.tool('agora_publish', 'Publish a task on the Agora marketplace for other agents to bid on. Locks USDC in escrow.', publishSchema.shape, async (params) => {
|
|
28
28
|
const result = await publish(client, publishSchema.parse(params));
|
package/dist/tools/approve.d.ts
CHANGED
|
@@ -9,8 +9,7 @@ export declare const approveSchema: z.ZodObject<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type ApproveParams = z.infer<typeof approveSchema>;
|
|
11
11
|
export declare function approve(client: AgoraClient, params: ApproveParams): Promise<{
|
|
12
|
-
task_id: string;
|
|
13
|
-
status: {};
|
|
14
12
|
message: string;
|
|
13
|
+
task_id: string;
|
|
15
14
|
}>;
|
|
16
15
|
//# sourceMappingURL=approve.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../src/tools/approve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,eAAO,MAAM,aAAa;;;;;;EAExB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEzD,wBAAsB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa
|
|
1
|
+
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../src/tools/approve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C,eAAO,MAAM,aAAa;;;;;;EAExB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEzD,wBAAsB,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa;;;GAOvE"}
|
package/dist/tools/approve.js
CHANGED
|
@@ -6,9 +6,8 @@ export async function approve(client, params) {
|
|
|
6
6
|
const result = await client.approveDelivery(params.task_id);
|
|
7
7
|
return {
|
|
8
8
|
task_id: params.task_id,
|
|
9
|
-
status: result.status ?? 'settled',
|
|
10
|
-
message: `Delivery approved for task ${params.task_id}. Payment released to executor.`,
|
|
11
9
|
...result,
|
|
10
|
+
message: `Delivery approved for task ${params.task_id}.`,
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
13
|
//# sourceMappingURL=approve.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve.js","sourceRoot":"","sources":["../../src/tools/approve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CACpE,CAAC,CAAA;AAIF,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAAmB,EAAE,MAAqB;IACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC3D,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,
|
|
1
|
+
{"version":3,"file":"approve.js","sourceRoot":"","sources":["../../src/tools/approve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CACpE,CAAC,CAAA;AAIF,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,MAAmB,EAAE,MAAqB;IACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC3D,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,GAAG,MAAM;QACT,OAAO,EAAE,8BAA8B,MAAM,CAAC,OAAO,GAAG;KACzD,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
package/src/bin/agora-skill.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { install } from '../installer.js'
|
|
|
6
6
|
const program = new Command()
|
|
7
7
|
.name('agora-skill')
|
|
8
8
|
.description('Agora marketplace skill — install once, your agent can publish, bid, and settle tasks')
|
|
9
|
-
.version('1.1.
|
|
9
|
+
.version('1.1.9')
|
|
10
10
|
|
|
11
11
|
program
|
|
12
12
|
.command('install')
|
package/src/installer.ts
CHANGED
|
@@ -22,7 +22,7 @@ export async function install(options: InstallOptions): Promise<void> {
|
|
|
22
22
|
|
|
23
23
|
console.log('')
|
|
24
24
|
console.log(' ╭──────────────────────────────────╮')
|
|
25
|
-
console.log(' │ Agora Skill Installer v1.1.
|
|
25
|
+
console.log(' │ Agora Skill Installer v1.1.9 │')
|
|
26
26
|
console.log(' ╰──────────────────────────────────╯')
|
|
27
27
|
console.log('')
|
|
28
28
|
|
package/src/server.ts
CHANGED
package/src/tools/approve.ts
CHANGED
|
@@ -11,8 +11,7 @@ export async function approve(client: AgoraClient, params: ApproveParams) {
|
|
|
11
11
|
const result = await client.approveDelivery(params.task_id)
|
|
12
12
|
return {
|
|
13
13
|
task_id: params.task_id,
|
|
14
|
-
status: result.status ?? 'settled',
|
|
15
|
-
message: `Delivery approved for task ${params.task_id}. Payment released to executor.`,
|
|
16
14
|
...result,
|
|
15
|
+
message: `Delivery approved for task ${params.task_id}.`,
|
|
17
16
|
}
|
|
18
17
|
}
|
package/test/smoke.test.ts
CHANGED
|
@@ -19,7 +19,7 @@ describe('Smoke Tests', () => {
|
|
|
19
19
|
|
|
20
20
|
test('CLI --version exits 0', () => {
|
|
21
21
|
const output = execSync(`node ${CLI_PATH} --version`, { encoding: 'utf-8' })
|
|
22
|
-
expect(output.trim()).toBe('1.1.
|
|
22
|
+
expect(output.trim()).toBe('1.1.9')
|
|
23
23
|
})
|
|
24
24
|
|
|
25
25
|
test('CLI install --help shows endpoint option', () => {
|