Skip to content

Commit 61f88f0

Browse files
chore: version packages (#614)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @gram-ai/[email protected] ### Patch Changes - a8cc73e: Ensure .gitignore is scaffolded out with templating Gram Functions projects. ## @gram-ai/[email protected] ### Patch Changes - 676405c: Updated the `manifest()` method of the Gram Functions TS framework to avoid JSON-serializing the input schema for tool definitions. This was a mistake since the server is expecting a literal object for the schema. ## @gram/[email protected] ### Minor Changes - 9fbd193: Introducing two new commands to the Gram CLI: gram stage openapi --slug <slug> --location <path> gram stage function --slug <slug> --location <path> These commands can be used to gradually build out deployment configs by adding OpenAPI documents and Gram Functions zip files as sources. After all sources are added, `gram push` can be used to deploy the staged configuration. In practice, this should make it easier to script a Gram deployment in CI/CD and locally compared to authoring a full deployment JSON config manually. - 30f385c: Added a `--method replace|merge` flag to the `gram push` command. This flag allows users to specify whether a push should replace all previous deployment artifacts or merge on top of them. The default behavior is `--method merge`. As an illustrative example: **With `--method replace`:** T0: Current project artifacts: - petstore.openapi.yaml - greet.zip T1: User runs: gram stage function --slug ecommerce --location ecommerce.zip gram push --method replace T2: Resulting project artifacts: - ecommerce (ecommerce.zip) **With `--method merge` (the new default behavior):** T0: Current project artifacts: - petstore (petstore.openapi.yaml) - greeter (greet.zip) T1: User runs: gram stage function --slug ecommerce --location ecommerce.zip gram push --method merge T2: Resulting project artifacts: - petstore (petstore.openapi.yaml) - greeter (greet.zip) - ecommerce (ecommerce.zip) ### Patch Changes - 789b304: Updated the deployment workflow in the CLI to not require a previous deployment ID when evolving. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 676405c commit 61f88f0

File tree

11 files changed

+84
-85
lines changed

11 files changed

+84
-85
lines changed

.changeset/chubby-plums-itch.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.changeset/green-worlds-find.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/lazy-birds-accept.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/neat-jars-film.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/sweet-eagles-jump.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

cli/CHANGELOG.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,72 @@
11
# @gram/cli
22

3+
## 0.10.0
4+
5+
### Minor Changes
6+
7+
- 9fbd193: Introducing two new commands to the Gram CLI:
8+
9+
```
10+
gram stage openapi --slug <slug> --location <path>
11+
gram stage function --slug <slug> --location <path>
12+
```
13+
14+
These commands can be used to gradually build out deployment configs by
15+
adding OpenAPI documents and Gram Functions zip files as sources. After
16+
all sources are added, `gram push` can be used to deploy the staged
17+
configuration.
18+
19+
In practice, this should make it easier to script a Gram deployment in CI/CD and
20+
locally compared to authoring a full deployment JSON config manually.
21+
22+
- 30f385c: Added a `--method replace|merge` flag to the `gram push` command. This flag
23+
allows users to specify whether a push should replace all previous deployment
24+
artifacts or merge on top of them. The default behavior is `--method merge`. As
25+
an illustrative example:
26+
27+
**With `--method replace`:**
28+
29+
```
30+
T0:
31+
Current project artifacts:
32+
- petstore.openapi.yaml
33+
- greet.zip
34+
35+
T1:
36+
User runs:
37+
gram stage function --slug ecommerce --location ecommerce.zip
38+
gram push --method replace
39+
40+
T2:
41+
Resulting project artifacts:
42+
- ecommerce (ecommerce.zip)
43+
```
44+
45+
**With `--method merge` (the new default behavior):**
46+
47+
```
48+
T0:
49+
Current project artifacts:
50+
- petstore (petstore.openapi.yaml)
51+
- greeter (greet.zip)
52+
53+
T1:
54+
User runs:
55+
gram stage function --slug ecommerce --location ecommerce.zip
56+
gram push --method merge
57+
58+
T2:
59+
Resulting project artifacts:
60+
- petstore (petstore.openapi.yaml)
61+
- greeter (greet.zip)
62+
- ecommerce (ecommerce.zip)
63+
```
64+
65+
### Patch Changes
66+
67+
- 789b304: Updated the deployment workflow in the CLI to not require a previous deployment
68+
ID when evolving.
69+
370
## 0.9.0
471

572
### Minor Changes

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@gram/cli",
3-
"version": "0.9.0",
3+
"version": "0.10.0",
44
"private": true
55
}

ts-framework/create-function/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @gram-ai/create-function
22

3+
## 0.2.1
4+
5+
### Patch Changes
6+
7+
- a8cc73e: Ensure .gitignore is scaffolded out with templating Gram Functions projects.
8+
39
## 0.2.0
410

511
### Minor Changes

ts-framework/create-function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"name": "@gram-ai/create-function",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"description": "Build AI tools and deploy them to getgram.ai",
66
"keywords": [],
77
"homepage": "https://github.com/speakeasy-api/gram",

ts-framework/functions/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @gram-ai/functions
22

3+
## 0.2.1
4+
5+
### Patch Changes
6+
7+
- 676405c: Updated the `manifest()` method of the Gram Functions TS framework to avoid
8+
JSON-serializing the input schema for tool definitions. This was a mistake since
9+
the server is expecting a literal object for the schema.
10+
311
## 0.2.0
412

513
## 0.1.0

0 commit comments

Comments
 (0)