Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b2185f54c0 | |||
| 49f096b18f | |||
| 6b9ebd1796 | |||
| b3879c583a | |||
| 01d4f0fa14 | |||
| d79d0227fa | |||
| e4e4ce0f73 | |||
| 13b12ef50c |
@@ -0,0 +1,28 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['*']
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- run: corepack enable && echo 'minimum-release-age=0' > .npmrc && pnpm install
|
||||
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
|
||||
- name: Lint
|
||||
run: pnpm run check
|
||||
|
||||
- name: Test
|
||||
run: pnpm run test
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "proman build",
|
||||
"test": "vitest run",
|
||||
"test": "proman test",
|
||||
"check": "proman check",
|
||||
"format": "proman format"
|
||||
},
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
"bin": {
|
||||
"ocas": "dist/index.js"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"prompts"
|
||||
],
|
||||
"dependencies": {
|
||||
"@ocas/core": "workspace:*",
|
||||
"@ocas/fs": "workspace:*"
|
||||
|
||||
@@ -1234,7 +1234,7 @@ switch (cmd) {
|
||||
switch (sub) {
|
||||
case "usage": {
|
||||
const content = readFileSync(
|
||||
join(__dirname, "prompts", "usage.md"),
|
||||
join(__dirname, "..", "prompts", "usage.md"),
|
||||
"utf-8",
|
||||
);
|
||||
process.stdout.write(content);
|
||||
@@ -1242,7 +1242,7 @@ switch (cmd) {
|
||||
}
|
||||
case "setup": {
|
||||
const content = readFileSync(
|
||||
join(__dirname, "prompts", "setup.md"),
|
||||
join(__dirname, "..", "prompts", "setup.md"),
|
||||
"utf-8",
|
||||
);
|
||||
process.stdout.write(content);
|
||||
|
||||
@@ -466,5 +466,5 @@ Flags:
|
||||
--epsilon <n> Cutoff threshold for render (default: 0.01)
|
||||
--pipe, -p Read from stdin (put/hash: raw JSON payload; render: { type, value } envelope)
|
||||
|
||||
Agent: If you have not installed the ocas skill for this version (0.3.0), run \`ocas prompt setup\` and follow the instructions."
|
||||
Agent: If you have not installed the ocas skill for this version (0.3.1), run \`ocas prompt setup\` and follow the instructions."
|
||||
`;
|
||||
|
||||
@@ -52,6 +52,7 @@ describe("Phase 7: Edge Cases", () => {
|
||||
{
|
||||
encoding: "utf-8",
|
||||
timeout: 10000,
|
||||
env: { ...process.env, NODE_NO_WARNINGS: "1" },
|
||||
},
|
||||
);
|
||||
return { stdout: stdout.trim(), stderr: "", exitCode: 0 };
|
||||
@@ -177,6 +178,7 @@ describe("Phase 3: Variable System", () => {
|
||||
{
|
||||
encoding: "utf-8",
|
||||
timeout: 10000,
|
||||
env: { ...process.env, NODE_NO_WARNINGS: "1" },
|
||||
},
|
||||
);
|
||||
return { stdout: stdout.trim(), stderr: "", exitCode: 0 };
|
||||
@@ -379,6 +381,7 @@ describe("Phase 4: Template System", () => {
|
||||
{
|
||||
encoding: "utf-8",
|
||||
timeout: 10000,
|
||||
env: { ...process.env, NODE_NO_WARNINGS: "1" },
|
||||
},
|
||||
);
|
||||
return { stdout: stdout.trim(), stderr: "", exitCode: 0 };
|
||||
|
||||
@@ -610,6 +610,7 @@ describe("Phase 2: Schema Validation", () => {
|
||||
{
|
||||
encoding: "utf-8",
|
||||
timeout: 10000,
|
||||
env: { ...process.env, NODE_NO_WARNINGS: "1" },
|
||||
},
|
||||
).trim();
|
||||
} catch (e: unknown) {
|
||||
@@ -635,6 +636,7 @@ describe("Phase 2: Schema Validation", () => {
|
||||
{
|
||||
encoding: "utf-8",
|
||||
timeout: 10000,
|
||||
env: { ...process.env, NODE_NO_WARNINGS: "1" },
|
||||
},
|
||||
);
|
||||
} catch (e: unknown) {
|
||||
|
||||
Reference in New Issue
Block a user