create-agentmark 0.0.3 → 0.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/utils/examples/create-example-app.js +1 -1
- package/dist/utils/examples/templates/index.d.ts +0 -1
- package/dist/utils/examples/templates/index.d.ts.map +1 -1
- package/dist/utils/examples/templates/index.js +0 -1
- package/dist/utils/examples/templates/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/utils/examples/templates/dev-server.d.ts +0 -2
- package/dist/utils/examples/templates/dev-server.d.ts.map +0 -1
- package/dist/utils/examples/templates/dev-server.js +0 -38
- package/dist/utils/examples/templates/dev-server.js.map +0 -1
|
@@ -136,7 +136,7 @@ async function main() {
|
|
|
136
136
|
const runnerPort = runnerPortArg ? parseInt(runnerPortArg.split('=')[1]) : 9417;
|
|
137
137
|
const fileServerPort = fileServerPortArg ? parseInt(fileServerPortArg.split('=')[1]) : 9418;
|
|
138
138
|
|
|
139
|
-
const runner = new ${runnerClassName}(client);
|
|
139
|
+
const runner = new ${runnerClassName}(client as any);
|
|
140
140
|
const fileServerUrl = \`http://localhost:\${fileServerPort}\`;
|
|
141
141
|
const templatesDirectory = path.join(process.cwd(), 'agentmark');
|
|
142
142
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/examples/templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/examples/templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/examples/templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/examples/templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../../src/utils/examples/templates/dev-server.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,cAoC/B,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export const getDevServerContent = () => {
|
|
2
|
-
return `// dev-server.ts
|
|
3
|
-
// This file starts the AgentMark development servers
|
|
4
|
-
// Run with: npm run dev (or agentmark dev)
|
|
5
|
-
|
|
6
|
-
import { client } from './agentmark.config';
|
|
7
|
-
import { createRunnerServer } from '@agentmark/cli/runner-server';
|
|
8
|
-
import { VercelAdapterRunner } from '@agentmark/ai-sdk-v4-adapter/runner';
|
|
9
|
-
import path from 'path';
|
|
10
|
-
|
|
11
|
-
// Parse command line arguments
|
|
12
|
-
const args = process.argv.slice(2);
|
|
13
|
-
const runnerPortArg = args.find(arg => arg.startsWith('--runner-port='));
|
|
14
|
-
const fileServerPortArg = args.find(arg => arg.startsWith('--file-server-port='));
|
|
15
|
-
|
|
16
|
-
const runnerPort = runnerPortArg ? parseInt(runnerPortArg.split('=')[1]) : 9417;
|
|
17
|
-
const fileServerPort = fileServerPortArg ? parseInt(fileServerPortArg.split('=')[1]) : 9418;
|
|
18
|
-
|
|
19
|
-
async function main() {
|
|
20
|
-
const runner = new VercelAdapterRunner(client as any);
|
|
21
|
-
const fileServerUrl = \`http://localhost:\${fileServerPort}\`;
|
|
22
|
-
const templatesDirectory = path.join(process.cwd(), 'agentmark');
|
|
23
|
-
|
|
24
|
-
await createRunnerServer({
|
|
25
|
-
port: runnerPort,
|
|
26
|
-
runner,
|
|
27
|
-
fileServerUrl,
|
|
28
|
-
templatesDirectory
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
main().catch(err => {
|
|
33
|
-
console.error(err);
|
|
34
|
-
process.exit(1);
|
|
35
|
-
});
|
|
36
|
-
`;
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=dev-server.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server.js","sourceRoot":"","sources":["../../../../src/utils/examples/templates/dev-server.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCR,CAAC;AACF,CAAC,CAAC"}
|