struere 0.3.2 → 0.3.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/bin/struere.js +68 -1
- package/dist/cli/index.js +68 -1
- package/dist/cli/utils/convex.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/bin/struere.js
CHANGED
|
@@ -16828,6 +16828,21 @@ async function createAgent(data) {
|
|
|
16828
16828
|
return { agentId };
|
|
16829
16829
|
}
|
|
16830
16830
|
async function getUserInfo(token) {
|
|
16831
|
+
const ensureResponse = await fetch(`${CONVEX_URL}/api/mutation`, {
|
|
16832
|
+
method: "POST",
|
|
16833
|
+
headers: {
|
|
16834
|
+
"Content-Type": "application/json",
|
|
16835
|
+
Authorization: `Bearer ${token}`
|
|
16836
|
+
},
|
|
16837
|
+
body: JSON.stringify({
|
|
16838
|
+
path: "users:ensureUser",
|
|
16839
|
+
args: {}
|
|
16840
|
+
})
|
|
16841
|
+
});
|
|
16842
|
+
if (!ensureResponse.ok) {
|
|
16843
|
+
const error = await ensureResponse.text();
|
|
16844
|
+
return { error };
|
|
16845
|
+
}
|
|
16831
16846
|
const response = await fetch(`${CONVEX_URL}/api/query`, {
|
|
16832
16847
|
method: "POST",
|
|
16833
16848
|
headers: {
|
|
@@ -18712,9 +18727,61 @@ var whoamiCommand = new Command("whoami").description("Show current logged in us
|
|
|
18712
18727
|
console.log();
|
|
18713
18728
|
}
|
|
18714
18729
|
});
|
|
18730
|
+
// package.json
|
|
18731
|
+
var package_default = {
|
|
18732
|
+
name: "struere",
|
|
18733
|
+
version: "0.3.4",
|
|
18734
|
+
description: "Build, test, and deploy AI agents",
|
|
18735
|
+
keywords: ["ai", "agents", "llm", "anthropic", "openai", "framework", "cli"],
|
|
18736
|
+
author: "struere",
|
|
18737
|
+
license: "MIT",
|
|
18738
|
+
publishConfig: {
|
|
18739
|
+
access: "public"
|
|
18740
|
+
},
|
|
18741
|
+
repository: {
|
|
18742
|
+
type: "git",
|
|
18743
|
+
url: "git+https://github.com/struere/struere.git",
|
|
18744
|
+
directory: "packages/struere"
|
|
18745
|
+
},
|
|
18746
|
+
homepage: "https://struere.dev",
|
|
18747
|
+
bugs: {
|
|
18748
|
+
url: "https://github.com/struere/struere/issues"
|
|
18749
|
+
},
|
|
18750
|
+
type: "module",
|
|
18751
|
+
bin: {
|
|
18752
|
+
struere: "./dist/bin/struere.js"
|
|
18753
|
+
},
|
|
18754
|
+
main: "./dist/index.js",
|
|
18755
|
+
types: "./dist/index.d.ts",
|
|
18756
|
+
exports: {
|
|
18757
|
+
".": {
|
|
18758
|
+
import: "./dist/index.js",
|
|
18759
|
+
types: "./dist/index.d.ts"
|
|
18760
|
+
}
|
|
18761
|
+
},
|
|
18762
|
+
files: ["dist"],
|
|
18763
|
+
scripts: {
|
|
18764
|
+
build: "bun build ./src/cli/index.ts --outdir ./dist/cli --target bun --external commander --external chalk --external ora --external chokidar --external yaml && bun build ./src/index.ts --outdir ./dist --target node && bun build ./src/bin/struere.ts --outdir ./dist/bin --target bun && tsc --emitDeclarationOnly && chmod +x ./dist/bin/struere.js",
|
|
18765
|
+
dev: "tsc --watch",
|
|
18766
|
+
test: "bun test",
|
|
18767
|
+
prepublishOnly: "bun run build"
|
|
18768
|
+
},
|
|
18769
|
+
dependencies: {
|
|
18770
|
+
chalk: "^5.3.0",
|
|
18771
|
+
chokidar: "^3.5.3",
|
|
18772
|
+
commander: "^12.0.0",
|
|
18773
|
+
convex: "^1.17.4",
|
|
18774
|
+
ora: "^8.0.0",
|
|
18775
|
+
yaml: "^2.3.4"
|
|
18776
|
+
},
|
|
18777
|
+
devDependencies: {
|
|
18778
|
+
"bun-types": "^1.0.0",
|
|
18779
|
+
typescript: "^5.3.0"
|
|
18780
|
+
}
|
|
18781
|
+
};
|
|
18715
18782
|
|
|
18716
18783
|
// src/cli/index.ts
|
|
18717
|
-
var CURRENT_VERSION =
|
|
18784
|
+
var CURRENT_VERSION = package_default.version;
|
|
18718
18785
|
async function checkForUpdates() {
|
|
18719
18786
|
if (process.env.STRUERE_SKIP_UPDATE_CHECK)
|
|
18720
18787
|
return;
|
package/dist/cli/index.js
CHANGED
|
@@ -167,6 +167,21 @@ async function createAgent(data) {
|
|
|
167
167
|
return { agentId };
|
|
168
168
|
}
|
|
169
169
|
async function getUserInfo(token) {
|
|
170
|
+
const ensureResponse = await fetch(`${CONVEX_URL}/api/mutation`, {
|
|
171
|
+
method: "POST",
|
|
172
|
+
headers: {
|
|
173
|
+
"Content-Type": "application/json",
|
|
174
|
+
Authorization: `Bearer ${token}`
|
|
175
|
+
},
|
|
176
|
+
body: JSON.stringify({
|
|
177
|
+
path: "users:ensureUser",
|
|
178
|
+
args: {}
|
|
179
|
+
})
|
|
180
|
+
});
|
|
181
|
+
if (!ensureResponse.ok) {
|
|
182
|
+
const error = await ensureResponse.text();
|
|
183
|
+
return { error };
|
|
184
|
+
}
|
|
170
185
|
const response = await fetch(`${CONVEX_URL}/api/query`, {
|
|
171
186
|
method: "POST",
|
|
172
187
|
headers: {
|
|
@@ -2077,9 +2092,61 @@ var whoamiCommand = new Command11("whoami").description("Show current logged in
|
|
|
2077
2092
|
console.log();
|
|
2078
2093
|
}
|
|
2079
2094
|
});
|
|
2095
|
+
// package.json
|
|
2096
|
+
var package_default = {
|
|
2097
|
+
name: "struere",
|
|
2098
|
+
version: "0.3.4",
|
|
2099
|
+
description: "Build, test, and deploy AI agents",
|
|
2100
|
+
keywords: ["ai", "agents", "llm", "anthropic", "openai", "framework", "cli"],
|
|
2101
|
+
author: "struere",
|
|
2102
|
+
license: "MIT",
|
|
2103
|
+
publishConfig: {
|
|
2104
|
+
access: "public"
|
|
2105
|
+
},
|
|
2106
|
+
repository: {
|
|
2107
|
+
type: "git",
|
|
2108
|
+
url: "git+https://github.com/struere/struere.git",
|
|
2109
|
+
directory: "packages/struere"
|
|
2110
|
+
},
|
|
2111
|
+
homepage: "https://struere.dev",
|
|
2112
|
+
bugs: {
|
|
2113
|
+
url: "https://github.com/struere/struere/issues"
|
|
2114
|
+
},
|
|
2115
|
+
type: "module",
|
|
2116
|
+
bin: {
|
|
2117
|
+
struere: "./dist/bin/struere.js"
|
|
2118
|
+
},
|
|
2119
|
+
main: "./dist/index.js",
|
|
2120
|
+
types: "./dist/index.d.ts",
|
|
2121
|
+
exports: {
|
|
2122
|
+
".": {
|
|
2123
|
+
import: "./dist/index.js",
|
|
2124
|
+
types: "./dist/index.d.ts"
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
files: ["dist"],
|
|
2128
|
+
scripts: {
|
|
2129
|
+
build: "bun build ./src/cli/index.ts --outdir ./dist/cli --target bun --external commander --external chalk --external ora --external chokidar --external yaml && bun build ./src/index.ts --outdir ./dist --target node && bun build ./src/bin/struere.ts --outdir ./dist/bin --target bun && tsc --emitDeclarationOnly && chmod +x ./dist/bin/struere.js",
|
|
2130
|
+
dev: "tsc --watch",
|
|
2131
|
+
test: "bun test",
|
|
2132
|
+
prepublishOnly: "bun run build"
|
|
2133
|
+
},
|
|
2134
|
+
dependencies: {
|
|
2135
|
+
chalk: "^5.3.0",
|
|
2136
|
+
chokidar: "^3.5.3",
|
|
2137
|
+
commander: "^12.0.0",
|
|
2138
|
+
convex: "^1.17.4",
|
|
2139
|
+
ora: "^8.0.0",
|
|
2140
|
+
yaml: "^2.3.4"
|
|
2141
|
+
},
|
|
2142
|
+
devDependencies: {
|
|
2143
|
+
"bun-types": "^1.0.0",
|
|
2144
|
+
typescript: "^5.3.0"
|
|
2145
|
+
}
|
|
2146
|
+
};
|
|
2080
2147
|
|
|
2081
2148
|
// src/cli/index.ts
|
|
2082
|
-
var CURRENT_VERSION =
|
|
2149
|
+
var CURRENT_VERSION = package_default.version;
|
|
2083
2150
|
async function checkForUpdates() {
|
|
2084
2151
|
if (process.env.STRUERE_SKIP_UPDATE_CHECK)
|
|
2085
2152
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convex.d.ts","sourceRoot":"","sources":["../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