@agentshouse/kit 0.2.1-alpha.3 → 0.2.1-alpha.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.
@@ -1,3 +1,4 @@
1
+ import { readEnrolment } from './home.js';
1
2
  const HOUSE_LINE = 'Work with House through the `house` CLI: run `house --help`.';
2
3
  const FILE_LINE = 'To give the User a file, upload it with `house upload_attachment` and link it in your answer.';
3
4
  const HOW_WE_WORK = '/private/library/how-we-work.md';
@@ -24,5 +25,7 @@ async function howWeWork(bridge) {
24
25
  return document.replace(/\n$/, '');
25
26
  }
26
27
  export async function instructions(bridge, base) {
27
- return [`${HOUSE_LINE}\n${FILE_LINE}`, base, await howWeWork(bridge)].filter((part) => part !== '').join('\n\n');
28
+ const app = new URL('/app/new.git', (await readEnrolment()).house).href;
29
+ const appLine = `To show the User a page, upload it or push it to an App instead of starting a server; \`git clone ${app}\` starts a new App.`;
30
+ return [`${HOUSE_LINE}\n${FILE_LINE}\n${appLine}`, base, await howWeWork(bridge)].filter((part) => part !== '').join('\n\n');
28
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentshouse/kit",
3
- "version": "0.2.1-alpha.3",
3
+ "version": "0.2.1-alpha.4",
4
4
  "description": "House Kit connects an Environment to agents.house.",
5
5
  "license": "MIT",
6
6
  "repository": {