@agi-cli/server 0.1.61 → 0.1.63

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agi-cli/server",
3
- "version": "0.1.61",
3
+ "version": "0.1.63",
4
4
  "description": "HTTP API server for AGI CLI",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -29,8 +29,8 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "dependencies": {
32
- "@agi-cli/sdk": "0.1.61",
33
- "@agi-cli/database": "0.1.61",
32
+ "@agi-cli/sdk": "0.1.63",
33
+ "@agi-cli/database": "0.1.63",
34
34
  "drizzle-orm": "^0.44.5",
35
35
  "hono": "^4.9.9"
36
36
  },
@@ -731,6 +731,53 @@ export function getOpenAPISpec() {
731
731
  },
732
732
  },
733
733
  },
734
+ '/v1/git/push': {
735
+ post: {
736
+ tags: ['git'],
737
+ operationId: 'pushCommits',
738
+ summary: 'Push commits to remote',
739
+ description:
740
+ 'Pushes local commits to the configured remote repository',
741
+ requestBody: {
742
+ required: false,
743
+ content: {
744
+ 'application/json': {
745
+ schema: {
746
+ type: 'object',
747
+ properties: {
748
+ project: { type: 'string' },
749
+ },
750
+ },
751
+ },
752
+ },
753
+ },
754
+ responses: {
755
+ 200: {
756
+ description: 'OK',
757
+ content: {
758
+ 'application/json': {
759
+ schema: {
760
+ type: 'object',
761
+ properties: {
762
+ status: { type: 'string', enum: ['ok'] },
763
+ data: {
764
+ type: 'object',
765
+ properties: {
766
+ output: { type: 'string' },
767
+ },
768
+ required: ['output'],
769
+ },
770
+ },
771
+ required: ['status', 'data'],
772
+ },
773
+ },
774
+ },
775
+ },
776
+ 400: gitErrorResponse(),
777
+ 500: gitErrorResponse(),
778
+ },
779
+ },
780
+ },
734
781
  },
735
782
  components: {
736
783
  schemas: {