@multiplayer-app/sandbox 0.0.9 → 0.0.10
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/agents/shared/content-generator-system-prompt.d.ts +1 -1
- package/dist/agents/shared/content-generator-system-prompt.d.ts.map +1 -1
- package/dist/agents/shared/content-generator-system-prompt.js +3 -3
- package/dist/agents/shared/publish-session-artifacts.tool.d.ts.map +1 -1
- package/dist/agents/shared/publish-session-artifacts.tool.js +11 -12
- package/dist/agents/shared/publish-session-artifacts.tool.js.map +1 -1
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +4 -0
- package/dist/agents.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Shared system prompt for content-generator / html-generator agents. */
|
|
2
|
-
export declare const CONTENT_GENERATOR_SYSTEM_PROMPT = "You generate and update session artifacts for both UI and docs. Use publishSessionArtifacts for NEW files and updateSessionArtifact for EXISTING files.\n\nWorkflow:\n1. Decide output mode:\n - UI/HTML (default): each .html page is self-contained \u2014 page logic in <script> and only small overrides in <style> (same file, e.g. index.html). For multiple pages, publish one .html per page (index.html, about.html, \u2026), each self-contained.\n - Split assets (only when the user explicitly asks): separate styles.css, script.js, and/or extra .css/.js, linked from HTML via relative URLs (./styles.css, ./script.js).\n - Docs: .md files such as README.md, docs/architecture.md\n - Optional data: JSON under data/ (e.g. data/metrics.json), loaded from inline <script> when needed.\n2. Keep paths relative (no leading slash). Do not add styles.css or script.js unless the user requested split files or you are extending an existing split layout.\n3.
|
|
2
|
+
export declare const CONTENT_GENERATOR_SYSTEM_PROMPT = "You generate and update session artifacts for both UI and docs. Use publishSessionArtifacts for NEW files and updateSessionArtifact for EXISTING files.\n\nWorkflow:\n1. Decide output mode:\n - UI/HTML (default): each .html page is self-contained \u2014 page logic in <script> and only small overrides in <style> (same file, e.g. index.html). For multiple pages, publish one .html per page (index.html, about.html, \u2026), each self-contained.\n - Split assets (only when the user explicitly asks): separate styles.css, script.js, and/or extra .css/.js, linked from HTML via relative URLs (./styles.css, ./script.js).\n - Docs: .md files such as README.md, docs/architecture.md\n - Optional data: JSON under data/ (e.g. data/metrics.json), loaded from inline <script> when needed.\n2. Keep paths relative (no leading slash). Do not add styles.css or script.js unless the user requested split files or you are extending an existing split layout.\n3. Existing session artifacts are listed in a system message.\n4. New paths: publishSessionArtifacts with task, artifacts[], and parentContext. parentContext MUST include: (a) outputs from any knowledge tools you called this session (e.g. getWeather), (b) relevant prior conversation excerpts, (c) concrete data values the subagent cannot fetch itself. The subagent has NO access to your chat history or tool results \u2014 if data is not in parentContext, it will be missing from the page.\n5. Existing paths: updateSessionArtifact with parentContext and task (include the path). One path per call. Same parentContext rules as step 4.\n6. Mixed create + update: publish new paths only, then update each existing path separately.\n7. previewPath: primary .md for doc-only publishes; main entry .html (usually index.html) for UI.\n8. After publish, give previewUrl; after edit, the updated path; after read/Q&A, relay excerpts/summary only.\n\nHTML / UI (Pico CSS):\n- Use Pico-friendly HTML5: <!DOCTYPE html>, <html lang=\"...\">, charset + viewport in <head>, <body> with <main class=\"container\"> (or class=\"container-fluid\") wrapping content.\n- Prefer semantic Pico elements: header, nav, main, section, article, aside, footer, table, figure, button, input, select, textarea, details, dialog. Use Pico patterns for grids/cards (e.g. class=\"grid\") instead of large custom layout CSS.\n- Keep custom <style> minimal (only what Pico cannot express). \n- Put behavior in <script>.\n\nRules:\n- Prefer concise, production-grade output.\n- Do not overwrite existing paths via publishSessionArtifacts.\n- You do not have validateHtml or validateMarkdown; delegated subagents run validation.\n- When editing, keep the same layout model as the session (inline vs split files).";
|
|
3
3
|
//# sourceMappingURL=content-generator-system-prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-generator-system-prompt.d.ts","sourceRoot":"","sources":["../../../src/agents/shared/content-generator-system-prompt.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"content-generator-system-prompt.d.ts","sourceRoot":"","sources":["../../../src/agents/shared/content-generator-system-prompt.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,eAAO,MAAM,+BAA+B,+qFA0BuC,CAAA"}
|
|
@@ -11,9 +11,9 @@ Workflow:
|
|
|
11
11
|
- Docs: .md files such as README.md, docs/architecture.md
|
|
12
12
|
- Optional data: JSON under data/ (e.g. data/metrics.json), loaded from inline <script> when needed.
|
|
13
13
|
2. Keep paths relative (no leading slash). Do not add styles.css or script.js unless the user requested split files or you are extending an existing split layout.
|
|
14
|
-
3.
|
|
15
|
-
4. New paths: publishSessionArtifacts with
|
|
16
|
-
5. Existing paths: updateSessionArtifact with parentContext and task (include the path). One path per call.
|
|
14
|
+
3. Existing session artifacts are listed in a system message.
|
|
15
|
+
4. New paths: publishSessionArtifacts with task, artifacts[], and parentContext. parentContext MUST include: (a) outputs from any knowledge tools you called this session (e.g. getWeather), (b) relevant prior conversation excerpts, (c) concrete data values the subagent cannot fetch itself. The subagent has NO access to your chat history or tool results — if data is not in parentContext, it will be missing from the page.
|
|
16
|
+
5. Existing paths: updateSessionArtifact with parentContext and task (include the path). One path per call. Same parentContext rules as step 4.
|
|
17
17
|
6. Mixed create + update: publish new paths only, then update each existing path separately.
|
|
18
18
|
7. previewPath: primary .md for doc-only publishes; main entry .html (usually index.html) for UI.
|
|
19
19
|
8. After publish, give previewUrl; after edit, the updated path; after read/Q&A, relay excerpts/summary only.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-session-artifacts.tool.d.ts","sourceRoot":"","sources":["../../../src/agents/shared/publish-session-artifacts.tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAEnF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsBvB,eAAO,MAAM,2BAA2B;;;;;;;iBAOtC,CAAA;AA0EF,eAAO,MAAM,mCAAmC,EAAE,
|
|
1
|
+
{"version":3,"file":"publish-session-artifacts.tool.d.ts","sourceRoot":"","sources":["../../../src/agents/shared/publish-session-artifacts.tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAEnF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsBvB,eAAO,MAAM,2BAA2B;;;;;;;iBAOtC,CAAA;AA0EF,eAAO,MAAM,mCAAmC,EAAE,SA0DjD,CAAA"}
|
|
@@ -79,7 +79,7 @@ exports.publishSessionArtifactsSubagentTool = {
|
|
|
79
79
|
userConfigurable: true,
|
|
80
80
|
data: {
|
|
81
81
|
title: 'publishSessionArtifacts',
|
|
82
|
-
description: 'Delegate creation of new session artifacts
|
|
82
|
+
description: 'Delegate creation of new session artifacts. Pass task, artifacts[], and parentContext (required — include all data from knowledge tools and prior conversation the subagent needs). Refuses paths that already exist.',
|
|
83
83
|
inputSchema: zod_1.z.object({
|
|
84
84
|
task: zod_1.z
|
|
85
85
|
.string()
|
|
@@ -96,23 +96,22 @@ exports.publishSessionArtifactsSubagentTool = {
|
|
|
96
96
|
.optional()
|
|
97
97
|
.describe('Requirements specific to this artifact.'),
|
|
98
98
|
})),
|
|
99
|
-
parentContext: zod_1.z
|
|
100
|
-
.string()
|
|
101
|
-
.optional()
|
|
102
|
-
.describe('Additional context from the parent workflow. May include list of existing artifacts.'),
|
|
99
|
+
parentContext: zod_1.z.string().min(1).describe('Additional context provided by the parent agent to help complete the task. May include project requirements, user requests, design decisions, architecture details, existing artifact summaries, related files, constraints, assumptions, acceptance criteria, prior conversation excerpts, or any other information relevant to implementing the requested changes.'),
|
|
103
100
|
}),
|
|
104
101
|
subAgent: {
|
|
105
102
|
name: 'session-artefact-creator',
|
|
106
103
|
description: 'Creates new session artifact files only (HTML, CSS, JS, Markdown, data). Never overwrites an existing path; publish fails if any target path is already on disk.',
|
|
107
|
-
systemPrompt: `You create new files under the active session resolved from tool context (chatId). The parent
|
|
104
|
+
systemPrompt: `You create new files under the active session resolved from tool context (chatId). The parent sends JSON: { task, artifacts[], parentContext }.
|
|
108
105
|
|
|
109
106
|
Workflow:
|
|
110
|
-
1.
|
|
111
|
-
2.
|
|
112
|
-
3.
|
|
113
|
-
4.
|
|
114
|
-
5.
|
|
115
|
-
6.
|
|
107
|
+
1. Read parentContext first — it contains data, tool results, and decisions you cannot look up. You have no access to the parent chat.
|
|
108
|
+
2. Use task + artifacts to decide paths, structure, and content. Generate full file bodies yourself.
|
|
109
|
+
3. Session-relative paths only (no leading slash), e.g. index.html, about.html, docs/readme.md, data/metrics.json. styles.css / script.js only if the parent requested split-asset layout in parentContext or artifacts.
|
|
110
|
+
4. Every path MUST be new. If a path already exists, report the conflict — do not overwrite.
|
|
111
|
+
5. Always include Pico CSS in published .html files: https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css
|
|
112
|
+
6. Call publishSessionArtifacts once with the new files only.
|
|
113
|
+
7. previewPath: main entry .html (usually index.html) or primary .md for doc-only.
|
|
114
|
+
8. Reply briefly: paths created, previewUrl
|
|
116
115
|
`,
|
|
117
116
|
stopWhen: () => false,
|
|
118
117
|
tools: [publishSessionArtifactsTool],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-session-artifacts.tool.js","sourceRoot":"","sources":["../../../src/agents/shared/publish-session-artifacts.tool.ts"],"names":[],"mappings":";;;AACA,oEAA+D;AAC/D,6BAAuB;AACvB,2CAAoD;AACpD,sEAGyC;AACzC,2DAIgC;AAEhC,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,mGAAmG,CACpG;IACH,OAAO,EAAE,OAAC,CAAC,MAAM,EAA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IAAI,EAAE;QACJ,KAAK,EAAE,yBAAyB;QAChC,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"publish-session-artifacts.tool.js","sourceRoot":"","sources":["../../../src/agents/shared/publish-session-artifacts.tool.ts"],"names":[],"mappings":";;;AACA,oEAA+D;AAC/D,6BAAuB;AACvB,2CAAoD;AACpD,sEAGyC;AACzC,2DAIgC;AAEhC,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,mGAAmG,CACpG;IACH,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CACrD,CAAC,CAAA;AAEW,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IAChF,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACjD,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,8DAA8D,CAAC;CAC5E,CAAC,CAAA;AAEF,KAAK,UAAU,8BAA8B,CAC3C,KAAkD,EAClD,OAA2B;;IAO3B,MAAM,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,0CAAE,MAAgB,CAAA;IACjD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAA;IAC3C,CAAC;IAED,MAAM,kBAAkB,GAAG,MAAA,MAAA,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,0CAAE,IAAI,mCAAI,YAAY,CAAA;IAC/D,MAAM,gBAAgB,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KAAK;YACrB,KAAK,EAAE,CAAC,2BAA2B,CAAC;SACrC;KACF;CACF,CAAA"}
|
package/dist/agents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAK/D,wBAAgB,WAAW,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAIrF;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAE/F"}
|
package/dist/agents.js
CHANGED
|
@@ -3,8 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.setupAgents = setupAgents;
|
|
4
4
|
exports.createSetupAgents = createSetupAgents;
|
|
5
5
|
const content_generator_agent_1 = require("./agents/content-generator.agent");
|
|
6
|
+
const publish_session_artifacts_tool_1 = require("./agents/shared/publish-session-artifacts.tool");
|
|
7
|
+
const update_session_artifacts_tool_1 = require("./agents/shared/update-session-artifacts.tool");
|
|
6
8
|
function setupAgents(configStore, deps) {
|
|
7
9
|
configStore.addAgent(['main', 'content-generator'], (0, content_generator_agent_1.createContentGeneratorAgent)(deps));
|
|
10
|
+
configStore.addAgent(['internal'], publish_session_artifacts_tool_1.publishSessionArtifactsSubagentTool.data.subAgent);
|
|
11
|
+
configStore.addAgent(['internal'], update_session_artifacts_tool_1.updateSessionArtifactsSubagentTool.data.subAgent);
|
|
8
12
|
}
|
|
9
13
|
function createSetupAgents(deps) {
|
|
10
14
|
return (configStore) => setupAgents(configStore, deps);
|
package/dist/agents.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":";;AAMA,kCAIC;AAED,8CAEC;AAZD,8EAA8E;AAC9E,mGAAoG;AACpG,iGAAkG;AAElG,SAAgB,WAAW,CAAC,WAAwB,EAAE,IAAyB;IAC7E,WAAW,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAAE,IAAA,qDAA2B,EAAC,IAAI,CAAC,CAAC,CAAA;IACtF,WAAW,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,EAAE,oEAAmC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACrF,WAAW,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,EAAE,kEAAkC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;AACtF,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAyB;IACzD,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;AACxD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,5 +8,7 @@ export { AgentServiceStore } from './ai-agent.service';
|
|
|
8
8
|
export { initRealtime, type RealtimeServices } from './realtime/init-realtime';
|
|
9
9
|
export { assertSessionAccess, hasChatAccess, loadChatForUser, CHAT_NOT_FOUND, } from './lib/chat-access';
|
|
10
10
|
export { parseSessionArtifactDocumentId, buildSessionArtifactDocumentId, } from './realtime/session-artifact-document-id';
|
|
11
|
-
export { createContentGeneratorAgent } from './agents/content-generator.agent';
|
|
11
|
+
export { createContentGeneratorAgent, } from './agents/content-generator.agent';
|
|
12
|
+
export { publishSessionArtifactsSubagentTool } from './agents/shared/publish-session-artifacts.tool';
|
|
13
|
+
export { updateSessionArtifactsSubagentTool } from './agents/shared/update-session-artifacts.tool';
|
|
12
14
|
//# 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,OAAO,EAAE,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9G,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,eAAe,EAAE,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAC5I,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC9E,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,cAAc,GACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,yCAAyC,CAAA;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9G,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,eAAe,EAAE,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAC5I,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC9E,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,cAAc,GACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,2BAA2B,GAC5B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAA;AACpG,OAAO,EAAE,kCAAkC,EAAE,MAAM,+CAA+C,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createContentGeneratorAgent = exports.buildSessionArtifactDocumentId = exports.parseSessionArtifactDocumentId = exports.CHAT_NOT_FOUND = exports.loadChatForUser = exports.hasChatAccess = exports.assertSessionAccess = exports.initRealtime = exports.AgentServiceStore = exports.createSetupAgents = exports.setupAgents = exports.getBuilderApiRouter = exports.getAgentService = exports.getBuilderApiContext = exports.setBuilderApiContext = exports.resolveBuilderApiLogger = exports.getBuilderApiLogger = exports.configureBuilderApiLogger = exports.agentDepsFromConfig = exports.createBuilderApi = void 0;
|
|
3
|
+
exports.updateSessionArtifactsSubagentTool = exports.publishSessionArtifactsSubagentTool = exports.createContentGeneratorAgent = exports.buildSessionArtifactDocumentId = exports.parseSessionArtifactDocumentId = exports.CHAT_NOT_FOUND = exports.loadChatForUser = exports.hasChatAccess = exports.assertSessionAccess = exports.initRealtime = exports.AgentServiceStore = exports.createSetupAgents = exports.setupAgents = exports.getBuilderApiRouter = exports.getAgentService = exports.getBuilderApiContext = exports.setBuilderApiContext = exports.resolveBuilderApiLogger = exports.getBuilderApiLogger = exports.configureBuilderApiLogger = exports.agentDepsFromConfig = exports.createBuilderApi = void 0;
|
|
4
4
|
var create_builder_api_1 = require("./create-builder-api");
|
|
5
5
|
Object.defineProperty(exports, "createBuilderApi", { enumerable: true, get: function () { return create_builder_api_1.createBuilderApi; } });
|
|
6
6
|
var builder_api_config_1 = require("./builder-api-config");
|
|
@@ -32,4 +32,8 @@ Object.defineProperty(exports, "parseSessionArtifactDocumentId", { enumerable: t
|
|
|
32
32
|
Object.defineProperty(exports, "buildSessionArtifactDocumentId", { enumerable: true, get: function () { return session_artifact_document_id_1.buildSessionArtifactDocumentId; } });
|
|
33
33
|
var content_generator_agent_1 = require("./agents/content-generator.agent");
|
|
34
34
|
Object.defineProperty(exports, "createContentGeneratorAgent", { enumerable: true, get: function () { return content_generator_agent_1.createContentGeneratorAgent; } });
|
|
35
|
+
var publish_session_artifacts_tool_1 = require("./agents/shared/publish-session-artifacts.tool");
|
|
36
|
+
Object.defineProperty(exports, "publishSessionArtifactsSubagentTool", { enumerable: true, get: function () { return publish_session_artifacts_tool_1.publishSessionArtifactsSubagentTool; } });
|
|
37
|
+
var update_session_artifacts_tool_1 = require("./agents/shared/update-session-artifacts.tool");
|
|
38
|
+
Object.defineProperty(exports, "updateSessionArtifactsSubagentTool", { enumerable: true, get: function () { return update_session_artifacts_tool_1.updateSessionArtifactsSubagentTool; } });
|
|
35
39
|
//# 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,2DAA8G;AAArG,sHAAA,gBAAgB,OAAA;AACzB,2DAI6B;AAH3B,yHAAA,mBAAmB,OAAA;AAIrB,mCAKiB;AAJf,mHAAA,yBAAyB,OAAA;AACzB,6GAAA,mBAAmB,OAAA;AACnB,iHAAA,uBAAuB,OAAA;AAGzB,qCAA4I;AAAnI,+GAAA,oBAAoB,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AAAE,0GAAA,eAAe,OAAA;AACpE,mCAA8C;AAArC,6GAAA,mBAAmB,OAAA;AAC5B,mCAAyD;AAAhD,qGAAA,WAAW,OAAA;AAAE,2GAAA,iBAAiB,OAAA;AACvC,uDAAsD;AAA7C,qHAAA,iBAAiB,OAAA;AAC1B,0DAA8E;AAArE,6GAAA,YAAY,OAAA;AACrB,iDAK0B;AAJxB,kHAAA,mBAAmB,OAAA;AACnB,4GAAA,aAAa,OAAA;AACb,8GAAA,eAAe,OAAA;AACf,6GAAA,cAAc,OAAA;AAEhB,wFAGgD;AAF9C,8IAAA,8BAA8B,OAAA;AAC9B,8IAAA,8BAA8B,OAAA;AAEhC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2DAA8G;AAArG,sHAAA,gBAAgB,OAAA;AACzB,2DAI6B;AAH3B,yHAAA,mBAAmB,OAAA;AAIrB,mCAKiB;AAJf,mHAAA,yBAAyB,OAAA;AACzB,6GAAA,mBAAmB,OAAA;AACnB,iHAAA,uBAAuB,OAAA;AAGzB,qCAA4I;AAAnI,+GAAA,oBAAoB,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AAAE,0GAAA,eAAe,OAAA;AACpE,mCAA8C;AAArC,6GAAA,m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